From d313eec20d39bad96f5126e3b3227e88d74ad975 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Tue, 13 Feb 2024 15:41:04 +0300 Subject: [PATCH] CMS: Codegen --- codegen/Cms/AuditLogs/Api/AuditLogsApi.php | 96 +- codegen/Cms/AuditLogs/ApiException.php | 2 +- codegen/Cms/AuditLogs/Configuration.php | 2 +- codegen/Cms/AuditLogs/HeaderSelector.php | 2 +- .../CollectionResponsePublicAuditLog.php | 56 +- codegen/Cms/AuditLogs/Model/Error.php | 176 +- codegen/Cms/AuditLogs/Model/ErrorDetail.php | 124 +- .../Cms/AuditLogs/Model/ModelInterface.php | 2 +- codegen/Cms/AuditLogs/Model/NextPage.php | 56 +- codegen/Cms/AuditLogs/Model/Paging.php | 42 +- codegen/Cms/AuditLogs/Model/PreviousPage.php | 353 ++ .../Cms/AuditLogs/Model/PublicAuditLog.php | 210 +- codegen/Cms/AuditLogs/ObjectSerializer.php | 2 +- .../Cms/Blogs/Authors/Api/BlogAuthorsApi.php | 240 +- codegen/Cms/Blogs/Authors/ApiException.php | 2 +- codegen/Cms/Blogs/Authors/Configuration.php | 2 +- codegen/Cms/Blogs/Authors/HeaderSelector.php | 2 +- .../Model/AttachToLangPrimaryRequestVNext.php | 2964 +---------------- .../Authors/Model/BatchInputBlogAuthor.php | 2 +- .../Authors/Model/BatchInputJsonNode.php | 2 +- .../Blogs/Authors/Model/BatchInputString.php | 2 +- .../Authors/Model/BatchResponseBlogAuthor.php | 182 +- .../BatchResponseBlogAuthorWithErrors.php | 226 +- .../Cms/Blogs/Authors/Model/BlogAuthor.php | 542 +-- .../Model/BlogAuthorCloneRequestVNext.php | 46 +- ...sponseWithTotalBlogAuthorForwardPaging.php | 56 +- .../Model/DetachFromLangGroupRequestVNext.php | 2 +- codegen/Cms/Blogs/Authors/Model/Error.php | 176 +- .../Cms/Blogs/Authors/Model/ErrorDetail.php | 124 +- .../Cms/Blogs/Authors/Model/ForwardPaging.php | 2 +- .../Blogs/Authors/Model/ModelInterface.php | 2 +- codegen/Cms/Blogs/Authors/Model/NextPage.php | 56 +- .../SetNewLanguagePrimaryRequestVNext.php | 2 +- .../Cms/Blogs/Authors/Model/StandardError.php | 192 +- .../Model/UpdateLanguagesRequestVNext.php | 1510 +-------- .../Cms/Blogs/Authors/ObjectSerializer.php | 2 +- .../Cms/Blogs/BlogPosts/Api/BlogPostsApi.php | 240 +- codegen/Cms/Blogs/BlogPosts/ApiException.php | 2 +- codegen/Cms/Blogs/BlogPosts/Configuration.php | 2 +- .../Cms/Blogs/BlogPosts/HeaderSelector.php | 2 +- codegen/Cms/Blogs/BlogPosts/Model/Angle.php | 98 +- .../Model/AttachToLangPrimaryRequestVNext.php | 2964 +---------------- .../Blogs/BlogPosts/Model/BackgroundImage.php | 50 +- .../BlogPosts/Model/BatchInputBlogPost.php | 2 +- .../BlogPosts/Model/BatchInputJsonNode.php | 2 +- .../BlogPosts/Model/BatchInputString.php | 2 +- .../BlogPosts/Model/BatchResponseBlogPost.php | 182 +- .../Model/BatchResponseBlogPostWithErrors.php | 226 +- .../Cms/Blogs/BlogPosts/Model/BlogPost.php | 1968 +++++------ .../BlogPostLanguageCloneRequestVNext.php | 56 +- ...ResponseWithTotalBlogPostForwardPaging.php | 56 +- ...ectionResponseWithTotalVersionBlogPost.php | 56 +- .../Cms/Blogs/BlogPosts/Model/ColorStop.php | 2 +- .../Model/ContentCloneRequestVNext.php | 56 +- .../Model/ContentLanguageVariation.php | 350 +- .../Model/ContentScheduleRequestVNext.php | 62 +- .../Model/DetachFromLangGroupRequestVNext.php | 2 +- codegen/Cms/Blogs/BlogPosts/Model/Error.php | 176 +- .../Cms/Blogs/BlogPosts/Model/ErrorDetail.php | 124 +- .../Blogs/BlogPosts/Model/ForwardPaging.php | 2 +- .../Cms/Blogs/BlogPosts/Model/Gradient.php | 52 +- .../Blogs/BlogPosts/Model/LayoutSection.php | 196 +- .../Blogs/BlogPosts/Model/ModelInterface.php | 2 +- .../Cms/Blogs/BlogPosts/Model/NextPage.php | 56 +- codegen/Cms/Blogs/BlogPosts/Model/Paging.php | 2 +- .../Blogs/BlogPosts/Model/PreviousPage.php | 6 +- .../Cms/Blogs/BlogPosts/Model/RGBAColor.php | 82 +- .../Cms/Blogs/BlogPosts/Model/RowMetaData.php | 62 +- .../SetNewLanguagePrimaryRequestVNext.php | 2 +- .../Blogs/BlogPosts/Model/SideOrCorner.php | 128 +- .../Blogs/BlogPosts/Model/StandardError.php | 192 +- codegen/Cms/Blogs/BlogPosts/Model/Styles.php | 250 +- .../Model/UpdateLanguagesRequestVNext.php | 1510 +-------- .../Blogs/BlogPosts/Model/VersionBlogPost.php | 66 +- .../Cms/Blogs/BlogPosts/Model/VersionUser.php | 72 +- .../Cms/Blogs/BlogPosts/ObjectSerializer.php | 2 +- codegen/Cms/Blogs/Tags/Api/BlogTagsApi.php | 240 +- codegen/Cms/Blogs/Tags/ApiException.php | 2 +- codegen/Cms/Blogs/Tags/Configuration.php | 2 +- codegen/Cms/Blogs/Tags/HeaderSelector.php | 2 +- .../Model/AttachToLangPrimaryRequestVNext.php | 2964 +---------------- .../Blogs/Tags/Model/BatchInputJsonNode.php | 2 +- .../Cms/Blogs/Tags/Model/BatchInputString.php | 2 +- .../Cms/Blogs/Tags/Model/BatchInputTag.php | 2 +- .../Cms/Blogs/Tags/Model/BatchResponseTag.php | 182 +- .../Tags/Model/BatchResponseTagWithErrors.php | 226 +- ...ctionResponseWithTotalTagForwardPaging.php | 56 +- .../Model/DetachFromLangGroupRequestVNext.php | 2 +- codegen/Cms/Blogs/Tags/Model/Error.php | 176 +- codegen/Cms/Blogs/Tags/Model/ErrorDetail.php | 124 +- .../Cms/Blogs/Tags/Model/ForwardPaging.php | 2 +- .../Cms/Blogs/Tags/Model/ModelInterface.php | 2 +- codegen/Cms/Blogs/Tags/Model/NextPage.php | 56 +- .../SetNewLanguagePrimaryRequestVNext.php | 2 +- .../Cms/Blogs/Tags/Model/StandardError.php | 192 +- codegen/Cms/Blogs/Tags/Model/Tag.php | 240 +- .../Blogs/Tags/Model/TagCloneRequestVNext.php | 88 +- .../Model/UpdateLanguagesRequestVNext.php | 1510 +-------- codegen/Cms/Blogs/Tags/ObjectSerializer.php | 2 +- codegen/Cms/Domains/Api/DomainsApi.php | 2 +- codegen/Cms/Domains/ApiException.php | 2 +- codegen/Cms/Domains/Configuration.php | 2 +- codegen/Cms/Domains/HeaderSelector.php | 2 +- ...onResponseWithTotalDomainForwardPaging.php | 56 +- codegen/Cms/Domains/Model/Domain.php | 462 +-- codegen/Cms/Domains/Model/Error.php | 176 +- codegen/Cms/Domains/Model/ErrorDetail.php | 124 +- codegen/Cms/Domains/Model/ForwardPaging.php | 2 +- codegen/Cms/Domains/Model/ModelInterface.php | 2 +- codegen/Cms/Domains/Model/NextPage.php | 56 +- codegen/Cms/Domains/ObjectSerializer.php | 2 +- codegen/Cms/Hubdb/Api/RowsApi.php | 2 +- codegen/Cms/Hubdb/Api/RowsBatchApi.php | 2 +- codegen/Cms/Hubdb/Api/TablesApi.php | 2 +- codegen/Cms/Hubdb/ApiException.php | 2 +- codegen/Cms/Hubdb/Configuration.php | 2 +- codegen/Cms/Hubdb/HeaderSelector.php | 2 +- ...InputHubDbTableRowV3BatchUpdateRequest.php | 2 +- .../BatchInputHubDbTableRowV3Request.php | 4 +- codegen/Cms/Hubdb/Model/BatchInputString.php | 4 +- .../Model/BatchResponseHubDbTableRowV3.php | 162 +- ...BatchResponseHubDbTableRowV3WithErrors.php | 226 +- ...eWithTotalHubDbTableRowV3ForwardPaging.php | 58 +- ...onseWithTotalHubDbTableV3ForwardPaging.php | 58 +- codegen/Cms/Hubdb/Model/Column.php | 356 +- codegen/Cms/Hubdb/Model/ColumnRequest.php | 150 +- codegen/Cms/Hubdb/Model/Error.php | 176 +- codegen/Cms/Hubdb/Model/ErrorDetail.php | 124 +- codegen/Cms/Hubdb/Model/ForeignId.php | 50 +- codegen/Cms/Hubdb/Model/ForwardPaging.php | 2 +- .../Hubdb/Model/HubDbTableCloneRequest.php | 2 +- codegen/Cms/Hubdb/Model/HubDbTableRowV3.php | 194 +- .../HubDbTableRowV3BatchUpdateRequest.php | 104 +- .../Hubdb/Model/HubDbTableRowV3Request.php | 62 +- codegen/Cms/Hubdb/Model/HubDbTableV3.php | 438 +-- .../Cms/Hubdb/Model/HubDbTableV3Request.php | 168 +- codegen/Cms/Hubdb/Model/ImportResult.php | 94 +- codegen/Cms/Hubdb/Model/ModelInterface.php | 2 +- codegen/Cms/Hubdb/Model/NextPage.php | 56 +- codegen/Cms/Hubdb/Model/Option.php | 52 +- codegen/Cms/Hubdb/Model/SimpleUser.php | 104 +- codegen/Cms/Hubdb/Model/StandardError.php | 190 +- codegen/Cms/Hubdb/ObjectSerializer.php | 2 +- .../Performance/Api/PublicPerformanceApi.php | 2 +- codegen/Cms/Performance/ApiException.php | 2 +- codegen/Cms/Performance/Configuration.php | 2 +- codegen/Cms/Performance/HeaderSelector.php | 2 +- codegen/Cms/Performance/Model/Error.php | 176 +- codegen/Cms/Performance/Model/ErrorDetail.php | 124 +- .../Cms/Performance/Model/ModelInterface.php | 2 +- .../Cms/Performance/Model/PerformanceView.php | 373 +-- .../Model/PublicPerformanceResponse.php | 250 +- codegen/Cms/Performance/ObjectSerializer.php | 2 +- .../SiteSearch/Model/ContentSearchResult.php | 482 +-- codegen/Cms/SiteSearch/Model/Error.php | 174 +- codegen/Cms/SiteSearch/Model/ErrorDetail.php | 122 +- codegen/Cms/SiteSearch/Model/IndexedField.php | 66 +- .../SiteSearch/Model/PublicSearchResults.php | 118 +- codegen/Cms/SourceCode/Api/ContentApi.php | 196 +- codegen/Cms/SourceCode/Api/MetadataApi.php | 32 +- .../SourceCode/Api/SourceCodeExtractApi.php | 10 +- .../Cms/SourceCode/Model/ActionResponse.php | 114 +- .../SourceCode/Model/AssetFileMetadata.php | 182 +- codegen/Cms/SourceCode/Model/Error.php | 174 +- codegen/Cms/SourceCode/Model/ErrorDetail.php | 122 +- codegen/Cms/SourceCode/Model/TaskLocator.php | 54 +- codegen/Cms/UrlRedirects/Api/RedirectsApi.php | 2 +- codegen/Cms/UrlRedirects/ApiException.php | 2 +- codegen/Cms/UrlRedirects/Configuration.php | 2 +- codegen/Cms/UrlRedirects/HeaderSelector.php | 2 +- ...sponseWithTotalUrlMappingForwardPaging.php | 56 +- codegen/Cms/UrlRedirects/Model/Error.php | 176 +- .../Cms/UrlRedirects/Model/ErrorDetail.php | 124 +- .../Cms/UrlRedirects/Model/ForwardPaging.php | 2 +- .../Cms/UrlRedirects/Model/ModelInterface.php | 2 +- codegen/Cms/UrlRedirects/Model/NextPage.php | 56 +- codegen/Cms/UrlRedirects/Model/UrlMapping.php | 302 +- .../Model/UrlMappingCreateRequestBody.php | 246 +- codegen/Cms/UrlRedirects/ObjectSerializer.php | 2 +- 179 files changed, 8716 insertions(+), 21676 deletions(-) create mode 100644 codegen/Cms/AuditLogs/Model/PreviousPage.php diff --git a/codegen/Cms/AuditLogs/Api/AuditLogsApi.php b/codegen/Cms/AuditLogs/Api/AuditLogsApi.php index c2db3666..a23875ea 100644 --- a/codegen/Cms/AuditLogs/Api/AuditLogsApi.php +++ b/codegen/Cms/AuditLogs/Api/AuditLogsApi.php @@ -10,7 +10,7 @@ */ /** - * CMS Audit Logs + * Cms Content Audit * * Use this endpoint to query audit logs of CMS changes that occurred on your HubSpot account. * @@ -120,22 +120,22 @@ public function getConfig() * * Query audit logs * - * @param string[] $object_id Comma separated list of object ids to filter by. (optional) * @param string[] $user_id Comma separated list of user ids to filter by. (optional) + * @param string[] $event_type Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). (optional) + * @param string[] $object_type Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.) (optional) + * @param string[] $object_id Comma separated list of object ids to filter by. (optional) * @param string $after Timestamp after which audit logs will be returned (optional) * @param string $before Timestamp before which audit logs will be returned (optional) - * @param string[] $sort The sort direction for the audit logs. (Can only sort by timestamp). (optional) - * @param string[] $event_type Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). (optional) * @param int $limit The number of logs to return. (optional) - * @param string[] $object_type Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.) (optional) + * @param string[] $sort The sort direction for the audit logs. (Can only sort by timestamp). (optional) * * @throws \HubSpot\Client\Cms\AuditLogs\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \HubSpot\Client\Cms\AuditLogs\Model\CollectionResponsePublicAuditLog|\HubSpot\Client\Cms\AuditLogs\Model\Error */ - public function getPage($object_id = null, $user_id = null, $after = null, $before = null, $sort = null, $event_type = null, $limit = null, $object_type = null) + public function getPage($user_id = null, $event_type = null, $object_type = null, $object_id = null, $after = null, $before = null, $limit = null, $sort = null) { - list($response) = $this->getPageWithHttpInfo($object_id, $user_id, $after, $before, $sort, $event_type, $limit, $object_type); + list($response) = $this->getPageWithHttpInfo($user_id, $event_type, $object_type, $object_id, $after, $before, $limit, $sort); return $response; } @@ -144,22 +144,22 @@ public function getPage($object_id = null, $user_id = null, $after = null, $befo * * Query audit logs * - * @param string[] $object_id Comma separated list of object ids to filter by. (optional) * @param string[] $user_id Comma separated list of user ids to filter by. (optional) + * @param string[] $event_type Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). (optional) + * @param string[] $object_type Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.) (optional) + * @param string[] $object_id Comma separated list of object ids to filter by. (optional) * @param string $after Timestamp after which audit logs will be returned (optional) * @param string $before Timestamp before which audit logs will be returned (optional) - * @param string[] $sort The sort direction for the audit logs. (Can only sort by timestamp). (optional) - * @param string[] $event_type Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). (optional) * @param int $limit The number of logs to return. (optional) - * @param string[] $object_type Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.) (optional) + * @param string[] $sort The sort direction for the audit logs. (Can only sort by timestamp). (optional) * * @throws \HubSpot\Client\Cms\AuditLogs\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \HubSpot\Client\Cms\AuditLogs\Model\CollectionResponsePublicAuditLog|\HubSpot\Client\Cms\AuditLogs\Model\Error, HTTP status code, HTTP response headers (array of strings) */ - public function getPageWithHttpInfo($object_id = null, $user_id = null, $after = null, $before = null, $sort = null, $event_type = null, $limit = null, $object_type = null) + public function getPageWithHttpInfo($user_id = null, $event_type = null, $object_type = null, $object_id = null, $after = null, $before = null, $limit = null, $sort = null) { - $request = $this->getPageRequest($object_id, $user_id, $after, $before, $sort, $event_type, $limit, $object_type); + $request = $this->getPageRequest($user_id, $event_type, $object_type, $object_id, $after, $before, $limit, $sort); try { $options = $this->createHttpClientOption(); @@ -273,21 +273,21 @@ public function getPageWithHttpInfo($object_id = null, $user_id = null, $after = * * Query audit logs * - * @param string[] $object_id Comma separated list of object ids to filter by. (optional) * @param string[] $user_id Comma separated list of user ids to filter by. (optional) + * @param string[] $event_type Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). (optional) + * @param string[] $object_type Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.) (optional) + * @param string[] $object_id Comma separated list of object ids to filter by. (optional) * @param string $after Timestamp after which audit logs will be returned (optional) * @param string $before Timestamp before which audit logs will be returned (optional) - * @param string[] $sort The sort direction for the audit logs. (Can only sort by timestamp). (optional) - * @param string[] $event_type Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). (optional) * @param int $limit The number of logs to return. (optional) - * @param string[] $object_type Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.) (optional) + * @param string[] $sort The sort direction for the audit logs. (Can only sort by timestamp). (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPageAsync($object_id = null, $user_id = null, $after = null, $before = null, $sort = null, $event_type = null, $limit = null, $object_type = null) + public function getPageAsync($user_id = null, $event_type = null, $object_type = null, $object_id = null, $after = null, $before = null, $limit = null, $sort = null) { - return $this->getPageAsyncWithHttpInfo($object_id, $user_id, $after, $before, $sort, $event_type, $limit, $object_type) + return $this->getPageAsyncWithHttpInfo($user_id, $event_type, $object_type, $object_id, $after, $before, $limit, $sort) ->then( function ($response) { return $response[0]; @@ -300,22 +300,22 @@ function ($response) { * * Query audit logs * - * @param string[] $object_id Comma separated list of object ids to filter by. (optional) * @param string[] $user_id Comma separated list of user ids to filter by. (optional) + * @param string[] $event_type Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). (optional) + * @param string[] $object_type Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.) (optional) + * @param string[] $object_id Comma separated list of object ids to filter by. (optional) * @param string $after Timestamp after which audit logs will be returned (optional) * @param string $before Timestamp before which audit logs will be returned (optional) - * @param string[] $sort The sort direction for the audit logs. (Can only sort by timestamp). (optional) - * @param string[] $event_type Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). (optional) * @param int $limit The number of logs to return. (optional) - * @param string[] $object_type Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.) (optional) + * @param string[] $sort The sort direction for the audit logs. (Can only sort by timestamp). (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPageAsyncWithHttpInfo($object_id = null, $user_id = null, $after = null, $before = null, $sort = null, $event_type = null, $limit = null, $object_type = null) + public function getPageAsyncWithHttpInfo($user_id = null, $event_type = null, $object_type = null, $object_id = null, $after = null, $before = null, $limit = null, $sort = null) { $returnType = '\HubSpot\Client\Cms\AuditLogs\Model\CollectionResponsePublicAuditLog'; - $request = $this->getPageRequest($object_id, $user_id, $after, $before, $sort, $event_type, $limit, $object_type); + $request = $this->getPageRequest($user_id, $event_type, $object_type, $object_id, $after, $before, $limit, $sort); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -356,19 +356,19 @@ function ($exception) { /** * Create request for operation 'getPage' * - * @param string[] $object_id Comma separated list of object ids to filter by. (optional) * @param string[] $user_id Comma separated list of user ids to filter by. (optional) + * @param string[] $event_type Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). (optional) + * @param string[] $object_type Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.) (optional) + * @param string[] $object_id Comma separated list of object ids to filter by. (optional) * @param string $after Timestamp after which audit logs will be returned (optional) * @param string $before Timestamp before which audit logs will be returned (optional) - * @param string[] $sort The sort direction for the audit logs. (Can only sort by timestamp). (optional) - * @param string[] $event_type Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). (optional) * @param int $limit The number of logs to return. (optional) - * @param string[] $object_type Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.) (optional) + * @param string[] $sort The sort direction for the audit logs. (Can only sort by timestamp). (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getPageRequest($object_id = null, $user_id = null, $after = null, $before = null, $sort = null, $event_type = null, $limit = null, $object_type = null) + public function getPageRequest($user_id = null, $event_type = null, $object_type = null, $object_id = null, $after = null, $before = null, $limit = null, $sort = null) { $resourcePath = '/cms/v3/audit-logs/'; @@ -380,8 +380,8 @@ public function getPageRequest($object_id = null, $user_id = null, $after = null // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $object_id, - 'objectId', // param base name + $user_id, + 'userId', // param base name 'array', // openApiType 'form', // style true, // explode @@ -389,8 +389,8 @@ public function getPageRequest($object_id = null, $user_id = null, $after = null ) ?? []); // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $user_id, - 'userId', // param base name + $event_type, + 'eventType', // param base name 'array', // openApiType 'form', // style true, // explode @@ -398,36 +398,36 @@ public function getPageRequest($object_id = null, $user_id = null, $after = null ) ?? []); // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $after, - 'after', // param base name - 'string', // openApiType + $object_type, + 'objectType', // param base name + 'array', // openApiType 'form', // style true, // explode false // required ) ?? []); // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $before, - 'before', // param base name - 'string', // openApiType + $object_id, + 'objectId', // param base name + 'array', // openApiType 'form', // style true, // explode false // required ) ?? []); // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $sort, - 'sort', // param base name - 'array', // openApiType + $after, + 'after', // param base name + 'string', // openApiType 'form', // style true, // explode false // required ) ?? []); // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $event_type, - 'eventType', // param base name - 'array', // openApiType + $before, + 'before', // param base name + 'string', // openApiType 'form', // style true, // explode false // required @@ -443,8 +443,8 @@ public function getPageRequest($object_id = null, $user_id = null, $after = null ) ?? []); // query params $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( - $object_type, - 'objectType', // param base name + $sort, + 'sort', // param base name 'array', // openApiType 'form', // style true, // explode diff --git a/codegen/Cms/AuditLogs/ApiException.php b/codegen/Cms/AuditLogs/ApiException.php index b60182f8..e1578100 100644 --- a/codegen/Cms/AuditLogs/ApiException.php +++ b/codegen/Cms/AuditLogs/ApiException.php @@ -10,7 +10,7 @@ */ /** - * CMS Audit Logs + * Cms Content Audit * * Use this endpoint to query audit logs of CMS changes that occurred on your HubSpot account. * diff --git a/codegen/Cms/AuditLogs/Configuration.php b/codegen/Cms/AuditLogs/Configuration.php index d6032373..f15d82f4 100644 --- a/codegen/Cms/AuditLogs/Configuration.php +++ b/codegen/Cms/AuditLogs/Configuration.php @@ -10,7 +10,7 @@ */ /** - * CMS Audit Logs + * Cms Content Audit * * Use this endpoint to query audit logs of CMS changes that occurred on your HubSpot account. * diff --git a/codegen/Cms/AuditLogs/HeaderSelector.php b/codegen/Cms/AuditLogs/HeaderSelector.php index 8056c5f5..356d2388 100644 --- a/codegen/Cms/AuditLogs/HeaderSelector.php +++ b/codegen/Cms/AuditLogs/HeaderSelector.php @@ -10,7 +10,7 @@ */ /** - * CMS Audit Logs + * Cms Content Audit * * Use this endpoint to query audit logs of CMS changes that occurred on your HubSpot account. * diff --git a/codegen/Cms/AuditLogs/Model/CollectionResponsePublicAuditLog.php b/codegen/Cms/AuditLogs/Model/CollectionResponsePublicAuditLog.php index ca8b9238..3b70c9cc 100644 --- a/codegen/Cms/AuditLogs/Model/CollectionResponsePublicAuditLog.php +++ b/codegen/Cms/AuditLogs/Model/CollectionResponsePublicAuditLog.php @@ -11,7 +11,7 @@ */ /** - * CMS Audit Logs + * Cms Content Audit * * Use this endpoint to query audit logs of CMS changes that occurred on your HubSpot account. * @@ -58,8 +58,8 @@ class CollectionResponsePublicAuditLog implements ModelInterface, ArrayAccess, \ * @var string[] */ protected static $openAPITypes = [ - 'results' => '\HubSpot\Client\Cms\AuditLogs\Model\PublicAuditLog[]', - 'paging' => '\HubSpot\Client\Cms\AuditLogs\Model\Paging' + 'paging' => '\HubSpot\Client\Cms\AuditLogs\Model\Paging', + 'results' => '\HubSpot\Client\Cms\AuditLogs\Model\PublicAuditLog[]' ]; /** @@ -70,8 +70,8 @@ class CollectionResponsePublicAuditLog implements ModelInterface, ArrayAccess, \ * @psalm-var array */ protected static $openAPIFormats = [ - 'results' => null, - 'paging' => null + 'paging' => null, + 'results' => null ]; /** @@ -101,8 +101,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'results' => 'results', - 'paging' => 'paging' + 'paging' => 'paging', + 'results' => 'results' ]; /** @@ -111,8 +111,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'results' => 'setResults', - 'paging' => 'setPaging' + 'paging' => 'setPaging', + 'results' => 'setResults' ]; /** @@ -121,8 +121,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'results' => 'getResults', - 'paging' => 'getPaging' + 'paging' => 'getPaging', + 'results' => 'getResults' ]; /** @@ -182,8 +182,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['results'] = $data['results'] ?? null; $this->container['paging'] = $data['paging'] ?? null; + $this->container['results'] = $data['results'] ?? null; } /** @@ -214,49 +214,49 @@ public function valid() /** - * Gets results + * Gets paging * - * @return \HubSpot\Client\Cms\AuditLogs\Model\PublicAuditLog[] + * @return \HubSpot\Client\Cms\AuditLogs\Model\Paging|null */ - public function getResults() + public function getPaging() { - return $this->container['results']; + return $this->container['paging']; } /** - * Sets results + * Sets paging * - * @param \HubSpot\Client\Cms\AuditLogs\Model\PublicAuditLog[] $results results + * @param \HubSpot\Client\Cms\AuditLogs\Model\Paging|null $paging paging * * @return self */ - public function setResults($results) + public function setPaging($paging) { - $this->container['results'] = $results; + $this->container['paging'] = $paging; return $this; } /** - * Gets paging + * Gets results * - * @return \HubSpot\Client\Cms\AuditLogs\Model\Paging|null + * @return \HubSpot\Client\Cms\AuditLogs\Model\PublicAuditLog[] */ - public function getPaging() + public function getResults() { - return $this->container['paging']; + return $this->container['results']; } /** - * Sets paging + * Sets results * - * @param \HubSpot\Client\Cms\AuditLogs\Model\Paging|null $paging paging + * @param \HubSpot\Client\Cms\AuditLogs\Model\PublicAuditLog[] $results * * @return self */ - public function setPaging($paging) + public function setResults($results) { - $this->container['paging'] = $paging; + $this->container['results'] = $results; return $this; } diff --git a/codegen/Cms/AuditLogs/Model/Error.php b/codegen/Cms/AuditLogs/Model/Error.php index 3ff8860d..648e369e 100644 --- a/codegen/Cms/AuditLogs/Model/Error.php +++ b/codegen/Cms/AuditLogs/Model/Error.php @@ -11,7 +11,7 @@ */ /** - * CMS Audit Logs + * Cms Content Audit * * Use this endpoint to query audit logs of CMS changes that occurred on your HubSpot account. * @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'correlation_id' => 'string', - 'category' => 'string', 'sub_category' => 'string', - 'errors' => '\HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]', 'context' => 'array', - 'links' => 'array' + 'correlation_id' => 'string', + 'links' => 'array', + 'message' => 'string', + 'category' => 'string', + 'errors' => '\HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'correlation_id' => 'uuid', - 'category' => null, 'sub_category' => null, - 'errors' => null, 'context' => null, - 'links' => null + 'correlation_id' => 'uuid', + 'links' => null, + 'message' => null, + 'category' => null, + 'errors' => null ]; /** @@ -110,13 +110,13 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'correlation_id' => 'correlationId', - 'category' => 'category', 'sub_category' => 'subCategory', - 'errors' => 'errors', 'context' => 'context', - 'links' => 'links' + 'correlation_id' => 'correlationId', + 'links' => 'links', + 'message' => 'message', + 'category' => 'category', + 'errors' => 'errors' ]; /** @@ -125,13 +125,13 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'correlation_id' => 'setCorrelationId', - 'category' => 'setCategory', 'sub_category' => 'setSubCategory', - 'errors' => 'setErrors', 'context' => 'setContext', - 'links' => 'setLinks' + 'correlation_id' => 'setCorrelationId', + 'links' => 'setLinks', + 'message' => 'setMessage', + 'category' => 'setCategory', + 'errors' => 'setErrors' ]; /** @@ -140,13 +140,13 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'correlation_id' => 'getCorrelationId', - 'category' => 'getCategory', 'sub_category' => 'getSubCategory', - 'errors' => 'getErrors', 'context' => 'getContext', - 'links' => 'getLinks' + 'correlation_id' => 'getCorrelationId', + 'links' => 'getLinks', + 'message' => 'getMessage', + 'category' => 'getCategory', + 'errors' => 'getErrors' ]; /** @@ -206,13 +206,13 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['correlation_id'] = $data['correlation_id'] ?? null; - $this->container['category'] = $data['category'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['correlation_id'] = $data['correlation_id'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['message'] = $data['message'] ?? null; + $this->container['category'] = $data['category'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; } /** @@ -224,12 +224,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' 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"; } @@ -249,169 +249,169 @@ public function valid() /** - * 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) { - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets correlation_id + * Gets context * - * @return string + * @return array|null */ - public function getCorrelationId() + public function getContext() { - return $this->container['correlation_id']; + return $this->container['context']; } /** - * Sets correlation_id + * Sets context * - * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets + * @param array|null $context Context about the error condition * * @return self */ - public function setCorrelationId($correlation_id) + public function setContext($context) { - $this->container['correlation_id'] = $correlation_id; + $this->container['context'] = $context; return $this; } /** - * Gets category + * Gets correlation_id * * @return string */ - public function getCategory() + public function getCorrelationId() { - return $this->container['category']; + return $this->container['correlation_id']; } /** - * Sets category + * Sets correlation_id * - * @param string $category The error category + * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets * * @return self */ - public function setCategory($category) + public function setCorrelationId($correlation_id) { - $this->container['category'] = $category; + $this->container['correlation_id'] = $correlation_id; return $this; } /** - * Gets sub_category + * Gets links * - * @return string|null + * @return array|null */ - public function getSubCategory() + public function getLinks() { - return $this->container['sub_category']; + return $this->container['links']; } /** - * Sets sub_category + * Sets links * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps * * @return self */ - public function setSubCategory($sub_category) + public function setLinks($links) { - $this->container['sub_category'] = $sub_category; + $this->container['links'] = $links; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]|null + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]|null $errors further information about the error + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets category * - * @return array|null + * @return string */ - public function getContext() + public function getCategory() { - return $this->container['context']; + return $this->container['category']; } /** - * Sets context + * Sets category * - * @param array|null $context Context about the error condition + * @param string $category The error category * * @return self */ - public function setContext($context) + public function setCategory($category) { - $this->container['context'] = $context; + $this->container['category'] = $category; return $this; } /** - * Gets links + * Gets errors * - * @return array|null + * @return \HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]|null */ - public function getLinks() + public function getErrors() { - return $this->container['links']; + return $this->container['errors']; } /** - * Sets links + * Sets errors * - * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps + * @param \HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]|null $errors further information about the error * * @return self */ - public function setLinks($links) + public function setErrors($errors) { - $this->container['links'] = $links; + $this->container['errors'] = $errors; return $this; } diff --git a/codegen/Cms/AuditLogs/Model/ErrorDetail.php b/codegen/Cms/AuditLogs/Model/ErrorDetail.php index cb0c86cb..f26fcbca 100644 --- a/codegen/Cms/AuditLogs/Model/ErrorDetail.php +++ b/codegen/Cms/AuditLogs/Model/ErrorDetail.php @@ -11,7 +11,7 @@ */ /** - * CMS Audit Logs + * Cms Content Audit * * Use this endpoint to query audit logs of CMS changes that occurred on your HubSpot account. * @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'in' => 'string', - 'code' => 'string', 'sub_category' => 'string', - 'context' => 'array' + 'code' => 'string', + 'in' => 'string', + 'context' => 'array', + 'message' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'in' => null, - 'code' => null, 'sub_category' => null, - 'context' => null + 'code' => null, + 'in' => null, + 'context' => null, + 'message' => null ]; /** @@ -106,11 +106,11 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'in' => 'in', - 'code' => 'code', 'sub_category' => 'subCategory', - 'context' => 'context' + 'code' => 'code', + 'in' => 'in', + 'context' => 'context', + 'message' => 'message' ]; /** @@ -119,11 +119,11 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'in' => 'setIn', - 'code' => 'setCode', 'sub_category' => 'setSubCategory', - 'context' => 'setContext' + 'code' => 'setCode', + 'in' => 'setIn', + 'context' => 'setContext', + 'message' => 'setMessage' ]; /** @@ -132,11 +132,11 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'in' => 'getIn', - 'code' => 'getCode', 'sub_category' => 'getSubCategory', - 'context' => 'getContext' + 'code' => 'getCode', + 'in' => 'getIn', + 'context' => 'getContext', + 'message' => 'getMessage' ]; /** @@ -196,11 +196,11 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['in'] = $data['in'] ?? null; - $this->container['code'] = $data['code'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['code'] = $data['code'] ?? null; + $this->container['in'] = $data['in'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['message'] = $data['message'] ?? null; } /** @@ -231,49 +231,25 @@ public function valid() /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A human readable message describing the error along with remediation steps where appropriate - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - - /** - * Gets in + * Gets sub_category * * @return string|null */ - public function getIn() + public function getSubCategory() { - return $this->container['in']; + return $this->container['sub_category']; } /** - * Sets in + * Sets sub_category * - * @param string|null $in The name of the field or parameter in which the error was found. + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setIn($in) + public function setSubCategory($sub_category) { - $this->container['in'] = $in; + $this->container['sub_category'] = $sub_category; return $this; } @@ -303,25 +279,25 @@ public function setCode($code) } /** - * Gets sub_category + * Gets in * * @return string|null */ - public function getSubCategory() + public function getIn() { - return $this->container['sub_category']; + return $this->container['in']; } /** - * Sets sub_category + * Sets in * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $in The name of the field or parameter in which the error was found. * * @return self */ - public function setSubCategory($sub_category) + public function setIn($in) { - $this->container['sub_category'] = $sub_category; + $this->container['in'] = $in; return $this; } @@ -349,6 +325,30 @@ public function setContext($context) return $this; } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message A human readable message describing the error along with remediation steps where appropriate + * + * @return self + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/AuditLogs/Model/ModelInterface.php b/codegen/Cms/AuditLogs/Model/ModelInterface.php index acb448c2..94834f7f 100644 --- a/codegen/Cms/AuditLogs/Model/ModelInterface.php +++ b/codegen/Cms/AuditLogs/Model/ModelInterface.php @@ -11,7 +11,7 @@ */ /** - * CMS Audit Logs + * Cms Content Audit * * Use this endpoint to query audit logs of CMS changes that occurred on your HubSpot account. * diff --git a/codegen/Cms/AuditLogs/Model/NextPage.php b/codegen/Cms/AuditLogs/Model/NextPage.php index 18d063e1..33b221b3 100644 --- a/codegen/Cms/AuditLogs/Model/NextPage.php +++ b/codegen/Cms/AuditLogs/Model/NextPage.php @@ -11,7 +11,7 @@ */ /** - * CMS Audit Logs + * Cms Content Audit * * Use this endpoint to query audit logs of CMS changes that occurred on your HubSpot account. * @@ -57,8 +57,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'after' => 'string', - 'link' => 'string' + 'link' => 'string', + 'after' => 'string' ]; /** @@ -69,8 +69,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'after' => null, - 'link' => null + 'link' => null, + 'after' => null ]; /** @@ -100,8 +100,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'after' => 'after', - 'link' => 'link' + 'link' => 'link', + 'after' => 'after' ]; /** @@ -110,8 +110,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'after' => 'setAfter', - 'link' => 'setLink' + 'link' => 'setLink', + 'after' => 'setAfter' ]; /** @@ -120,8 +120,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'after' => 'getAfter', - 'link' => 'getLink' + 'link' => 'getLink', + 'after' => 'getAfter' ]; /** @@ -181,8 +181,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['after'] = $data['after'] ?? null; $this->container['link'] = $data['link'] ?? null; + $this->container['after'] = $data['after'] ?? null; } /** @@ -213,49 +213,49 @@ public function valid() /** - * 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 after + * @param string|null $link link * * @return self */ - public function setAfter($after) + public function setLink($link) { - $this->container['after'] = $after; + $this->container['link'] = $link; return $this; } /** - * 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 link + * @param string $after after * * @return self */ - public function setLink($link) + public function setAfter($after) { - $this->container['link'] = $link; + $this->container['after'] = $after; return $this; } diff --git a/codegen/Cms/AuditLogs/Model/Paging.php b/codegen/Cms/AuditLogs/Model/Paging.php index b7e0ecdc..49e5b028 100644 --- a/codegen/Cms/AuditLogs/Model/Paging.php +++ b/codegen/Cms/AuditLogs/Model/Paging.php @@ -11,7 +11,7 @@ */ /** - * CMS Audit Logs + * Cms Content Audit * * Use this endpoint to query audit logs of CMS changes that occurred on your HubSpot account. * @@ -57,7 +57,8 @@ class Paging implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'next' => '\HubSpot\Client\Cms\AuditLogs\Model\NextPage' + 'next' => '\HubSpot\Client\Cms\AuditLogs\Model\NextPage', + 'prev' => '\HubSpot\Client\Cms\AuditLogs\Model\PreviousPage' ]; /** @@ -68,7 +69,8 @@ class Paging implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'next' => null + 'next' => null, + 'prev' => null ]; /** @@ -98,7 +100,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'next' => 'next' + 'next' => 'next', + 'prev' => 'prev' ]; /** @@ -107,7 +110,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'next' => 'setNext' + 'next' => 'setNext', + 'prev' => 'setPrev' ]; /** @@ -116,7 +120,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'next' => 'getNext' + 'next' => 'getNext', + 'prev' => 'getPrev' ]; /** @@ -177,6 +182,7 @@ public function getModelName() public function __construct(array $data = null) { $this->container['next'] = $data['next'] ?? null; + $this->container['prev'] = $data['prev'] ?? null; } /** @@ -226,6 +232,30 @@ public function setNext($next) return $this; } + + /** + * Gets prev + * + * @return \HubSpot\Client\Cms\AuditLogs\Model\PreviousPage|null + */ + public function getPrev() + { + return $this->container['prev']; + } + + /** + * Sets prev + * + * @param \HubSpot\Client\Cms\AuditLogs\Model\PreviousPage|null $prev prev + * + * @return self + */ + public function setPrev($prev) + { + $this->container['prev'] = $prev; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/AuditLogs/Model/PreviousPage.php b/codegen/Cms/AuditLogs/Model/PreviousPage.php new file mode 100644 index 00000000..81862ad7 --- /dev/null +++ b/codegen/Cms/AuditLogs/Model/PreviousPage.php @@ -0,0 +1,353 @@ + + */ +class PreviousPage implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PreviousPage'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'before' => 'string', + 'link' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'before' => null, + 'link' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'before' => 'before', + 'link' => 'link' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'before' => 'setBefore', + 'link' => 'setLink' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'before' => 'getBefore', + 'link' => 'getLink' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['before'] = $data['before'] ?? null; + $this->container['link'] = $data['link'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['before'] === null) { + $invalidProperties[] = "'before' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets before + * + * @return string + */ + public function getBefore() + { + return $this->container['before']; + } + + /** + * Sets before + * + * @param string $before before + * + * @return self + */ + public function setBefore($before) + { + $this->container['before'] = $before; + + return $this; + } + + /** + * Gets link + * + * @return string|null + */ + public function getLink() + { + return $this->container['link']; + } + + /** + * Sets link + * + * @param string|null $link link + * + * @return self + */ + public function setLink($link) + { + $this->container['link'] = $link; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/codegen/Cms/AuditLogs/Model/PublicAuditLog.php b/codegen/Cms/AuditLogs/Model/PublicAuditLog.php index cf515a21..83dff6f3 100644 --- a/codegen/Cms/AuditLogs/Model/PublicAuditLog.php +++ b/codegen/Cms/AuditLogs/Model/PublicAuditLog.php @@ -11,7 +11,7 @@ */ /** - * CMS Audit Logs + * Cms Content Audit * * Use this endpoint to query audit logs of CMS changes that occurred on your HubSpot account. * @@ -57,13 +57,14 @@ class PublicAuditLog implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'object_id' => 'string', - 'user_id' => 'string', - 'timestamp' => '\DateTime', + 'meta' => 'object', 'object_name' => 'string', 'full_name' => 'string', 'event' => 'string', - 'object_type' => 'string' + 'user_id' => 'string', + 'object_id' => 'string', + 'object_type' => 'string', + 'timestamp' => '\DateTime' ]; /** @@ -74,13 +75,14 @@ class PublicAuditLog implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'object_id' => null, - 'user_id' => null, - 'timestamp' => 'date-time', + 'meta' => null, 'object_name' => null, 'full_name' => null, 'event' => null, - 'object_type' => null + 'user_id' => null, + 'object_id' => null, + 'object_type' => null, + 'timestamp' => 'date-time' ]; /** @@ -110,13 +112,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'object_id' => 'objectId', - 'user_id' => 'userId', - 'timestamp' => 'timestamp', + 'meta' => 'meta', 'object_name' => 'objectName', 'full_name' => 'fullName', 'event' => 'event', - 'object_type' => 'objectType' + 'user_id' => 'userId', + 'object_id' => 'objectId', + 'object_type' => 'objectType', + 'timestamp' => 'timestamp' ]; /** @@ -125,13 +128,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'object_id' => 'setObjectId', - 'user_id' => 'setUserId', - 'timestamp' => 'setTimestamp', + 'meta' => 'setMeta', 'object_name' => 'setObjectName', 'full_name' => 'setFullName', 'event' => 'setEvent', - 'object_type' => 'setObjectType' + 'user_id' => 'setUserId', + 'object_id' => 'setObjectId', + 'object_type' => 'setObjectType', + 'timestamp' => 'setTimestamp' ]; /** @@ -140,13 +144,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'object_id' => 'getObjectId', - 'user_id' => 'getUserId', - 'timestamp' => 'getTimestamp', + 'meta' => 'getMeta', 'object_name' => 'getObjectName', 'full_name' => 'getFullName', 'event' => 'getEvent', - 'object_type' => 'getObjectType' + 'user_id' => 'getUserId', + 'object_id' => 'getObjectId', + 'object_type' => 'getObjectType', + 'timestamp' => 'getTimestamp' ]; /** @@ -195,6 +200,7 @@ public function getModelName() public const EVENT_PUBLISHED = 'PUBLISHED'; public const EVENT_DELETED = 'DELETED'; public const EVENT_UNPUBLISHED = 'UNPUBLISHED'; + public const EVENT_RESTORE = 'RESTORE'; public const OBJECT_TYPE_BLOG = 'BLOG'; public const OBJECT_TYPE_BLOG_POST = 'BLOG_POST'; public const OBJECT_TYPE_LANDING_PAGE = 'LANDING_PAGE'; @@ -213,6 +219,8 @@ public function getModelName() 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'; /** * Gets allowable values of the enum @@ -227,6 +235,7 @@ public function getEventAllowableValues() self::EVENT_PUBLISHED, self::EVENT_DELETED, self::EVENT_UNPUBLISHED, + self::EVENT_RESTORE, ]; } @@ -256,6 +265,8 @@ public function getObjectTypeAllowableValues() self::OBJECT_TYPE_THEME, self::OBJECT_TYPE_CSS, self::OBJECT_TYPE_JS, + self::OBJECT_TYPE_CTA, + self::OBJECT_TYPE_FILE, ]; } @@ -274,13 +285,14 @@ public function getObjectTypeAllowableValues() */ public function __construct(array $data = null) { - $this->container['object_id'] = $data['object_id'] ?? null; - $this->container['user_id'] = $data['user_id'] ?? null; - $this->container['timestamp'] = $data['timestamp'] ?? null; + $this->container['meta'] = $data['meta'] ?? null; $this->container['object_name'] = $data['object_name'] ?? null; $this->container['full_name'] = $data['full_name'] ?? null; $this->container['event'] = $data['event'] ?? null; + $this->container['user_id'] = $data['user_id'] ?? null; + $this->container['object_id'] = $data['object_id'] ?? null; $this->container['object_type'] = $data['object_type'] ?? null; + $this->container['timestamp'] = $data['timestamp'] ?? null; } /** @@ -292,15 +304,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['object_id'] === null) { - $invalidProperties[] = "'object_id' can't be null"; - } - if ($this->container['user_id'] === null) { - $invalidProperties[] = "'user_id' can't be null"; - } - if ($this->container['timestamp'] === null) { - $invalidProperties[] = "'timestamp' can't be null"; - } if ($this->container['object_name'] === null) { $invalidProperties[] = "'object_name' can't be null"; } @@ -319,6 +322,12 @@ public function listInvalidProperties() ); } + if ($this->container['user_id'] === null) { + $invalidProperties[] = "'user_id' can't be null"; + } + if ($this->container['object_id'] === null) { + $invalidProperties[] = "'object_id' can't be null"; + } if ($this->container['object_type'] === null) { $invalidProperties[] = "'object_type' can't be null"; } @@ -331,6 +340,9 @@ public function listInvalidProperties() ); } + if ($this->container['timestamp'] === null) { + $invalidProperties[] = "'timestamp' can't be null"; + } return $invalidProperties; } @@ -347,155 +359,155 @@ public function valid() /** - * Gets object_id + * Gets meta * - * @return string + * @return object|null */ - public function getObjectId() + public function getMeta() { - return $this->container['object_id']; + return $this->container['meta']; } /** - * Sets object_id + * Sets meta * - * @param string $object_id The ID of the object. + * @param object|null $meta meta * * @return self */ - public function setObjectId($object_id) + public function setMeta($meta) { - $this->container['object_id'] = $object_id; + $this->container['meta'] = $meta; return $this; } /** - * Gets user_id + * Gets object_name * * @return string */ - public function getUserId() + public function getObjectName() { - return $this->container['user_id']; + return $this->container['object_name']; } /** - * Sets user_id + * Sets object_name * - * @param string $user_id The ID of the user who caused the event. + * @param string $object_name The internal name of the object in HubSpot. * * @return self */ - public function setUserId($user_id) + public function setObjectName($object_name) { - $this->container['user_id'] = $user_id; + $this->container['object_name'] = $object_name; return $this; } /** - * Gets timestamp + * Gets full_name * - * @return \DateTime + * @return string */ - public function getTimestamp() + public function getFullName() { - return $this->container['timestamp']; + return $this->container['full_name']; } /** - * Sets timestamp + * Sets full_name * - * @param \DateTime $timestamp The timestamp at which the event occurred. + * @param string $full_name The name of the user who caused the event. * * @return self */ - public function setTimestamp($timestamp) + public function setFullName($full_name) { - $this->container['timestamp'] = $timestamp; + $this->container['full_name'] = $full_name; 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) { - $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; } /** - * Gets full_name + * Gets user_id * * @return string */ - public function getFullName() + public function getUserId() { - return $this->container['full_name']; + return $this->container['user_id']; } /** - * Sets full_name + * Sets user_id * - * @param string $full_name The name of the user who caused the event. + * @param string $user_id The ID of the user who caused the event. * * @return self */ - public function setFullName($full_name) + public function setUserId($user_id) { - $this->container['full_name'] = $full_name; + $this->container['user_id'] = $user_id; return $this; } /** - * Gets event + * Gets object_id * * @return string */ - public function getEvent() + public function getObjectId() { - return $this->container['event']; + return $this->container['object_id']; } /** - * Sets event + * Sets object_id * - * @param string $event The type of event that took place (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). + * @param string $object_id The ID of the object. * * @return self */ - public function setEvent($event) + public function setObjectId($object_id) { - $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; + $this->container['object_id'] = $object_id; return $this; } @@ -533,6 +545,30 @@ public function setObjectType($object_type) return $this; } + + /** + * Gets timestamp + * + * @return \DateTime + */ + public function getTimestamp() + { + return $this->container['timestamp']; + } + + /** + * Sets timestamp + * + * @param \DateTime $timestamp The timestamp at which the event occurred. + * + * @return self + */ + public function setTimestamp($timestamp) + { + $this->container['timestamp'] = $timestamp; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/AuditLogs/ObjectSerializer.php b/codegen/Cms/AuditLogs/ObjectSerializer.php index d8aea158..0deea3fb 100644 --- a/codegen/Cms/AuditLogs/ObjectSerializer.php +++ b/codegen/Cms/AuditLogs/ObjectSerializer.php @@ -11,7 +11,7 @@ */ /** - * CMS Audit Logs + * Cms Content Audit * * Use this endpoint to query audit logs of CMS changes that occurred on your HubSpot account. * diff --git a/codegen/Cms/Blogs/Authors/Api/BlogAuthorsApi.php b/codegen/Cms/Blogs/Authors/Api/BlogAuthorsApi.php index 7810d1cd..d353f970 100644 --- a/codegen/Cms/Blogs/Authors/Api/BlogAuthorsApi.php +++ b/codegen/Cms/Blogs/Authors/Api/BlogAuthorsApi.php @@ -10,7 +10,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -612,12 +612,11 @@ public function archiveBatchRequest($batch_input_string) * * @throws \HubSpot\Client\Cms\Blogs\Authors\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \HubSpot\Client\Cms\Blogs\Authors\Model\Error + * @return void */ public function attachToLangGroup($attach_to_lang_primary_request_v_next) { - list($response) = $this->attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_next); - return $response; + $this->attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_next); } /** @@ -629,7 +628,7 @@ public function attachToLangGroup($attach_to_lang_primary_request_v_next) * * @throws \HubSpot\Client\Cms\Blogs\Authors\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \HubSpot\Client\Cms\Blogs\Authors\Model\Error, HTTP status code, HTTP response headers (array of strings) + * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_next) { @@ -670,39 +669,7 @@ public function attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_ ); } - switch($statusCode) { - default: - if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\Error'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $statusCode, $response->getHeaders()]; } catch (ApiException $e) { switch ($e->getCode()) { @@ -751,27 +718,14 @@ function ($response) { */ public function attachToLangGroupAsyncWithHttpInfo($attach_to_lang_primary_request_v_next) { - $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\Error'; + $returnType = ''; $request = $this->attachToLangGroupRequest($attach_to_lang_primary_request_v_next); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $response->getStatusCode(), $response->getHeaders()]; }, function ($exception) { $response = $exception->getResponse(); @@ -1832,12 +1786,11 @@ public function createLangVariationRequest($blog_author_clone_request_v_next) * * @throws \HubSpot\Client\Cms\Blogs\Authors\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \HubSpot\Client\Cms\Blogs\Authors\Model\Error + * @return void */ public function detachFromLangGroup($detach_from_lang_group_request_v_next) { - list($response) = $this->detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_v_next); - return $response; + $this->detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_v_next); } /** @@ -1849,7 +1802,7 @@ public function detachFromLangGroup($detach_from_lang_group_request_v_next) * * @throws \HubSpot\Client\Cms\Blogs\Authors\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \HubSpot\Client\Cms\Blogs\Authors\Model\Error, HTTP status code, HTTP response headers (array of strings) + * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_v_next) { @@ -1890,39 +1843,7 @@ public function detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_ ); } - switch($statusCode) { - default: - if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\Error'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $statusCode, $response->getHeaders()]; } catch (ApiException $e) { switch ($e->getCode()) { @@ -1971,27 +1892,14 @@ function ($response) { */ public function detachFromLangGroupAsyncWithHttpInfo($detach_from_lang_group_request_v_next) { - $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\Error'; + $returnType = ''; $request = $this->detachFromLangGroupRequest($detach_from_lang_group_request_v_next); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $response->getStatusCode(), $response->getHeaders()]; }, function ($exception) { $response = $exception->getResponse(); @@ -2112,14 +2020,15 @@ public function detachFromLangGroupRequest($detach_from_lang_group_request_v_nex * * @param string $object_id The Blog Author id. (required) * @param bool $archived Specifies whether to return deleted Blog Authors. Defaults to `false`. (optional) + * @param string $property property (optional) * * @throws \HubSpot\Client\Cms\Blogs\Authors\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor|\HubSpot\Client\Cms\Blogs\Authors\Model\Error */ - public function getById($object_id, $archived = null) + public function getById($object_id, $archived = null, $property = null) { - list($response) = $this->getByIdWithHttpInfo($object_id, $archived); + list($response) = $this->getByIdWithHttpInfo($object_id, $archived, $property); return $response; } @@ -2130,14 +2039,15 @@ public function getById($object_id, $archived = null) * * @param string $object_id The Blog Author id. (required) * @param bool $archived Specifies whether to return deleted Blog Authors. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \HubSpot\Client\Cms\Blogs\Authors\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor|\HubSpot\Client\Cms\Blogs\Authors\Model\Error, HTTP status code, HTTP response headers (array of strings) */ - public function getByIdWithHttpInfo($object_id, $archived = null) + public function getByIdWithHttpInfo($object_id, $archived = null, $property = null) { - $request = $this->getByIdRequest($object_id, $archived); + $request = $this->getByIdRequest($object_id, $archived, $property); try { $options = $this->createHttpClientOption(); @@ -2253,13 +2163,14 @@ public function getByIdWithHttpInfo($object_id, $archived = null) * * @param string $object_id The Blog Author id. (required) * @param bool $archived Specifies whether to return deleted Blog Authors. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getByIdAsync($object_id, $archived = null) + public function getByIdAsync($object_id, $archived = null, $property = null) { - return $this->getByIdAsyncWithHttpInfo($object_id, $archived) + return $this->getByIdAsyncWithHttpInfo($object_id, $archived, $property) ->then( function ($response) { return $response[0]; @@ -2274,14 +2185,15 @@ function ($response) { * * @param string $object_id The Blog Author id. (required) * @param bool $archived Specifies whether to return deleted Blog Authors. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getByIdAsyncWithHttpInfo($object_id, $archived = null) + public function getByIdAsyncWithHttpInfo($object_id, $archived = null, $property = null) { $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor'; - $request = $this->getByIdRequest($object_id, $archived); + $request = $this->getByIdRequest($object_id, $archived, $property); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2324,11 +2236,12 @@ function ($exception) { * * @param string $object_id The Blog Author id. (required) * @param bool $archived Specifies whether to return deleted Blog Authors. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getByIdRequest($object_id, $archived = null) + public function getByIdRequest($object_id, $archived = null, $property = null) { // verify the required parameter 'object_id' is set if ($object_id === null || (is_array($object_id) && count($object_id) === 0)) { @@ -2353,6 +2266,15 @@ public function getByIdRequest($object_id, $archived = null) true, // explode false // required ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $property, + 'property', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // path params @@ -2441,14 +2363,15 @@ public function getByIdRequest($object_id, $archived = null) * @param string $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 $limit The maximum number of results to return. Default is 100. (optional) * @param bool $archived Specifies whether to return deleted Blog Authors. Defaults to `false`. (optional) + * @param string $property property (optional) * * @throws \HubSpot\Client\Cms\Blogs\Authors\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \HubSpot\Client\Cms\Blogs\Authors\Model\CollectionResponseWithTotalBlogAuthorForwardPaging|\HubSpot\Client\Cms\Blogs\Authors\Model\Error */ - public function getPage($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPage($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { - list($response) = $this->getPageWithHttpInfo($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived); + list($response) = $this->getPageWithHttpInfo($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived, $property); return $response; } @@ -2467,14 +2390,15 @@ public function getPage($created_at = null, $created_after = null, $created_befo * @param string $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 $limit The maximum number of results to return. Default is 100. (optional) * @param bool $archived Specifies whether to return deleted Blog Authors. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \HubSpot\Client\Cms\Blogs\Authors\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \HubSpot\Client\Cms\Blogs\Authors\Model\CollectionResponseWithTotalBlogAuthorForwardPaging|\HubSpot\Client\Cms\Blogs\Authors\Model\Error, HTTP status code, HTTP response headers (array of strings) */ - public function getPageWithHttpInfo($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPageWithHttpInfo($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { - $request = $this->getPageRequest($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived); + $request = $this->getPageRequest($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived, $property); try { $options = $this->createHttpClientOption(); @@ -2598,13 +2522,14 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ * @param string $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 $limit The maximum number of results to return. Default is 100. (optional) * @param bool $archived Specifies whether to return deleted Blog Authors. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPageAsync($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPageAsync($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { - return $this->getPageAsyncWithHttpInfo($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived) + return $this->getPageAsyncWithHttpInfo($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived, $property) ->then( function ($response) { return $response[0]; @@ -2627,14 +2552,15 @@ function ($response) { * @param string $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 $limit The maximum number of results to return. Default is 100. (optional) * @param bool $archived Specifies whether to return deleted Blog Authors. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPageAsyncWithHttpInfo($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPageAsyncWithHttpInfo($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\CollectionResponseWithTotalBlogAuthorForwardPaging'; - $request = $this->getPageRequest($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived); + $request = $this->getPageRequest($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived, $property); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2685,11 +2611,12 @@ function ($exception) { * @param string $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 $limit The maximum number of results to return. Default is 100. (optional) * @param bool $archived Specifies whether to return deleted Blog Authors. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getPageRequest($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPageRequest($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { $resourcePath = '/cms/v3/blogs/authors'; @@ -2789,6 +2716,15 @@ public function getPageRequest($created_at = null, $created_after = null, $creat true, // explode false // required ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $property, + 'property', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); @@ -4121,12 +4057,11 @@ public function updateBatchRequest($batch_input_json_node, $archived = null) * * @throws \HubSpot\Client\Cms\Blogs\Authors\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \HubSpot\Client\Cms\Blogs\Authors\Model\Error + * @return void */ public function updateLangs($update_languages_request_v_next) { - list($response) = $this->updateLangsWithHttpInfo($update_languages_request_v_next); - return $response; + $this->updateLangsWithHttpInfo($update_languages_request_v_next); } /** @@ -4138,7 +4073,7 @@ public function updateLangs($update_languages_request_v_next) * * @throws \HubSpot\Client\Cms\Blogs\Authors\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \HubSpot\Client\Cms\Blogs\Authors\Model\Error, HTTP status code, HTTP response headers (array of strings) + * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function updateLangsWithHttpInfo($update_languages_request_v_next) { @@ -4179,39 +4114,7 @@ public function updateLangsWithHttpInfo($update_languages_request_v_next) ); } - switch($statusCode) { - default: - if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Cms\Blogs\Authors\Model\Error' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Authors\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\Error'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $statusCode, $response->getHeaders()]; } catch (ApiException $e) { switch ($e->getCode()) { @@ -4260,27 +4163,14 @@ function ($response) { */ public function updateLangsAsyncWithHttpInfo($update_languages_request_v_next) { - $returnType = '\HubSpot\Client\Cms\Blogs\Authors\Model\Error'; + $returnType = ''; $request = $this->updateLangsRequest($update_languages_request_v_next); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $response->getStatusCode(), $response->getHeaders()]; }, function ($exception) { $response = $exception->getResponse(); diff --git a/codegen/Cms/Blogs/Authors/ApiException.php b/codegen/Cms/Blogs/Authors/ApiException.php index 6d5fa8a5..6931acde 100644 --- a/codegen/Cms/Blogs/Authors/ApiException.php +++ b/codegen/Cms/Blogs/Authors/ApiException.php @@ -10,7 +10,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Authors/Configuration.php b/codegen/Cms/Blogs/Authors/Configuration.php index d8075487..e505a63f 100644 --- a/codegen/Cms/Blogs/Authors/Configuration.php +++ b/codegen/Cms/Blogs/Authors/Configuration.php @@ -10,7 +10,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Authors/HeaderSelector.php b/codegen/Cms/Blogs/Authors/HeaderSelector.php index de26784a..9c42084b 100644 --- a/codegen/Cms/Blogs/Authors/HeaderSelector.php +++ b/codegen/Cms/Blogs/Authors/HeaderSelector.php @@ -10,7 +10,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Authors/Model/AttachToLangPrimaryRequestVNext.php b/codegen/Cms/Blogs/Authors/Model/AttachToLangPrimaryRequestVNext.php index cb86e2d9..f39a8a47 100644 --- a/codegen/Cms/Blogs/Authors/Model/AttachToLangPrimaryRequestVNext.php +++ b/codegen/Cms/Blogs/Authors/Model/AttachToLangPrimaryRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -35,7 +35,7 @@ * AttachToLangPrimaryRequestVNext Class Doc Comment * * @category Class - * @description Request body object fro attaching objects to multi-language groups. + * @description Request body object for attaching objects to multi-language groups. * @package HubSpot\Client\Cms\Blogs\Authors * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -58,8 +58,8 @@ class AttachToLangPrimaryRequestVNext implements ModelInterface, ArrayAccess, \J * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', 'language' => 'string', + 'id' => 'string', 'primary_id' => 'string', 'primary_language' => 'string' ]; @@ -72,8 +72,8 @@ class AttachToLangPrimaryRequestVNext implements ModelInterface, ArrayAccess, \J * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, 'language' => null, + 'id' => null, 'primary_id' => null, 'primary_language' => null ]; @@ -105,8 +105,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', 'language' => 'language', + 'id' => 'id', 'primary_id' => 'primaryId', 'primary_language' => 'primaryLanguage' ]; @@ -117,8 +117,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', 'language' => 'setLanguage', + 'id' => 'setId', 'primary_id' => 'setPrimaryId', 'primary_language' => 'setPrimaryLanguage' ]; @@ -129,8 +129,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', 'language' => 'getLanguage', + 'id' => 'getId', 'primary_id' => 'getPrimaryId', 'primary_language' => 'getPrimaryLanguage' ]; @@ -176,2884 +176,6 @@ public function getModelName() return self::$openAPIModelName; } - public const LANGUAGE_AF = 'af'; - public const LANGUAGE_AF_NA = 'af-na'; - public const LANGUAGE_AF_ZA = 'af-za'; - public const LANGUAGE_AGQ = 'agq'; - public const LANGUAGE_AGQ_CM = 'agq-cm'; - public const LANGUAGE_AK = 'ak'; - public const LANGUAGE_AK_GH = 'ak-gh'; - public const LANGUAGE_AM = 'am'; - public const LANGUAGE_AM_ET = 'am-et'; - public const LANGUAGE_AR = 'ar'; - public const LANGUAGE_AR_001 = 'ar-001'; - public const LANGUAGE_AR_AE = 'ar-ae'; - public const LANGUAGE_AR_BH = 'ar-bh'; - public const LANGUAGE_AR_DJ = 'ar-dj'; - public const LANGUAGE_AR_DZ = 'ar-dz'; - public const LANGUAGE_AR_EG = 'ar-eg'; - public const LANGUAGE_AR_EH = 'ar-eh'; - public const LANGUAGE_AR_ER = 'ar-er'; - public const LANGUAGE_AR_IL = 'ar-il'; - public const LANGUAGE_AR_IQ = 'ar-iq'; - public const LANGUAGE_AR_JO = 'ar-jo'; - public const LANGUAGE_AR_KM = 'ar-km'; - public const LANGUAGE_AR_KW = 'ar-kw'; - public const LANGUAGE_AR_LB = 'ar-lb'; - public const LANGUAGE_AR_LY = 'ar-ly'; - public const LANGUAGE_AR_MA = 'ar-ma'; - public const LANGUAGE_AR_MR = 'ar-mr'; - public const LANGUAGE_AR_OM = 'ar-om'; - public const LANGUAGE_AR_PS = 'ar-ps'; - public const LANGUAGE_AR_QA = 'ar-qa'; - public const LANGUAGE_AR_SA = 'ar-sa'; - public const LANGUAGE_AR_SD = 'ar-sd'; - public const LANGUAGE_AR_SO = 'ar-so'; - public const LANGUAGE_AR_SS = 'ar-ss'; - public const LANGUAGE_AR_SY = 'ar-sy'; - public const LANGUAGE_AR_TD = 'ar-td'; - public const LANGUAGE_AR_TN = 'ar-tn'; - public const LANGUAGE_AR_YE = 'ar-ye'; - public const LANGUAGE__AS = 'as'; - public const LANGUAGE_AS_IN = 'as-in'; - public const LANGUAGE_ASA = 'asa'; - public const LANGUAGE_ASA_TZ = 'asa-tz'; - public const LANGUAGE_AST = 'ast'; - public const LANGUAGE_AST_ES = 'ast-es'; - public const LANGUAGE_AZ = 'az'; - public const LANGUAGE_AZ_AZ = 'az-az'; - public const LANGUAGE_BAS = 'bas'; - public const LANGUAGE_BAS_CM = 'bas-cm'; - public const LANGUAGE_BE = 'be'; - public const LANGUAGE_BE_BY = 'be-by'; - public const LANGUAGE_BEM = 'bem'; - public const LANGUAGE_BEM_ZM = 'bem-zm'; - public const LANGUAGE_BEZ = 'bez'; - public const LANGUAGE_BEZ_TZ = 'bez-tz'; - public const LANGUAGE_BG = 'bg'; - public const LANGUAGE_BG_BG = 'bg-bg'; - public const LANGUAGE_BM = 'bm'; - public const LANGUAGE_BM_ML = 'bm-ml'; - public const LANGUAGE_BN = 'bn'; - public const LANGUAGE_BN_BD = 'bn-bd'; - public const LANGUAGE_BN_IN = 'bn-in'; - public const LANGUAGE_BO = 'bo'; - public const LANGUAGE_BO_CN = 'bo-cn'; - public const LANGUAGE_BO_IN = 'bo-in'; - public const LANGUAGE_BR = 'br'; - public const LANGUAGE_BR_FR = 'br-fr'; - public const LANGUAGE_BRX = 'brx'; - public const LANGUAGE_BRX_IN = 'brx-in'; - public const LANGUAGE_BS = 'bs'; - public const LANGUAGE_BS_BA = 'bs-ba'; - public const LANGUAGE_CA = 'ca'; - public const LANGUAGE_CA_AD = 'ca-ad'; - public const LANGUAGE_CA_ES = 'ca-es'; - public const LANGUAGE_CA_FR = 'ca-fr'; - public const LANGUAGE_CA_IT = 'ca-it'; - public const LANGUAGE_CCP = 'ccp'; - public const LANGUAGE_CCP_BD = 'ccp-bd'; - public const LANGUAGE_CCP_IN = 'ccp-in'; - public const LANGUAGE_CE = 'ce'; - public const LANGUAGE_CE_RU = 'ce-ru'; - public const LANGUAGE_CGG = 'cgg'; - public const LANGUAGE_CGG_UG = 'cgg-ug'; - public const LANGUAGE_CHR = 'chr'; - public const LANGUAGE_CHR_US = 'chr-us'; - public const LANGUAGE_CKB = 'ckb'; - public const LANGUAGE_CKB_IQ = 'ckb-iq'; - public const LANGUAGE_CKB_IR = 'ckb-ir'; - public const LANGUAGE_CS = 'cs'; - public const LANGUAGE_CS_CZ = 'cs-cz'; - public const LANGUAGE_CU = 'cu'; - public const LANGUAGE_CU_RU = 'cu-ru'; - public const LANGUAGE_CY = 'cy'; - public const LANGUAGE_CY_GB = 'cy-gb'; - public const LANGUAGE_DA = 'da'; - public const LANGUAGE_DA_DK = 'da-dk'; - public const LANGUAGE_DA_GL = 'da-gl'; - public const LANGUAGE_DAV = 'dav'; - public const LANGUAGE_DAV_KE = 'dav-ke'; - public const LANGUAGE_DE = 'de'; - public const LANGUAGE_DE_AT = 'de-at'; - public const LANGUAGE_DE_BE = 'de-be'; - public const LANGUAGE_DE_CH = 'de-ch'; - public const LANGUAGE_DE_DE = 'de-de'; - public const LANGUAGE_DE_GR = 'de-gr'; - public const LANGUAGE_DE_IT = 'de-it'; - public const LANGUAGE_DE_LI = 'de-li'; - public const LANGUAGE_DE_LU = 'de-lu'; - public const LANGUAGE_DJE = 'dje'; - public const LANGUAGE_DJE_NE = 'dje-ne'; - public const LANGUAGE_DSB = 'dsb'; - public const LANGUAGE_DSB_DE = 'dsb-de'; - public const LANGUAGE_DUA = 'dua'; - public const LANGUAGE_DUA_CM = 'dua-cm'; - public const LANGUAGE_DYO = 'dyo'; - public const LANGUAGE_DYO_SN = 'dyo-sn'; - public const LANGUAGE_DZ = 'dz'; - public const LANGUAGE_DZ_BT = 'dz-bt'; - public const LANGUAGE_EBU = 'ebu'; - public const LANGUAGE_EBU_KE = 'ebu-ke'; - public const LANGUAGE_EE = 'ee'; - public const LANGUAGE_EE_GH = 'ee-gh'; - public const LANGUAGE_EE_TG = 'ee-tg'; - public const LANGUAGE_EL = 'el'; - public const LANGUAGE_EL_CY = 'el-cy'; - public const LANGUAGE_EL_GR = 'el-gr'; - public const LANGUAGE_EN = 'en'; - public const LANGUAGE_EN_001 = 'en-001'; - public const LANGUAGE_EN_150 = 'en-150'; - public const LANGUAGE_EN_AE = 'en-ae'; - public const LANGUAGE_EN_AG = 'en-ag'; - public const LANGUAGE_EN_AI = 'en-ai'; - public const LANGUAGE_EN_AS = 'en-as'; - public const LANGUAGE_EN_AT = 'en-at'; - public const LANGUAGE_EN_AU = 'en-au'; - public const LANGUAGE_EN_BB = 'en-bb'; - public const LANGUAGE_EN_BE = 'en-be'; - public const LANGUAGE_EN_BI = 'en-bi'; - public const LANGUAGE_EN_BM = 'en-bm'; - public const LANGUAGE_EN_BS = 'en-bs'; - public const LANGUAGE_EN_BW = 'en-bw'; - public const LANGUAGE_EN_BZ = 'en-bz'; - public const LANGUAGE_EN_CA = 'en-ca'; - public const LANGUAGE_EN_CC = 'en-cc'; - public const LANGUAGE_EN_CH = 'en-ch'; - public const LANGUAGE_EN_CK = 'en-ck'; - public const LANGUAGE_EN_CM = 'en-cm'; - public const LANGUAGE_EN_CX = 'en-cx'; - public const LANGUAGE_EN_CY = 'en-cy'; - public const LANGUAGE_EN_DE = 'en-de'; - public const LANGUAGE_EN_DG = 'en-dg'; - public const LANGUAGE_EN_DK = 'en-dk'; - public const LANGUAGE_EN_DM = 'en-dm'; - public const LANGUAGE_EN_ER = 'en-er'; - public const LANGUAGE_EN_FI = 'en-fi'; - public const LANGUAGE_EN_FJ = 'en-fj'; - public const LANGUAGE_EN_FK = 'en-fk'; - public const LANGUAGE_EN_FM = 'en-fm'; - public const LANGUAGE_EN_GB = 'en-gb'; - public const LANGUAGE_EN_GD = 'en-gd'; - public const LANGUAGE_EN_GG = 'en-gg'; - public const LANGUAGE_EN_GH = 'en-gh'; - public const LANGUAGE_EN_GI = 'en-gi'; - public const LANGUAGE_EN_GM = 'en-gm'; - public const LANGUAGE_EN_GU = 'en-gu'; - public const LANGUAGE_EN_GY = 'en-gy'; - public const LANGUAGE_EN_HK = 'en-hk'; - public const LANGUAGE_EN_IE = 'en-ie'; - public const LANGUAGE_EN_IL = 'en-il'; - public const LANGUAGE_EN_IM = 'en-im'; - public const LANGUAGE_EN_IN = 'en-in'; - public const LANGUAGE_EN_IO = 'en-io'; - public const LANGUAGE_EN_JE = 'en-je'; - public const LANGUAGE_EN_JM = 'en-jm'; - public const LANGUAGE_EN_KE = 'en-ke'; - public const LANGUAGE_EN_KI = 'en-ki'; - public const LANGUAGE_EN_KN = 'en-kn'; - public const LANGUAGE_EN_KY = 'en-ky'; - public const LANGUAGE_EN_LC = 'en-lc'; - public const LANGUAGE_EN_LR = 'en-lr'; - public const LANGUAGE_EN_LS = 'en-ls'; - public const LANGUAGE_EN_LU = 'en-lu'; - public const LANGUAGE_EN_MG = 'en-mg'; - public const LANGUAGE_EN_MH = 'en-mh'; - public const LANGUAGE_EN_MO = 'en-mo'; - public const LANGUAGE_EN_MP = 'en-mp'; - public const LANGUAGE_EN_MS = 'en-ms'; - public const LANGUAGE_EN_MT = 'en-mt'; - public const LANGUAGE_EN_MU = 'en-mu'; - public const LANGUAGE_EN_MW = 'en-mw'; - public const LANGUAGE_EN_MY = 'en-my'; - public const LANGUAGE_EN_NA = 'en-na'; - public const LANGUAGE_EN_NF = 'en-nf'; - public const LANGUAGE_EN_NG = 'en-ng'; - public const LANGUAGE_EN_NL = 'en-nl'; - public const LANGUAGE_EN_NR = 'en-nr'; - public const LANGUAGE_EN_NU = 'en-nu'; - public const LANGUAGE_EN_NZ = 'en-nz'; - public const LANGUAGE_EN_PG = 'en-pg'; - public const LANGUAGE_EN_PH = 'en-ph'; - public const LANGUAGE_EN_PK = 'en-pk'; - public const LANGUAGE_EN_PN = 'en-pn'; - public const LANGUAGE_EN_PR = 'en-pr'; - public const LANGUAGE_EN_PW = 'en-pw'; - public const LANGUAGE_EN_RW = 'en-rw'; - public const LANGUAGE_EN_SB = 'en-sb'; - public const LANGUAGE_EN_SC = 'en-sc'; - public const LANGUAGE_EN_SD = 'en-sd'; - public const LANGUAGE_EN_SE = 'en-se'; - public const LANGUAGE_EN_SG = 'en-sg'; - public const LANGUAGE_EN_SH = 'en-sh'; - public const LANGUAGE_EN_SI = 'en-si'; - public const LANGUAGE_EN_SL = 'en-sl'; - public const LANGUAGE_EN_SS = 'en-ss'; - public const LANGUAGE_EN_SX = 'en-sx'; - public const LANGUAGE_EN_SZ = 'en-sz'; - public const LANGUAGE_EN_TC = 'en-tc'; - public const LANGUAGE_EN_TK = 'en-tk'; - public const LANGUAGE_EN_TO = 'en-to'; - public const LANGUAGE_EN_TT = 'en-tt'; - public const LANGUAGE_EN_TV = 'en-tv'; - public const LANGUAGE_EN_TZ = 'en-tz'; - public const LANGUAGE_EN_UG = 'en-ug'; - public const LANGUAGE_EN_UM = 'en-um'; - public const LANGUAGE_EN_US = 'en-us'; - public const LANGUAGE_EN_VC = 'en-vc'; - public const LANGUAGE_EN_VG = 'en-vg'; - public const LANGUAGE_EN_VI = 'en-vi'; - public const LANGUAGE_EN_VU = 'en-vu'; - public const LANGUAGE_EN_WS = 'en-ws'; - public const LANGUAGE_EN_ZA = 'en-za'; - public const LANGUAGE_EN_ZM = 'en-zm'; - public const LANGUAGE_EN_ZW = 'en-zw'; - public const LANGUAGE_EO = 'eo'; - public const LANGUAGE_EO_001 = 'eo-001'; - public const LANGUAGE_ES = 'es'; - public const LANGUAGE_ES_419 = 'es-419'; - public const LANGUAGE_ES_AR = 'es-ar'; - public const LANGUAGE_ES_BO = 'es-bo'; - public const LANGUAGE_ES_BR = 'es-br'; - public const LANGUAGE_ES_BZ = 'es-bz'; - public const LANGUAGE_ES_CL = 'es-cl'; - public const LANGUAGE_ES_CO = 'es-co'; - public const LANGUAGE_ES_CR = 'es-cr'; - public const LANGUAGE_ES_CU = 'es-cu'; - public const LANGUAGE_ES_DO = 'es-do'; - public const LANGUAGE_ES_EA = 'es-ea'; - public const LANGUAGE_ES_EC = 'es-ec'; - public const LANGUAGE_ES_ES = 'es-es'; - public const LANGUAGE_ES_GQ = 'es-gq'; - public const LANGUAGE_ES_GT = 'es-gt'; - public const LANGUAGE_ES_HN = 'es-hn'; - public const LANGUAGE_ES_IC = 'es-ic'; - public const LANGUAGE_ES_MX = 'es-mx'; - public const LANGUAGE_ES_NI = 'es-ni'; - public const LANGUAGE_ES_PA = 'es-pa'; - public const LANGUAGE_ES_PE = 'es-pe'; - public const LANGUAGE_ES_PH = 'es-ph'; - public const LANGUAGE_ES_PR = 'es-pr'; - public const LANGUAGE_ES_PY = 'es-py'; - public const LANGUAGE_ES_SV = 'es-sv'; - public const LANGUAGE_ES_US = 'es-us'; - public const LANGUAGE_ES_UY = 'es-uy'; - public const LANGUAGE_ES_VE = 'es-ve'; - public const LANGUAGE_ET = 'et'; - public const LANGUAGE_ET_EE = 'et-ee'; - public const LANGUAGE_EU = 'eu'; - public const LANGUAGE_EU_ES = 'eu-es'; - public const LANGUAGE_EWO = 'ewo'; - public const LANGUAGE_EWO_CM = 'ewo-cm'; - public const LANGUAGE_FA = 'fa'; - public const LANGUAGE_FA_AF = 'fa-af'; - public const LANGUAGE_FA_IR = 'fa-ir'; - public const LANGUAGE_FF = 'ff'; - public const LANGUAGE_FF_CM = 'ff-cm'; - public const LANGUAGE_FF_GN = 'ff-gn'; - public const LANGUAGE_FF_MR = 'ff-mr'; - public const LANGUAGE_FF_SN = 'ff-sn'; - public const LANGUAGE_FI = 'fi'; - public const LANGUAGE_FI_FI = 'fi-fi'; - public const LANGUAGE_FIL = 'fil'; - public const LANGUAGE_FIL_PH = 'fil-ph'; - public const LANGUAGE_FO = 'fo'; - public const LANGUAGE_FO_DK = 'fo-dk'; - public const LANGUAGE_FO_FO = 'fo-fo'; - public const LANGUAGE_FR = 'fr'; - public const LANGUAGE_FR_BE = 'fr-be'; - public const LANGUAGE_FR_BF = 'fr-bf'; - public const LANGUAGE_FR_BI = 'fr-bi'; - public const LANGUAGE_FR_BJ = 'fr-bj'; - public const LANGUAGE_FR_BL = 'fr-bl'; - public const LANGUAGE_FR_CA = 'fr-ca'; - public const LANGUAGE_FR_CD = 'fr-cd'; - public const LANGUAGE_FR_CF = 'fr-cf'; - public const LANGUAGE_FR_CG = 'fr-cg'; - public const LANGUAGE_FR_CH = 'fr-ch'; - public const LANGUAGE_FR_CI = 'fr-ci'; - public const LANGUAGE_FR_CM = 'fr-cm'; - public const LANGUAGE_FR_DJ = 'fr-dj'; - public const LANGUAGE_FR_DZ = 'fr-dz'; - public const LANGUAGE_FR_FR = 'fr-fr'; - public const LANGUAGE_FR_GA = 'fr-ga'; - public const LANGUAGE_FR_GF = 'fr-gf'; - public const LANGUAGE_FR_GN = 'fr-gn'; - public const LANGUAGE_FR_GP = 'fr-gp'; - public const LANGUAGE_FR_GQ = 'fr-gq'; - public const LANGUAGE_FR_HT = 'fr-ht'; - public const LANGUAGE_FR_KM = 'fr-km'; - public const LANGUAGE_FR_LU = 'fr-lu'; - public const LANGUAGE_FR_MA = 'fr-ma'; - public const LANGUAGE_FR_MC = 'fr-mc'; - public const LANGUAGE_FR_MF = 'fr-mf'; - public const LANGUAGE_FR_MG = 'fr-mg'; - public const LANGUAGE_FR_ML = 'fr-ml'; - public const LANGUAGE_FR_MQ = 'fr-mq'; - public const LANGUAGE_FR_MR = 'fr-mr'; - public const LANGUAGE_FR_MU = 'fr-mu'; - public const LANGUAGE_FR_NC = 'fr-nc'; - public const LANGUAGE_FR_NE = 'fr-ne'; - public const LANGUAGE_FR_PF = 'fr-pf'; - public const LANGUAGE_FR_PM = 'fr-pm'; - public const LANGUAGE_FR_RE = 'fr-re'; - public const LANGUAGE_FR_RW = 'fr-rw'; - public const LANGUAGE_FR_SC = 'fr-sc'; - public const LANGUAGE_FR_SN = 'fr-sn'; - public const LANGUAGE_FR_SY = 'fr-sy'; - public const LANGUAGE_FR_TD = 'fr-td'; - public const LANGUAGE_FR_TG = 'fr-tg'; - public const LANGUAGE_FR_TN = 'fr-tn'; - public const LANGUAGE_FR_VU = 'fr-vu'; - public const LANGUAGE_FR_WF = 'fr-wf'; - public const LANGUAGE_FR_YT = 'fr-yt'; - public const LANGUAGE_FUR = 'fur'; - public const LANGUAGE_FUR_IT = 'fur-it'; - public const LANGUAGE_FY = 'fy'; - public const LANGUAGE_FY_NL = 'fy-nl'; - public const LANGUAGE_GA = 'ga'; - public const LANGUAGE_GA_IE = 'ga-ie'; - public const LANGUAGE_GD = 'gd'; - public const LANGUAGE_GD_GB = 'gd-gb'; - public const LANGUAGE_GL = 'gl'; - public const LANGUAGE_GL_ES = 'gl-es'; - public const LANGUAGE_GSW = 'gsw'; - public const LANGUAGE_GSW_CH = 'gsw-ch'; - public const LANGUAGE_GSW_FR = 'gsw-fr'; - public const LANGUAGE_GSW_LI = 'gsw-li'; - public const LANGUAGE_GU = 'gu'; - public const LANGUAGE_GU_IN = 'gu-in'; - public const LANGUAGE_GUZ = 'guz'; - public const LANGUAGE_GUZ_KE = 'guz-ke'; - public const LANGUAGE_GV = 'gv'; - public const LANGUAGE_GV_IM = 'gv-im'; - public const LANGUAGE_HA = 'ha'; - public const LANGUAGE_HA_GH = 'ha-gh'; - public const LANGUAGE_HA_NE = 'ha-ne'; - public const LANGUAGE_HA_NG = 'ha-ng'; - public const LANGUAGE_HAW = 'haw'; - public const LANGUAGE_HAW_US = 'haw-us'; - public const LANGUAGE_HE = 'he'; - public const LANGUAGE_HI = 'hi'; - public const LANGUAGE_HI_IN = 'hi-in'; - public const LANGUAGE_HR = 'hr'; - public const LANGUAGE_HR_BA = 'hr-ba'; - public const LANGUAGE_HR_HR = 'hr-hr'; - public const LANGUAGE_HSB = 'hsb'; - public const LANGUAGE_HSB_DE = 'hsb-de'; - public const LANGUAGE_HU = 'hu'; - public const LANGUAGE_HU_HU = 'hu-hu'; - public const LANGUAGE_HY = 'hy'; - public const LANGUAGE_HY_AM = 'hy-am'; - public const LANGUAGE_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'; - public const LANGUAGE_IT_CH = 'it-ch'; - 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_KA = 'ka'; - public const LANGUAGE_KA_GE = 'ka-ge'; - public const LANGUAGE_KAB = 'kab'; - public const LANGUAGE_KAB_DZ = 'kab-dz'; - public const LANGUAGE_KAM = 'kam'; - public const LANGUAGE_KAM_KE = 'kam-ke'; - public const LANGUAGE_KDE = 'kde'; - public const LANGUAGE_KDE_TZ = 'kde-tz'; - public const LANGUAGE_KEA = 'kea'; - public const LANGUAGE_KEA_CV = 'kea-cv'; - public const LANGUAGE_KHQ = 'khq'; - public const LANGUAGE_KHQ_ML = 'khq-ml'; - public const LANGUAGE_KI = 'ki'; - public const LANGUAGE_KI_KE = 'ki-ke'; - public const LANGUAGE_KK = 'kk'; - public const LANGUAGE_KK_KZ = 'kk-kz'; - public const LANGUAGE_KKJ = 'kkj'; - public const LANGUAGE_KKJ_CM = 'kkj-cm'; - public const LANGUAGE_KL = 'kl'; - public const LANGUAGE_KL_GL = 'kl-gl'; - public const LANGUAGE_KLN = 'kln'; - public const LANGUAGE_KLN_KE = 'kln-ke'; - public const LANGUAGE_KM = 'km'; - public const LANGUAGE_KM_KH = 'km-kh'; - public const LANGUAGE_KN = 'kn'; - public const LANGUAGE_KN_IN = 'kn-in'; - public const LANGUAGE_KO = 'ko'; - public const LANGUAGE_KO_KP = 'ko-kp'; - public const LANGUAGE_KO_KR = 'ko-kr'; - public const LANGUAGE_KOK = 'kok'; - public const LANGUAGE_KOK_IN = 'kok-in'; - public const LANGUAGE_KS = 'ks'; - public const LANGUAGE_KS_IN = 'ks-in'; - public const LANGUAGE_KSB = 'ksb'; - public const LANGUAGE_KSB_TZ = 'ksb-tz'; - public const LANGUAGE_KSF = 'ksf'; - 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_KY = 'ky'; - public const LANGUAGE_KY_KG = 'ky-kg'; - public const LANGUAGE_LAG = 'lag'; - public const LANGUAGE_LAG_TZ = 'lag-tz'; - public const LANGUAGE_LB = 'lb'; - public const LANGUAGE_LB_LU = 'lb-lu'; - public const LANGUAGE_LG = 'lg'; - public const LANGUAGE_LG_UG = 'lg-ug'; - public const LANGUAGE_LKT = 'lkt'; - public const LANGUAGE_LKT_US = 'lkt-us'; - public const LANGUAGE_LN = 'ln'; - public const LANGUAGE_LN_AO = 'ln-ao'; - public const LANGUAGE_LN_CD = 'ln-cd'; - public const LANGUAGE_LN_CF = 'ln-cf'; - public const LANGUAGE_LN_CG = 'ln-cg'; - public const LANGUAGE_LO = 'lo'; - public const LANGUAGE_LO_LA = 'lo-la'; - public const LANGUAGE_LRC = 'lrc'; - public const LANGUAGE_LRC_IQ = 'lrc-iq'; - public const LANGUAGE_LRC_IR = 'lrc-ir'; - public const LANGUAGE_LT = 'lt'; - public const LANGUAGE_LT_LT = 'lt-lt'; - public const LANGUAGE_LU = 'lu'; - public const LANGUAGE_LU_CD = 'lu-cd'; - public const LANGUAGE_LUO = 'luo'; - public const LANGUAGE_LUO_KE = 'luo-ke'; - public const LANGUAGE_LUY = 'luy'; - public const LANGUAGE_LUY_KE = 'luy-ke'; - public const LANGUAGE_LV = 'lv'; - public const LANGUAGE_LV_LV = 'lv-lv'; - public const LANGUAGE_MAS = 'mas'; - public const LANGUAGE_MAS_KE = 'mas-ke'; - public const LANGUAGE_MAS_TZ = 'mas-tz'; - public const LANGUAGE_MER = 'mer'; - public const LANGUAGE_MER_KE = 'mer-ke'; - public const LANGUAGE_MFE = 'mfe'; - public const LANGUAGE_MFE_MU = 'mfe-mu'; - public const LANGUAGE_MG = 'mg'; - public const LANGUAGE_MG_MG = 'mg-mg'; - public const LANGUAGE_MGH = 'mgh'; - public const LANGUAGE_MGH_MZ = 'mgh-mz'; - public const LANGUAGE_MGO = 'mgo'; - public const LANGUAGE_MGO_CM = 'mgo-cm'; - public const LANGUAGE_MK = 'mk'; - public const LANGUAGE_MK_MK = 'mk-mk'; - public const LANGUAGE_ML = 'ml'; - public const LANGUAGE_ML_IN = 'ml-in'; - public const LANGUAGE_MN = 'mn'; - public const LANGUAGE_MN_MN = 'mn-mn'; - public const LANGUAGE_MR = 'mr'; - public const LANGUAGE_MR_IN = 'mr-in'; - public const LANGUAGE_MS = 'ms'; - public const LANGUAGE_MS_BN = 'ms-bn'; - public const LANGUAGE_MS_MY = 'ms-my'; - public const LANGUAGE_MS_SG = 'ms-sg'; - public const LANGUAGE_MT = 'mt'; - public const LANGUAGE_MT_MT = 'mt-mt'; - public const LANGUAGE_MUA = 'mua'; - public const LANGUAGE_MUA_CM = 'mua-cm'; - public const LANGUAGE_MY = 'my'; - public const LANGUAGE_MY_MM = 'my-mm'; - public const LANGUAGE_MZN = 'mzn'; - public const LANGUAGE_MZN_IR = 'mzn-ir'; - public const LANGUAGE_NAQ = 'naq'; - public const LANGUAGE_NAQ_NA = 'naq-na'; - public const LANGUAGE_NB = 'nb'; - public const LANGUAGE_NB_NO = 'nb-no'; - public const LANGUAGE_NB_SJ = 'nb-sj'; - public const LANGUAGE_ND = 'nd'; - public const LANGUAGE_ND_ZW = 'nd-zw'; - public const LANGUAGE_NDS = 'nds'; - public const LANGUAGE_NDS_DE = 'nds-de'; - public const LANGUAGE_NDS_NL = 'nds-nl'; - public const LANGUAGE_NE = 'ne'; - public const LANGUAGE_NE_IN = 'ne-in'; - public const LANGUAGE_NE_NP = 'ne-np'; - 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_CW = 'nl-cw'; - public const LANGUAGE_NL_LU = 'nl-lu'; - public const LANGUAGE_NL_NL = 'nl-nl'; - public const LANGUAGE_NL_SR = 'nl-sr'; - public const LANGUAGE_NL_SX = 'nl-sx'; - public const LANGUAGE_NMG = 'nmg'; - public const LANGUAGE_NMG_CM = 'nmg-cm'; - public const LANGUAGE_NN = 'nn'; - public const LANGUAGE_NN_NO = 'nn-no'; - public const LANGUAGE_NNH = 'nnh'; - public const LANGUAGE_NNH_CM = 'nnh-cm'; - public const LANGUAGE_NO = 'no'; - public const LANGUAGE_NO_NO = 'no-no'; - public const LANGUAGE_NUS = 'nus'; - public const LANGUAGE_NUS_SS = 'nus-ss'; - public const LANGUAGE_NYN = 'nyn'; - public const LANGUAGE_NYN_UG = 'nyn-ug'; - public const LANGUAGE_OM = 'om'; - public const LANGUAGE_OM_ET = 'om-et'; - public const LANGUAGE_OM_KE = 'om-ke'; - public const LANGUAGE__OR = 'or'; - public const LANGUAGE_OR_IN = 'or-in'; - public const LANGUAGE_OS = 'os'; - public const LANGUAGE_OS_GE = 'os-ge'; - public const LANGUAGE_OS_RU = 'os-ru'; - public const LANGUAGE_PA = 'pa'; - public const LANGUAGE_PA_IN = 'pa-in'; - public const LANGUAGE_PA_PK = 'pa-pk'; - public const LANGUAGE_PL = 'pl'; - public const LANGUAGE_PL_PL = 'pl-pl'; - public const LANGUAGE_PRG = 'prg'; - public const LANGUAGE_PRG_001 = 'prg-001'; - public const LANGUAGE_PS = 'ps'; - public const LANGUAGE_PS_AF = 'ps-af'; - public const LANGUAGE_PT = 'pt'; - public const LANGUAGE_PT_AO = 'pt-ao'; - public const LANGUAGE_PT_BR = 'pt-br'; - public const LANGUAGE_PT_CH = 'pt-ch'; - public const LANGUAGE_PT_CV = 'pt-cv'; - public const LANGUAGE_PT_GQ = 'pt-gq'; - public const LANGUAGE_PT_GW = 'pt-gw'; - public const LANGUAGE_PT_LU = 'pt-lu'; - public const LANGUAGE_PT_MO = 'pt-mo'; - public const LANGUAGE_PT_MZ = 'pt-mz'; - public const LANGUAGE_PT_PT = 'pt-pt'; - public const LANGUAGE_PT_ST = 'pt-st'; - public const LANGUAGE_PT_TL = 'pt-tl'; - public const LANGUAGE_QU = 'qu'; - public const LANGUAGE_QU_BO = 'qu-bo'; - public const LANGUAGE_QU_EC = 'qu-ec'; - public const LANGUAGE_QU_PE = 'qu-pe'; - public const LANGUAGE_RM = 'rm'; - public const LANGUAGE_RM_CH = 'rm-ch'; - public const LANGUAGE_RN = 'rn'; - public const LANGUAGE_RN_BI = 'rn-bi'; - public const LANGUAGE_RO = 'ro'; - public const LANGUAGE_RO_MD = 'ro-md'; - public const LANGUAGE_RO_RO = 'ro-ro'; - public const LANGUAGE_ROF = 'rof'; - public const LANGUAGE_ROF_TZ = 'rof-tz'; - public const LANGUAGE_RU = 'ru'; - public const LANGUAGE_RU_BY = 'ru-by'; - public const LANGUAGE_RU_KG = 'ru-kg'; - public const LANGUAGE_RU_KZ = 'ru-kz'; - public const LANGUAGE_RU_MD = 'ru-md'; - public const LANGUAGE_RU_RU = 'ru-ru'; - public const LANGUAGE_RU_UA = 'ru-ua'; - public const LANGUAGE_RW = 'rw'; - public const LANGUAGE_RW_RW = 'rw-rw'; - public const LANGUAGE_RWK = 'rwk'; - public const LANGUAGE_RWK_TZ = 'rwk-tz'; - public const LANGUAGE_SA = 'sa'; - public const LANGUAGE_SAH = 'sah'; - public const LANGUAGE_SAH_RU = 'sah-ru'; - public const LANGUAGE_SAQ = 'saq'; - public const LANGUAGE_SAQ_KE = 'saq-ke'; - public const LANGUAGE_SBP = 'sbp'; - public const LANGUAGE_SBP_TZ = 'sbp-tz'; - public const LANGUAGE_SD = 'sd'; - public const LANGUAGE_SD_PK = 'sd-pk'; - public const LANGUAGE_SE = 'se'; - public const LANGUAGE_SE_FI = 'se-fi'; - public const LANGUAGE_SE_NO = 'se-no'; - public const LANGUAGE_SE_SE = 'se-se'; - public const LANGUAGE_SEH = 'seh'; - public const LANGUAGE_SEH_MZ = 'seh-mz'; - public const LANGUAGE_SES = 'ses'; - public const LANGUAGE_SES_ML = 'ses-ml'; - public const LANGUAGE_SG = 'sg'; - public const LANGUAGE_SG_CF = 'sg-cf'; - public const LANGUAGE_SHI = 'shi'; - public const LANGUAGE_SHI_MA = 'shi-ma'; - public const LANGUAGE_SI = 'si'; - public const LANGUAGE_SI_LK = 'si-lk'; - public const LANGUAGE_SK = 'sk'; - public const LANGUAGE_SK_SK = 'sk-sk'; - public const LANGUAGE_SL = 'sl'; - public const LANGUAGE_SL_SI = 'sl-si'; - public const LANGUAGE_SMN = 'smn'; - public const LANGUAGE_SMN_FI = 'smn-fi'; - public const LANGUAGE_SN = 'sn'; - public const LANGUAGE_SN_ZW = 'sn-zw'; - public const LANGUAGE_SO = 'so'; - public const LANGUAGE_SO_DJ = 'so-dj'; - public const LANGUAGE_SO_ET = 'so-et'; - public const LANGUAGE_SO_KE = 'so-ke'; - public const LANGUAGE_SO_SO = 'so-so'; - public const LANGUAGE_SQ = 'sq'; - public const LANGUAGE_SQ_AL = 'sq-al'; - public const LANGUAGE_SQ_MK = 'sq-mk'; - public const LANGUAGE_SQ_XK = 'sq-xk'; - public const LANGUAGE_SR = 'sr'; - public const LANGUAGE_SR_BA = 'sr-ba'; - public const LANGUAGE_SR_CS = 'sr-cs'; - public const LANGUAGE_SR_ME = 'sr-me'; - public const LANGUAGE_SR_RS = 'sr-rs'; - public const LANGUAGE_SR_XK = 'sr-xk'; - public const LANGUAGE_SV = 'sv'; - public const LANGUAGE_SV_AX = 'sv-ax'; - public const LANGUAGE_SV_FI = 'sv-fi'; - public const LANGUAGE_SV_SE = 'sv-se'; - public const LANGUAGE_SW = 'sw'; - public const LANGUAGE_SW_CD = 'sw-cd'; - public const LANGUAGE_SW_KE = 'sw-ke'; - public const LANGUAGE_SW_TZ = 'sw-tz'; - public const LANGUAGE_SW_UG = 'sw-ug'; - public const LANGUAGE_SY = 'sy'; - public const LANGUAGE_TA = 'ta'; - public const LANGUAGE_TA_IN = 'ta-in'; - public const LANGUAGE_TA_LK = 'ta-lk'; - public const LANGUAGE_TA_MY = 'ta-my'; - public const LANGUAGE_TA_SG = 'ta-sg'; - public const LANGUAGE_TE = 'te'; - public const LANGUAGE_TE_IN = 'te-in'; - public const LANGUAGE_TEO = 'teo'; - public const LANGUAGE_TEO_KE = 'teo-ke'; - public const LANGUAGE_TEO_UG = 'teo-ug'; - public const LANGUAGE_TG = 'tg'; - public const LANGUAGE_TG_TJ = 'tg-tj'; - public const LANGUAGE_TH = 'th'; - public const LANGUAGE_TH_TH = 'th-th'; - public const LANGUAGE_TI = 'ti'; - public const LANGUAGE_TI_ER = 'ti-er'; - public const LANGUAGE_TI_ET = 'ti-et'; - public const LANGUAGE_TK = 'tk'; - public const LANGUAGE_TK_TM = 'tk-tm'; - public const LANGUAGE_TO = 'to'; - public const LANGUAGE_TO_TO = 'to-to'; - public const LANGUAGE_TR = 'tr'; - public const LANGUAGE_TR_CY = 'tr-cy'; - public const LANGUAGE_TR_TR = 'tr-tr'; - public const LANGUAGE_TT = 'tt'; - public const LANGUAGE_TT_RU = 'tt-ru'; - public const LANGUAGE_TWQ = 'twq'; - public const LANGUAGE_TWQ_NE = 'twq-ne'; - public const LANGUAGE_TZM = 'tzm'; - public const LANGUAGE_TZM_MA = 'tzm-ma'; - public const LANGUAGE_UG = 'ug'; - public const LANGUAGE_UG_CN = 'ug-cn'; - public const LANGUAGE_UK = 'uk'; - public const LANGUAGE_UK_UA = 'uk-ua'; - public const LANGUAGE_UR = 'ur'; - public const LANGUAGE_UR_IN = 'ur-in'; - public const LANGUAGE_UR_PK = 'ur-pk'; - public const LANGUAGE_UZ = 'uz'; - public const LANGUAGE_UZ_AF = 'uz-af'; - public const LANGUAGE_UZ_UZ = 'uz-uz'; - public const LANGUAGE_VAI = 'vai'; - public const LANGUAGE_VAI_LR = 'vai-lr'; - public const LANGUAGE_VI = 'vi'; - public const LANGUAGE_VI_VN = 'vi-vn'; - public const LANGUAGE_VO = 'vo'; - public const LANGUAGE_VO_001 = 'vo-001'; - public const LANGUAGE_VUN = 'vun'; - public const LANGUAGE_VUN_TZ = 'vun-tz'; - public const LANGUAGE_WAE = 'wae'; - public const LANGUAGE_WAE_CH = 'wae-ch'; - public const LANGUAGE_WO = 'wo'; - public const LANGUAGE_WO_SN = 'wo-sn'; - public const LANGUAGE_XOG = 'xog'; - public const LANGUAGE_XOG_UG = 'xog-ug'; - public const LANGUAGE_YAV = 'yav'; - public const LANGUAGE_YAV_CM = 'yav-cm'; - public const LANGUAGE_YO = 'yo'; - public const LANGUAGE_YO_BJ = 'yo-bj'; - public const LANGUAGE_YO_NG = 'yo-ng'; - public const LANGUAGE_YUE = 'yue'; - public const LANGUAGE_YUE_CN = 'yue-cn'; - public const LANGUAGE_YUE_HK = 'yue-hk'; - public const LANGUAGE_ZGH = 'zgh'; - public const LANGUAGE_ZGH_MA = 'zgh-ma'; - public const LANGUAGE_ZH = 'zh'; - public const LANGUAGE_ZH_CN = 'zh-cn'; - 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 PRIMARY_LANGUAGE_AF = 'af'; - public const PRIMARY_LANGUAGE_AF_NA = 'af-na'; - public const PRIMARY_LANGUAGE_AF_ZA = 'af-za'; - public const PRIMARY_LANGUAGE_AGQ = 'agq'; - public const PRIMARY_LANGUAGE_AGQ_CM = 'agq-cm'; - public const PRIMARY_LANGUAGE_AK = 'ak'; - public const PRIMARY_LANGUAGE_AK_GH = 'ak-gh'; - public const PRIMARY_LANGUAGE_AM = 'am'; - public const PRIMARY_LANGUAGE_AM_ET = 'am-et'; - public const PRIMARY_LANGUAGE_AR = 'ar'; - public const PRIMARY_LANGUAGE_AR_001 = 'ar-001'; - public const PRIMARY_LANGUAGE_AR_AE = 'ar-ae'; - public const PRIMARY_LANGUAGE_AR_BH = 'ar-bh'; - public const PRIMARY_LANGUAGE_AR_DJ = 'ar-dj'; - public const PRIMARY_LANGUAGE_AR_DZ = 'ar-dz'; - public const PRIMARY_LANGUAGE_AR_EG = 'ar-eg'; - public const PRIMARY_LANGUAGE_AR_EH = 'ar-eh'; - public const PRIMARY_LANGUAGE_AR_ER = 'ar-er'; - public const PRIMARY_LANGUAGE_AR_IL = 'ar-il'; - public const PRIMARY_LANGUAGE_AR_IQ = 'ar-iq'; - public const PRIMARY_LANGUAGE_AR_JO = 'ar-jo'; - public const PRIMARY_LANGUAGE_AR_KM = 'ar-km'; - public const PRIMARY_LANGUAGE_AR_KW = 'ar-kw'; - public const PRIMARY_LANGUAGE_AR_LB = 'ar-lb'; - public const PRIMARY_LANGUAGE_AR_LY = 'ar-ly'; - public const PRIMARY_LANGUAGE_AR_MA = 'ar-ma'; - public const PRIMARY_LANGUAGE_AR_MR = 'ar-mr'; - public const PRIMARY_LANGUAGE_AR_OM = 'ar-om'; - public const PRIMARY_LANGUAGE_AR_PS = 'ar-ps'; - public const PRIMARY_LANGUAGE_AR_QA = 'ar-qa'; - public const PRIMARY_LANGUAGE_AR_SA = 'ar-sa'; - public const PRIMARY_LANGUAGE_AR_SD = 'ar-sd'; - public const PRIMARY_LANGUAGE_AR_SO = 'ar-so'; - public const PRIMARY_LANGUAGE_AR_SS = 'ar-ss'; - public const PRIMARY_LANGUAGE_AR_SY = 'ar-sy'; - public const PRIMARY_LANGUAGE_AR_TD = 'ar-td'; - public const PRIMARY_LANGUAGE_AR_TN = 'ar-tn'; - public const PRIMARY_LANGUAGE_AR_YE = 'ar-ye'; - public const PRIMARY_LANGUAGE__AS = 'as'; - public const PRIMARY_LANGUAGE_AS_IN = 'as-in'; - public const PRIMARY_LANGUAGE_ASA = 'asa'; - public const PRIMARY_LANGUAGE_ASA_TZ = 'asa-tz'; - public const PRIMARY_LANGUAGE_AST = 'ast'; - public const PRIMARY_LANGUAGE_AST_ES = 'ast-es'; - public const PRIMARY_LANGUAGE_AZ = 'az'; - public const PRIMARY_LANGUAGE_AZ_AZ = 'az-az'; - public const PRIMARY_LANGUAGE_BAS = 'bas'; - public const PRIMARY_LANGUAGE_BAS_CM = 'bas-cm'; - public const PRIMARY_LANGUAGE_BE = 'be'; - public const PRIMARY_LANGUAGE_BE_BY = 'be-by'; - public const PRIMARY_LANGUAGE_BEM = 'bem'; - public const PRIMARY_LANGUAGE_BEM_ZM = 'bem-zm'; - public const PRIMARY_LANGUAGE_BEZ = 'bez'; - public const PRIMARY_LANGUAGE_BEZ_TZ = 'bez-tz'; - public const PRIMARY_LANGUAGE_BG = 'bg'; - public const PRIMARY_LANGUAGE_BG_BG = 'bg-bg'; - public const PRIMARY_LANGUAGE_BM = 'bm'; - public const PRIMARY_LANGUAGE_BM_ML = 'bm-ml'; - public const PRIMARY_LANGUAGE_BN = 'bn'; - public const PRIMARY_LANGUAGE_BN_BD = 'bn-bd'; - public const PRIMARY_LANGUAGE_BN_IN = 'bn-in'; - public const PRIMARY_LANGUAGE_BO = 'bo'; - public const PRIMARY_LANGUAGE_BO_CN = 'bo-cn'; - public const PRIMARY_LANGUAGE_BO_IN = 'bo-in'; - public const PRIMARY_LANGUAGE_BR = 'br'; - public const PRIMARY_LANGUAGE_BR_FR = 'br-fr'; - public const PRIMARY_LANGUAGE_BRX = 'brx'; - public const PRIMARY_LANGUAGE_BRX_IN = 'brx-in'; - public const PRIMARY_LANGUAGE_BS = 'bs'; - public const PRIMARY_LANGUAGE_BS_BA = 'bs-ba'; - public const PRIMARY_LANGUAGE_CA = 'ca'; - public const PRIMARY_LANGUAGE_CA_AD = 'ca-ad'; - public const PRIMARY_LANGUAGE_CA_ES = 'ca-es'; - public const PRIMARY_LANGUAGE_CA_FR = 'ca-fr'; - public const PRIMARY_LANGUAGE_CA_IT = 'ca-it'; - public const PRIMARY_LANGUAGE_CCP = 'ccp'; - public const PRIMARY_LANGUAGE_CCP_BD = 'ccp-bd'; - public const PRIMARY_LANGUAGE_CCP_IN = 'ccp-in'; - public const PRIMARY_LANGUAGE_CE = 'ce'; - public const PRIMARY_LANGUAGE_CE_RU = 'ce-ru'; - public const PRIMARY_LANGUAGE_CGG = 'cgg'; - public const PRIMARY_LANGUAGE_CGG_UG = 'cgg-ug'; - public const PRIMARY_LANGUAGE_CHR = 'chr'; - public const PRIMARY_LANGUAGE_CHR_US = 'chr-us'; - public const PRIMARY_LANGUAGE_CKB = 'ckb'; - public const PRIMARY_LANGUAGE_CKB_IQ = 'ckb-iq'; - public const PRIMARY_LANGUAGE_CKB_IR = 'ckb-ir'; - public const PRIMARY_LANGUAGE_CS = 'cs'; - public const PRIMARY_LANGUAGE_CS_CZ = 'cs-cz'; - public const PRIMARY_LANGUAGE_CU = 'cu'; - public const PRIMARY_LANGUAGE_CU_RU = 'cu-ru'; - public const PRIMARY_LANGUAGE_CY = 'cy'; - public const PRIMARY_LANGUAGE_CY_GB = 'cy-gb'; - public const PRIMARY_LANGUAGE_DA = 'da'; - public const PRIMARY_LANGUAGE_DA_DK = 'da-dk'; - public const PRIMARY_LANGUAGE_DA_GL = 'da-gl'; - public const PRIMARY_LANGUAGE_DAV = 'dav'; - public const PRIMARY_LANGUAGE_DAV_KE = 'dav-ke'; - public const PRIMARY_LANGUAGE_DE = 'de'; - public const PRIMARY_LANGUAGE_DE_AT = 'de-at'; - public const PRIMARY_LANGUAGE_DE_BE = 'de-be'; - public const PRIMARY_LANGUAGE_DE_CH = 'de-ch'; - public const PRIMARY_LANGUAGE_DE_DE = 'de-de'; - public const PRIMARY_LANGUAGE_DE_GR = 'de-gr'; - public const PRIMARY_LANGUAGE_DE_IT = 'de-it'; - public const PRIMARY_LANGUAGE_DE_LI = 'de-li'; - public const PRIMARY_LANGUAGE_DE_LU = 'de-lu'; - public const PRIMARY_LANGUAGE_DJE = 'dje'; - public const PRIMARY_LANGUAGE_DJE_NE = 'dje-ne'; - public const PRIMARY_LANGUAGE_DSB = 'dsb'; - public const PRIMARY_LANGUAGE_DSB_DE = 'dsb-de'; - public const PRIMARY_LANGUAGE_DUA = 'dua'; - public const PRIMARY_LANGUAGE_DUA_CM = 'dua-cm'; - public const PRIMARY_LANGUAGE_DYO = 'dyo'; - public const PRIMARY_LANGUAGE_DYO_SN = 'dyo-sn'; - public const PRIMARY_LANGUAGE_DZ = 'dz'; - public const PRIMARY_LANGUAGE_DZ_BT = 'dz-bt'; - public const PRIMARY_LANGUAGE_EBU = 'ebu'; - public const PRIMARY_LANGUAGE_EBU_KE = 'ebu-ke'; - public const PRIMARY_LANGUAGE_EE = 'ee'; - public const PRIMARY_LANGUAGE_EE_GH = 'ee-gh'; - public const PRIMARY_LANGUAGE_EE_TG = 'ee-tg'; - public const PRIMARY_LANGUAGE_EL = 'el'; - public const PRIMARY_LANGUAGE_EL_CY = 'el-cy'; - public const PRIMARY_LANGUAGE_EL_GR = 'el-gr'; - public const PRIMARY_LANGUAGE_EN = 'en'; - public const PRIMARY_LANGUAGE_EN_001 = 'en-001'; - public const PRIMARY_LANGUAGE_EN_150 = 'en-150'; - public const PRIMARY_LANGUAGE_EN_AE = 'en-ae'; - public const PRIMARY_LANGUAGE_EN_AG = 'en-ag'; - public const PRIMARY_LANGUAGE_EN_AI = 'en-ai'; - public const PRIMARY_LANGUAGE_EN_AS = 'en-as'; - public const PRIMARY_LANGUAGE_EN_AT = 'en-at'; - public const PRIMARY_LANGUAGE_EN_AU = 'en-au'; - public const PRIMARY_LANGUAGE_EN_BB = 'en-bb'; - public const PRIMARY_LANGUAGE_EN_BE = 'en-be'; - public const PRIMARY_LANGUAGE_EN_BI = 'en-bi'; - public const PRIMARY_LANGUAGE_EN_BM = 'en-bm'; - public const PRIMARY_LANGUAGE_EN_BS = 'en-bs'; - public const PRIMARY_LANGUAGE_EN_BW = 'en-bw'; - public const PRIMARY_LANGUAGE_EN_BZ = 'en-bz'; - public const PRIMARY_LANGUAGE_EN_CA = 'en-ca'; - public const PRIMARY_LANGUAGE_EN_CC = 'en-cc'; - public const PRIMARY_LANGUAGE_EN_CH = 'en-ch'; - public const PRIMARY_LANGUAGE_EN_CK = 'en-ck'; - public const PRIMARY_LANGUAGE_EN_CM = 'en-cm'; - public const PRIMARY_LANGUAGE_EN_CX = 'en-cx'; - public const PRIMARY_LANGUAGE_EN_CY = 'en-cy'; - public const PRIMARY_LANGUAGE_EN_DE = 'en-de'; - public const PRIMARY_LANGUAGE_EN_DG = 'en-dg'; - public const PRIMARY_LANGUAGE_EN_DK = 'en-dk'; - public const PRIMARY_LANGUAGE_EN_DM = 'en-dm'; - public const PRIMARY_LANGUAGE_EN_ER = 'en-er'; - public const PRIMARY_LANGUAGE_EN_FI = 'en-fi'; - public const PRIMARY_LANGUAGE_EN_FJ = 'en-fj'; - public const PRIMARY_LANGUAGE_EN_FK = 'en-fk'; - public const PRIMARY_LANGUAGE_EN_FM = 'en-fm'; - public const PRIMARY_LANGUAGE_EN_GB = 'en-gb'; - public const PRIMARY_LANGUAGE_EN_GD = 'en-gd'; - public const PRIMARY_LANGUAGE_EN_GG = 'en-gg'; - public const PRIMARY_LANGUAGE_EN_GH = 'en-gh'; - public const PRIMARY_LANGUAGE_EN_GI = 'en-gi'; - public const PRIMARY_LANGUAGE_EN_GM = 'en-gm'; - public const PRIMARY_LANGUAGE_EN_GU = 'en-gu'; - public const PRIMARY_LANGUAGE_EN_GY = 'en-gy'; - public const PRIMARY_LANGUAGE_EN_HK = 'en-hk'; - public const PRIMARY_LANGUAGE_EN_IE = 'en-ie'; - public const PRIMARY_LANGUAGE_EN_IL = 'en-il'; - public const PRIMARY_LANGUAGE_EN_IM = 'en-im'; - public const PRIMARY_LANGUAGE_EN_IN = 'en-in'; - public const PRIMARY_LANGUAGE_EN_IO = 'en-io'; - public const PRIMARY_LANGUAGE_EN_JE = 'en-je'; - public const PRIMARY_LANGUAGE_EN_JM = 'en-jm'; - public const PRIMARY_LANGUAGE_EN_KE = 'en-ke'; - public const PRIMARY_LANGUAGE_EN_KI = 'en-ki'; - public const PRIMARY_LANGUAGE_EN_KN = 'en-kn'; - public const PRIMARY_LANGUAGE_EN_KY = 'en-ky'; - public const PRIMARY_LANGUAGE_EN_LC = 'en-lc'; - public const PRIMARY_LANGUAGE_EN_LR = 'en-lr'; - public const PRIMARY_LANGUAGE_EN_LS = 'en-ls'; - public const PRIMARY_LANGUAGE_EN_LU = 'en-lu'; - public const PRIMARY_LANGUAGE_EN_MG = 'en-mg'; - public const PRIMARY_LANGUAGE_EN_MH = 'en-mh'; - public const PRIMARY_LANGUAGE_EN_MO = 'en-mo'; - public const PRIMARY_LANGUAGE_EN_MP = 'en-mp'; - public const PRIMARY_LANGUAGE_EN_MS = 'en-ms'; - public const PRIMARY_LANGUAGE_EN_MT = 'en-mt'; - public const PRIMARY_LANGUAGE_EN_MU = 'en-mu'; - public const PRIMARY_LANGUAGE_EN_MW = 'en-mw'; - public const PRIMARY_LANGUAGE_EN_MY = 'en-my'; - public const PRIMARY_LANGUAGE_EN_NA = 'en-na'; - public const PRIMARY_LANGUAGE_EN_NF = 'en-nf'; - public const PRIMARY_LANGUAGE_EN_NG = 'en-ng'; - public const PRIMARY_LANGUAGE_EN_NL = 'en-nl'; - public const PRIMARY_LANGUAGE_EN_NR = 'en-nr'; - public const PRIMARY_LANGUAGE_EN_NU = 'en-nu'; - public const PRIMARY_LANGUAGE_EN_NZ = 'en-nz'; - public const PRIMARY_LANGUAGE_EN_PG = 'en-pg'; - public const PRIMARY_LANGUAGE_EN_PH = 'en-ph'; - public const PRIMARY_LANGUAGE_EN_PK = 'en-pk'; - public const PRIMARY_LANGUAGE_EN_PN = 'en-pn'; - public const PRIMARY_LANGUAGE_EN_PR = 'en-pr'; - public const PRIMARY_LANGUAGE_EN_PW = 'en-pw'; - public const PRIMARY_LANGUAGE_EN_RW = 'en-rw'; - public const PRIMARY_LANGUAGE_EN_SB = 'en-sb'; - public const PRIMARY_LANGUAGE_EN_SC = 'en-sc'; - public const PRIMARY_LANGUAGE_EN_SD = 'en-sd'; - public const PRIMARY_LANGUAGE_EN_SE = 'en-se'; - public const PRIMARY_LANGUAGE_EN_SG = 'en-sg'; - public const PRIMARY_LANGUAGE_EN_SH = 'en-sh'; - public const PRIMARY_LANGUAGE_EN_SI = 'en-si'; - public const PRIMARY_LANGUAGE_EN_SL = 'en-sl'; - public const PRIMARY_LANGUAGE_EN_SS = 'en-ss'; - public const PRIMARY_LANGUAGE_EN_SX = 'en-sx'; - public const PRIMARY_LANGUAGE_EN_SZ = 'en-sz'; - public const PRIMARY_LANGUAGE_EN_TC = 'en-tc'; - public const PRIMARY_LANGUAGE_EN_TK = 'en-tk'; - public const PRIMARY_LANGUAGE_EN_TO = 'en-to'; - public const PRIMARY_LANGUAGE_EN_TT = 'en-tt'; - public const PRIMARY_LANGUAGE_EN_TV = 'en-tv'; - public const PRIMARY_LANGUAGE_EN_TZ = 'en-tz'; - public const PRIMARY_LANGUAGE_EN_UG = 'en-ug'; - public const PRIMARY_LANGUAGE_EN_UM = 'en-um'; - public const PRIMARY_LANGUAGE_EN_US = 'en-us'; - public const PRIMARY_LANGUAGE_EN_VC = 'en-vc'; - public const PRIMARY_LANGUAGE_EN_VG = 'en-vg'; - public const PRIMARY_LANGUAGE_EN_VI = 'en-vi'; - public const PRIMARY_LANGUAGE_EN_VU = 'en-vu'; - public const PRIMARY_LANGUAGE_EN_WS = 'en-ws'; - public const PRIMARY_LANGUAGE_EN_ZA = 'en-za'; - public const PRIMARY_LANGUAGE_EN_ZM = 'en-zm'; - public const PRIMARY_LANGUAGE_EN_ZW = 'en-zw'; - public const PRIMARY_LANGUAGE_EO = 'eo'; - public const PRIMARY_LANGUAGE_EO_001 = 'eo-001'; - public const PRIMARY_LANGUAGE_ES = 'es'; - public const PRIMARY_LANGUAGE_ES_419 = 'es-419'; - public const PRIMARY_LANGUAGE_ES_AR = 'es-ar'; - public const PRIMARY_LANGUAGE_ES_BO = 'es-bo'; - public const PRIMARY_LANGUAGE_ES_BR = 'es-br'; - public const PRIMARY_LANGUAGE_ES_BZ = 'es-bz'; - public const PRIMARY_LANGUAGE_ES_CL = 'es-cl'; - public const PRIMARY_LANGUAGE_ES_CO = 'es-co'; - public const PRIMARY_LANGUAGE_ES_CR = 'es-cr'; - public const PRIMARY_LANGUAGE_ES_CU = 'es-cu'; - public const PRIMARY_LANGUAGE_ES_DO = 'es-do'; - public const PRIMARY_LANGUAGE_ES_EA = 'es-ea'; - public const PRIMARY_LANGUAGE_ES_EC = 'es-ec'; - public const PRIMARY_LANGUAGE_ES_ES = 'es-es'; - public const PRIMARY_LANGUAGE_ES_GQ = 'es-gq'; - public const PRIMARY_LANGUAGE_ES_GT = 'es-gt'; - public const PRIMARY_LANGUAGE_ES_HN = 'es-hn'; - public const PRIMARY_LANGUAGE_ES_IC = 'es-ic'; - public const PRIMARY_LANGUAGE_ES_MX = 'es-mx'; - public const PRIMARY_LANGUAGE_ES_NI = 'es-ni'; - public const PRIMARY_LANGUAGE_ES_PA = 'es-pa'; - public const PRIMARY_LANGUAGE_ES_PE = 'es-pe'; - public const PRIMARY_LANGUAGE_ES_PH = 'es-ph'; - public const PRIMARY_LANGUAGE_ES_PR = 'es-pr'; - public const PRIMARY_LANGUAGE_ES_PY = 'es-py'; - public const PRIMARY_LANGUAGE_ES_SV = 'es-sv'; - public const PRIMARY_LANGUAGE_ES_US = 'es-us'; - public const PRIMARY_LANGUAGE_ES_UY = 'es-uy'; - public const PRIMARY_LANGUAGE_ES_VE = 'es-ve'; - public const PRIMARY_LANGUAGE_ET = 'et'; - public const PRIMARY_LANGUAGE_ET_EE = 'et-ee'; - public const PRIMARY_LANGUAGE_EU = 'eu'; - public const PRIMARY_LANGUAGE_EU_ES = 'eu-es'; - public const PRIMARY_LANGUAGE_EWO = 'ewo'; - public const PRIMARY_LANGUAGE_EWO_CM = 'ewo-cm'; - public const PRIMARY_LANGUAGE_FA = 'fa'; - public const PRIMARY_LANGUAGE_FA_AF = 'fa-af'; - public const PRIMARY_LANGUAGE_FA_IR = 'fa-ir'; - public const PRIMARY_LANGUAGE_FF = 'ff'; - public const PRIMARY_LANGUAGE_FF_CM = 'ff-cm'; - public const PRIMARY_LANGUAGE_FF_GN = 'ff-gn'; - public const PRIMARY_LANGUAGE_FF_MR = 'ff-mr'; - public const PRIMARY_LANGUAGE_FF_SN = 'ff-sn'; - public const PRIMARY_LANGUAGE_FI = 'fi'; - public const PRIMARY_LANGUAGE_FI_FI = 'fi-fi'; - public const PRIMARY_LANGUAGE_FIL = 'fil'; - public const PRIMARY_LANGUAGE_FIL_PH = 'fil-ph'; - public const PRIMARY_LANGUAGE_FO = 'fo'; - public const PRIMARY_LANGUAGE_FO_DK = 'fo-dk'; - public const PRIMARY_LANGUAGE_FO_FO = 'fo-fo'; - public const PRIMARY_LANGUAGE_FR = 'fr'; - public const PRIMARY_LANGUAGE_FR_BE = 'fr-be'; - public const PRIMARY_LANGUAGE_FR_BF = 'fr-bf'; - public const PRIMARY_LANGUAGE_FR_BI = 'fr-bi'; - public const PRIMARY_LANGUAGE_FR_BJ = 'fr-bj'; - public const PRIMARY_LANGUAGE_FR_BL = 'fr-bl'; - public const PRIMARY_LANGUAGE_FR_CA = 'fr-ca'; - public const PRIMARY_LANGUAGE_FR_CD = 'fr-cd'; - public const PRIMARY_LANGUAGE_FR_CF = 'fr-cf'; - public const PRIMARY_LANGUAGE_FR_CG = 'fr-cg'; - public const PRIMARY_LANGUAGE_FR_CH = 'fr-ch'; - public const PRIMARY_LANGUAGE_FR_CI = 'fr-ci'; - public const PRIMARY_LANGUAGE_FR_CM = 'fr-cm'; - public const PRIMARY_LANGUAGE_FR_DJ = 'fr-dj'; - public const PRIMARY_LANGUAGE_FR_DZ = 'fr-dz'; - public const PRIMARY_LANGUAGE_FR_FR = 'fr-fr'; - public const PRIMARY_LANGUAGE_FR_GA = 'fr-ga'; - public const PRIMARY_LANGUAGE_FR_GF = 'fr-gf'; - public const PRIMARY_LANGUAGE_FR_GN = 'fr-gn'; - public const PRIMARY_LANGUAGE_FR_GP = 'fr-gp'; - public const PRIMARY_LANGUAGE_FR_GQ = 'fr-gq'; - public const PRIMARY_LANGUAGE_FR_HT = 'fr-ht'; - public const PRIMARY_LANGUAGE_FR_KM = 'fr-km'; - public const PRIMARY_LANGUAGE_FR_LU = 'fr-lu'; - public const PRIMARY_LANGUAGE_FR_MA = 'fr-ma'; - public const PRIMARY_LANGUAGE_FR_MC = 'fr-mc'; - public const PRIMARY_LANGUAGE_FR_MF = 'fr-mf'; - public const PRIMARY_LANGUAGE_FR_MG = 'fr-mg'; - public const PRIMARY_LANGUAGE_FR_ML = 'fr-ml'; - public const PRIMARY_LANGUAGE_FR_MQ = 'fr-mq'; - public const PRIMARY_LANGUAGE_FR_MR = 'fr-mr'; - public const PRIMARY_LANGUAGE_FR_MU = 'fr-mu'; - public const PRIMARY_LANGUAGE_FR_NC = 'fr-nc'; - public const PRIMARY_LANGUAGE_FR_NE = 'fr-ne'; - public const PRIMARY_LANGUAGE_FR_PF = 'fr-pf'; - public const PRIMARY_LANGUAGE_FR_PM = 'fr-pm'; - public const PRIMARY_LANGUAGE_FR_RE = 'fr-re'; - public const PRIMARY_LANGUAGE_FR_RW = 'fr-rw'; - public const PRIMARY_LANGUAGE_FR_SC = 'fr-sc'; - public const PRIMARY_LANGUAGE_FR_SN = 'fr-sn'; - public const PRIMARY_LANGUAGE_FR_SY = 'fr-sy'; - public const PRIMARY_LANGUAGE_FR_TD = 'fr-td'; - public const PRIMARY_LANGUAGE_FR_TG = 'fr-tg'; - public const PRIMARY_LANGUAGE_FR_TN = 'fr-tn'; - public const PRIMARY_LANGUAGE_FR_VU = 'fr-vu'; - public const PRIMARY_LANGUAGE_FR_WF = 'fr-wf'; - public const PRIMARY_LANGUAGE_FR_YT = 'fr-yt'; - public const PRIMARY_LANGUAGE_FUR = 'fur'; - public const PRIMARY_LANGUAGE_FUR_IT = 'fur-it'; - public const PRIMARY_LANGUAGE_FY = 'fy'; - public const PRIMARY_LANGUAGE_FY_NL = 'fy-nl'; - public const PRIMARY_LANGUAGE_GA = 'ga'; - public const PRIMARY_LANGUAGE_GA_IE = 'ga-ie'; - public const PRIMARY_LANGUAGE_GD = 'gd'; - public const PRIMARY_LANGUAGE_GD_GB = 'gd-gb'; - public const PRIMARY_LANGUAGE_GL = 'gl'; - public const PRIMARY_LANGUAGE_GL_ES = 'gl-es'; - public const PRIMARY_LANGUAGE_GSW = 'gsw'; - public const PRIMARY_LANGUAGE_GSW_CH = 'gsw-ch'; - public const PRIMARY_LANGUAGE_GSW_FR = 'gsw-fr'; - public const PRIMARY_LANGUAGE_GSW_LI = 'gsw-li'; - public const PRIMARY_LANGUAGE_GU = 'gu'; - public const PRIMARY_LANGUAGE_GU_IN = 'gu-in'; - public const PRIMARY_LANGUAGE_GUZ = 'guz'; - public const PRIMARY_LANGUAGE_GUZ_KE = 'guz-ke'; - public const PRIMARY_LANGUAGE_GV = 'gv'; - public const PRIMARY_LANGUAGE_GV_IM = 'gv-im'; - public const PRIMARY_LANGUAGE_HA = 'ha'; - public const PRIMARY_LANGUAGE_HA_GH = 'ha-gh'; - public const PRIMARY_LANGUAGE_HA_NE = 'ha-ne'; - public const PRIMARY_LANGUAGE_HA_NG = 'ha-ng'; - public const PRIMARY_LANGUAGE_HAW = 'haw'; - public const PRIMARY_LANGUAGE_HAW_US = 'haw-us'; - public const PRIMARY_LANGUAGE_HE = 'he'; - public const PRIMARY_LANGUAGE_HI = 'hi'; - public const PRIMARY_LANGUAGE_HI_IN = 'hi-in'; - public const PRIMARY_LANGUAGE_HR = 'hr'; - public const PRIMARY_LANGUAGE_HR_BA = 'hr-ba'; - public const PRIMARY_LANGUAGE_HR_HR = 'hr-hr'; - public const PRIMARY_LANGUAGE_HSB = 'hsb'; - public const PRIMARY_LANGUAGE_HSB_DE = 'hsb-de'; - public const PRIMARY_LANGUAGE_HU = 'hu'; - public const PRIMARY_LANGUAGE_HU_HU = 'hu-hu'; - public const PRIMARY_LANGUAGE_HY = 'hy'; - public const PRIMARY_LANGUAGE_HY_AM = 'hy-am'; - public const PRIMARY_LANGUAGE_ID = 'id'; - public const PRIMARY_LANGUAGE_IG = 'ig'; - public const PRIMARY_LANGUAGE_IG_NG = 'ig-ng'; - public const PRIMARY_LANGUAGE_II = 'ii'; - public const PRIMARY_LANGUAGE_II_CN = 'ii-cn'; - public const PRIMARY_LANGUAGE_ID_ID = 'id-id'; - public const PRIMARY_LANGUAGE_IS = 'is'; - public const PRIMARY_LANGUAGE_IS_IS = 'is-is'; - public const PRIMARY_LANGUAGE_IT = 'it'; - public const PRIMARY_LANGUAGE_IT_CH = 'it-ch'; - public const PRIMARY_LANGUAGE_IT_IT = 'it-it'; - public const PRIMARY_LANGUAGE_IT_SM = 'it-sm'; - public const PRIMARY_LANGUAGE_IT_VA = 'it-va'; - public const PRIMARY_LANGUAGE_HE_IL = 'he-il'; - public const PRIMARY_LANGUAGE_JA = 'ja'; - public const PRIMARY_LANGUAGE_JA_JP = 'ja-jp'; - public const PRIMARY_LANGUAGE_JGO = 'jgo'; - public const PRIMARY_LANGUAGE_JGO_CM = 'jgo-cm'; - public const PRIMARY_LANGUAGE_YI = 'yi'; - public const PRIMARY_LANGUAGE_YI_001 = 'yi-001'; - public const PRIMARY_LANGUAGE_JMC = 'jmc'; - public const PRIMARY_LANGUAGE_JMC_TZ = 'jmc-tz'; - public const PRIMARY_LANGUAGE_KA = 'ka'; - public const PRIMARY_LANGUAGE_KA_GE = 'ka-ge'; - public const PRIMARY_LANGUAGE_KAB = 'kab'; - public const PRIMARY_LANGUAGE_KAB_DZ = 'kab-dz'; - public const PRIMARY_LANGUAGE_KAM = 'kam'; - public const PRIMARY_LANGUAGE_KAM_KE = 'kam-ke'; - public const PRIMARY_LANGUAGE_KDE = 'kde'; - public const PRIMARY_LANGUAGE_KDE_TZ = 'kde-tz'; - public const PRIMARY_LANGUAGE_KEA = 'kea'; - public const PRIMARY_LANGUAGE_KEA_CV = 'kea-cv'; - public const PRIMARY_LANGUAGE_KHQ = 'khq'; - public const PRIMARY_LANGUAGE_KHQ_ML = 'khq-ml'; - public const PRIMARY_LANGUAGE_KI = 'ki'; - public const PRIMARY_LANGUAGE_KI_KE = 'ki-ke'; - public const PRIMARY_LANGUAGE_KK = 'kk'; - public const PRIMARY_LANGUAGE_KK_KZ = 'kk-kz'; - public const PRIMARY_LANGUAGE_KKJ = 'kkj'; - public const PRIMARY_LANGUAGE_KKJ_CM = 'kkj-cm'; - public const PRIMARY_LANGUAGE_KL = 'kl'; - public const PRIMARY_LANGUAGE_KL_GL = 'kl-gl'; - public const PRIMARY_LANGUAGE_KLN = 'kln'; - public const PRIMARY_LANGUAGE_KLN_KE = 'kln-ke'; - public const PRIMARY_LANGUAGE_KM = 'km'; - public const PRIMARY_LANGUAGE_KM_KH = 'km-kh'; - public const PRIMARY_LANGUAGE_KN = 'kn'; - public const PRIMARY_LANGUAGE_KN_IN = 'kn-in'; - public const PRIMARY_LANGUAGE_KO = 'ko'; - public const PRIMARY_LANGUAGE_KO_KP = 'ko-kp'; - public const PRIMARY_LANGUAGE_KO_KR = 'ko-kr'; - public const PRIMARY_LANGUAGE_KOK = 'kok'; - public const PRIMARY_LANGUAGE_KOK_IN = 'kok-in'; - public const PRIMARY_LANGUAGE_KS = 'ks'; - public const PRIMARY_LANGUAGE_KS_IN = 'ks-in'; - public const PRIMARY_LANGUAGE_KSB = 'ksb'; - public const PRIMARY_LANGUAGE_KSB_TZ = 'ksb-tz'; - public const PRIMARY_LANGUAGE_KSF = 'ksf'; - public const PRIMARY_LANGUAGE_KSF_CM = 'ksf-cm'; - public const PRIMARY_LANGUAGE_KSH = 'ksh'; - public const PRIMARY_LANGUAGE_KSH_DE = 'ksh-de'; - public const PRIMARY_LANGUAGE_KW = 'kw'; - public const PRIMARY_LANGUAGE_KW_GB = 'kw-gb'; - public const PRIMARY_LANGUAGE_KY = 'ky'; - public const PRIMARY_LANGUAGE_KY_KG = 'ky-kg'; - public const PRIMARY_LANGUAGE_LAG = 'lag'; - public const PRIMARY_LANGUAGE_LAG_TZ = 'lag-tz'; - public const PRIMARY_LANGUAGE_LB = 'lb'; - public const PRIMARY_LANGUAGE_LB_LU = 'lb-lu'; - public const PRIMARY_LANGUAGE_LG = 'lg'; - public const PRIMARY_LANGUAGE_LG_UG = 'lg-ug'; - public const PRIMARY_LANGUAGE_LKT = 'lkt'; - public const PRIMARY_LANGUAGE_LKT_US = 'lkt-us'; - public const PRIMARY_LANGUAGE_LN = 'ln'; - public const PRIMARY_LANGUAGE_LN_AO = 'ln-ao'; - public const PRIMARY_LANGUAGE_LN_CD = 'ln-cd'; - public const PRIMARY_LANGUAGE_LN_CF = 'ln-cf'; - public const PRIMARY_LANGUAGE_LN_CG = 'ln-cg'; - public const PRIMARY_LANGUAGE_LO = 'lo'; - public const PRIMARY_LANGUAGE_LO_LA = 'lo-la'; - public const PRIMARY_LANGUAGE_LRC = 'lrc'; - public const PRIMARY_LANGUAGE_LRC_IQ = 'lrc-iq'; - public const PRIMARY_LANGUAGE_LRC_IR = 'lrc-ir'; - public const PRIMARY_LANGUAGE_LT = 'lt'; - public const PRIMARY_LANGUAGE_LT_LT = 'lt-lt'; - public const PRIMARY_LANGUAGE_LU = 'lu'; - public const PRIMARY_LANGUAGE_LU_CD = 'lu-cd'; - public const PRIMARY_LANGUAGE_LUO = 'luo'; - public const PRIMARY_LANGUAGE_LUO_KE = 'luo-ke'; - public const PRIMARY_LANGUAGE_LUY = 'luy'; - public const PRIMARY_LANGUAGE_LUY_KE = 'luy-ke'; - public const PRIMARY_LANGUAGE_LV = 'lv'; - public const PRIMARY_LANGUAGE_LV_LV = 'lv-lv'; - public const PRIMARY_LANGUAGE_MAS = 'mas'; - public const PRIMARY_LANGUAGE_MAS_KE = 'mas-ke'; - public const PRIMARY_LANGUAGE_MAS_TZ = 'mas-tz'; - public const PRIMARY_LANGUAGE_MER = 'mer'; - public const PRIMARY_LANGUAGE_MER_KE = 'mer-ke'; - public const PRIMARY_LANGUAGE_MFE = 'mfe'; - public const PRIMARY_LANGUAGE_MFE_MU = 'mfe-mu'; - public const PRIMARY_LANGUAGE_MG = 'mg'; - public const PRIMARY_LANGUAGE_MG_MG = 'mg-mg'; - public const PRIMARY_LANGUAGE_MGH = 'mgh'; - public const PRIMARY_LANGUAGE_MGH_MZ = 'mgh-mz'; - public const PRIMARY_LANGUAGE_MGO = 'mgo'; - public const PRIMARY_LANGUAGE_MGO_CM = 'mgo-cm'; - public const PRIMARY_LANGUAGE_MK = 'mk'; - public const PRIMARY_LANGUAGE_MK_MK = 'mk-mk'; - public const PRIMARY_LANGUAGE_ML = 'ml'; - public const PRIMARY_LANGUAGE_ML_IN = 'ml-in'; - public const PRIMARY_LANGUAGE_MN = 'mn'; - public const PRIMARY_LANGUAGE_MN_MN = 'mn-mn'; - public const PRIMARY_LANGUAGE_MR = 'mr'; - public const PRIMARY_LANGUAGE_MR_IN = 'mr-in'; - public const PRIMARY_LANGUAGE_MS = 'ms'; - public const PRIMARY_LANGUAGE_MS_BN = 'ms-bn'; - public const PRIMARY_LANGUAGE_MS_MY = 'ms-my'; - public const PRIMARY_LANGUAGE_MS_SG = 'ms-sg'; - public const PRIMARY_LANGUAGE_MT = 'mt'; - public const PRIMARY_LANGUAGE_MT_MT = 'mt-mt'; - public const PRIMARY_LANGUAGE_MUA = 'mua'; - public const PRIMARY_LANGUAGE_MUA_CM = 'mua-cm'; - public const PRIMARY_LANGUAGE_MY = 'my'; - public const PRIMARY_LANGUAGE_MY_MM = 'my-mm'; - public const PRIMARY_LANGUAGE_MZN = 'mzn'; - public const PRIMARY_LANGUAGE_MZN_IR = 'mzn-ir'; - public const PRIMARY_LANGUAGE_NAQ = 'naq'; - public const PRIMARY_LANGUAGE_NAQ_NA = 'naq-na'; - public const PRIMARY_LANGUAGE_NB = 'nb'; - public const PRIMARY_LANGUAGE_NB_NO = 'nb-no'; - public const PRIMARY_LANGUAGE_NB_SJ = 'nb-sj'; - public const PRIMARY_LANGUAGE_ND = 'nd'; - public const PRIMARY_LANGUAGE_ND_ZW = 'nd-zw'; - public const PRIMARY_LANGUAGE_NDS = 'nds'; - public const PRIMARY_LANGUAGE_NDS_DE = 'nds-de'; - public const PRIMARY_LANGUAGE_NDS_NL = 'nds-nl'; - public const PRIMARY_LANGUAGE_NE = 'ne'; - public const PRIMARY_LANGUAGE_NE_IN = 'ne-in'; - public const PRIMARY_LANGUAGE_NE_NP = 'ne-np'; - public const PRIMARY_LANGUAGE_NL = 'nl'; - public const PRIMARY_LANGUAGE_NL_AW = 'nl-aw'; - public const PRIMARY_LANGUAGE_NL_BE = 'nl-be'; - public const PRIMARY_LANGUAGE_NL_CH = 'nl-ch'; - public const PRIMARY_LANGUAGE_NL_BQ = 'nl-bq'; - public const PRIMARY_LANGUAGE_NL_CW = 'nl-cw'; - public const PRIMARY_LANGUAGE_NL_LU = 'nl-lu'; - public const PRIMARY_LANGUAGE_NL_NL = 'nl-nl'; - public const PRIMARY_LANGUAGE_NL_SR = 'nl-sr'; - public const PRIMARY_LANGUAGE_NL_SX = 'nl-sx'; - public const PRIMARY_LANGUAGE_NMG = 'nmg'; - public const PRIMARY_LANGUAGE_NMG_CM = 'nmg-cm'; - public const PRIMARY_LANGUAGE_NN = 'nn'; - public const PRIMARY_LANGUAGE_NN_NO = 'nn-no'; - public const PRIMARY_LANGUAGE_NNH = 'nnh'; - public const PRIMARY_LANGUAGE_NNH_CM = 'nnh-cm'; - public const PRIMARY_LANGUAGE_NO = 'no'; - public const PRIMARY_LANGUAGE_NO_NO = 'no-no'; - public const PRIMARY_LANGUAGE_NUS = 'nus'; - public const PRIMARY_LANGUAGE_NUS_SS = 'nus-ss'; - public const PRIMARY_LANGUAGE_NYN = 'nyn'; - public const PRIMARY_LANGUAGE_NYN_UG = 'nyn-ug'; - public const PRIMARY_LANGUAGE_OM = 'om'; - public const PRIMARY_LANGUAGE_OM_ET = 'om-et'; - public const PRIMARY_LANGUAGE_OM_KE = 'om-ke'; - public const PRIMARY_LANGUAGE__OR = 'or'; - public const PRIMARY_LANGUAGE_OR_IN = 'or-in'; - public const PRIMARY_LANGUAGE_OS = 'os'; - public const PRIMARY_LANGUAGE_OS_GE = 'os-ge'; - public const PRIMARY_LANGUAGE_OS_RU = 'os-ru'; - public const PRIMARY_LANGUAGE_PA = 'pa'; - public const PRIMARY_LANGUAGE_PA_IN = 'pa-in'; - public const PRIMARY_LANGUAGE_PA_PK = 'pa-pk'; - public const PRIMARY_LANGUAGE_PL = 'pl'; - public const PRIMARY_LANGUAGE_PL_PL = 'pl-pl'; - public const PRIMARY_LANGUAGE_PRG = 'prg'; - public const PRIMARY_LANGUAGE_PRG_001 = 'prg-001'; - public const PRIMARY_LANGUAGE_PS = 'ps'; - public const PRIMARY_LANGUAGE_PS_AF = 'ps-af'; - public const PRIMARY_LANGUAGE_PT = 'pt'; - public const PRIMARY_LANGUAGE_PT_AO = 'pt-ao'; - public const PRIMARY_LANGUAGE_PT_BR = 'pt-br'; - public const PRIMARY_LANGUAGE_PT_CH = 'pt-ch'; - public const PRIMARY_LANGUAGE_PT_CV = 'pt-cv'; - public const PRIMARY_LANGUAGE_PT_GQ = 'pt-gq'; - public const PRIMARY_LANGUAGE_PT_GW = 'pt-gw'; - public const PRIMARY_LANGUAGE_PT_LU = 'pt-lu'; - public const PRIMARY_LANGUAGE_PT_MO = 'pt-mo'; - public const PRIMARY_LANGUAGE_PT_MZ = 'pt-mz'; - public const PRIMARY_LANGUAGE_PT_PT = 'pt-pt'; - public const PRIMARY_LANGUAGE_PT_ST = 'pt-st'; - public const PRIMARY_LANGUAGE_PT_TL = 'pt-tl'; - public const PRIMARY_LANGUAGE_QU = 'qu'; - public const PRIMARY_LANGUAGE_QU_BO = 'qu-bo'; - public const PRIMARY_LANGUAGE_QU_EC = 'qu-ec'; - public const PRIMARY_LANGUAGE_QU_PE = 'qu-pe'; - public const PRIMARY_LANGUAGE_RM = 'rm'; - public const PRIMARY_LANGUAGE_RM_CH = 'rm-ch'; - public const PRIMARY_LANGUAGE_RN = 'rn'; - public const PRIMARY_LANGUAGE_RN_BI = 'rn-bi'; - public const PRIMARY_LANGUAGE_RO = 'ro'; - public const PRIMARY_LANGUAGE_RO_MD = 'ro-md'; - public const PRIMARY_LANGUAGE_RO_RO = 'ro-ro'; - public const PRIMARY_LANGUAGE_ROF = 'rof'; - public const PRIMARY_LANGUAGE_ROF_TZ = 'rof-tz'; - public const PRIMARY_LANGUAGE_RU = 'ru'; - public const PRIMARY_LANGUAGE_RU_BY = 'ru-by'; - public const PRIMARY_LANGUAGE_RU_KG = 'ru-kg'; - public const PRIMARY_LANGUAGE_RU_KZ = 'ru-kz'; - public const PRIMARY_LANGUAGE_RU_MD = 'ru-md'; - public const PRIMARY_LANGUAGE_RU_RU = 'ru-ru'; - public const PRIMARY_LANGUAGE_RU_UA = 'ru-ua'; - public const PRIMARY_LANGUAGE_RW = 'rw'; - public const PRIMARY_LANGUAGE_RW_RW = 'rw-rw'; - public const PRIMARY_LANGUAGE_RWK = 'rwk'; - public const PRIMARY_LANGUAGE_RWK_TZ = 'rwk-tz'; - public const PRIMARY_LANGUAGE_SA = 'sa'; - public const PRIMARY_LANGUAGE_SAH = 'sah'; - public const PRIMARY_LANGUAGE_SAH_RU = 'sah-ru'; - public const PRIMARY_LANGUAGE_SAQ = 'saq'; - public const PRIMARY_LANGUAGE_SAQ_KE = 'saq-ke'; - public const PRIMARY_LANGUAGE_SBP = 'sbp'; - public const PRIMARY_LANGUAGE_SBP_TZ = 'sbp-tz'; - public const PRIMARY_LANGUAGE_SD = 'sd'; - public const PRIMARY_LANGUAGE_SD_PK = 'sd-pk'; - public const PRIMARY_LANGUAGE_SE = 'se'; - public const PRIMARY_LANGUAGE_SE_FI = 'se-fi'; - public const PRIMARY_LANGUAGE_SE_NO = 'se-no'; - public const PRIMARY_LANGUAGE_SE_SE = 'se-se'; - public const PRIMARY_LANGUAGE_SEH = 'seh'; - public const PRIMARY_LANGUAGE_SEH_MZ = 'seh-mz'; - public const PRIMARY_LANGUAGE_SES = 'ses'; - public const PRIMARY_LANGUAGE_SES_ML = 'ses-ml'; - public const PRIMARY_LANGUAGE_SG = 'sg'; - public const PRIMARY_LANGUAGE_SG_CF = 'sg-cf'; - public const PRIMARY_LANGUAGE_SHI = 'shi'; - public const PRIMARY_LANGUAGE_SHI_MA = 'shi-ma'; - public const PRIMARY_LANGUAGE_SI = 'si'; - public const PRIMARY_LANGUAGE_SI_LK = 'si-lk'; - public const PRIMARY_LANGUAGE_SK = 'sk'; - public const PRIMARY_LANGUAGE_SK_SK = 'sk-sk'; - public const PRIMARY_LANGUAGE_SL = 'sl'; - public const PRIMARY_LANGUAGE_SL_SI = 'sl-si'; - public const PRIMARY_LANGUAGE_SMN = 'smn'; - public const PRIMARY_LANGUAGE_SMN_FI = 'smn-fi'; - public const PRIMARY_LANGUAGE_SN = 'sn'; - public const PRIMARY_LANGUAGE_SN_ZW = 'sn-zw'; - public const PRIMARY_LANGUAGE_SO = 'so'; - public const PRIMARY_LANGUAGE_SO_DJ = 'so-dj'; - public const PRIMARY_LANGUAGE_SO_ET = 'so-et'; - public const PRIMARY_LANGUAGE_SO_KE = 'so-ke'; - public const PRIMARY_LANGUAGE_SO_SO = 'so-so'; - public const PRIMARY_LANGUAGE_SQ = 'sq'; - public const PRIMARY_LANGUAGE_SQ_AL = 'sq-al'; - public const PRIMARY_LANGUAGE_SQ_MK = 'sq-mk'; - public const PRIMARY_LANGUAGE_SQ_XK = 'sq-xk'; - public const PRIMARY_LANGUAGE_SR = 'sr'; - public const PRIMARY_LANGUAGE_SR_BA = 'sr-ba'; - public const PRIMARY_LANGUAGE_SR_CS = 'sr-cs'; - public const PRIMARY_LANGUAGE_SR_ME = 'sr-me'; - public const PRIMARY_LANGUAGE_SR_RS = 'sr-rs'; - public const PRIMARY_LANGUAGE_SR_XK = 'sr-xk'; - public const PRIMARY_LANGUAGE_SV = 'sv'; - public const PRIMARY_LANGUAGE_SV_AX = 'sv-ax'; - public const PRIMARY_LANGUAGE_SV_FI = 'sv-fi'; - public const PRIMARY_LANGUAGE_SV_SE = 'sv-se'; - public const PRIMARY_LANGUAGE_SW = 'sw'; - public const PRIMARY_LANGUAGE_SW_CD = 'sw-cd'; - public const PRIMARY_LANGUAGE_SW_KE = 'sw-ke'; - public const PRIMARY_LANGUAGE_SW_TZ = 'sw-tz'; - public const PRIMARY_LANGUAGE_SW_UG = 'sw-ug'; - public const PRIMARY_LANGUAGE_SY = 'sy'; - public const PRIMARY_LANGUAGE_TA = 'ta'; - public const PRIMARY_LANGUAGE_TA_IN = 'ta-in'; - public const PRIMARY_LANGUAGE_TA_LK = 'ta-lk'; - public const PRIMARY_LANGUAGE_TA_MY = 'ta-my'; - public const PRIMARY_LANGUAGE_TA_SG = 'ta-sg'; - public const PRIMARY_LANGUAGE_TE = 'te'; - public const PRIMARY_LANGUAGE_TE_IN = 'te-in'; - public const PRIMARY_LANGUAGE_TEO = 'teo'; - public const PRIMARY_LANGUAGE_TEO_KE = 'teo-ke'; - public const PRIMARY_LANGUAGE_TEO_UG = 'teo-ug'; - public const PRIMARY_LANGUAGE_TG = 'tg'; - public const PRIMARY_LANGUAGE_TG_TJ = 'tg-tj'; - public const PRIMARY_LANGUAGE_TH = 'th'; - public const PRIMARY_LANGUAGE_TH_TH = 'th-th'; - public const PRIMARY_LANGUAGE_TI = 'ti'; - public const PRIMARY_LANGUAGE_TI_ER = 'ti-er'; - public const PRIMARY_LANGUAGE_TI_ET = 'ti-et'; - public const PRIMARY_LANGUAGE_TK = 'tk'; - public const PRIMARY_LANGUAGE_TK_TM = 'tk-tm'; - public const PRIMARY_LANGUAGE_TO = 'to'; - public const PRIMARY_LANGUAGE_TO_TO = 'to-to'; - public const PRIMARY_LANGUAGE_TR = 'tr'; - public const PRIMARY_LANGUAGE_TR_CY = 'tr-cy'; - public const PRIMARY_LANGUAGE_TR_TR = 'tr-tr'; - public const PRIMARY_LANGUAGE_TT = 'tt'; - public const PRIMARY_LANGUAGE_TT_RU = 'tt-ru'; - public const PRIMARY_LANGUAGE_TWQ = 'twq'; - public const PRIMARY_LANGUAGE_TWQ_NE = 'twq-ne'; - public const PRIMARY_LANGUAGE_TZM = 'tzm'; - public const PRIMARY_LANGUAGE_TZM_MA = 'tzm-ma'; - public const PRIMARY_LANGUAGE_UG = 'ug'; - public const PRIMARY_LANGUAGE_UG_CN = 'ug-cn'; - public const PRIMARY_LANGUAGE_UK = 'uk'; - public const PRIMARY_LANGUAGE_UK_UA = 'uk-ua'; - public const PRIMARY_LANGUAGE_UR = 'ur'; - public const PRIMARY_LANGUAGE_UR_IN = 'ur-in'; - public const PRIMARY_LANGUAGE_UR_PK = 'ur-pk'; - public const PRIMARY_LANGUAGE_UZ = 'uz'; - public const PRIMARY_LANGUAGE_UZ_AF = 'uz-af'; - public const PRIMARY_LANGUAGE_UZ_UZ = 'uz-uz'; - public const PRIMARY_LANGUAGE_VAI = 'vai'; - public const PRIMARY_LANGUAGE_VAI_LR = 'vai-lr'; - public const PRIMARY_LANGUAGE_VI = 'vi'; - public const PRIMARY_LANGUAGE_VI_VN = 'vi-vn'; - public const PRIMARY_LANGUAGE_VO = 'vo'; - public const PRIMARY_LANGUAGE_VO_001 = 'vo-001'; - public const PRIMARY_LANGUAGE_VUN = 'vun'; - public const PRIMARY_LANGUAGE_VUN_TZ = 'vun-tz'; - public const PRIMARY_LANGUAGE_WAE = 'wae'; - public const PRIMARY_LANGUAGE_WAE_CH = 'wae-ch'; - public const PRIMARY_LANGUAGE_WO = 'wo'; - public const PRIMARY_LANGUAGE_WO_SN = 'wo-sn'; - public const PRIMARY_LANGUAGE_XOG = 'xog'; - public const PRIMARY_LANGUAGE_XOG_UG = 'xog-ug'; - public const PRIMARY_LANGUAGE_YAV = 'yav'; - public const PRIMARY_LANGUAGE_YAV_CM = 'yav-cm'; - public const PRIMARY_LANGUAGE_YO = 'yo'; - public const PRIMARY_LANGUAGE_YO_BJ = 'yo-bj'; - public const PRIMARY_LANGUAGE_YO_NG = 'yo-ng'; - public const PRIMARY_LANGUAGE_YUE = 'yue'; - public const PRIMARY_LANGUAGE_YUE_CN = 'yue-cn'; - public const PRIMARY_LANGUAGE_YUE_HK = 'yue-hk'; - public const PRIMARY_LANGUAGE_ZGH = 'zgh'; - public const PRIMARY_LANGUAGE_ZGH_MA = 'zgh-ma'; - public const PRIMARY_LANGUAGE_ZH = 'zh'; - public const PRIMARY_LANGUAGE_ZH_CN = 'zh-cn'; - public const PRIMARY_LANGUAGE_ZH_HK = 'zh-hk'; - public const PRIMARY_LANGUAGE_ZH_MO = 'zh-mo'; - public const PRIMARY_LANGUAGE_ZH_SG = 'zh-sg'; - public const PRIMARY_LANGUAGE_ZH_TW = 'zh-tw'; - public const PRIMARY_LANGUAGE_ZH_HANS = 'zh-hans'; - public const PRIMARY_LANGUAGE_ZH_HANT = 'zh-hant'; - public const PRIMARY_LANGUAGE_ZU = 'zu'; - public const PRIMARY_LANGUAGE_ZU_ZA = 'zu-za'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getLanguageAllowableValues() - { - return [ - self::LANGUAGE_AF, - self::LANGUAGE_AF_NA, - self::LANGUAGE_AF_ZA, - self::LANGUAGE_AGQ, - self::LANGUAGE_AGQ_CM, - self::LANGUAGE_AK, - self::LANGUAGE_AK_GH, - self::LANGUAGE_AM, - self::LANGUAGE_AM_ET, - self::LANGUAGE_AR, - self::LANGUAGE_AR_001, - self::LANGUAGE_AR_AE, - self::LANGUAGE_AR_BH, - self::LANGUAGE_AR_DJ, - self::LANGUAGE_AR_DZ, - self::LANGUAGE_AR_EG, - self::LANGUAGE_AR_EH, - self::LANGUAGE_AR_ER, - self::LANGUAGE_AR_IL, - self::LANGUAGE_AR_IQ, - self::LANGUAGE_AR_JO, - self::LANGUAGE_AR_KM, - self::LANGUAGE_AR_KW, - self::LANGUAGE_AR_LB, - self::LANGUAGE_AR_LY, - self::LANGUAGE_AR_MA, - self::LANGUAGE_AR_MR, - self::LANGUAGE_AR_OM, - self::LANGUAGE_AR_PS, - self::LANGUAGE_AR_QA, - self::LANGUAGE_AR_SA, - self::LANGUAGE_AR_SD, - self::LANGUAGE_AR_SO, - self::LANGUAGE_AR_SS, - self::LANGUAGE_AR_SY, - self::LANGUAGE_AR_TD, - self::LANGUAGE_AR_TN, - self::LANGUAGE_AR_YE, - self::LANGUAGE__AS, - self::LANGUAGE_AS_IN, - self::LANGUAGE_ASA, - self::LANGUAGE_ASA_TZ, - self::LANGUAGE_AST, - self::LANGUAGE_AST_ES, - self::LANGUAGE_AZ, - self::LANGUAGE_AZ_AZ, - self::LANGUAGE_BAS, - self::LANGUAGE_BAS_CM, - self::LANGUAGE_BE, - self::LANGUAGE_BE_BY, - self::LANGUAGE_BEM, - self::LANGUAGE_BEM_ZM, - self::LANGUAGE_BEZ, - self::LANGUAGE_BEZ_TZ, - self::LANGUAGE_BG, - self::LANGUAGE_BG_BG, - self::LANGUAGE_BM, - self::LANGUAGE_BM_ML, - self::LANGUAGE_BN, - self::LANGUAGE_BN_BD, - self::LANGUAGE_BN_IN, - self::LANGUAGE_BO, - self::LANGUAGE_BO_CN, - self::LANGUAGE_BO_IN, - self::LANGUAGE_BR, - self::LANGUAGE_BR_FR, - self::LANGUAGE_BRX, - self::LANGUAGE_BRX_IN, - self::LANGUAGE_BS, - self::LANGUAGE_BS_BA, - self::LANGUAGE_CA, - self::LANGUAGE_CA_AD, - self::LANGUAGE_CA_ES, - self::LANGUAGE_CA_FR, - self::LANGUAGE_CA_IT, - self::LANGUAGE_CCP, - self::LANGUAGE_CCP_BD, - self::LANGUAGE_CCP_IN, - self::LANGUAGE_CE, - self::LANGUAGE_CE_RU, - self::LANGUAGE_CGG, - self::LANGUAGE_CGG_UG, - self::LANGUAGE_CHR, - self::LANGUAGE_CHR_US, - self::LANGUAGE_CKB, - self::LANGUAGE_CKB_IQ, - self::LANGUAGE_CKB_IR, - self::LANGUAGE_CS, - self::LANGUAGE_CS_CZ, - self::LANGUAGE_CU, - self::LANGUAGE_CU_RU, - self::LANGUAGE_CY, - self::LANGUAGE_CY_GB, - self::LANGUAGE_DA, - self::LANGUAGE_DA_DK, - self::LANGUAGE_DA_GL, - self::LANGUAGE_DAV, - self::LANGUAGE_DAV_KE, - self::LANGUAGE_DE, - self::LANGUAGE_DE_AT, - self::LANGUAGE_DE_BE, - self::LANGUAGE_DE_CH, - self::LANGUAGE_DE_DE, - self::LANGUAGE_DE_GR, - self::LANGUAGE_DE_IT, - self::LANGUAGE_DE_LI, - self::LANGUAGE_DE_LU, - self::LANGUAGE_DJE, - self::LANGUAGE_DJE_NE, - self::LANGUAGE_DSB, - self::LANGUAGE_DSB_DE, - self::LANGUAGE_DUA, - self::LANGUAGE_DUA_CM, - self::LANGUAGE_DYO, - self::LANGUAGE_DYO_SN, - self::LANGUAGE_DZ, - self::LANGUAGE_DZ_BT, - self::LANGUAGE_EBU, - self::LANGUAGE_EBU_KE, - self::LANGUAGE_EE, - self::LANGUAGE_EE_GH, - self::LANGUAGE_EE_TG, - self::LANGUAGE_EL, - self::LANGUAGE_EL_CY, - self::LANGUAGE_EL_GR, - self::LANGUAGE_EN, - self::LANGUAGE_EN_001, - self::LANGUAGE_EN_150, - self::LANGUAGE_EN_AE, - self::LANGUAGE_EN_AG, - self::LANGUAGE_EN_AI, - self::LANGUAGE_EN_AS, - self::LANGUAGE_EN_AT, - self::LANGUAGE_EN_AU, - self::LANGUAGE_EN_BB, - self::LANGUAGE_EN_BE, - self::LANGUAGE_EN_BI, - self::LANGUAGE_EN_BM, - self::LANGUAGE_EN_BS, - self::LANGUAGE_EN_BW, - self::LANGUAGE_EN_BZ, - self::LANGUAGE_EN_CA, - self::LANGUAGE_EN_CC, - self::LANGUAGE_EN_CH, - self::LANGUAGE_EN_CK, - self::LANGUAGE_EN_CM, - self::LANGUAGE_EN_CX, - self::LANGUAGE_EN_CY, - self::LANGUAGE_EN_DE, - self::LANGUAGE_EN_DG, - self::LANGUAGE_EN_DK, - self::LANGUAGE_EN_DM, - self::LANGUAGE_EN_ER, - self::LANGUAGE_EN_FI, - self::LANGUAGE_EN_FJ, - self::LANGUAGE_EN_FK, - self::LANGUAGE_EN_FM, - self::LANGUAGE_EN_GB, - self::LANGUAGE_EN_GD, - self::LANGUAGE_EN_GG, - self::LANGUAGE_EN_GH, - self::LANGUAGE_EN_GI, - self::LANGUAGE_EN_GM, - self::LANGUAGE_EN_GU, - self::LANGUAGE_EN_GY, - self::LANGUAGE_EN_HK, - self::LANGUAGE_EN_IE, - self::LANGUAGE_EN_IL, - self::LANGUAGE_EN_IM, - self::LANGUAGE_EN_IN, - self::LANGUAGE_EN_IO, - self::LANGUAGE_EN_JE, - self::LANGUAGE_EN_JM, - self::LANGUAGE_EN_KE, - self::LANGUAGE_EN_KI, - self::LANGUAGE_EN_KN, - self::LANGUAGE_EN_KY, - self::LANGUAGE_EN_LC, - self::LANGUAGE_EN_LR, - self::LANGUAGE_EN_LS, - self::LANGUAGE_EN_LU, - self::LANGUAGE_EN_MG, - self::LANGUAGE_EN_MH, - self::LANGUAGE_EN_MO, - self::LANGUAGE_EN_MP, - self::LANGUAGE_EN_MS, - self::LANGUAGE_EN_MT, - self::LANGUAGE_EN_MU, - self::LANGUAGE_EN_MW, - self::LANGUAGE_EN_MY, - self::LANGUAGE_EN_NA, - self::LANGUAGE_EN_NF, - self::LANGUAGE_EN_NG, - self::LANGUAGE_EN_NL, - self::LANGUAGE_EN_NR, - self::LANGUAGE_EN_NU, - self::LANGUAGE_EN_NZ, - self::LANGUAGE_EN_PG, - self::LANGUAGE_EN_PH, - self::LANGUAGE_EN_PK, - self::LANGUAGE_EN_PN, - self::LANGUAGE_EN_PR, - self::LANGUAGE_EN_PW, - self::LANGUAGE_EN_RW, - self::LANGUAGE_EN_SB, - self::LANGUAGE_EN_SC, - self::LANGUAGE_EN_SD, - self::LANGUAGE_EN_SE, - self::LANGUAGE_EN_SG, - self::LANGUAGE_EN_SH, - self::LANGUAGE_EN_SI, - self::LANGUAGE_EN_SL, - self::LANGUAGE_EN_SS, - self::LANGUAGE_EN_SX, - self::LANGUAGE_EN_SZ, - self::LANGUAGE_EN_TC, - self::LANGUAGE_EN_TK, - self::LANGUAGE_EN_TO, - self::LANGUAGE_EN_TT, - self::LANGUAGE_EN_TV, - self::LANGUAGE_EN_TZ, - self::LANGUAGE_EN_UG, - self::LANGUAGE_EN_UM, - self::LANGUAGE_EN_US, - self::LANGUAGE_EN_VC, - self::LANGUAGE_EN_VG, - self::LANGUAGE_EN_VI, - self::LANGUAGE_EN_VU, - self::LANGUAGE_EN_WS, - self::LANGUAGE_EN_ZA, - self::LANGUAGE_EN_ZM, - self::LANGUAGE_EN_ZW, - self::LANGUAGE_EO, - self::LANGUAGE_EO_001, - self::LANGUAGE_ES, - self::LANGUAGE_ES_419, - self::LANGUAGE_ES_AR, - self::LANGUAGE_ES_BO, - self::LANGUAGE_ES_BR, - self::LANGUAGE_ES_BZ, - self::LANGUAGE_ES_CL, - self::LANGUAGE_ES_CO, - self::LANGUAGE_ES_CR, - self::LANGUAGE_ES_CU, - self::LANGUAGE_ES_DO, - self::LANGUAGE_ES_EA, - self::LANGUAGE_ES_EC, - self::LANGUAGE_ES_ES, - self::LANGUAGE_ES_GQ, - self::LANGUAGE_ES_GT, - self::LANGUAGE_ES_HN, - self::LANGUAGE_ES_IC, - self::LANGUAGE_ES_MX, - self::LANGUAGE_ES_NI, - self::LANGUAGE_ES_PA, - self::LANGUAGE_ES_PE, - self::LANGUAGE_ES_PH, - self::LANGUAGE_ES_PR, - self::LANGUAGE_ES_PY, - self::LANGUAGE_ES_SV, - self::LANGUAGE_ES_US, - self::LANGUAGE_ES_UY, - self::LANGUAGE_ES_VE, - self::LANGUAGE_ET, - self::LANGUAGE_ET_EE, - self::LANGUAGE_EU, - self::LANGUAGE_EU_ES, - self::LANGUAGE_EWO, - self::LANGUAGE_EWO_CM, - self::LANGUAGE_FA, - self::LANGUAGE_FA_AF, - self::LANGUAGE_FA_IR, - self::LANGUAGE_FF, - self::LANGUAGE_FF_CM, - self::LANGUAGE_FF_GN, - self::LANGUAGE_FF_MR, - self::LANGUAGE_FF_SN, - self::LANGUAGE_FI, - self::LANGUAGE_FI_FI, - self::LANGUAGE_FIL, - self::LANGUAGE_FIL_PH, - self::LANGUAGE_FO, - self::LANGUAGE_FO_DK, - self::LANGUAGE_FO_FO, - self::LANGUAGE_FR, - self::LANGUAGE_FR_BE, - self::LANGUAGE_FR_BF, - self::LANGUAGE_FR_BI, - self::LANGUAGE_FR_BJ, - self::LANGUAGE_FR_BL, - self::LANGUAGE_FR_CA, - self::LANGUAGE_FR_CD, - self::LANGUAGE_FR_CF, - self::LANGUAGE_FR_CG, - self::LANGUAGE_FR_CH, - self::LANGUAGE_FR_CI, - self::LANGUAGE_FR_CM, - self::LANGUAGE_FR_DJ, - self::LANGUAGE_FR_DZ, - self::LANGUAGE_FR_FR, - self::LANGUAGE_FR_GA, - self::LANGUAGE_FR_GF, - self::LANGUAGE_FR_GN, - self::LANGUAGE_FR_GP, - self::LANGUAGE_FR_GQ, - self::LANGUAGE_FR_HT, - self::LANGUAGE_FR_KM, - self::LANGUAGE_FR_LU, - self::LANGUAGE_FR_MA, - self::LANGUAGE_FR_MC, - self::LANGUAGE_FR_MF, - self::LANGUAGE_FR_MG, - self::LANGUAGE_FR_ML, - self::LANGUAGE_FR_MQ, - self::LANGUAGE_FR_MR, - self::LANGUAGE_FR_MU, - self::LANGUAGE_FR_NC, - self::LANGUAGE_FR_NE, - self::LANGUAGE_FR_PF, - self::LANGUAGE_FR_PM, - self::LANGUAGE_FR_RE, - self::LANGUAGE_FR_RW, - self::LANGUAGE_FR_SC, - self::LANGUAGE_FR_SN, - self::LANGUAGE_FR_SY, - self::LANGUAGE_FR_TD, - self::LANGUAGE_FR_TG, - self::LANGUAGE_FR_TN, - self::LANGUAGE_FR_VU, - self::LANGUAGE_FR_WF, - self::LANGUAGE_FR_YT, - self::LANGUAGE_FUR, - self::LANGUAGE_FUR_IT, - self::LANGUAGE_FY, - self::LANGUAGE_FY_NL, - self::LANGUAGE_GA, - self::LANGUAGE_GA_IE, - self::LANGUAGE_GD, - self::LANGUAGE_GD_GB, - self::LANGUAGE_GL, - self::LANGUAGE_GL_ES, - self::LANGUAGE_GSW, - self::LANGUAGE_GSW_CH, - self::LANGUAGE_GSW_FR, - self::LANGUAGE_GSW_LI, - self::LANGUAGE_GU, - self::LANGUAGE_GU_IN, - self::LANGUAGE_GUZ, - self::LANGUAGE_GUZ_KE, - self::LANGUAGE_GV, - self::LANGUAGE_GV_IM, - self::LANGUAGE_HA, - self::LANGUAGE_HA_GH, - self::LANGUAGE_HA_NE, - self::LANGUAGE_HA_NG, - self::LANGUAGE_HAW, - self::LANGUAGE_HAW_US, - self::LANGUAGE_HE, - self::LANGUAGE_HI, - self::LANGUAGE_HI_IN, - self::LANGUAGE_HR, - self::LANGUAGE_HR_BA, - self::LANGUAGE_HR_HR, - self::LANGUAGE_HSB, - self::LANGUAGE_HSB_DE, - self::LANGUAGE_HU, - self::LANGUAGE_HU_HU, - self::LANGUAGE_HY, - self::LANGUAGE_HY_AM, - self::LANGUAGE_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, - self::LANGUAGE_IT_CH, - 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_KA, - self::LANGUAGE_KA_GE, - self::LANGUAGE_KAB, - self::LANGUAGE_KAB_DZ, - self::LANGUAGE_KAM, - self::LANGUAGE_KAM_KE, - self::LANGUAGE_KDE, - self::LANGUAGE_KDE_TZ, - self::LANGUAGE_KEA, - self::LANGUAGE_KEA_CV, - self::LANGUAGE_KHQ, - self::LANGUAGE_KHQ_ML, - self::LANGUAGE_KI, - self::LANGUAGE_KI_KE, - self::LANGUAGE_KK, - self::LANGUAGE_KK_KZ, - self::LANGUAGE_KKJ, - self::LANGUAGE_KKJ_CM, - self::LANGUAGE_KL, - self::LANGUAGE_KL_GL, - self::LANGUAGE_KLN, - self::LANGUAGE_KLN_KE, - self::LANGUAGE_KM, - self::LANGUAGE_KM_KH, - self::LANGUAGE_KN, - self::LANGUAGE_KN_IN, - self::LANGUAGE_KO, - self::LANGUAGE_KO_KP, - self::LANGUAGE_KO_KR, - self::LANGUAGE_KOK, - self::LANGUAGE_KOK_IN, - self::LANGUAGE_KS, - self::LANGUAGE_KS_IN, - self::LANGUAGE_KSB, - self::LANGUAGE_KSB_TZ, - self::LANGUAGE_KSF, - self::LANGUAGE_KSF_CM, - self::LANGUAGE_KSH, - self::LANGUAGE_KSH_DE, - self::LANGUAGE_KW, - self::LANGUAGE_KW_GB, - self::LANGUAGE_KY, - self::LANGUAGE_KY_KG, - self::LANGUAGE_LAG, - self::LANGUAGE_LAG_TZ, - self::LANGUAGE_LB, - self::LANGUAGE_LB_LU, - self::LANGUAGE_LG, - self::LANGUAGE_LG_UG, - self::LANGUAGE_LKT, - self::LANGUAGE_LKT_US, - self::LANGUAGE_LN, - self::LANGUAGE_LN_AO, - self::LANGUAGE_LN_CD, - self::LANGUAGE_LN_CF, - self::LANGUAGE_LN_CG, - self::LANGUAGE_LO, - self::LANGUAGE_LO_LA, - self::LANGUAGE_LRC, - self::LANGUAGE_LRC_IQ, - self::LANGUAGE_LRC_IR, - self::LANGUAGE_LT, - self::LANGUAGE_LT_LT, - self::LANGUAGE_LU, - self::LANGUAGE_LU_CD, - self::LANGUAGE_LUO, - self::LANGUAGE_LUO_KE, - self::LANGUAGE_LUY, - self::LANGUAGE_LUY_KE, - self::LANGUAGE_LV, - self::LANGUAGE_LV_LV, - self::LANGUAGE_MAS, - self::LANGUAGE_MAS_KE, - self::LANGUAGE_MAS_TZ, - self::LANGUAGE_MER, - self::LANGUAGE_MER_KE, - self::LANGUAGE_MFE, - self::LANGUAGE_MFE_MU, - self::LANGUAGE_MG, - self::LANGUAGE_MG_MG, - self::LANGUAGE_MGH, - self::LANGUAGE_MGH_MZ, - self::LANGUAGE_MGO, - self::LANGUAGE_MGO_CM, - self::LANGUAGE_MK, - self::LANGUAGE_MK_MK, - self::LANGUAGE_ML, - self::LANGUAGE_ML_IN, - self::LANGUAGE_MN, - self::LANGUAGE_MN_MN, - self::LANGUAGE_MR, - self::LANGUAGE_MR_IN, - self::LANGUAGE_MS, - self::LANGUAGE_MS_BN, - self::LANGUAGE_MS_MY, - self::LANGUAGE_MS_SG, - self::LANGUAGE_MT, - self::LANGUAGE_MT_MT, - self::LANGUAGE_MUA, - self::LANGUAGE_MUA_CM, - self::LANGUAGE_MY, - self::LANGUAGE_MY_MM, - self::LANGUAGE_MZN, - self::LANGUAGE_MZN_IR, - self::LANGUAGE_NAQ, - self::LANGUAGE_NAQ_NA, - self::LANGUAGE_NB, - self::LANGUAGE_NB_NO, - self::LANGUAGE_NB_SJ, - self::LANGUAGE_ND, - self::LANGUAGE_ND_ZW, - self::LANGUAGE_NDS, - self::LANGUAGE_NDS_DE, - self::LANGUAGE_NDS_NL, - self::LANGUAGE_NE, - self::LANGUAGE_NE_IN, - self::LANGUAGE_NE_NP, - self::LANGUAGE_NL, - self::LANGUAGE_NL_AW, - self::LANGUAGE_NL_BE, - self::LANGUAGE_NL_CH, - self::LANGUAGE_NL_BQ, - self::LANGUAGE_NL_CW, - self::LANGUAGE_NL_LU, - self::LANGUAGE_NL_NL, - self::LANGUAGE_NL_SR, - self::LANGUAGE_NL_SX, - self::LANGUAGE_NMG, - self::LANGUAGE_NMG_CM, - self::LANGUAGE_NN, - self::LANGUAGE_NN_NO, - self::LANGUAGE_NNH, - self::LANGUAGE_NNH_CM, - self::LANGUAGE_NO, - self::LANGUAGE_NO_NO, - self::LANGUAGE_NUS, - self::LANGUAGE_NUS_SS, - self::LANGUAGE_NYN, - self::LANGUAGE_NYN_UG, - self::LANGUAGE_OM, - self::LANGUAGE_OM_ET, - self::LANGUAGE_OM_KE, - self::LANGUAGE__OR, - self::LANGUAGE_OR_IN, - self::LANGUAGE_OS, - self::LANGUAGE_OS_GE, - self::LANGUAGE_OS_RU, - self::LANGUAGE_PA, - self::LANGUAGE_PA_IN, - self::LANGUAGE_PA_PK, - self::LANGUAGE_PL, - self::LANGUAGE_PL_PL, - self::LANGUAGE_PRG, - self::LANGUAGE_PRG_001, - self::LANGUAGE_PS, - self::LANGUAGE_PS_AF, - self::LANGUAGE_PT, - self::LANGUAGE_PT_AO, - self::LANGUAGE_PT_BR, - self::LANGUAGE_PT_CH, - self::LANGUAGE_PT_CV, - self::LANGUAGE_PT_GQ, - self::LANGUAGE_PT_GW, - self::LANGUAGE_PT_LU, - self::LANGUAGE_PT_MO, - self::LANGUAGE_PT_MZ, - self::LANGUAGE_PT_PT, - self::LANGUAGE_PT_ST, - self::LANGUAGE_PT_TL, - self::LANGUAGE_QU, - self::LANGUAGE_QU_BO, - self::LANGUAGE_QU_EC, - self::LANGUAGE_QU_PE, - self::LANGUAGE_RM, - self::LANGUAGE_RM_CH, - self::LANGUAGE_RN, - self::LANGUAGE_RN_BI, - self::LANGUAGE_RO, - self::LANGUAGE_RO_MD, - self::LANGUAGE_RO_RO, - self::LANGUAGE_ROF, - self::LANGUAGE_ROF_TZ, - self::LANGUAGE_RU, - self::LANGUAGE_RU_BY, - self::LANGUAGE_RU_KG, - self::LANGUAGE_RU_KZ, - self::LANGUAGE_RU_MD, - self::LANGUAGE_RU_RU, - self::LANGUAGE_RU_UA, - self::LANGUAGE_RW, - self::LANGUAGE_RW_RW, - self::LANGUAGE_RWK, - self::LANGUAGE_RWK_TZ, - self::LANGUAGE_SA, - self::LANGUAGE_SAH, - self::LANGUAGE_SAH_RU, - self::LANGUAGE_SAQ, - self::LANGUAGE_SAQ_KE, - self::LANGUAGE_SBP, - self::LANGUAGE_SBP_TZ, - self::LANGUAGE_SD, - self::LANGUAGE_SD_PK, - self::LANGUAGE_SE, - self::LANGUAGE_SE_FI, - self::LANGUAGE_SE_NO, - self::LANGUAGE_SE_SE, - self::LANGUAGE_SEH, - self::LANGUAGE_SEH_MZ, - self::LANGUAGE_SES, - self::LANGUAGE_SES_ML, - self::LANGUAGE_SG, - self::LANGUAGE_SG_CF, - self::LANGUAGE_SHI, - self::LANGUAGE_SHI_MA, - self::LANGUAGE_SI, - self::LANGUAGE_SI_LK, - self::LANGUAGE_SK, - self::LANGUAGE_SK_SK, - self::LANGUAGE_SL, - self::LANGUAGE_SL_SI, - self::LANGUAGE_SMN, - self::LANGUAGE_SMN_FI, - self::LANGUAGE_SN, - self::LANGUAGE_SN_ZW, - self::LANGUAGE_SO, - self::LANGUAGE_SO_DJ, - self::LANGUAGE_SO_ET, - self::LANGUAGE_SO_KE, - self::LANGUAGE_SO_SO, - self::LANGUAGE_SQ, - self::LANGUAGE_SQ_AL, - self::LANGUAGE_SQ_MK, - self::LANGUAGE_SQ_XK, - self::LANGUAGE_SR, - self::LANGUAGE_SR_BA, - self::LANGUAGE_SR_CS, - self::LANGUAGE_SR_ME, - self::LANGUAGE_SR_RS, - self::LANGUAGE_SR_XK, - self::LANGUAGE_SV, - self::LANGUAGE_SV_AX, - self::LANGUAGE_SV_FI, - self::LANGUAGE_SV_SE, - self::LANGUAGE_SW, - self::LANGUAGE_SW_CD, - self::LANGUAGE_SW_KE, - self::LANGUAGE_SW_TZ, - self::LANGUAGE_SW_UG, - self::LANGUAGE_SY, - self::LANGUAGE_TA, - self::LANGUAGE_TA_IN, - self::LANGUAGE_TA_LK, - self::LANGUAGE_TA_MY, - self::LANGUAGE_TA_SG, - self::LANGUAGE_TE, - self::LANGUAGE_TE_IN, - self::LANGUAGE_TEO, - self::LANGUAGE_TEO_KE, - self::LANGUAGE_TEO_UG, - self::LANGUAGE_TG, - self::LANGUAGE_TG_TJ, - self::LANGUAGE_TH, - self::LANGUAGE_TH_TH, - self::LANGUAGE_TI, - self::LANGUAGE_TI_ER, - self::LANGUAGE_TI_ET, - self::LANGUAGE_TK, - self::LANGUAGE_TK_TM, - self::LANGUAGE_TO, - self::LANGUAGE_TO_TO, - self::LANGUAGE_TR, - self::LANGUAGE_TR_CY, - self::LANGUAGE_TR_TR, - self::LANGUAGE_TT, - self::LANGUAGE_TT_RU, - self::LANGUAGE_TWQ, - self::LANGUAGE_TWQ_NE, - self::LANGUAGE_TZM, - self::LANGUAGE_TZM_MA, - self::LANGUAGE_UG, - self::LANGUAGE_UG_CN, - self::LANGUAGE_UK, - self::LANGUAGE_UK_UA, - self::LANGUAGE_UR, - self::LANGUAGE_UR_IN, - self::LANGUAGE_UR_PK, - self::LANGUAGE_UZ, - self::LANGUAGE_UZ_AF, - self::LANGUAGE_UZ_UZ, - self::LANGUAGE_VAI, - self::LANGUAGE_VAI_LR, - self::LANGUAGE_VI, - self::LANGUAGE_VI_VN, - self::LANGUAGE_VO, - self::LANGUAGE_VO_001, - self::LANGUAGE_VUN, - self::LANGUAGE_VUN_TZ, - self::LANGUAGE_WAE, - self::LANGUAGE_WAE_CH, - self::LANGUAGE_WO, - self::LANGUAGE_WO_SN, - self::LANGUAGE_XOG, - self::LANGUAGE_XOG_UG, - self::LANGUAGE_YAV, - self::LANGUAGE_YAV_CM, - self::LANGUAGE_YO, - self::LANGUAGE_YO_BJ, - self::LANGUAGE_YO_NG, - self::LANGUAGE_YUE, - self::LANGUAGE_YUE_CN, - self::LANGUAGE_YUE_HK, - self::LANGUAGE_ZGH, - self::LANGUAGE_ZGH_MA, - self::LANGUAGE_ZH, - self::LANGUAGE_ZH_CN, - 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 getPrimaryLanguageAllowableValues() - { - return [ - self::PRIMARY_LANGUAGE_AF, - self::PRIMARY_LANGUAGE_AF_NA, - self::PRIMARY_LANGUAGE_AF_ZA, - self::PRIMARY_LANGUAGE_AGQ, - self::PRIMARY_LANGUAGE_AGQ_CM, - self::PRIMARY_LANGUAGE_AK, - self::PRIMARY_LANGUAGE_AK_GH, - self::PRIMARY_LANGUAGE_AM, - self::PRIMARY_LANGUAGE_AM_ET, - self::PRIMARY_LANGUAGE_AR, - self::PRIMARY_LANGUAGE_AR_001, - self::PRIMARY_LANGUAGE_AR_AE, - self::PRIMARY_LANGUAGE_AR_BH, - self::PRIMARY_LANGUAGE_AR_DJ, - self::PRIMARY_LANGUAGE_AR_DZ, - self::PRIMARY_LANGUAGE_AR_EG, - self::PRIMARY_LANGUAGE_AR_EH, - self::PRIMARY_LANGUAGE_AR_ER, - self::PRIMARY_LANGUAGE_AR_IL, - self::PRIMARY_LANGUAGE_AR_IQ, - self::PRIMARY_LANGUAGE_AR_JO, - self::PRIMARY_LANGUAGE_AR_KM, - self::PRIMARY_LANGUAGE_AR_KW, - self::PRIMARY_LANGUAGE_AR_LB, - self::PRIMARY_LANGUAGE_AR_LY, - self::PRIMARY_LANGUAGE_AR_MA, - self::PRIMARY_LANGUAGE_AR_MR, - self::PRIMARY_LANGUAGE_AR_OM, - self::PRIMARY_LANGUAGE_AR_PS, - self::PRIMARY_LANGUAGE_AR_QA, - self::PRIMARY_LANGUAGE_AR_SA, - self::PRIMARY_LANGUAGE_AR_SD, - self::PRIMARY_LANGUAGE_AR_SO, - self::PRIMARY_LANGUAGE_AR_SS, - self::PRIMARY_LANGUAGE_AR_SY, - self::PRIMARY_LANGUAGE_AR_TD, - self::PRIMARY_LANGUAGE_AR_TN, - self::PRIMARY_LANGUAGE_AR_YE, - self::PRIMARY_LANGUAGE__AS, - self::PRIMARY_LANGUAGE_AS_IN, - self::PRIMARY_LANGUAGE_ASA, - self::PRIMARY_LANGUAGE_ASA_TZ, - self::PRIMARY_LANGUAGE_AST, - self::PRIMARY_LANGUAGE_AST_ES, - self::PRIMARY_LANGUAGE_AZ, - self::PRIMARY_LANGUAGE_AZ_AZ, - self::PRIMARY_LANGUAGE_BAS, - self::PRIMARY_LANGUAGE_BAS_CM, - self::PRIMARY_LANGUAGE_BE, - self::PRIMARY_LANGUAGE_BE_BY, - self::PRIMARY_LANGUAGE_BEM, - self::PRIMARY_LANGUAGE_BEM_ZM, - self::PRIMARY_LANGUAGE_BEZ, - self::PRIMARY_LANGUAGE_BEZ_TZ, - self::PRIMARY_LANGUAGE_BG, - self::PRIMARY_LANGUAGE_BG_BG, - self::PRIMARY_LANGUAGE_BM, - self::PRIMARY_LANGUAGE_BM_ML, - self::PRIMARY_LANGUAGE_BN, - self::PRIMARY_LANGUAGE_BN_BD, - self::PRIMARY_LANGUAGE_BN_IN, - self::PRIMARY_LANGUAGE_BO, - self::PRIMARY_LANGUAGE_BO_CN, - self::PRIMARY_LANGUAGE_BO_IN, - self::PRIMARY_LANGUAGE_BR, - self::PRIMARY_LANGUAGE_BR_FR, - self::PRIMARY_LANGUAGE_BRX, - self::PRIMARY_LANGUAGE_BRX_IN, - self::PRIMARY_LANGUAGE_BS, - self::PRIMARY_LANGUAGE_BS_BA, - self::PRIMARY_LANGUAGE_CA, - self::PRIMARY_LANGUAGE_CA_AD, - self::PRIMARY_LANGUAGE_CA_ES, - self::PRIMARY_LANGUAGE_CA_FR, - self::PRIMARY_LANGUAGE_CA_IT, - self::PRIMARY_LANGUAGE_CCP, - self::PRIMARY_LANGUAGE_CCP_BD, - self::PRIMARY_LANGUAGE_CCP_IN, - self::PRIMARY_LANGUAGE_CE, - self::PRIMARY_LANGUAGE_CE_RU, - self::PRIMARY_LANGUAGE_CGG, - self::PRIMARY_LANGUAGE_CGG_UG, - self::PRIMARY_LANGUAGE_CHR, - self::PRIMARY_LANGUAGE_CHR_US, - self::PRIMARY_LANGUAGE_CKB, - self::PRIMARY_LANGUAGE_CKB_IQ, - self::PRIMARY_LANGUAGE_CKB_IR, - self::PRIMARY_LANGUAGE_CS, - self::PRIMARY_LANGUAGE_CS_CZ, - self::PRIMARY_LANGUAGE_CU, - self::PRIMARY_LANGUAGE_CU_RU, - self::PRIMARY_LANGUAGE_CY, - self::PRIMARY_LANGUAGE_CY_GB, - self::PRIMARY_LANGUAGE_DA, - self::PRIMARY_LANGUAGE_DA_DK, - self::PRIMARY_LANGUAGE_DA_GL, - self::PRIMARY_LANGUAGE_DAV, - self::PRIMARY_LANGUAGE_DAV_KE, - self::PRIMARY_LANGUAGE_DE, - self::PRIMARY_LANGUAGE_DE_AT, - self::PRIMARY_LANGUAGE_DE_BE, - self::PRIMARY_LANGUAGE_DE_CH, - self::PRIMARY_LANGUAGE_DE_DE, - self::PRIMARY_LANGUAGE_DE_GR, - self::PRIMARY_LANGUAGE_DE_IT, - self::PRIMARY_LANGUAGE_DE_LI, - self::PRIMARY_LANGUAGE_DE_LU, - self::PRIMARY_LANGUAGE_DJE, - self::PRIMARY_LANGUAGE_DJE_NE, - self::PRIMARY_LANGUAGE_DSB, - self::PRIMARY_LANGUAGE_DSB_DE, - self::PRIMARY_LANGUAGE_DUA, - self::PRIMARY_LANGUAGE_DUA_CM, - self::PRIMARY_LANGUAGE_DYO, - self::PRIMARY_LANGUAGE_DYO_SN, - self::PRIMARY_LANGUAGE_DZ, - self::PRIMARY_LANGUAGE_DZ_BT, - self::PRIMARY_LANGUAGE_EBU, - self::PRIMARY_LANGUAGE_EBU_KE, - self::PRIMARY_LANGUAGE_EE, - self::PRIMARY_LANGUAGE_EE_GH, - self::PRIMARY_LANGUAGE_EE_TG, - self::PRIMARY_LANGUAGE_EL, - self::PRIMARY_LANGUAGE_EL_CY, - self::PRIMARY_LANGUAGE_EL_GR, - self::PRIMARY_LANGUAGE_EN, - self::PRIMARY_LANGUAGE_EN_001, - self::PRIMARY_LANGUAGE_EN_150, - self::PRIMARY_LANGUAGE_EN_AE, - self::PRIMARY_LANGUAGE_EN_AG, - self::PRIMARY_LANGUAGE_EN_AI, - self::PRIMARY_LANGUAGE_EN_AS, - self::PRIMARY_LANGUAGE_EN_AT, - self::PRIMARY_LANGUAGE_EN_AU, - self::PRIMARY_LANGUAGE_EN_BB, - self::PRIMARY_LANGUAGE_EN_BE, - self::PRIMARY_LANGUAGE_EN_BI, - self::PRIMARY_LANGUAGE_EN_BM, - self::PRIMARY_LANGUAGE_EN_BS, - self::PRIMARY_LANGUAGE_EN_BW, - self::PRIMARY_LANGUAGE_EN_BZ, - self::PRIMARY_LANGUAGE_EN_CA, - self::PRIMARY_LANGUAGE_EN_CC, - self::PRIMARY_LANGUAGE_EN_CH, - self::PRIMARY_LANGUAGE_EN_CK, - self::PRIMARY_LANGUAGE_EN_CM, - self::PRIMARY_LANGUAGE_EN_CX, - self::PRIMARY_LANGUAGE_EN_CY, - self::PRIMARY_LANGUAGE_EN_DE, - self::PRIMARY_LANGUAGE_EN_DG, - self::PRIMARY_LANGUAGE_EN_DK, - self::PRIMARY_LANGUAGE_EN_DM, - self::PRIMARY_LANGUAGE_EN_ER, - self::PRIMARY_LANGUAGE_EN_FI, - self::PRIMARY_LANGUAGE_EN_FJ, - self::PRIMARY_LANGUAGE_EN_FK, - self::PRIMARY_LANGUAGE_EN_FM, - self::PRIMARY_LANGUAGE_EN_GB, - self::PRIMARY_LANGUAGE_EN_GD, - self::PRIMARY_LANGUAGE_EN_GG, - self::PRIMARY_LANGUAGE_EN_GH, - self::PRIMARY_LANGUAGE_EN_GI, - self::PRIMARY_LANGUAGE_EN_GM, - self::PRIMARY_LANGUAGE_EN_GU, - self::PRIMARY_LANGUAGE_EN_GY, - self::PRIMARY_LANGUAGE_EN_HK, - self::PRIMARY_LANGUAGE_EN_IE, - self::PRIMARY_LANGUAGE_EN_IL, - self::PRIMARY_LANGUAGE_EN_IM, - self::PRIMARY_LANGUAGE_EN_IN, - self::PRIMARY_LANGUAGE_EN_IO, - self::PRIMARY_LANGUAGE_EN_JE, - self::PRIMARY_LANGUAGE_EN_JM, - self::PRIMARY_LANGUAGE_EN_KE, - self::PRIMARY_LANGUAGE_EN_KI, - self::PRIMARY_LANGUAGE_EN_KN, - self::PRIMARY_LANGUAGE_EN_KY, - self::PRIMARY_LANGUAGE_EN_LC, - self::PRIMARY_LANGUAGE_EN_LR, - self::PRIMARY_LANGUAGE_EN_LS, - self::PRIMARY_LANGUAGE_EN_LU, - self::PRIMARY_LANGUAGE_EN_MG, - self::PRIMARY_LANGUAGE_EN_MH, - self::PRIMARY_LANGUAGE_EN_MO, - self::PRIMARY_LANGUAGE_EN_MP, - self::PRIMARY_LANGUAGE_EN_MS, - self::PRIMARY_LANGUAGE_EN_MT, - self::PRIMARY_LANGUAGE_EN_MU, - self::PRIMARY_LANGUAGE_EN_MW, - self::PRIMARY_LANGUAGE_EN_MY, - self::PRIMARY_LANGUAGE_EN_NA, - self::PRIMARY_LANGUAGE_EN_NF, - self::PRIMARY_LANGUAGE_EN_NG, - self::PRIMARY_LANGUAGE_EN_NL, - self::PRIMARY_LANGUAGE_EN_NR, - self::PRIMARY_LANGUAGE_EN_NU, - self::PRIMARY_LANGUAGE_EN_NZ, - self::PRIMARY_LANGUAGE_EN_PG, - self::PRIMARY_LANGUAGE_EN_PH, - self::PRIMARY_LANGUAGE_EN_PK, - self::PRIMARY_LANGUAGE_EN_PN, - self::PRIMARY_LANGUAGE_EN_PR, - self::PRIMARY_LANGUAGE_EN_PW, - self::PRIMARY_LANGUAGE_EN_RW, - self::PRIMARY_LANGUAGE_EN_SB, - self::PRIMARY_LANGUAGE_EN_SC, - self::PRIMARY_LANGUAGE_EN_SD, - self::PRIMARY_LANGUAGE_EN_SE, - self::PRIMARY_LANGUAGE_EN_SG, - self::PRIMARY_LANGUAGE_EN_SH, - self::PRIMARY_LANGUAGE_EN_SI, - self::PRIMARY_LANGUAGE_EN_SL, - self::PRIMARY_LANGUAGE_EN_SS, - self::PRIMARY_LANGUAGE_EN_SX, - self::PRIMARY_LANGUAGE_EN_SZ, - self::PRIMARY_LANGUAGE_EN_TC, - self::PRIMARY_LANGUAGE_EN_TK, - self::PRIMARY_LANGUAGE_EN_TO, - self::PRIMARY_LANGUAGE_EN_TT, - self::PRIMARY_LANGUAGE_EN_TV, - self::PRIMARY_LANGUAGE_EN_TZ, - self::PRIMARY_LANGUAGE_EN_UG, - self::PRIMARY_LANGUAGE_EN_UM, - self::PRIMARY_LANGUAGE_EN_US, - self::PRIMARY_LANGUAGE_EN_VC, - self::PRIMARY_LANGUAGE_EN_VG, - self::PRIMARY_LANGUAGE_EN_VI, - self::PRIMARY_LANGUAGE_EN_VU, - self::PRIMARY_LANGUAGE_EN_WS, - self::PRIMARY_LANGUAGE_EN_ZA, - self::PRIMARY_LANGUAGE_EN_ZM, - self::PRIMARY_LANGUAGE_EN_ZW, - self::PRIMARY_LANGUAGE_EO, - self::PRIMARY_LANGUAGE_EO_001, - self::PRIMARY_LANGUAGE_ES, - self::PRIMARY_LANGUAGE_ES_419, - self::PRIMARY_LANGUAGE_ES_AR, - self::PRIMARY_LANGUAGE_ES_BO, - self::PRIMARY_LANGUAGE_ES_BR, - self::PRIMARY_LANGUAGE_ES_BZ, - self::PRIMARY_LANGUAGE_ES_CL, - self::PRIMARY_LANGUAGE_ES_CO, - self::PRIMARY_LANGUAGE_ES_CR, - self::PRIMARY_LANGUAGE_ES_CU, - self::PRIMARY_LANGUAGE_ES_DO, - self::PRIMARY_LANGUAGE_ES_EA, - self::PRIMARY_LANGUAGE_ES_EC, - self::PRIMARY_LANGUAGE_ES_ES, - self::PRIMARY_LANGUAGE_ES_GQ, - self::PRIMARY_LANGUAGE_ES_GT, - self::PRIMARY_LANGUAGE_ES_HN, - self::PRIMARY_LANGUAGE_ES_IC, - self::PRIMARY_LANGUAGE_ES_MX, - self::PRIMARY_LANGUAGE_ES_NI, - self::PRIMARY_LANGUAGE_ES_PA, - self::PRIMARY_LANGUAGE_ES_PE, - self::PRIMARY_LANGUAGE_ES_PH, - self::PRIMARY_LANGUAGE_ES_PR, - self::PRIMARY_LANGUAGE_ES_PY, - self::PRIMARY_LANGUAGE_ES_SV, - self::PRIMARY_LANGUAGE_ES_US, - self::PRIMARY_LANGUAGE_ES_UY, - self::PRIMARY_LANGUAGE_ES_VE, - self::PRIMARY_LANGUAGE_ET, - self::PRIMARY_LANGUAGE_ET_EE, - self::PRIMARY_LANGUAGE_EU, - self::PRIMARY_LANGUAGE_EU_ES, - self::PRIMARY_LANGUAGE_EWO, - self::PRIMARY_LANGUAGE_EWO_CM, - self::PRIMARY_LANGUAGE_FA, - self::PRIMARY_LANGUAGE_FA_AF, - self::PRIMARY_LANGUAGE_FA_IR, - self::PRIMARY_LANGUAGE_FF, - self::PRIMARY_LANGUAGE_FF_CM, - self::PRIMARY_LANGUAGE_FF_GN, - self::PRIMARY_LANGUAGE_FF_MR, - self::PRIMARY_LANGUAGE_FF_SN, - self::PRIMARY_LANGUAGE_FI, - self::PRIMARY_LANGUAGE_FI_FI, - self::PRIMARY_LANGUAGE_FIL, - self::PRIMARY_LANGUAGE_FIL_PH, - self::PRIMARY_LANGUAGE_FO, - self::PRIMARY_LANGUAGE_FO_DK, - self::PRIMARY_LANGUAGE_FO_FO, - self::PRIMARY_LANGUAGE_FR, - self::PRIMARY_LANGUAGE_FR_BE, - self::PRIMARY_LANGUAGE_FR_BF, - self::PRIMARY_LANGUAGE_FR_BI, - self::PRIMARY_LANGUAGE_FR_BJ, - self::PRIMARY_LANGUAGE_FR_BL, - self::PRIMARY_LANGUAGE_FR_CA, - self::PRIMARY_LANGUAGE_FR_CD, - self::PRIMARY_LANGUAGE_FR_CF, - self::PRIMARY_LANGUAGE_FR_CG, - self::PRIMARY_LANGUAGE_FR_CH, - self::PRIMARY_LANGUAGE_FR_CI, - self::PRIMARY_LANGUAGE_FR_CM, - self::PRIMARY_LANGUAGE_FR_DJ, - self::PRIMARY_LANGUAGE_FR_DZ, - self::PRIMARY_LANGUAGE_FR_FR, - self::PRIMARY_LANGUAGE_FR_GA, - self::PRIMARY_LANGUAGE_FR_GF, - self::PRIMARY_LANGUAGE_FR_GN, - self::PRIMARY_LANGUAGE_FR_GP, - self::PRIMARY_LANGUAGE_FR_GQ, - self::PRIMARY_LANGUAGE_FR_HT, - self::PRIMARY_LANGUAGE_FR_KM, - self::PRIMARY_LANGUAGE_FR_LU, - self::PRIMARY_LANGUAGE_FR_MA, - self::PRIMARY_LANGUAGE_FR_MC, - self::PRIMARY_LANGUAGE_FR_MF, - self::PRIMARY_LANGUAGE_FR_MG, - self::PRIMARY_LANGUAGE_FR_ML, - self::PRIMARY_LANGUAGE_FR_MQ, - self::PRIMARY_LANGUAGE_FR_MR, - self::PRIMARY_LANGUAGE_FR_MU, - self::PRIMARY_LANGUAGE_FR_NC, - self::PRIMARY_LANGUAGE_FR_NE, - self::PRIMARY_LANGUAGE_FR_PF, - self::PRIMARY_LANGUAGE_FR_PM, - self::PRIMARY_LANGUAGE_FR_RE, - self::PRIMARY_LANGUAGE_FR_RW, - self::PRIMARY_LANGUAGE_FR_SC, - self::PRIMARY_LANGUAGE_FR_SN, - self::PRIMARY_LANGUAGE_FR_SY, - self::PRIMARY_LANGUAGE_FR_TD, - self::PRIMARY_LANGUAGE_FR_TG, - self::PRIMARY_LANGUAGE_FR_TN, - self::PRIMARY_LANGUAGE_FR_VU, - self::PRIMARY_LANGUAGE_FR_WF, - self::PRIMARY_LANGUAGE_FR_YT, - self::PRIMARY_LANGUAGE_FUR, - self::PRIMARY_LANGUAGE_FUR_IT, - self::PRIMARY_LANGUAGE_FY, - self::PRIMARY_LANGUAGE_FY_NL, - self::PRIMARY_LANGUAGE_GA, - self::PRIMARY_LANGUAGE_GA_IE, - self::PRIMARY_LANGUAGE_GD, - self::PRIMARY_LANGUAGE_GD_GB, - self::PRIMARY_LANGUAGE_GL, - self::PRIMARY_LANGUAGE_GL_ES, - self::PRIMARY_LANGUAGE_GSW, - self::PRIMARY_LANGUAGE_GSW_CH, - self::PRIMARY_LANGUAGE_GSW_FR, - self::PRIMARY_LANGUAGE_GSW_LI, - self::PRIMARY_LANGUAGE_GU, - self::PRIMARY_LANGUAGE_GU_IN, - self::PRIMARY_LANGUAGE_GUZ, - self::PRIMARY_LANGUAGE_GUZ_KE, - self::PRIMARY_LANGUAGE_GV, - self::PRIMARY_LANGUAGE_GV_IM, - self::PRIMARY_LANGUAGE_HA, - self::PRIMARY_LANGUAGE_HA_GH, - self::PRIMARY_LANGUAGE_HA_NE, - self::PRIMARY_LANGUAGE_HA_NG, - self::PRIMARY_LANGUAGE_HAW, - self::PRIMARY_LANGUAGE_HAW_US, - self::PRIMARY_LANGUAGE_HE, - self::PRIMARY_LANGUAGE_HI, - self::PRIMARY_LANGUAGE_HI_IN, - self::PRIMARY_LANGUAGE_HR, - self::PRIMARY_LANGUAGE_HR_BA, - self::PRIMARY_LANGUAGE_HR_HR, - self::PRIMARY_LANGUAGE_HSB, - self::PRIMARY_LANGUAGE_HSB_DE, - self::PRIMARY_LANGUAGE_HU, - self::PRIMARY_LANGUAGE_HU_HU, - self::PRIMARY_LANGUAGE_HY, - self::PRIMARY_LANGUAGE_HY_AM, - self::PRIMARY_LANGUAGE_ID, - self::PRIMARY_LANGUAGE_IG, - self::PRIMARY_LANGUAGE_IG_NG, - self::PRIMARY_LANGUAGE_II, - self::PRIMARY_LANGUAGE_II_CN, - self::PRIMARY_LANGUAGE_ID_ID, - self::PRIMARY_LANGUAGE_IS, - self::PRIMARY_LANGUAGE_IS_IS, - self::PRIMARY_LANGUAGE_IT, - self::PRIMARY_LANGUAGE_IT_CH, - self::PRIMARY_LANGUAGE_IT_IT, - self::PRIMARY_LANGUAGE_IT_SM, - self::PRIMARY_LANGUAGE_IT_VA, - self::PRIMARY_LANGUAGE_HE_IL, - self::PRIMARY_LANGUAGE_JA, - self::PRIMARY_LANGUAGE_JA_JP, - self::PRIMARY_LANGUAGE_JGO, - self::PRIMARY_LANGUAGE_JGO_CM, - self::PRIMARY_LANGUAGE_YI, - self::PRIMARY_LANGUAGE_YI_001, - self::PRIMARY_LANGUAGE_JMC, - self::PRIMARY_LANGUAGE_JMC_TZ, - self::PRIMARY_LANGUAGE_KA, - self::PRIMARY_LANGUAGE_KA_GE, - self::PRIMARY_LANGUAGE_KAB, - self::PRIMARY_LANGUAGE_KAB_DZ, - self::PRIMARY_LANGUAGE_KAM, - self::PRIMARY_LANGUAGE_KAM_KE, - self::PRIMARY_LANGUAGE_KDE, - self::PRIMARY_LANGUAGE_KDE_TZ, - self::PRIMARY_LANGUAGE_KEA, - self::PRIMARY_LANGUAGE_KEA_CV, - self::PRIMARY_LANGUAGE_KHQ, - self::PRIMARY_LANGUAGE_KHQ_ML, - self::PRIMARY_LANGUAGE_KI, - self::PRIMARY_LANGUAGE_KI_KE, - self::PRIMARY_LANGUAGE_KK, - self::PRIMARY_LANGUAGE_KK_KZ, - self::PRIMARY_LANGUAGE_KKJ, - self::PRIMARY_LANGUAGE_KKJ_CM, - self::PRIMARY_LANGUAGE_KL, - self::PRIMARY_LANGUAGE_KL_GL, - self::PRIMARY_LANGUAGE_KLN, - self::PRIMARY_LANGUAGE_KLN_KE, - self::PRIMARY_LANGUAGE_KM, - self::PRIMARY_LANGUAGE_KM_KH, - self::PRIMARY_LANGUAGE_KN, - self::PRIMARY_LANGUAGE_KN_IN, - self::PRIMARY_LANGUAGE_KO, - self::PRIMARY_LANGUAGE_KO_KP, - self::PRIMARY_LANGUAGE_KO_KR, - self::PRIMARY_LANGUAGE_KOK, - self::PRIMARY_LANGUAGE_KOK_IN, - self::PRIMARY_LANGUAGE_KS, - self::PRIMARY_LANGUAGE_KS_IN, - self::PRIMARY_LANGUAGE_KSB, - self::PRIMARY_LANGUAGE_KSB_TZ, - self::PRIMARY_LANGUAGE_KSF, - self::PRIMARY_LANGUAGE_KSF_CM, - self::PRIMARY_LANGUAGE_KSH, - self::PRIMARY_LANGUAGE_KSH_DE, - self::PRIMARY_LANGUAGE_KW, - self::PRIMARY_LANGUAGE_KW_GB, - self::PRIMARY_LANGUAGE_KY, - self::PRIMARY_LANGUAGE_KY_KG, - self::PRIMARY_LANGUAGE_LAG, - self::PRIMARY_LANGUAGE_LAG_TZ, - self::PRIMARY_LANGUAGE_LB, - self::PRIMARY_LANGUAGE_LB_LU, - self::PRIMARY_LANGUAGE_LG, - self::PRIMARY_LANGUAGE_LG_UG, - self::PRIMARY_LANGUAGE_LKT, - self::PRIMARY_LANGUAGE_LKT_US, - self::PRIMARY_LANGUAGE_LN, - self::PRIMARY_LANGUAGE_LN_AO, - self::PRIMARY_LANGUAGE_LN_CD, - self::PRIMARY_LANGUAGE_LN_CF, - self::PRIMARY_LANGUAGE_LN_CG, - self::PRIMARY_LANGUAGE_LO, - self::PRIMARY_LANGUAGE_LO_LA, - self::PRIMARY_LANGUAGE_LRC, - self::PRIMARY_LANGUAGE_LRC_IQ, - self::PRIMARY_LANGUAGE_LRC_IR, - self::PRIMARY_LANGUAGE_LT, - self::PRIMARY_LANGUAGE_LT_LT, - self::PRIMARY_LANGUAGE_LU, - self::PRIMARY_LANGUAGE_LU_CD, - self::PRIMARY_LANGUAGE_LUO, - self::PRIMARY_LANGUAGE_LUO_KE, - self::PRIMARY_LANGUAGE_LUY, - self::PRIMARY_LANGUAGE_LUY_KE, - self::PRIMARY_LANGUAGE_LV, - self::PRIMARY_LANGUAGE_LV_LV, - self::PRIMARY_LANGUAGE_MAS, - self::PRIMARY_LANGUAGE_MAS_KE, - self::PRIMARY_LANGUAGE_MAS_TZ, - self::PRIMARY_LANGUAGE_MER, - self::PRIMARY_LANGUAGE_MER_KE, - self::PRIMARY_LANGUAGE_MFE, - self::PRIMARY_LANGUAGE_MFE_MU, - self::PRIMARY_LANGUAGE_MG, - self::PRIMARY_LANGUAGE_MG_MG, - self::PRIMARY_LANGUAGE_MGH, - self::PRIMARY_LANGUAGE_MGH_MZ, - self::PRIMARY_LANGUAGE_MGO, - self::PRIMARY_LANGUAGE_MGO_CM, - self::PRIMARY_LANGUAGE_MK, - self::PRIMARY_LANGUAGE_MK_MK, - self::PRIMARY_LANGUAGE_ML, - self::PRIMARY_LANGUAGE_ML_IN, - self::PRIMARY_LANGUAGE_MN, - self::PRIMARY_LANGUAGE_MN_MN, - self::PRIMARY_LANGUAGE_MR, - self::PRIMARY_LANGUAGE_MR_IN, - self::PRIMARY_LANGUAGE_MS, - self::PRIMARY_LANGUAGE_MS_BN, - self::PRIMARY_LANGUAGE_MS_MY, - self::PRIMARY_LANGUAGE_MS_SG, - self::PRIMARY_LANGUAGE_MT, - self::PRIMARY_LANGUAGE_MT_MT, - self::PRIMARY_LANGUAGE_MUA, - self::PRIMARY_LANGUAGE_MUA_CM, - self::PRIMARY_LANGUAGE_MY, - self::PRIMARY_LANGUAGE_MY_MM, - self::PRIMARY_LANGUAGE_MZN, - self::PRIMARY_LANGUAGE_MZN_IR, - self::PRIMARY_LANGUAGE_NAQ, - self::PRIMARY_LANGUAGE_NAQ_NA, - self::PRIMARY_LANGUAGE_NB, - self::PRIMARY_LANGUAGE_NB_NO, - self::PRIMARY_LANGUAGE_NB_SJ, - self::PRIMARY_LANGUAGE_ND, - self::PRIMARY_LANGUAGE_ND_ZW, - self::PRIMARY_LANGUAGE_NDS, - self::PRIMARY_LANGUAGE_NDS_DE, - self::PRIMARY_LANGUAGE_NDS_NL, - self::PRIMARY_LANGUAGE_NE, - self::PRIMARY_LANGUAGE_NE_IN, - self::PRIMARY_LANGUAGE_NE_NP, - self::PRIMARY_LANGUAGE_NL, - self::PRIMARY_LANGUAGE_NL_AW, - self::PRIMARY_LANGUAGE_NL_BE, - self::PRIMARY_LANGUAGE_NL_CH, - self::PRIMARY_LANGUAGE_NL_BQ, - self::PRIMARY_LANGUAGE_NL_CW, - self::PRIMARY_LANGUAGE_NL_LU, - self::PRIMARY_LANGUAGE_NL_NL, - self::PRIMARY_LANGUAGE_NL_SR, - self::PRIMARY_LANGUAGE_NL_SX, - self::PRIMARY_LANGUAGE_NMG, - self::PRIMARY_LANGUAGE_NMG_CM, - self::PRIMARY_LANGUAGE_NN, - self::PRIMARY_LANGUAGE_NN_NO, - self::PRIMARY_LANGUAGE_NNH, - self::PRIMARY_LANGUAGE_NNH_CM, - self::PRIMARY_LANGUAGE_NO, - self::PRIMARY_LANGUAGE_NO_NO, - self::PRIMARY_LANGUAGE_NUS, - self::PRIMARY_LANGUAGE_NUS_SS, - self::PRIMARY_LANGUAGE_NYN, - self::PRIMARY_LANGUAGE_NYN_UG, - self::PRIMARY_LANGUAGE_OM, - self::PRIMARY_LANGUAGE_OM_ET, - self::PRIMARY_LANGUAGE_OM_KE, - self::PRIMARY_LANGUAGE__OR, - self::PRIMARY_LANGUAGE_OR_IN, - self::PRIMARY_LANGUAGE_OS, - self::PRIMARY_LANGUAGE_OS_GE, - self::PRIMARY_LANGUAGE_OS_RU, - self::PRIMARY_LANGUAGE_PA, - self::PRIMARY_LANGUAGE_PA_IN, - self::PRIMARY_LANGUAGE_PA_PK, - self::PRIMARY_LANGUAGE_PL, - self::PRIMARY_LANGUAGE_PL_PL, - self::PRIMARY_LANGUAGE_PRG, - self::PRIMARY_LANGUAGE_PRG_001, - self::PRIMARY_LANGUAGE_PS, - self::PRIMARY_LANGUAGE_PS_AF, - self::PRIMARY_LANGUAGE_PT, - self::PRIMARY_LANGUAGE_PT_AO, - self::PRIMARY_LANGUAGE_PT_BR, - self::PRIMARY_LANGUAGE_PT_CH, - self::PRIMARY_LANGUAGE_PT_CV, - self::PRIMARY_LANGUAGE_PT_GQ, - self::PRIMARY_LANGUAGE_PT_GW, - self::PRIMARY_LANGUAGE_PT_LU, - self::PRIMARY_LANGUAGE_PT_MO, - self::PRIMARY_LANGUAGE_PT_MZ, - self::PRIMARY_LANGUAGE_PT_PT, - self::PRIMARY_LANGUAGE_PT_ST, - self::PRIMARY_LANGUAGE_PT_TL, - self::PRIMARY_LANGUAGE_QU, - self::PRIMARY_LANGUAGE_QU_BO, - self::PRIMARY_LANGUAGE_QU_EC, - self::PRIMARY_LANGUAGE_QU_PE, - self::PRIMARY_LANGUAGE_RM, - self::PRIMARY_LANGUAGE_RM_CH, - self::PRIMARY_LANGUAGE_RN, - self::PRIMARY_LANGUAGE_RN_BI, - self::PRIMARY_LANGUAGE_RO, - self::PRIMARY_LANGUAGE_RO_MD, - self::PRIMARY_LANGUAGE_RO_RO, - self::PRIMARY_LANGUAGE_ROF, - self::PRIMARY_LANGUAGE_ROF_TZ, - self::PRIMARY_LANGUAGE_RU, - self::PRIMARY_LANGUAGE_RU_BY, - self::PRIMARY_LANGUAGE_RU_KG, - self::PRIMARY_LANGUAGE_RU_KZ, - self::PRIMARY_LANGUAGE_RU_MD, - self::PRIMARY_LANGUAGE_RU_RU, - self::PRIMARY_LANGUAGE_RU_UA, - self::PRIMARY_LANGUAGE_RW, - self::PRIMARY_LANGUAGE_RW_RW, - self::PRIMARY_LANGUAGE_RWK, - self::PRIMARY_LANGUAGE_RWK_TZ, - self::PRIMARY_LANGUAGE_SA, - self::PRIMARY_LANGUAGE_SAH, - self::PRIMARY_LANGUAGE_SAH_RU, - self::PRIMARY_LANGUAGE_SAQ, - self::PRIMARY_LANGUAGE_SAQ_KE, - self::PRIMARY_LANGUAGE_SBP, - self::PRIMARY_LANGUAGE_SBP_TZ, - self::PRIMARY_LANGUAGE_SD, - self::PRIMARY_LANGUAGE_SD_PK, - self::PRIMARY_LANGUAGE_SE, - self::PRIMARY_LANGUAGE_SE_FI, - self::PRIMARY_LANGUAGE_SE_NO, - self::PRIMARY_LANGUAGE_SE_SE, - self::PRIMARY_LANGUAGE_SEH, - self::PRIMARY_LANGUAGE_SEH_MZ, - self::PRIMARY_LANGUAGE_SES, - self::PRIMARY_LANGUAGE_SES_ML, - self::PRIMARY_LANGUAGE_SG, - self::PRIMARY_LANGUAGE_SG_CF, - self::PRIMARY_LANGUAGE_SHI, - self::PRIMARY_LANGUAGE_SHI_MA, - self::PRIMARY_LANGUAGE_SI, - self::PRIMARY_LANGUAGE_SI_LK, - self::PRIMARY_LANGUAGE_SK, - self::PRIMARY_LANGUAGE_SK_SK, - self::PRIMARY_LANGUAGE_SL, - self::PRIMARY_LANGUAGE_SL_SI, - self::PRIMARY_LANGUAGE_SMN, - self::PRIMARY_LANGUAGE_SMN_FI, - self::PRIMARY_LANGUAGE_SN, - self::PRIMARY_LANGUAGE_SN_ZW, - self::PRIMARY_LANGUAGE_SO, - self::PRIMARY_LANGUAGE_SO_DJ, - self::PRIMARY_LANGUAGE_SO_ET, - self::PRIMARY_LANGUAGE_SO_KE, - self::PRIMARY_LANGUAGE_SO_SO, - self::PRIMARY_LANGUAGE_SQ, - self::PRIMARY_LANGUAGE_SQ_AL, - self::PRIMARY_LANGUAGE_SQ_MK, - self::PRIMARY_LANGUAGE_SQ_XK, - self::PRIMARY_LANGUAGE_SR, - self::PRIMARY_LANGUAGE_SR_BA, - self::PRIMARY_LANGUAGE_SR_CS, - self::PRIMARY_LANGUAGE_SR_ME, - self::PRIMARY_LANGUAGE_SR_RS, - self::PRIMARY_LANGUAGE_SR_XK, - self::PRIMARY_LANGUAGE_SV, - self::PRIMARY_LANGUAGE_SV_AX, - self::PRIMARY_LANGUAGE_SV_FI, - self::PRIMARY_LANGUAGE_SV_SE, - self::PRIMARY_LANGUAGE_SW, - self::PRIMARY_LANGUAGE_SW_CD, - self::PRIMARY_LANGUAGE_SW_KE, - self::PRIMARY_LANGUAGE_SW_TZ, - self::PRIMARY_LANGUAGE_SW_UG, - self::PRIMARY_LANGUAGE_SY, - self::PRIMARY_LANGUAGE_TA, - self::PRIMARY_LANGUAGE_TA_IN, - self::PRIMARY_LANGUAGE_TA_LK, - self::PRIMARY_LANGUAGE_TA_MY, - self::PRIMARY_LANGUAGE_TA_SG, - self::PRIMARY_LANGUAGE_TE, - self::PRIMARY_LANGUAGE_TE_IN, - self::PRIMARY_LANGUAGE_TEO, - self::PRIMARY_LANGUAGE_TEO_KE, - self::PRIMARY_LANGUAGE_TEO_UG, - self::PRIMARY_LANGUAGE_TG, - self::PRIMARY_LANGUAGE_TG_TJ, - self::PRIMARY_LANGUAGE_TH, - self::PRIMARY_LANGUAGE_TH_TH, - self::PRIMARY_LANGUAGE_TI, - self::PRIMARY_LANGUAGE_TI_ER, - self::PRIMARY_LANGUAGE_TI_ET, - self::PRIMARY_LANGUAGE_TK, - self::PRIMARY_LANGUAGE_TK_TM, - self::PRIMARY_LANGUAGE_TO, - self::PRIMARY_LANGUAGE_TO_TO, - self::PRIMARY_LANGUAGE_TR, - self::PRIMARY_LANGUAGE_TR_CY, - self::PRIMARY_LANGUAGE_TR_TR, - self::PRIMARY_LANGUAGE_TT, - self::PRIMARY_LANGUAGE_TT_RU, - self::PRIMARY_LANGUAGE_TWQ, - self::PRIMARY_LANGUAGE_TWQ_NE, - self::PRIMARY_LANGUAGE_TZM, - self::PRIMARY_LANGUAGE_TZM_MA, - self::PRIMARY_LANGUAGE_UG, - self::PRIMARY_LANGUAGE_UG_CN, - self::PRIMARY_LANGUAGE_UK, - self::PRIMARY_LANGUAGE_UK_UA, - self::PRIMARY_LANGUAGE_UR, - self::PRIMARY_LANGUAGE_UR_IN, - self::PRIMARY_LANGUAGE_UR_PK, - self::PRIMARY_LANGUAGE_UZ, - self::PRIMARY_LANGUAGE_UZ_AF, - self::PRIMARY_LANGUAGE_UZ_UZ, - self::PRIMARY_LANGUAGE_VAI, - self::PRIMARY_LANGUAGE_VAI_LR, - self::PRIMARY_LANGUAGE_VI, - self::PRIMARY_LANGUAGE_VI_VN, - self::PRIMARY_LANGUAGE_VO, - self::PRIMARY_LANGUAGE_VO_001, - self::PRIMARY_LANGUAGE_VUN, - self::PRIMARY_LANGUAGE_VUN_TZ, - self::PRIMARY_LANGUAGE_WAE, - self::PRIMARY_LANGUAGE_WAE_CH, - self::PRIMARY_LANGUAGE_WO, - self::PRIMARY_LANGUAGE_WO_SN, - self::PRIMARY_LANGUAGE_XOG, - self::PRIMARY_LANGUAGE_XOG_UG, - self::PRIMARY_LANGUAGE_YAV, - self::PRIMARY_LANGUAGE_YAV_CM, - self::PRIMARY_LANGUAGE_YO, - self::PRIMARY_LANGUAGE_YO_BJ, - self::PRIMARY_LANGUAGE_YO_NG, - self::PRIMARY_LANGUAGE_YUE, - self::PRIMARY_LANGUAGE_YUE_CN, - self::PRIMARY_LANGUAGE_YUE_HK, - self::PRIMARY_LANGUAGE_ZGH, - self::PRIMARY_LANGUAGE_ZGH_MA, - self::PRIMARY_LANGUAGE_ZH, - self::PRIMARY_LANGUAGE_ZH_CN, - self::PRIMARY_LANGUAGE_ZH_HK, - self::PRIMARY_LANGUAGE_ZH_MO, - self::PRIMARY_LANGUAGE_ZH_SG, - self::PRIMARY_LANGUAGE_ZH_TW, - self::PRIMARY_LANGUAGE_ZH_HANS, - self::PRIMARY_LANGUAGE_ZH_HANT, - self::PRIMARY_LANGUAGE_ZU, - self::PRIMARY_LANGUAGE_ZU_ZA, - ]; - } /** * Associative array for storing property values @@ -3070,8 +192,8 @@ public function getPrimaryLanguageAllowableValues() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; $this->container['language'] = $data['language'] ?? null; + $this->container['id'] = $data['id'] ?? null; $this->container['primary_id'] = $data['primary_id'] ?? null; $this->container['primary_language'] = $data['primary_language'] ?? null; } @@ -3085,33 +207,15 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' 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['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } - if ($this->container['primary_id'] === null) { $invalidProperties[] = "'primary_id' can't be null"; } - $allowedValues = $this->getPrimaryLanguageAllowableValues(); - if (!is_null($this->container['primary_language']) && !in_array($this->container['primary_language'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'primary_language', must be one of '%s'", - $this->container['primary_language'], - implode("', '", $allowedValues) - ); - } - return $invalidProperties; } @@ -3128,59 +232,49 @@ public function valid() /** - * 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) { - $this->container['id'] = $id; + $this->container['language'] = $language; return $this; } /** - * 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) { - $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; + $this->container['id'] = $id; return $this; } @@ -3228,16 +322,6 @@ public function getPrimaryLanguage() */ public function setPrimaryLanguage($primary_language) { - $allowedValues = $this->getPrimaryLanguageAllowableValues(); - if (!is_null($primary_language) && !in_array($primary_language, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'primary_language', must be one of '%s'", - $primary_language, - implode("', '", $allowedValues) - ) - ); - } $this->container['primary_language'] = $primary_language; return $this; diff --git a/codegen/Cms/Blogs/Authors/Model/BatchInputBlogAuthor.php b/codegen/Cms/Blogs/Authors/Model/BatchInputBlogAuthor.php index e4a26b9a..fad3c385 100644 --- a/codegen/Cms/Blogs/Authors/Model/BatchInputBlogAuthor.php +++ b/codegen/Cms/Blogs/Authors/Model/BatchInputBlogAuthor.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Authors/Model/BatchInputJsonNode.php b/codegen/Cms/Blogs/Authors/Model/BatchInputJsonNode.php index dd9cdb60..93f3207f 100644 --- a/codegen/Cms/Blogs/Authors/Model/BatchInputJsonNode.php +++ b/codegen/Cms/Blogs/Authors/Model/BatchInputJsonNode.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Authors/Model/BatchInputString.php b/codegen/Cms/Blogs/Authors/Model/BatchInputString.php index 29436312..9d888f6b 100644 --- a/codegen/Cms/Blogs/Authors/Model/BatchInputString.php +++ b/codegen/Cms/Blogs/Authors/Model/BatchInputString.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthor.php b/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthor.php index e9acae0f..268f2bcc 100644 --- a/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthor.php +++ b/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthor.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,12 +58,12 @@ class BatchResponseBlogAuthor implements ModelInterface, ArrayAccess, \JsonSeria * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', - 'results' => '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[]', + 'completed_at' => '\DateTime', 'requested_at' => '\DateTime', 'started_at' => '\DateTime', - 'completed_at' => '\DateTime', - 'links' => 'array' + 'links' => 'array', + 'results' => '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[]', + 'status' => 'string' ]; /** @@ -74,12 +74,12 @@ class BatchResponseBlogAuthor implements ModelInterface, ArrayAccess, \JsonSeria * @psalm-var array */ protected static $openAPIFormats = [ - 'status' => null, - 'results' => null, + 'completed_at' => 'date-time', 'requested_at' => 'date-time', 'started_at' => 'date-time', - 'completed_at' => 'date-time', - 'links' => null + 'links' => null, + 'results' => null, + 'status' => null ]; /** @@ -109,12 +109,12 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'status' => 'status', - 'results' => 'results', + 'completed_at' => 'completedAt', 'requested_at' => 'requestedAt', 'started_at' => 'startedAt', - 'completed_at' => 'completedAt', - 'links' => 'links' + 'links' => 'links', + 'results' => 'results', + 'status' => 'status' ]; /** @@ -123,12 +123,12 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'status' => 'setStatus', - 'results' => 'setResults', + 'completed_at' => 'setCompletedAt', 'requested_at' => 'setRequestedAt', 'started_at' => 'setStartedAt', - 'completed_at' => 'setCompletedAt', - 'links' => 'setLinks' + 'links' => 'setLinks', + 'results' => 'setResults', + 'status' => 'setStatus' ]; /** @@ -137,12 +137,12 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'status' => 'getStatus', - 'results' => 'getResults', + 'completed_at' => 'getCompletedAt', 'requested_at' => 'getRequestedAt', 'started_at' => 'getStartedAt', - 'completed_at' => 'getCompletedAt', - 'links' => 'getLinks' + 'links' => 'getLinks', + 'results' => 'getResults', + 'status' => 'getStatus' ]; /** @@ -221,12 +221,12 @@ public function getStatusAllowableValues() */ public function __construct(array $data = null) { - $this->container['status'] = $data['status'] ?? null; - $this->container['results'] = $data['results'] ?? null; + $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['requested_at'] = $data['requested_at'] ?? null; $this->container['started_at'] = $data['started_at'] ?? null; - $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['results'] = $data['results'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -238,6 +238,15 @@ public function listInvalidProperties() { $invalidProperties = []; + 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['status'] === null) { $invalidProperties[] = "'status' can't be null"; } @@ -250,15 +259,6 @@ public function listInvalidProperties() ); } - 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['completed_at'] === null) { - $invalidProperties[] = "'completed_at' can't be null"; - } return $invalidProperties; } @@ -275,59 +275,25 @@ public function valid() /** - * Gets status - * - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string $status Status of batch operation. - * - * @return self - */ - public function setStatus($status) - { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets results + * Gets completed_at * - * @return \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[] + * @return \DateTime */ - public function getResults() + public function getCompletedAt() { - return $this->container['results']; + return $this->container['completed_at']; } /** - * Sets results + * Sets completed_at * - * @param \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[] $results Results of batch operation. + * @param \DateTime $completed_at Time of batch operation completion. * * @return self */ - public function setResults($results) + public function setCompletedAt($completed_at) { - $this->container['results'] = $results; + $this->container['completed_at'] = $completed_at; return $this; } @@ -381,49 +347,83 @@ public function setStartedAt($started_at) } /** - * Gets completed_at + * Gets links * - * @return \DateTime + * @return array|null */ - public function getCompletedAt() + public function getLinks() { - return $this->container['completed_at']; + return $this->container['links']; } /** - * Sets completed_at + * Sets links * - * @param \DateTime $completed_at Time of batch operation completion. + * @param array|null $links Links associated with batch operation. * * @return self */ - public function setCompletedAt($completed_at) + public function setLinks($links) { - $this->container['completed_at'] = $completed_at; + $this->container['links'] = $links; return $this; } /** - * Gets links + * Gets results * - * @return array|null + * @return \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[] */ - public function getLinks() + public function getResults() { - return $this->container['links']; + return $this->container['results']; } /** - * Sets links + * Sets results * - * @param array|null $links Links associated with batch operation. + * @param \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[] $results Results of batch operation. * * @return self */ - public function setLinks($links) + public function setResults($results) { - $this->container['links'] = $links; + $this->container['results'] = $results; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status Status of batch operation. + * + * @return self + */ + public function setStatus($status) + { + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; return $this; } diff --git a/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthorWithErrors.php b/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthorWithErrors.php index 342bad28..b6d92725 100644 --- a/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthorWithErrors.php +++ b/codegen/Cms/Blogs/Authors/Model/BatchResponseBlogAuthorWithErrors.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,14 +58,14 @@ class BatchResponseBlogAuthorWithErrors implements ModelInterface, ArrayAccess, * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', - 'results' => '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[]', + 'completed_at' => '\DateTime', 'num_errors' => 'int', - 'errors' => '\HubSpot\Client\Cms\Blogs\Authors\Model\StandardError[]', 'requested_at' => '\DateTime', 'started_at' => '\DateTime', - 'completed_at' => '\DateTime', - 'links' => 'array' + 'links' => 'array', + 'results' => '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[]', + 'errors' => '\HubSpot\Client\Cms\Blogs\Authors\Model\StandardError[]', + 'status' => 'string' ]; /** @@ -76,14 +76,14 @@ class BatchResponseBlogAuthorWithErrors implements ModelInterface, ArrayAccess, * @psalm-var array */ protected static $openAPIFormats = [ - 'status' => null, - 'results' => null, + 'completed_at' => 'date-time', 'num_errors' => 'int32', - 'errors' => null, 'requested_at' => 'date-time', 'started_at' => 'date-time', - 'completed_at' => 'date-time', - 'links' => null + 'links' => null, + 'results' => null, + 'errors' => null, + 'status' => null ]; /** @@ -113,14 +113,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'status' => 'status', - 'results' => 'results', + 'completed_at' => 'completedAt', 'num_errors' => 'numErrors', - 'errors' => 'errors', 'requested_at' => 'requestedAt', 'started_at' => 'startedAt', - 'completed_at' => 'completedAt', - 'links' => 'links' + 'links' => 'links', + 'results' => 'results', + 'errors' => 'errors', + 'status' => 'status' ]; /** @@ -129,14 +129,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'status' => 'setStatus', - 'results' => 'setResults', + 'completed_at' => 'setCompletedAt', 'num_errors' => 'setNumErrors', - 'errors' => 'setErrors', 'requested_at' => 'setRequestedAt', 'started_at' => 'setStartedAt', - 'completed_at' => 'setCompletedAt', - 'links' => 'setLinks' + 'links' => 'setLinks', + 'results' => 'setResults', + 'errors' => 'setErrors', + 'status' => 'setStatus' ]; /** @@ -145,14 +145,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'status' => 'getStatus', - 'results' => 'getResults', + 'completed_at' => 'getCompletedAt', 'num_errors' => 'getNumErrors', - 'errors' => 'getErrors', 'requested_at' => 'getRequestedAt', 'started_at' => 'getStartedAt', - 'completed_at' => 'getCompletedAt', - 'links' => 'getLinks' + 'links' => 'getLinks', + 'results' => 'getResults', + 'errors' => 'getErrors', + 'status' => 'getStatus' ]; /** @@ -231,14 +231,14 @@ public function getStatusAllowableValues() */ public function __construct(array $data = null) { - $this->container['status'] = $data['status'] ?? null; - $this->container['results'] = $data['results'] ?? null; + $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['num_errors'] = $data['num_errors'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['requested_at'] = $data['requested_at'] ?? null; $this->container['started_at'] = $data['started_at'] ?? null; - $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['results'] = $data['results'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -250,6 +250,15 @@ public function listInvalidProperties() { $invalidProperties = []; + 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['status'] === null) { $invalidProperties[] = "'status' can't be null"; } @@ -262,15 +271,6 @@ public function listInvalidProperties() ); } - 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['completed_at'] === null) { - $invalidProperties[] = "'completed_at' can't be null"; - } return $invalidProperties; } @@ -287,203 +287,203 @@ public function valid() /** - * Gets status + * Gets completed_at * - * @return string + * @return \DateTime */ - public function getStatus() + public function getCompletedAt() { - return $this->container['status']; + return $this->container['completed_at']; } /** - * Sets status + * Sets completed_at * - * @param string $status Status of batch operation. + * @param \DateTime $completed_at Time of batch operation completion. * * @return self */ - public function setStatus($status) + public function setCompletedAt($completed_at) { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; + $this->container['completed_at'] = $completed_at; return $this; } /** - * Gets results + * Gets num_errors * - * @return \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[] + * @return int|null */ - public function getResults() + public function getNumErrors() { - return $this->container['results']; + return $this->container['num_errors']; } /** - * Sets results + * Sets num_errors * - * @param \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[] $results Results of batch operation. + * @param int|null $num_errors Number of errors. * * @return self */ - public function setResults($results) + public function setNumErrors($num_errors) { - $this->container['results'] = $results; + $this->container['num_errors'] = $num_errors; return $this; } /** - * Gets num_errors + * Gets requested_at * - * @return int|null + * @return \DateTime|null */ - public function getNumErrors() + public function getRequestedAt() { - return $this->container['num_errors']; + return $this->container['requested_at']; } /** - * Sets num_errors + * Sets requested_at * - * @param int|null $num_errors Number of errors. + * @param \DateTime|null $requested_at Time of batch operation request. * * @return self */ - public function setNumErrors($num_errors) + public function setRequestedAt($requested_at) { - $this->container['num_errors'] = $num_errors; + $this->container['requested_at'] = $requested_at; return $this; } /** - * Gets errors + * Gets started_at * - * @return \HubSpot\Client\Cms\Blogs\Authors\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\Blogs\Authors\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) { - $this->container['errors'] = $errors; + $this->container['started_at'] = $started_at; 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) { - $this->container['requested_at'] = $requested_at; + $this->container['links'] = $links; return $this; } /** - * Gets started_at + * Gets results * - * @return \DateTime + * @return \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[] */ - public function getStartedAt() + public function getResults() { - return $this->container['started_at']; + return $this->container['results']; } /** - * Sets started_at + * Sets results * - * @param \DateTime $started_at Time of batch operation start. + * @param \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[] $results Results of batch operation. * * @return self */ - public function setStartedAt($started_at) + public function setResults($results) { - $this->container['started_at'] = $started_at; + $this->container['results'] = $results; return $this; } /** - * Gets completed_at + * Gets errors * - * @return \DateTime + * @return \HubSpot\Client\Cms\Blogs\Authors\Model\StandardError[]|null */ - public function getCompletedAt() + public function getErrors() { - return $this->container['completed_at']; + return $this->container['errors']; } /** - * Sets completed_at + * Sets errors * - * @param \DateTime $completed_at Time of batch operation completion. + * @param \HubSpot\Client\Cms\Blogs\Authors\Model\StandardError[]|null $errors Errors in batch operation. * * @return self */ - public function setCompletedAt($completed_at) + public function setErrors($errors) { - $this->container['completed_at'] = $completed_at; + $this->container['errors'] = $errors; return $this; } /** - * Gets links + * Gets status * - * @return array|null + * @return string */ - public function getLinks() + public function getStatus() { - return $this->container['links']; + return $this->container['status']; } /** - * Sets links + * Sets status * - * @param array|null $links Links associated with batch operation. + * @param string $status Status of batch operation. * * @return self */ - public function setLinks($links) + public function setStatus($status) { - $this->container['links'] = $links; + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; return $this; } diff --git a/codegen/Cms/Blogs/Authors/Model/BlogAuthor.php b/codegen/Cms/Blogs/Authors/Model/BlogAuthor.php index 48963b62..f4e01578 100644 --- a/codegen/Cms/Blogs/Authors/Model/BlogAuthor.php +++ b/codegen/Cms/Blogs/Authors/Model/BlogAuthor.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,23 +58,23 @@ class BlogAuthor implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', - 'full_name' => 'string', - 'email' => 'string', - 'slug' => 'string', - 'language' => 'string', - 'translated_from_id' => 'int', - 'name' => 'string', - 'display_name' => 'string', - 'bio' => 'string', 'website' => 'string', - 'twitter' => 'string', + 'display_name' => 'string', + 'created' => '\DateTime', 'facebook' => 'string', + 'full_name' => 'string', + 'bio' => 'string', + 'language' => 'string', 'linkedin' => 'string', 'avatar' => 'string', - 'created' => '\DateTime', + 'translated_from_id' => 'int', + 'twitter' => 'string', + 'deleted_at' => '\DateTime', + 'name' => 'string', + 'id' => 'string', 'updated' => '\DateTime', - 'deleted_at' => '\DateTime' + 'email' => 'string', + 'slug' => 'string' ]; /** @@ -85,23 +85,23 @@ class BlogAuthor implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, - 'full_name' => null, - 'email' => null, - 'slug' => null, - 'language' => null, - 'translated_from_id' => 'int64', - 'name' => null, - 'display_name' => null, - 'bio' => null, 'website' => null, - 'twitter' => null, + 'display_name' => null, + 'created' => 'date-time', 'facebook' => null, + 'full_name' => null, + 'bio' => null, + 'language' => null, 'linkedin' => null, 'avatar' => null, - 'created' => 'date-time', + 'translated_from_id' => 'int64', + 'twitter' => null, + 'deleted_at' => 'date-time', + 'name' => null, + 'id' => null, 'updated' => 'date-time', - 'deleted_at' => 'date-time' + 'email' => null, + 'slug' => null ]; /** @@ -131,23 +131,23 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', - 'full_name' => 'fullName', - 'email' => 'email', - 'slug' => 'slug', - 'language' => 'language', - 'translated_from_id' => 'translatedFromId', - 'name' => 'name', - 'display_name' => 'displayName', - 'bio' => 'bio', 'website' => 'website', - 'twitter' => 'twitter', + 'display_name' => 'displayName', + 'created' => 'created', 'facebook' => 'facebook', + 'full_name' => 'fullName', + 'bio' => 'bio', + 'language' => 'language', 'linkedin' => 'linkedin', 'avatar' => 'avatar', - 'created' => 'created', + 'translated_from_id' => 'translatedFromId', + 'twitter' => 'twitter', + 'deleted_at' => 'deletedAt', + 'name' => 'name', + 'id' => 'id', 'updated' => 'updated', - 'deleted_at' => 'deletedAt' + 'email' => 'email', + 'slug' => 'slug' ]; /** @@ -156,23 +156,23 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', - 'full_name' => 'setFullName', - 'email' => 'setEmail', - 'slug' => 'setSlug', - 'language' => 'setLanguage', - 'translated_from_id' => 'setTranslatedFromId', - 'name' => 'setName', - 'display_name' => 'setDisplayName', - 'bio' => 'setBio', 'website' => 'setWebsite', - 'twitter' => 'setTwitter', + 'display_name' => 'setDisplayName', + 'created' => 'setCreated', 'facebook' => 'setFacebook', + 'full_name' => 'setFullName', + 'bio' => 'setBio', + 'language' => 'setLanguage', 'linkedin' => 'setLinkedin', 'avatar' => 'setAvatar', - 'created' => 'setCreated', + 'translated_from_id' => 'setTranslatedFromId', + 'twitter' => 'setTwitter', + 'deleted_at' => 'setDeletedAt', + 'name' => 'setName', + 'id' => 'setId', 'updated' => 'setUpdated', - 'deleted_at' => 'setDeletedAt' + 'email' => 'setEmail', + 'slug' => 'setSlug' ]; /** @@ -181,23 +181,23 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', - 'full_name' => 'getFullName', - 'email' => 'getEmail', - 'slug' => 'getSlug', - 'language' => 'getLanguage', - 'translated_from_id' => 'getTranslatedFromId', - 'name' => 'getName', - 'display_name' => 'getDisplayName', - 'bio' => 'getBio', 'website' => 'getWebsite', - 'twitter' => 'getTwitter', + 'display_name' => 'getDisplayName', + 'created' => 'getCreated', 'facebook' => 'getFacebook', + 'full_name' => 'getFullName', + 'bio' => 'getBio', + 'language' => 'getLanguage', 'linkedin' => 'getLinkedin', 'avatar' => 'getAvatar', - 'created' => 'getCreated', + 'translated_from_id' => 'getTranslatedFromId', + 'twitter' => 'getTwitter', + 'deleted_at' => 'getDeletedAt', + 'name' => 'getName', + 'id' => 'getId', 'updated' => 'getUpdated', - 'deleted_at' => 'getDeletedAt' + 'email' => 'getEmail', + 'slug' => 'getSlug' ]; /** @@ -321,6 +321,8 @@ public function getModelName() public const LANGUAGE_CCP_IN = 'ccp-in'; public const LANGUAGE_CE = 'ce'; public const LANGUAGE_CE_RU = 'ce-ru'; + public const LANGUAGE_CEB = 'ceb'; + public const LANGUAGE_CEB_PH = 'ceb-ph'; public const LANGUAGE_CGG = 'cgg'; public const LANGUAGE_CGG_UG = 'cgg-ug'; public const LANGUAGE_CHR = 'chr'; @@ -350,6 +352,8 @@ public function getModelName() public const LANGUAGE_DE_LU = 'de-lu'; public const LANGUAGE_DJE = 'dje'; public const LANGUAGE_DJE_NE = 'dje-ne'; + public const LANGUAGE_DOI = 'doi'; + public const LANGUAGE_DOI_IN = 'doi-in'; public const LANGUAGE_DSB = 'dsb'; public const LANGUAGE_DSB_DE = 'dsb-de'; public const LANGUAGE_DUA = 'dua'; @@ -387,6 +391,7 @@ public function getModelName() public const LANGUAGE_EN_CH = 'en-ch'; public const LANGUAGE_EN_CK = 'en-ck'; public const LANGUAGE_EN_CM = 'en-cm'; + public const LANGUAGE_EN_CN = 'en-cn'; public const LANGUAGE_EN_CX = 'en-cx'; public const LANGUAGE_EN_CY = 'en-cy'; public const LANGUAGE_EN_DE = 'en-de'; @@ -430,6 +435,7 @@ public function getModelName() public const LANGUAGE_EN_MT = 'en-mt'; public const LANGUAGE_EN_MU = 'en-mu'; public const LANGUAGE_EN_MW = 'en-mw'; + public const LANGUAGE_EN_MX = 'en-mx'; public const LANGUAGE_EN_MY = 'en-my'; public const LANGUAGE_EN_NA = 'en-na'; public const LANGUAGE_EN_NF = 'en-nf'; @@ -514,9 +520,17 @@ public function getModelName() public const LANGUAGE_FA_AF = 'fa-af'; public const LANGUAGE_FA_IR = 'fa-ir'; public const LANGUAGE_FF = 'ff'; + public const LANGUAGE_FF_BF = 'ff-bf'; public const LANGUAGE_FF_CM = 'ff-cm'; + public const LANGUAGE_FF_GH = 'ff-gh'; + public const LANGUAGE_FF_GM = 'ff-gm'; public const LANGUAGE_FF_GN = 'ff-gn'; + public const LANGUAGE_FF_GW = 'ff-gw'; + public const LANGUAGE_FF_LR = 'ff-lr'; public const LANGUAGE_FF_MR = 'ff-mr'; + public const LANGUAGE_FF_NE = 'ff-ne'; + public const LANGUAGE_FF_NG = 'ff-ng'; + public const LANGUAGE_FF_SL = 'ff-sl'; public const LANGUAGE_FF_SN = 'ff-sn'; public const LANGUAGE_FI = 'fi'; public const LANGUAGE_FI_FI = 'fi-fi'; @@ -577,6 +591,7 @@ public function getModelName() public const LANGUAGE_FY = 'fy'; public const LANGUAGE_FY_NL = 'fy-nl'; public const LANGUAGE_GA = 'ga'; + public const LANGUAGE_GA_GB = 'ga-gb'; public const LANGUAGE_GA_IE = 'ga-ie'; public const LANGUAGE_GD = 'gd'; public const LANGUAGE_GD_GB = 'gd-gb'; @@ -610,6 +625,8 @@ public function getModelName() public const LANGUAGE_HU_HU = 'hu-hu'; public const LANGUAGE_HY = 'hy'; public const LANGUAGE_HY_AM = 'hy-am'; + public const LANGUAGE_IA = 'ia'; + public const LANGUAGE_IA_001 = 'ia-001'; public const LANGUAGE_ID = 'id'; public const LANGUAGE_IG = 'ig'; public const LANGUAGE_IG_NG = 'ig-ng'; @@ -632,6 +649,8 @@ public function getModelName() public const LANGUAGE_YI_001 = 'yi-001'; public const LANGUAGE_JMC = 'jmc'; public const LANGUAGE_JMC_TZ = 'jmc-tz'; + public const LANGUAGE_JV = 'jv'; + public const LANGUAGE_JV_ID = 'jv-id'; public const LANGUAGE_KA = 'ka'; public const LANGUAGE_KA_GE = 'ka-ge'; public const LANGUAGE_KAB = 'kab'; @@ -673,6 +692,8 @@ public function getModelName() 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_KY = 'ky'; public const LANGUAGE_KY_KG = 'ky-kg'; public const LANGUAGE_LAG = 'lag'; @@ -703,6 +724,8 @@ public function getModelName() public const LANGUAGE_LUY_KE = 'luy-ke'; public const LANGUAGE_LV = 'lv'; public const LANGUAGE_LV_LV = 'lv-lv'; + public const LANGUAGE_MAI = 'mai'; + public const LANGUAGE_MAI_IN = 'mai-in'; public const LANGUAGE_MAS = 'mas'; public const LANGUAGE_MAS_KE = 'mas-ke'; public const LANGUAGE_MAS_TZ = 'mas-tz'; @@ -716,16 +739,21 @@ public function getModelName() public const LANGUAGE_MGH_MZ = 'mgh-mz'; public const LANGUAGE_MGO = 'mgo'; public const LANGUAGE_MGO_CM = 'mgo-cm'; + public const LANGUAGE_MI = 'mi'; + public const LANGUAGE_MI_NZ = 'mi-nz'; public const LANGUAGE_MK = 'mk'; public const LANGUAGE_MK_MK = 'mk-mk'; public const LANGUAGE_ML = 'ml'; public const LANGUAGE_ML_IN = 'ml-in'; public const LANGUAGE_MN = 'mn'; public const LANGUAGE_MN_MN = 'mn-mn'; + public const LANGUAGE_MNI = 'mni'; + public const LANGUAGE_MNI_IN = 'mni-in'; public const LANGUAGE_MR = 'mr'; public const LANGUAGE_MR_IN = 'mr-in'; public const LANGUAGE_MS = 'ms'; public const LANGUAGE_MS_BN = 'ms-bn'; + public const LANGUAGE_MS_ID = 'ms-id'; public const LANGUAGE_MS_MY = 'ms-my'; public const LANGUAGE_MS_SG = 'ms-sg'; public const LANGUAGE_MT = 'mt'; @@ -782,12 +810,15 @@ public function getModelName() public const LANGUAGE_PA = 'pa'; public const LANGUAGE_PA_IN = 'pa-in'; public const LANGUAGE_PA_PK = 'pa-pk'; + public const LANGUAGE_PCM = 'pcm'; + public const LANGUAGE_PCM_NG = 'pcm-ng'; public const LANGUAGE_PL = 'pl'; public const LANGUAGE_PL_PL = 'pl-pl'; public const LANGUAGE_PRG = 'prg'; public const LANGUAGE_PRG_001 = 'prg-001'; public const LANGUAGE_PS = 'ps'; public const LANGUAGE_PS_AF = 'ps-af'; + public const LANGUAGE_PS_PK = 'ps-pk'; public const LANGUAGE_PT = 'pt'; public const LANGUAGE_PT_AO = 'pt-ao'; public const LANGUAGE_PT_BR = 'pt-br'; @@ -826,13 +857,17 @@ public function getModelName() public const LANGUAGE_RWK = 'rwk'; public const LANGUAGE_RWK_TZ = 'rwk-tz'; public const LANGUAGE_SA = 'sa'; + public const LANGUAGE_SA_IN = 'sa-in'; public const LANGUAGE_SAH = 'sah'; public const LANGUAGE_SAH_RU = 'sah-ru'; public const LANGUAGE_SAQ = 'saq'; public const LANGUAGE_SAQ_KE = 'saq-ke'; + public const LANGUAGE_SAT = 'sat'; + public const LANGUAGE_SAT_IN = 'sat-in'; public const LANGUAGE_SBP = 'sbp'; public const LANGUAGE_SBP_TZ = 'sbp-tz'; public const LANGUAGE_SD = 'sd'; + public const LANGUAGE_SD_IN = 'sd-in'; public const LANGUAGE_SD_PK = 'sd-pk'; public const LANGUAGE_SE = 'se'; public const LANGUAGE_SE_FI = 'se-fi'; @@ -871,6 +906,8 @@ public function getModelName() public const LANGUAGE_SR_ME = 'sr-me'; public const LANGUAGE_SR_RS = 'sr-rs'; public const LANGUAGE_SR_XK = 'sr-xk'; + public const LANGUAGE_SU = 'su'; + public const LANGUAGE_SU_ID = 'su-id'; public const LANGUAGE_SV = 'sv'; public const LANGUAGE_SV_AX = 'sv-ax'; public const LANGUAGE_SV_FI = 'sv-fi'; @@ -900,6 +937,7 @@ public function getModelName() public const LANGUAGE_TI_ET = 'ti-et'; public const LANGUAGE_TK = 'tk'; public const LANGUAGE_TK_TM = 'tk-tm'; + public const LANGUAGE_TL = 'tl'; public const LANGUAGE_TO = 'to'; public const LANGUAGE_TO_TO = 'to-to'; public const LANGUAGE_TR = 'tr'; @@ -933,6 +971,8 @@ public function getModelName() public const LANGUAGE_WAE_CH = 'wae-ch'; public const LANGUAGE_WO = 'wo'; public const LANGUAGE_WO_SN = 'wo-sn'; + public const LANGUAGE_XH = 'xh'; + public const LANGUAGE_XH_ZA = 'xh-za'; public const LANGUAGE_XOG = 'xog'; public const LANGUAGE_XOG_UG = 'xog-ug'; public const LANGUAGE_YAV = 'yav'; @@ -1044,6 +1084,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_CCP_IN, self::LANGUAGE_CE, self::LANGUAGE_CE_RU, + self::LANGUAGE_CEB, + self::LANGUAGE_CEB_PH, self::LANGUAGE_CGG, self::LANGUAGE_CGG_UG, self::LANGUAGE_CHR, @@ -1073,6 +1115,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_DE_LU, self::LANGUAGE_DJE, self::LANGUAGE_DJE_NE, + self::LANGUAGE_DOI, + self::LANGUAGE_DOI_IN, self::LANGUAGE_DSB, self::LANGUAGE_DSB_DE, self::LANGUAGE_DUA, @@ -1110,6 +1154,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_EN_CH, self::LANGUAGE_EN_CK, self::LANGUAGE_EN_CM, + self::LANGUAGE_EN_CN, self::LANGUAGE_EN_CX, self::LANGUAGE_EN_CY, self::LANGUAGE_EN_DE, @@ -1153,6 +1198,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_EN_MT, self::LANGUAGE_EN_MU, self::LANGUAGE_EN_MW, + self::LANGUAGE_EN_MX, self::LANGUAGE_EN_MY, self::LANGUAGE_EN_NA, self::LANGUAGE_EN_NF, @@ -1237,9 +1283,17 @@ public function getLanguageAllowableValues() self::LANGUAGE_FA_AF, self::LANGUAGE_FA_IR, self::LANGUAGE_FF, + self::LANGUAGE_FF_BF, self::LANGUAGE_FF_CM, + self::LANGUAGE_FF_GH, + self::LANGUAGE_FF_GM, self::LANGUAGE_FF_GN, + self::LANGUAGE_FF_GW, + self::LANGUAGE_FF_LR, self::LANGUAGE_FF_MR, + self::LANGUAGE_FF_NE, + self::LANGUAGE_FF_NG, + self::LANGUAGE_FF_SL, self::LANGUAGE_FF_SN, self::LANGUAGE_FI, self::LANGUAGE_FI_FI, @@ -1300,6 +1354,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_FY, self::LANGUAGE_FY_NL, self::LANGUAGE_GA, + self::LANGUAGE_GA_GB, self::LANGUAGE_GA_IE, self::LANGUAGE_GD, self::LANGUAGE_GD_GB, @@ -1333,6 +1388,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_HU_HU, self::LANGUAGE_HY, self::LANGUAGE_HY_AM, + self::LANGUAGE_IA, + self::LANGUAGE_IA_001, self::LANGUAGE_ID, self::LANGUAGE_IG, self::LANGUAGE_IG_NG, @@ -1355,6 +1412,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_YI_001, self::LANGUAGE_JMC, self::LANGUAGE_JMC_TZ, + self::LANGUAGE_JV, + self::LANGUAGE_JV_ID, self::LANGUAGE_KA, self::LANGUAGE_KA_GE, self::LANGUAGE_KAB, @@ -1396,6 +1455,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_KSH_DE, self::LANGUAGE_KW, self::LANGUAGE_KW_GB, + self::LANGUAGE_KU, + self::LANGUAGE_KU_TR, self::LANGUAGE_KY, self::LANGUAGE_KY_KG, self::LANGUAGE_LAG, @@ -1426,6 +1487,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_LUY_KE, self::LANGUAGE_LV, self::LANGUAGE_LV_LV, + self::LANGUAGE_MAI, + self::LANGUAGE_MAI_IN, self::LANGUAGE_MAS, self::LANGUAGE_MAS_KE, self::LANGUAGE_MAS_TZ, @@ -1439,16 +1502,21 @@ public function getLanguageAllowableValues() self::LANGUAGE_MGH_MZ, self::LANGUAGE_MGO, self::LANGUAGE_MGO_CM, + self::LANGUAGE_MI, + self::LANGUAGE_MI_NZ, self::LANGUAGE_MK, self::LANGUAGE_MK_MK, self::LANGUAGE_ML, self::LANGUAGE_ML_IN, self::LANGUAGE_MN, self::LANGUAGE_MN_MN, + self::LANGUAGE_MNI, + self::LANGUAGE_MNI_IN, self::LANGUAGE_MR, self::LANGUAGE_MR_IN, self::LANGUAGE_MS, self::LANGUAGE_MS_BN, + self::LANGUAGE_MS_ID, self::LANGUAGE_MS_MY, self::LANGUAGE_MS_SG, self::LANGUAGE_MT, @@ -1505,12 +1573,15 @@ public function getLanguageAllowableValues() self::LANGUAGE_PA, self::LANGUAGE_PA_IN, self::LANGUAGE_PA_PK, + self::LANGUAGE_PCM, + self::LANGUAGE_PCM_NG, self::LANGUAGE_PL, self::LANGUAGE_PL_PL, self::LANGUAGE_PRG, self::LANGUAGE_PRG_001, self::LANGUAGE_PS, self::LANGUAGE_PS_AF, + self::LANGUAGE_PS_PK, self::LANGUAGE_PT, self::LANGUAGE_PT_AO, self::LANGUAGE_PT_BR, @@ -1549,13 +1620,17 @@ public function getLanguageAllowableValues() self::LANGUAGE_RWK, self::LANGUAGE_RWK_TZ, self::LANGUAGE_SA, + self::LANGUAGE_SA_IN, self::LANGUAGE_SAH, self::LANGUAGE_SAH_RU, self::LANGUAGE_SAQ, self::LANGUAGE_SAQ_KE, + self::LANGUAGE_SAT, + self::LANGUAGE_SAT_IN, self::LANGUAGE_SBP, self::LANGUAGE_SBP_TZ, self::LANGUAGE_SD, + self::LANGUAGE_SD_IN, self::LANGUAGE_SD_PK, self::LANGUAGE_SE, self::LANGUAGE_SE_FI, @@ -1594,6 +1669,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_SR_ME, self::LANGUAGE_SR_RS, self::LANGUAGE_SR_XK, + self::LANGUAGE_SU, + self::LANGUAGE_SU_ID, self::LANGUAGE_SV, self::LANGUAGE_SV_AX, self::LANGUAGE_SV_FI, @@ -1623,6 +1700,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_TI_ET, self::LANGUAGE_TK, self::LANGUAGE_TK_TM, + self::LANGUAGE_TL, self::LANGUAGE_TO, self::LANGUAGE_TO_TO, self::LANGUAGE_TR, @@ -1656,6 +1734,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_WAE_CH, self::LANGUAGE_WO, self::LANGUAGE_WO_SN, + self::LANGUAGE_XH, + self::LANGUAGE_XH_ZA, self::LANGUAGE_XOG, self::LANGUAGE_XOG_UG, self::LANGUAGE_YAV, @@ -1696,23 +1776,23 @@ public function getLanguageAllowableValues() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; - $this->container['full_name'] = $data['full_name'] ?? null; - $this->container['email'] = $data['email'] ?? null; - $this->container['slug'] = $data['slug'] ?? null; - $this->container['language'] = $data['language'] ?? null; - $this->container['translated_from_id'] = $data['translated_from_id'] ?? null; - $this->container['name'] = $data['name'] ?? null; - $this->container['display_name'] = $data['display_name'] ?? null; - $this->container['bio'] = $data['bio'] ?? null; $this->container['website'] = $data['website'] ?? null; - $this->container['twitter'] = $data['twitter'] ?? null; + $this->container['display_name'] = $data['display_name'] ?? null; + $this->container['created'] = $data['created'] ?? null; $this->container['facebook'] = $data['facebook'] ?? null; + $this->container['full_name'] = $data['full_name'] ?? null; + $this->container['bio'] = $data['bio'] ?? null; + $this->container['language'] = $data['language'] ?? null; $this->container['linkedin'] = $data['linkedin'] ?? null; $this->container['avatar'] = $data['avatar'] ?? null; - $this->container['created'] = $data['created'] ?? null; - $this->container['updated'] = $data['updated'] ?? null; + $this->container['translated_from_id'] = $data['translated_from_id'] ?? null; + $this->container['twitter'] = $data['twitter'] ?? null; $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['name'] = $data['name'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['updated'] = $data['updated'] ?? null; + $this->container['email'] = $data['email'] ?? null; + $this->container['slug'] = $data['slug'] ?? null; } /** @@ -1724,17 +1804,23 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; + if ($this->container['website'] === null) { + $invalidProperties[] = "'website' can't be null"; + } + if ($this->container['display_name'] === null) { + $invalidProperties[] = "'display_name' can't be null"; + } + if ($this->container['created'] === null) { + $invalidProperties[] = "'created' can't be null"; + } + if ($this->container['facebook'] === null) { + $invalidProperties[] = "'facebook' can't be null"; } if ($this->container['full_name'] === null) { $invalidProperties[] = "'full_name' can't be null"; } - if ($this->container['email'] === null) { - $invalidProperties[] = "'email' can't be null"; - } - if ($this->container['slug'] === null) { - $invalidProperties[] = "'slug' can't be null"; + if ($this->container['bio'] === null) { + $invalidProperties[] = "'bio' can't be null"; } if ($this->container['language'] === null) { $invalidProperties[] = "'language' can't be null"; @@ -1748,41 +1834,35 @@ public function listInvalidProperties() ); } - if ($this->container['translated_from_id'] === null) { - $invalidProperties[] = "'translated_from_id' can't be null"; - } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['display_name'] === null) { - $invalidProperties[] = "'display_name' can't be null"; + if ($this->container['linkedin'] === null) { + $invalidProperties[] = "'linkedin' can't be null"; } - if ($this->container['bio'] === null) { - $invalidProperties[] = "'bio' can't be null"; + if ($this->container['avatar'] === null) { + $invalidProperties[] = "'avatar' can't be null"; } - if ($this->container['website'] === null) { - $invalidProperties[] = "'website' can't be null"; + if ($this->container['translated_from_id'] === null) { + $invalidProperties[] = "'translated_from_id' can't be null"; } if ($this->container['twitter'] === null) { $invalidProperties[] = "'twitter' can't be null"; } - if ($this->container['facebook'] === null) { - $invalidProperties[] = "'facebook' can't be null"; - } - if ($this->container['linkedin'] === null) { - $invalidProperties[] = "'linkedin' can't be null"; + if ($this->container['deleted_at'] === null) { + $invalidProperties[] = "'deleted_at' can't be null"; } - if ($this->container['avatar'] === null) { - $invalidProperties[] = "'avatar' can't be null"; + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; } - if ($this->container['created'] === null) { - $invalidProperties[] = "'created' can't be null"; + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } if ($this->container['updated'] === null) { $invalidProperties[] = "'updated' can't be null"; } - if ($this->container['deleted_at'] === null) { - $invalidProperties[] = "'deleted_at' can't be null"; + if ($this->container['email'] === null) { + $invalidProperties[] = "'email' can't be null"; + } + if ($this->container['slug'] === null) { + $invalidProperties[] = "'slug' can't be null"; } return $invalidProperties; } @@ -1800,251 +1880,251 @@ public function valid() /** - * Gets id + * Gets website * * @return string */ - public function getId() + public function getWebsite() { - return $this->container['id']; + return $this->container['website']; } /** - * Sets id + * Sets website * - * @param string $id The unique ID of the Blog Author. + * @param string $website URL to the website of the Blog Author. * * @return self */ - public function setId($id) + public function setWebsite($website) { - $this->container['id'] = $id; + $this->container['website'] = $website; return $this; } /** - * Gets full_name + * Gets display_name * * @return string */ - public function getFullName() + public function getDisplayName() { - return $this->container['full_name']; + return $this->container['display_name']; } /** - * Sets full_name + * Sets display_name * - * @param string $full_name full_name + * @param string $display_name The full name of the Blog Author to be displayed. * * @return self */ - public function setFullName($full_name) + public function setDisplayName($display_name) { - $this->container['full_name'] = $full_name; + $this->container['display_name'] = $display_name; return $this; } /** - * Gets email + * Gets created * - * @return string + * @return \DateTime */ - public function getEmail() + public function getCreated() { - return $this->container['email']; + return $this->container['created']; } /** - * Sets email + * Sets created * - * @param string $email Email address of the Blog Author. + * @param \DateTime $created created * * @return self */ - public function setEmail($email) + public function setCreated($created) { - $this->container['email'] = $email; + $this->container['created'] = $created; return $this; } /** - * Gets slug + * Gets facebook * * @return string */ - public function getSlug() + public function getFacebook() { - return $this->container['slug']; + return $this->container['facebook']; } /** - * Sets slug + * Sets facebook * - * @param string $slug slug + * @param string $facebook URL to the Blog Author's Facebook page. * * @return self */ - public function setSlug($slug) + public function setFacebook($facebook) { - $this->container['slug'] = $slug; + $this->container['facebook'] = $facebook; return $this; } /** - * Gets language + * Gets full_name * * @return string */ - public function getLanguage() + public function getFullName() { - return $this->container['language']; + return $this->container['full_name']; } /** - * Sets language + * Sets full_name * - * @param string $language The explicitly defined ISO 639 language code of the blog author. + * @param string $full_name full_name * * @return self */ - public function setLanguage($language) + public function setFullName($full_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; + $this->container['full_name'] = $full_name; return $this; } /** - * Gets translated_from_id + * Gets bio * - * @return int + * @return string */ - public function getTranslatedFromId() + public function getBio() { - return $this->container['translated_from_id']; + return $this->container['bio']; } /** - * Sets translated_from_id + * Sets bio * - * @param int $translated_from_id ID of the primary blog author this object was translated from. + * @param string $bio A short biography of the blog author. * * @return self */ - public function setTranslatedFromId($translated_from_id) + public function setBio($bio) { - $this->container['translated_from_id'] = $translated_from_id; + $this->container['bio'] = $bio; 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 name + * @param string $language The explicitly defined ISO 639 language code of the blog author. * * @return self */ - public function setName($name) + public function setLanguage($language) { - $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 display_name + * Gets linkedin * * @return string */ - public function getDisplayName() + public function getLinkedin() { - return $this->container['display_name']; + return $this->container['linkedin']; } /** - * Sets display_name + * Sets linkedin * - * @param string $display_name The full name of the Blog Author to be displayed. + * @param string $linkedin URL to the blog author's LinkedIn page. * * @return self */ - public function setDisplayName($display_name) + public function setLinkedin($linkedin) { - $this->container['display_name'] = $display_name; + $this->container['linkedin'] = $linkedin; return $this; } /** - * Gets bio + * Gets avatar * * @return string */ - public function getBio() + public function getAvatar() { - return $this->container['bio']; + return $this->container['avatar']; } /** - * Sets bio + * Sets avatar * - * @param string $bio A short biography of the blog author. + * @param string $avatar URL to the blog author's avatar, if supplying a custom one. * * @return self */ - public function setBio($bio) + public function setAvatar($avatar) { - $this->container['bio'] = $bio; + $this->container['avatar'] = $avatar; return $this; } /** - * Gets website + * Gets translated_from_id * - * @return string + * @return int */ - public function getWebsite() + public function getTranslatedFromId() { - return $this->container['website']; + return $this->container['translated_from_id']; } /** - * Sets website + * Sets translated_from_id * - * @param string $website URL to the website of the Blog Author. + * @param int $translated_from_id ID of the primary blog author this object was translated from. * * @return self */ - public function setWebsite($website) + public function setTranslatedFromId($translated_from_id) { - $this->container['website'] = $website; + $this->container['translated_from_id'] = $translated_from_id; return $this; } @@ -2074,145 +2154,145 @@ public function setTwitter($twitter) } /** - * Gets facebook + * Gets deleted_at * - * @return string + * @return \DateTime */ - public function getFacebook() + public function getDeletedAt() { - return $this->container['facebook']; + return $this->container['deleted_at']; } /** - * Sets facebook + * Sets deleted_at * - * @param string $facebook URL to the Blog Author's Facebook page. + * @param \DateTime $deleted_at The timestamp (ISO8601 format) when this Blog Author was deleted. * * @return self */ - public function setFacebook($facebook) + public function setDeletedAt($deleted_at) { - $this->container['facebook'] = $facebook; + $this->container['deleted_at'] = $deleted_at; return $this; } /** - * Gets linkedin + * Gets name * * @return string */ - public function getLinkedin() + public function getName() { - return $this->container['linkedin']; + return $this->container['name']; } /** - * Sets linkedin + * Sets name * - * @param string $linkedin URL to the blog author's LinkedIn page. + * @param string $name name * * @return self */ - public function setLinkedin($linkedin) + public function setName($name) { - $this->container['linkedin'] = $linkedin; + $this->container['name'] = $name; return $this; } /** - * Gets avatar + * Gets id * * @return string */ - public function getAvatar() + public function getId() { - return $this->container['avatar']; + return $this->container['id']; } /** - * Sets avatar + * Sets id * - * @param string $avatar URL to the blog author's avatar, if supplying a custom one. + * @param string $id The unique ID of the Blog Author. * * @return self */ - public function setAvatar($avatar) + public function setId($id) { - $this->container['avatar'] = $avatar; + $this->container['id'] = $id; return $this; } /** - * Gets created + * Gets updated * * @return \DateTime */ - public function getCreated() + public function getUpdated() { - return $this->container['created']; + return $this->container['updated']; } /** - * Sets created + * Sets updated * - * @param \DateTime $created created + * @param \DateTime $updated updated * * @return self */ - public function setCreated($created) + public function setUpdated($updated) { - $this->container['created'] = $created; + $this->container['updated'] = $updated; return $this; } /** - * Gets updated + * Gets email * - * @return \DateTime + * @return string */ - public function getUpdated() + public function getEmail() { - return $this->container['updated']; + return $this->container['email']; } /** - * Sets updated + * Sets email * - * @param \DateTime $updated updated + * @param string $email Email address of the Blog Author. * * @return self */ - public function setUpdated($updated) + public function setEmail($email) { - $this->container['updated'] = $updated; + $this->container['email'] = $email; return $this; } /** - * Gets deleted_at + * Gets slug * - * @return \DateTime + * @return string */ - public function getDeletedAt() + public function getSlug() { - return $this->container['deleted_at']; + return $this->container['slug']; } /** - * Sets deleted_at + * Sets slug * - * @param \DateTime $deleted_at The timestamp (ISO8601 format) when this Blog Author was deleted. + * @param string $slug slug * * @return self */ - public function setDeletedAt($deleted_at) + public function setSlug($slug) { - $this->container['deleted_at'] = $deleted_at; + $this->container['slug'] = $slug; return $this; } diff --git a/codegen/Cms/Blogs/Authors/Model/BlogAuthorCloneRequestVNext.php b/codegen/Cms/Blogs/Authors/Model/BlogAuthorCloneRequestVNext.php index 9a97ec29..f16aa3fe 100644 --- a/codegen/Cms/Blogs/Authors/Model/BlogAuthorCloneRequestVNext.php +++ b/codegen/Cms/Blogs/Authors/Model/BlogAuthorCloneRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,8 +58,8 @@ class BlogAuthorCloneRequestVNext implements ModelInterface, ArrayAccess, \JsonS * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', 'language' => 'string', + 'id' => 'string', 'primary_language' => 'string', 'blog_author' => '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor' ]; @@ -72,8 +72,8 @@ class BlogAuthorCloneRequestVNext implements ModelInterface, ArrayAccess, \JsonS * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, 'language' => null, + 'id' => null, 'primary_language' => null, 'blog_author' => null ]; @@ -105,8 +105,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', 'language' => 'language', + 'id' => 'id', 'primary_language' => 'primaryLanguage', 'blog_author' => 'blogAuthor' ]; @@ -117,8 +117,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', 'language' => 'setLanguage', + 'id' => 'setId', 'primary_language' => 'setPrimaryLanguage', 'blog_author' => 'setBlogAuthor' ]; @@ -129,8 +129,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', 'language' => 'getLanguage', + 'id' => 'getId', 'primary_language' => 'getPrimaryLanguage', 'blog_author' => 'getBlogAuthor' ]; @@ -192,8 +192,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; $this->container['language'] = $data['language'] ?? null; + $this->container['id'] = $data['id'] ?? null; $this->container['primary_language'] = $data['primary_language'] ?? null; $this->container['blog_author'] = $data['blog_author'] ?? null; } @@ -229,49 +229,49 @@ public function valid() /** - * 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 the object to be cloned. + * @param string|null $language Language of newly cloned object. * * @return self */ - public function setId($id) + public function setLanguage($language) { - $this->container['id'] = $id; + $this->container['language'] = $language; return $this; } /** - * 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 Language of newly cloned object. + * @param string $id ID of the object to be cloned. * * @return self */ - public function setLanguage($language) + public function setId($id) { - $this->container['language'] = $language; + $this->container['id'] = $id; return $this; } diff --git a/codegen/Cms/Blogs/Authors/Model/CollectionResponseWithTotalBlogAuthorForwardPaging.php b/codegen/Cms/Blogs/Authors/Model/CollectionResponseWithTotalBlogAuthorForwardPaging.php index cdc5dde2..41c2c6bb 100644 --- a/codegen/Cms/Blogs/Authors/Model/CollectionResponseWithTotalBlogAuthorForwardPaging.php +++ b/codegen/Cms/Blogs/Authors/Model/CollectionResponseWithTotalBlogAuthorForwardPaging.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -59,8 +59,8 @@ class CollectionResponseWithTotalBlogAuthorForwardPaging implements ModelInterfa */ protected static $openAPITypes = [ 'total' => 'int', - 'results' => '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[]', - 'paging' => '\HubSpot\Client\Cms\Blogs\Authors\Model\ForwardPaging' + 'paging' => '\HubSpot\Client\Cms\Blogs\Authors\Model\ForwardPaging', + 'results' => '\HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[]' ]; /** @@ -72,8 +72,8 @@ class CollectionResponseWithTotalBlogAuthorForwardPaging implements ModelInterfa */ protected static $openAPIFormats = [ 'total' => 'int32', - 'results' => null, - 'paging' => null + 'paging' => null, + 'results' => null ]; /** @@ -104,8 +104,8 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'total' => 'total', - 'results' => 'results', - 'paging' => 'paging' + 'paging' => 'paging', + 'results' => 'results' ]; /** @@ -115,8 +115,8 @@ public static function openAPIFormats() */ protected static $setters = [ 'total' => 'setTotal', - 'results' => 'setResults', - 'paging' => 'setPaging' + 'paging' => 'setPaging', + 'results' => 'setResults' ]; /** @@ -126,8 +126,8 @@ public static function openAPIFormats() */ protected static $getters = [ 'total' => 'getTotal', - 'results' => 'getResults', - 'paging' => 'getPaging' + 'paging' => 'getPaging', + 'results' => 'getResults' ]; /** @@ -188,8 +188,8 @@ public function getModelName() public function __construct(array $data = null) { $this->container['total'] = $data['total'] ?? null; - $this->container['results'] = $data['results'] ?? null; $this->container['paging'] = $data['paging'] ?? null; + $this->container['results'] = $data['results'] ?? null; } /** @@ -247,49 +247,49 @@ public function setTotal($total) } /** - * Gets results + * Gets paging * - * @return \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[] + * @return \HubSpot\Client\Cms\Blogs\Authors\Model\ForwardPaging|null */ - public function getResults() + public function getPaging() { - return $this->container['results']; + return $this->container['paging']; } /** - * Sets results + * Sets paging * - * @param \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[] $results Collection of blog authors. + * @param \HubSpot\Client\Cms\Blogs\Authors\Model\ForwardPaging|null $paging paging * * @return self */ - public function setResults($results) + public function setPaging($paging) { - $this->container['results'] = $results; + $this->container['paging'] = $paging; return $this; } /** - * Gets paging + * Gets results * - * @return \HubSpot\Client\Cms\Blogs\Authors\Model\ForwardPaging|null + * @return \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[] */ - public function getPaging() + public function getResults() { - return $this->container['paging']; + return $this->container['results']; } /** - * Sets paging + * Sets results * - * @param \HubSpot\Client\Cms\Blogs\Authors\Model\ForwardPaging|null $paging paging + * @param \HubSpot\Client\Cms\Blogs\Authors\Model\BlogAuthor[] $results Collection of blog authors. * * @return self */ - public function setPaging($paging) + public function setResults($results) { - $this->container['paging'] = $paging; + $this->container['results'] = $results; return $this; } diff --git a/codegen/Cms/Blogs/Authors/Model/DetachFromLangGroupRequestVNext.php b/codegen/Cms/Blogs/Authors/Model/DetachFromLangGroupRequestVNext.php index d524f380..6dff516f 100644 --- a/codegen/Cms/Blogs/Authors/Model/DetachFromLangGroupRequestVNext.php +++ b/codegen/Cms/Blogs/Authors/Model/DetachFromLangGroupRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Authors/Model/Error.php b/codegen/Cms/Blogs/Authors/Model/Error.php index 6d2b889f..bcc8994a 100644 --- a/codegen/Cms/Blogs/Authors/Model/Error.php +++ b/codegen/Cms/Blogs/Authors/Model/Error.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'correlation_id' => 'string', - 'category' => 'string', 'sub_category' => 'string', - 'errors' => '\HubSpot\Client\Cms\Blogs\Authors\Model\ErrorDetail[]', 'context' => 'array', - 'links' => 'array' + 'correlation_id' => 'string', + 'links' => 'array', + 'message' => 'string', + 'category' => 'string', + 'errors' => '\HubSpot\Client\Cms\Blogs\Authors\Model\ErrorDetail[]' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'correlation_id' => 'uuid', - 'category' => null, 'sub_category' => null, - 'errors' => null, 'context' => null, - 'links' => null + 'correlation_id' => 'uuid', + 'links' => null, + 'message' => null, + 'category' => null, + 'errors' => null ]; /** @@ -110,13 +110,13 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'correlation_id' => 'correlationId', - 'category' => 'category', 'sub_category' => 'subCategory', - 'errors' => 'errors', 'context' => 'context', - 'links' => 'links' + 'correlation_id' => 'correlationId', + 'links' => 'links', + 'message' => 'message', + 'category' => 'category', + 'errors' => 'errors' ]; /** @@ -125,13 +125,13 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'correlation_id' => 'setCorrelationId', - 'category' => 'setCategory', 'sub_category' => 'setSubCategory', - 'errors' => 'setErrors', 'context' => 'setContext', - 'links' => 'setLinks' + 'correlation_id' => 'setCorrelationId', + 'links' => 'setLinks', + 'message' => 'setMessage', + 'category' => 'setCategory', + 'errors' => 'setErrors' ]; /** @@ -140,13 +140,13 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'correlation_id' => 'getCorrelationId', - 'category' => 'getCategory', 'sub_category' => 'getSubCategory', - 'errors' => 'getErrors', 'context' => 'getContext', - 'links' => 'getLinks' + 'correlation_id' => 'getCorrelationId', + 'links' => 'getLinks', + 'message' => 'getMessage', + 'category' => 'getCategory', + 'errors' => 'getErrors' ]; /** @@ -206,13 +206,13 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['correlation_id'] = $data['correlation_id'] ?? null; - $this->container['category'] = $data['category'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['correlation_id'] = $data['correlation_id'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['message'] = $data['message'] ?? null; + $this->container['category'] = $data['category'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; } /** @@ -224,12 +224,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' 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"; } @@ -249,169 +249,169 @@ public function valid() /** - * 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) { - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets correlation_id + * Gets context * - * @return string + * @return array|null */ - public function getCorrelationId() + public function getContext() { - return $this->container['correlation_id']; + return $this->container['context']; } /** - * Sets correlation_id + * Sets context * - * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets + * @param array|null $context Context about the error condition * * @return self */ - public function setCorrelationId($correlation_id) + public function setContext($context) { - $this->container['correlation_id'] = $correlation_id; + $this->container['context'] = $context; return $this; } /** - * Gets category + * Gets correlation_id * * @return string */ - public function getCategory() + public function getCorrelationId() { - return $this->container['category']; + return $this->container['correlation_id']; } /** - * Sets category + * Sets correlation_id * - * @param string $category The error category + * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets * * @return self */ - public function setCategory($category) + public function setCorrelationId($correlation_id) { - $this->container['category'] = $category; + $this->container['correlation_id'] = $correlation_id; return $this; } /** - * Gets sub_category + * Gets links * - * @return string|null + * @return array|null */ - public function getSubCategory() + public function getLinks() { - return $this->container['sub_category']; + return $this->container['links']; } /** - * Sets sub_category + * Sets links * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps * * @return self */ - public function setSubCategory($sub_category) + public function setLinks($links) { - $this->container['sub_category'] = $sub_category; + $this->container['links'] = $links; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\Blogs\Authors\Model\ErrorDetail[]|null + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\Blogs\Authors\Model\ErrorDetail[]|null $errors further information about the error + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets category * - * @return array|null + * @return string */ - public function getContext() + public function getCategory() { - return $this->container['context']; + return $this->container['category']; } /** - * Sets context + * Sets category * - * @param array|null $context Context about the error condition + * @param string $category The error category * * @return self */ - public function setContext($context) + public function setCategory($category) { - $this->container['context'] = $context; + $this->container['category'] = $category; return $this; } /** - * Gets links + * Gets errors * - * @return array|null + * @return \HubSpot\Client\Cms\Blogs\Authors\Model\ErrorDetail[]|null */ - public function getLinks() + public function getErrors() { - return $this->container['links']; + return $this->container['errors']; } /** - * Sets links + * Sets errors * - * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps + * @param \HubSpot\Client\Cms\Blogs\Authors\Model\ErrorDetail[]|null $errors further information about the error * * @return self */ - public function setLinks($links) + public function setErrors($errors) { - $this->container['links'] = $links; + $this->container['errors'] = $errors; return $this; } diff --git a/codegen/Cms/Blogs/Authors/Model/ErrorDetail.php b/codegen/Cms/Blogs/Authors/Model/ErrorDetail.php index db333719..5b26be50 100644 --- a/codegen/Cms/Blogs/Authors/Model/ErrorDetail.php +++ b/codegen/Cms/Blogs/Authors/Model/ErrorDetail.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'in' => 'string', - 'code' => 'string', 'sub_category' => 'string', - 'context' => 'array' + 'code' => 'string', + 'in' => 'string', + 'context' => 'array', + 'message' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'in' => null, - 'code' => null, 'sub_category' => null, - 'context' => null + 'code' => null, + 'in' => null, + 'context' => null, + 'message' => null ]; /** @@ -106,11 +106,11 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'in' => 'in', - 'code' => 'code', 'sub_category' => 'subCategory', - 'context' => 'context' + 'code' => 'code', + 'in' => 'in', + 'context' => 'context', + 'message' => 'message' ]; /** @@ -119,11 +119,11 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'in' => 'setIn', - 'code' => 'setCode', 'sub_category' => 'setSubCategory', - 'context' => 'setContext' + 'code' => 'setCode', + 'in' => 'setIn', + 'context' => 'setContext', + 'message' => 'setMessage' ]; /** @@ -132,11 +132,11 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'in' => 'getIn', - 'code' => 'getCode', 'sub_category' => 'getSubCategory', - 'context' => 'getContext' + 'code' => 'getCode', + 'in' => 'getIn', + 'context' => 'getContext', + 'message' => 'getMessage' ]; /** @@ -196,11 +196,11 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['in'] = $data['in'] ?? null; - $this->container['code'] = $data['code'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['code'] = $data['code'] ?? null; + $this->container['in'] = $data['in'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['message'] = $data['message'] ?? null; } /** @@ -231,49 +231,25 @@ public function valid() /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A human readable message describing the error along with remediation steps where appropriate - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - - /** - * Gets in + * Gets sub_category * * @return string|null */ - public function getIn() + public function getSubCategory() { - return $this->container['in']; + return $this->container['sub_category']; } /** - * Sets in + * Sets sub_category * - * @param string|null $in The name of the field or parameter in which the error was found. + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setIn($in) + public function setSubCategory($sub_category) { - $this->container['in'] = $in; + $this->container['sub_category'] = $sub_category; return $this; } @@ -303,25 +279,25 @@ public function setCode($code) } /** - * Gets sub_category + * Gets in * * @return string|null */ - public function getSubCategory() + public function getIn() { - return $this->container['sub_category']; + return $this->container['in']; } /** - * Sets sub_category + * Sets in * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $in The name of the field or parameter in which the error was found. * * @return self */ - public function setSubCategory($sub_category) + public function setIn($in) { - $this->container['sub_category'] = $sub_category; + $this->container['in'] = $in; return $this; } @@ -349,6 +325,30 @@ public function setContext($context) return $this; } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message A human readable message describing the error along with remediation steps where appropriate + * + * @return self + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Blogs/Authors/Model/ForwardPaging.php b/codegen/Cms/Blogs/Authors/Model/ForwardPaging.php index 3dc1c59c..cfbc19cf 100644 --- a/codegen/Cms/Blogs/Authors/Model/ForwardPaging.php +++ b/codegen/Cms/Blogs/Authors/Model/ForwardPaging.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Authors/Model/ModelInterface.php b/codegen/Cms/Blogs/Authors/Model/ModelInterface.php index a7d84cf0..b6c95bc1 100644 --- a/codegen/Cms/Blogs/Authors/Model/ModelInterface.php +++ b/codegen/Cms/Blogs/Authors/Model/ModelInterface.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Authors/Model/NextPage.php b/codegen/Cms/Blogs/Authors/Model/NextPage.php index e466def0..f7880ebf 100644 --- a/codegen/Cms/Blogs/Authors/Model/NextPage.php +++ b/codegen/Cms/Blogs/Authors/Model/NextPage.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,8 +58,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'after' => 'string', - 'link' => 'string' + 'link' => 'string', + 'after' => 'string' ]; /** @@ -70,8 +70,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'after' => null, - 'link' => null + 'link' => null, + 'after' => null ]; /** @@ -101,8 +101,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'after' => 'after', - 'link' => 'link' + 'link' => 'link', + 'after' => 'after' ]; /** @@ -111,8 +111,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'after' => 'setAfter', - 'link' => 'setLink' + 'link' => 'setLink', + 'after' => 'setAfter' ]; /** @@ -121,8 +121,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'after' => 'getAfter', - 'link' => 'getLink' + 'link' => 'getLink', + 'after' => 'getAfter' ]; /** @@ -182,8 +182,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['after'] = $data['after'] ?? null; $this->container['link'] = $data['link'] ?? null; + $this->container['after'] = $data['after'] ?? null; } /** @@ -214,49 +214,49 @@ public function valid() /** - * 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 after + * @param string|null $link * * @return self */ - public function setAfter($after) + public function setLink($link) { - $this->container['after'] = $after; + $this->container['link'] = $link; return $this; } /** - * 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 link + * @param string $after * * @return self */ - public function setLink($link) + public function setAfter($after) { - $this->container['link'] = $link; + $this->container['after'] = $after; return $this; } diff --git a/codegen/Cms/Blogs/Authors/Model/SetNewLanguagePrimaryRequestVNext.php b/codegen/Cms/Blogs/Authors/Model/SetNewLanguagePrimaryRequestVNext.php index c589930b..3c173dec 100644 --- a/codegen/Cms/Blogs/Authors/Model/SetNewLanguagePrimaryRequestVNext.php +++ b/codegen/Cms/Blogs/Authors/Model/SetNewLanguagePrimaryRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Authors/Model/StandardError.php b/codegen/Cms/Blogs/Authors/Model/StandardError.php index 9e3ec06a..3b9a8319 100644 --- a/codegen/Cms/Blogs/Authors/Model/StandardError.php +++ b/codegen/Cms/Blogs/Authors/Model/StandardError.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,14 +58,14 @@ class StandardError implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', - 'id' => 'string', - 'category' => 'object', 'sub_category' => 'object', + 'context' => 'array', + 'links' => 'array', + 'id' => 'string', + 'category' => 'string', 'message' => 'string', 'errors' => '\HubSpot\Client\Cms\Blogs\Authors\Model\ErrorDetail[]', - 'context' => 'array', - 'links' => 'array' + 'status' => 'string' ]; /** @@ -76,14 +76,14 @@ class StandardError implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'status' => null, + 'sub_category' => null, + 'context' => null, + 'links' => null, 'id' => null, 'category' => null, - 'sub_category' => null, 'message' => null, 'errors' => null, - 'context' => null, - 'links' => null + 'status' => null ]; /** @@ -113,14 +113,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'status' => 'status', + 'sub_category' => 'subCategory', + 'context' => 'context', + 'links' => 'links', 'id' => 'id', 'category' => 'category', - 'sub_category' => 'subCategory', 'message' => 'message', 'errors' => 'errors', - 'context' => 'context', - 'links' => 'links' + 'status' => 'status' ]; /** @@ -129,14 +129,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'status' => 'setStatus', + 'sub_category' => 'setSubCategory', + 'context' => 'setContext', + 'links' => 'setLinks', 'id' => 'setId', 'category' => 'setCategory', - 'sub_category' => 'setSubCategory', 'message' => 'setMessage', 'errors' => 'setErrors', - 'context' => 'setContext', - 'links' => 'setLinks' + 'status' => 'setStatus' ]; /** @@ -145,14 +145,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'status' => 'getStatus', + 'sub_category' => 'getSubCategory', + 'context' => 'getContext', + 'links' => 'getLinks', 'id' => 'getId', 'category' => 'getCategory', - 'sub_category' => 'getSubCategory', 'message' => 'getMessage', 'errors' => 'getErrors', - 'context' => 'getContext', - 'links' => 'getLinks' + 'status' => 'getStatus' ]; /** @@ -212,14 +212,14 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['status'] = $data['status'] ?? null; + $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['context'] = $data['context'] ?? null; + $this->container['links'] = $data['links'] ?? null; $this->container['id'] = $data['id'] ?? null; $this->container['category'] = $data['category'] ?? null; - $this->container['sub_category'] = $data['sub_category'] ?? null; $this->container['message'] = $data['message'] ?? null; $this->container['errors'] = $data['errors'] ?? null; - $this->container['context'] = $data['context'] ?? null; - $this->container['links'] = $data['links'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -231,8 +231,11 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; + if ($this->container['context'] === null) { + $invalidProperties[] = "'context' 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"; @@ -243,11 +246,8 @@ public function listInvalidProperties() if ($this->container['errors'] === null) { $invalidProperties[] = "'errors' can't be null"; } - if ($this->container['context'] === null) { - $invalidProperties[] = "'context' can't be null"; - } - if ($this->container['links'] === null) { - $invalidProperties[] = "'links' can't be null"; + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; } return $invalidProperties; } @@ -265,193 +265,193 @@ public function valid() /** - * 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) { - $this->container['status'] = $status; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets id + * Gets context * - * @return string|null + * @return array */ - public function getId() + public function getContext() { - return $this->container['id']; + return $this->container['context']; } /** - * Sets id + * Sets context * - * @param string|null $id Error ID. + * @param array $context Error context. * * @return self */ - public function setId($id) + public function setContext($context) { - $this->container['id'] = $id; + $this->container['context'] = $context; return $this; } /** - * Gets category + * Gets links * - * @return object + * @return array */ - public function getCategory() + public function getLinks() { - return $this->container['category']; + return $this->container['links']; } /** - * Sets category + * Sets links * - * @param object $category Model definition for an error category. + * @param array $links Error links. * * @return self */ - public function setCategory($category) + public function setLinks($links) { - $this->container['category'] = $category; + $this->container['links'] = $links; return $this; } /** - * Gets sub_category + * Gets id * - * @return object|null + * @return string|null */ - public function getSubCategory() + public function getId() { - return $this->container['sub_category']; + return $this->container['id']; } /** - * Sets sub_category + * Sets id * - * @param object|null $sub_category Error subcategory. + * @param string|null $id Error ID. * * @return self */ - public function setSubCategory($sub_category) + public function setId($id) { - $this->container['sub_category'] = $sub_category; + $this->container['id'] = $id; return $this; } /** - * Gets message + * Gets category * * @return string */ - public function getMessage() + public function getCategory() { - return $this->container['message']; + return $this->container['category']; } /** - * Sets message + * Sets category * - * @param string $message Error message. + * @param string $category Error category. * * @return self */ - public function setMessage($message) + public function setCategory($category) { - $this->container['message'] = $message; + $this->container['category'] = $category; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\Blogs\Authors\Model\ErrorDetail[] + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\Blogs\Authors\Model\ErrorDetail[] $errors List of error details. + * @param string $message Error message. * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets errors * - * @return array + * @return \HubSpot\Client\Cms\Blogs\Authors\Model\ErrorDetail[] */ - public function getContext() + public function getErrors() { - return $this->container['context']; + return $this->container['errors']; } /** - * Sets context + * Sets errors * - * @param array $context Error context. + * @param \HubSpot\Client\Cms\Blogs\Authors\Model\ErrorDetail[] $errors List of error details. * * @return self */ - public function setContext($context) + public function setErrors($errors) { - $this->container['context'] = $context; + $this->container['errors'] = $errors; return $this; } /** - * Gets links + * Gets status * - * @return array + * @return string */ - public function getLinks() + public function getStatus() { - return $this->container['links']; + return $this->container['status']; } /** - * Sets links + * Sets status * - * @param array $links Error links. + * @param string $status Error status. * * @return self */ - public function setLinks($links) + public function setStatus($status) { - $this->container['links'] = $links; + $this->container['status'] = $status; return $this; } diff --git a/codegen/Cms/Blogs/Authors/Model/UpdateLanguagesRequestVNext.php b/codegen/Cms/Blogs/Authors/Model/UpdateLanguagesRequestVNext.php index 569d0da5..096cca6b 100644 --- a/codegen/Cms/Blogs/Authors/Model/UpdateLanguagesRequestVNext.php +++ b/codegen/Cms/Blogs/Authors/Model/UpdateLanguagesRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,8 +58,8 @@ class UpdateLanguagesRequestVNext implements ModelInterface, ArrayAccess, \JsonS * @var string[] */ protected static $openAPITypes = [ - 'primary_id' => 'string', - 'languages' => 'array' + 'languages' => 'array', + 'primary_id' => 'string' ]; /** @@ -70,8 +70,8 @@ class UpdateLanguagesRequestVNext implements ModelInterface, ArrayAccess, \JsonS * @psalm-var array */ protected static $openAPIFormats = [ - 'primary_id' => null, - 'languages' => null + 'languages' => null, + 'primary_id' => null ]; /** @@ -101,8 +101,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'primary_id' => 'primaryId', - 'languages' => 'languages' + 'languages' => 'languages', + 'primary_id' => 'primaryId' ]; /** @@ -111,8 +111,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'primary_id' => 'setPrimaryId', - 'languages' => 'setLanguages' + 'languages' => 'setLanguages', + 'primary_id' => 'setPrimaryId' ]; /** @@ -121,8 +121,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'primary_id' => 'getPrimaryId', - 'languages' => 'getLanguages' + 'languages' => 'getLanguages', + 'primary_id' => 'getPrimaryId' ]; /** @@ -166,1445 +166,6 @@ public function getModelName() return self::$openAPIModelName; } - public const LANGUAGES_AF = 'af'; - public const LANGUAGES_AF_NA = 'af-na'; - public const LANGUAGES_AF_ZA = 'af-za'; - public const LANGUAGES_AGQ = 'agq'; - public const LANGUAGES_AGQ_CM = 'agq-cm'; - public const LANGUAGES_AK = 'ak'; - public const LANGUAGES_AK_GH = 'ak-gh'; - public const LANGUAGES_AM = 'am'; - public const LANGUAGES_AM_ET = 'am-et'; - public const LANGUAGES_AR = 'ar'; - public const LANGUAGES_AR_001 = 'ar-001'; - public const LANGUAGES_AR_AE = 'ar-ae'; - public const LANGUAGES_AR_BH = 'ar-bh'; - public const LANGUAGES_AR_DJ = 'ar-dj'; - public const LANGUAGES_AR_DZ = 'ar-dz'; - public const LANGUAGES_AR_EG = 'ar-eg'; - public const LANGUAGES_AR_EH = 'ar-eh'; - public const LANGUAGES_AR_ER = 'ar-er'; - public const LANGUAGES_AR_IL = 'ar-il'; - public const LANGUAGES_AR_IQ = 'ar-iq'; - public const LANGUAGES_AR_JO = 'ar-jo'; - public const LANGUAGES_AR_KM = 'ar-km'; - public const LANGUAGES_AR_KW = 'ar-kw'; - public const LANGUAGES_AR_LB = 'ar-lb'; - public const LANGUAGES_AR_LY = 'ar-ly'; - public const LANGUAGES_AR_MA = 'ar-ma'; - public const LANGUAGES_AR_MR = 'ar-mr'; - public const LANGUAGES_AR_OM = 'ar-om'; - public const LANGUAGES_AR_PS = 'ar-ps'; - public const LANGUAGES_AR_QA = 'ar-qa'; - public const LANGUAGES_AR_SA = 'ar-sa'; - public const LANGUAGES_AR_SD = 'ar-sd'; - public const LANGUAGES_AR_SO = 'ar-so'; - public const LANGUAGES_AR_SS = 'ar-ss'; - public const LANGUAGES_AR_SY = 'ar-sy'; - public const LANGUAGES_AR_TD = 'ar-td'; - public const LANGUAGES_AR_TN = 'ar-tn'; - public const LANGUAGES_AR_YE = 'ar-ye'; - public const LANGUAGES__AS = 'as'; - public const LANGUAGES_AS_IN = 'as-in'; - public const LANGUAGES_ASA = 'asa'; - public const LANGUAGES_ASA_TZ = 'asa-tz'; - public const LANGUAGES_AST = 'ast'; - public const LANGUAGES_AST_ES = 'ast-es'; - public const LANGUAGES_AZ = 'az'; - public const LANGUAGES_AZ_AZ = 'az-az'; - public const LANGUAGES_BAS = 'bas'; - public const LANGUAGES_BAS_CM = 'bas-cm'; - public const LANGUAGES_BE = 'be'; - public const LANGUAGES_BE_BY = 'be-by'; - public const LANGUAGES_BEM = 'bem'; - public const LANGUAGES_BEM_ZM = 'bem-zm'; - public const LANGUAGES_BEZ = 'bez'; - public const LANGUAGES_BEZ_TZ = 'bez-tz'; - public const LANGUAGES_BG = 'bg'; - public const LANGUAGES_BG_BG = 'bg-bg'; - public const LANGUAGES_BM = 'bm'; - public const LANGUAGES_BM_ML = 'bm-ml'; - public const LANGUAGES_BN = 'bn'; - public const LANGUAGES_BN_BD = 'bn-bd'; - public const LANGUAGES_BN_IN = 'bn-in'; - public const LANGUAGES_BO = 'bo'; - public const LANGUAGES_BO_CN = 'bo-cn'; - public const LANGUAGES_BO_IN = 'bo-in'; - public const LANGUAGES_BR = 'br'; - public const LANGUAGES_BR_FR = 'br-fr'; - public const LANGUAGES_BRX = 'brx'; - public const LANGUAGES_BRX_IN = 'brx-in'; - public const LANGUAGES_BS = 'bs'; - public const LANGUAGES_BS_BA = 'bs-ba'; - public const LANGUAGES_CA = 'ca'; - public const LANGUAGES_CA_AD = 'ca-ad'; - public const LANGUAGES_CA_ES = 'ca-es'; - public const LANGUAGES_CA_FR = 'ca-fr'; - public const LANGUAGES_CA_IT = 'ca-it'; - public const LANGUAGES_CCP = 'ccp'; - public const LANGUAGES_CCP_BD = 'ccp-bd'; - public const LANGUAGES_CCP_IN = 'ccp-in'; - public const LANGUAGES_CE = 'ce'; - public const LANGUAGES_CE_RU = 'ce-ru'; - public const LANGUAGES_CGG = 'cgg'; - public const LANGUAGES_CGG_UG = 'cgg-ug'; - public const LANGUAGES_CHR = 'chr'; - public const LANGUAGES_CHR_US = 'chr-us'; - public const LANGUAGES_CKB = 'ckb'; - public const LANGUAGES_CKB_IQ = 'ckb-iq'; - public const LANGUAGES_CKB_IR = 'ckb-ir'; - public const LANGUAGES_CS = 'cs'; - public const LANGUAGES_CS_CZ = 'cs-cz'; - public const LANGUAGES_CU = 'cu'; - public const LANGUAGES_CU_RU = 'cu-ru'; - public const LANGUAGES_CY = 'cy'; - public const LANGUAGES_CY_GB = 'cy-gb'; - public const LANGUAGES_DA = 'da'; - public const LANGUAGES_DA_DK = 'da-dk'; - public const LANGUAGES_DA_GL = 'da-gl'; - public const LANGUAGES_DAV = 'dav'; - public const LANGUAGES_DAV_KE = 'dav-ke'; - public const LANGUAGES_DE = 'de'; - public const LANGUAGES_DE_AT = 'de-at'; - public const LANGUAGES_DE_BE = 'de-be'; - public const LANGUAGES_DE_CH = 'de-ch'; - public const LANGUAGES_DE_DE = 'de-de'; - public const LANGUAGES_DE_GR = 'de-gr'; - public const LANGUAGES_DE_IT = 'de-it'; - public const LANGUAGES_DE_LI = 'de-li'; - public const LANGUAGES_DE_LU = 'de-lu'; - public const LANGUAGES_DJE = 'dje'; - public const LANGUAGES_DJE_NE = 'dje-ne'; - public const LANGUAGES_DSB = 'dsb'; - public const LANGUAGES_DSB_DE = 'dsb-de'; - public const LANGUAGES_DUA = 'dua'; - public const LANGUAGES_DUA_CM = 'dua-cm'; - public const LANGUAGES_DYO = 'dyo'; - public const LANGUAGES_DYO_SN = 'dyo-sn'; - public const LANGUAGES_DZ = 'dz'; - public const LANGUAGES_DZ_BT = 'dz-bt'; - public const LANGUAGES_EBU = 'ebu'; - public const LANGUAGES_EBU_KE = 'ebu-ke'; - public const LANGUAGES_EE = 'ee'; - public const LANGUAGES_EE_GH = 'ee-gh'; - public const LANGUAGES_EE_TG = 'ee-tg'; - public const LANGUAGES_EL = 'el'; - public const LANGUAGES_EL_CY = 'el-cy'; - public const LANGUAGES_EL_GR = 'el-gr'; - public const LANGUAGES_EN = 'en'; - public const LANGUAGES_EN_001 = 'en-001'; - public const LANGUAGES_EN_150 = 'en-150'; - public const LANGUAGES_EN_AE = 'en-ae'; - public const LANGUAGES_EN_AG = 'en-ag'; - public const LANGUAGES_EN_AI = 'en-ai'; - public const LANGUAGES_EN_AS = 'en-as'; - public const LANGUAGES_EN_AT = 'en-at'; - public const LANGUAGES_EN_AU = 'en-au'; - public const LANGUAGES_EN_BB = 'en-bb'; - public const LANGUAGES_EN_BE = 'en-be'; - public const LANGUAGES_EN_BI = 'en-bi'; - public const LANGUAGES_EN_BM = 'en-bm'; - public const LANGUAGES_EN_BS = 'en-bs'; - public const LANGUAGES_EN_BW = 'en-bw'; - public const LANGUAGES_EN_BZ = 'en-bz'; - public const LANGUAGES_EN_CA = 'en-ca'; - public const LANGUAGES_EN_CC = 'en-cc'; - public const LANGUAGES_EN_CH = 'en-ch'; - public const LANGUAGES_EN_CK = 'en-ck'; - public const LANGUAGES_EN_CM = 'en-cm'; - public const LANGUAGES_EN_CX = 'en-cx'; - public const LANGUAGES_EN_CY = 'en-cy'; - public const LANGUAGES_EN_DE = 'en-de'; - public const LANGUAGES_EN_DG = 'en-dg'; - public const LANGUAGES_EN_DK = 'en-dk'; - public const LANGUAGES_EN_DM = 'en-dm'; - public const LANGUAGES_EN_ER = 'en-er'; - public const LANGUAGES_EN_FI = 'en-fi'; - public const LANGUAGES_EN_FJ = 'en-fj'; - public const LANGUAGES_EN_FK = 'en-fk'; - public const LANGUAGES_EN_FM = 'en-fm'; - public const LANGUAGES_EN_GB = 'en-gb'; - public const LANGUAGES_EN_GD = 'en-gd'; - public const LANGUAGES_EN_GG = 'en-gg'; - public const LANGUAGES_EN_GH = 'en-gh'; - public const LANGUAGES_EN_GI = 'en-gi'; - public const LANGUAGES_EN_GM = 'en-gm'; - public const LANGUAGES_EN_GU = 'en-gu'; - public const LANGUAGES_EN_GY = 'en-gy'; - public const LANGUAGES_EN_HK = 'en-hk'; - public const LANGUAGES_EN_IE = 'en-ie'; - public const LANGUAGES_EN_IL = 'en-il'; - public const LANGUAGES_EN_IM = 'en-im'; - public const LANGUAGES_EN_IN = 'en-in'; - public const LANGUAGES_EN_IO = 'en-io'; - public const LANGUAGES_EN_JE = 'en-je'; - public const LANGUAGES_EN_JM = 'en-jm'; - public const LANGUAGES_EN_KE = 'en-ke'; - public const LANGUAGES_EN_KI = 'en-ki'; - public const LANGUAGES_EN_KN = 'en-kn'; - public const LANGUAGES_EN_KY = 'en-ky'; - public const LANGUAGES_EN_LC = 'en-lc'; - public const LANGUAGES_EN_LR = 'en-lr'; - public const LANGUAGES_EN_LS = 'en-ls'; - public const LANGUAGES_EN_LU = 'en-lu'; - public const LANGUAGES_EN_MG = 'en-mg'; - public const LANGUAGES_EN_MH = 'en-mh'; - public const LANGUAGES_EN_MO = 'en-mo'; - public const LANGUAGES_EN_MP = 'en-mp'; - public const LANGUAGES_EN_MS = 'en-ms'; - public const LANGUAGES_EN_MT = 'en-mt'; - public const LANGUAGES_EN_MU = 'en-mu'; - public const LANGUAGES_EN_MW = 'en-mw'; - public const LANGUAGES_EN_MY = 'en-my'; - public const LANGUAGES_EN_NA = 'en-na'; - public const LANGUAGES_EN_NF = 'en-nf'; - public const LANGUAGES_EN_NG = 'en-ng'; - public const LANGUAGES_EN_NL = 'en-nl'; - public const LANGUAGES_EN_NR = 'en-nr'; - public const LANGUAGES_EN_NU = 'en-nu'; - public const LANGUAGES_EN_NZ = 'en-nz'; - public const LANGUAGES_EN_PG = 'en-pg'; - public const LANGUAGES_EN_PH = 'en-ph'; - public const LANGUAGES_EN_PK = 'en-pk'; - public const LANGUAGES_EN_PN = 'en-pn'; - public const LANGUAGES_EN_PR = 'en-pr'; - public const LANGUAGES_EN_PW = 'en-pw'; - public const LANGUAGES_EN_RW = 'en-rw'; - public const LANGUAGES_EN_SB = 'en-sb'; - public const LANGUAGES_EN_SC = 'en-sc'; - public const LANGUAGES_EN_SD = 'en-sd'; - public const LANGUAGES_EN_SE = 'en-se'; - public const LANGUAGES_EN_SG = 'en-sg'; - public const LANGUAGES_EN_SH = 'en-sh'; - public const LANGUAGES_EN_SI = 'en-si'; - public const LANGUAGES_EN_SL = 'en-sl'; - public const LANGUAGES_EN_SS = 'en-ss'; - public const LANGUAGES_EN_SX = 'en-sx'; - public const LANGUAGES_EN_SZ = 'en-sz'; - public const LANGUAGES_EN_TC = 'en-tc'; - public const LANGUAGES_EN_TK = 'en-tk'; - public const LANGUAGES_EN_TO = 'en-to'; - public const LANGUAGES_EN_TT = 'en-tt'; - public const LANGUAGES_EN_TV = 'en-tv'; - public const LANGUAGES_EN_TZ = 'en-tz'; - public const LANGUAGES_EN_UG = 'en-ug'; - public const LANGUAGES_EN_UM = 'en-um'; - public const LANGUAGES_EN_US = 'en-us'; - public const LANGUAGES_EN_VC = 'en-vc'; - public const LANGUAGES_EN_VG = 'en-vg'; - public const LANGUAGES_EN_VI = 'en-vi'; - public const LANGUAGES_EN_VU = 'en-vu'; - public const LANGUAGES_EN_WS = 'en-ws'; - public const LANGUAGES_EN_ZA = 'en-za'; - public const LANGUAGES_EN_ZM = 'en-zm'; - public const LANGUAGES_EN_ZW = 'en-zw'; - public const LANGUAGES_EO = 'eo'; - public const LANGUAGES_EO_001 = 'eo-001'; - public const LANGUAGES_ES = 'es'; - public const LANGUAGES_ES_419 = 'es-419'; - public const LANGUAGES_ES_AR = 'es-ar'; - public const LANGUAGES_ES_BO = 'es-bo'; - public const LANGUAGES_ES_BR = 'es-br'; - public const LANGUAGES_ES_BZ = 'es-bz'; - public const LANGUAGES_ES_CL = 'es-cl'; - public const LANGUAGES_ES_CO = 'es-co'; - public const LANGUAGES_ES_CR = 'es-cr'; - public const LANGUAGES_ES_CU = 'es-cu'; - public const LANGUAGES_ES_DO = 'es-do'; - public const LANGUAGES_ES_EA = 'es-ea'; - public const LANGUAGES_ES_EC = 'es-ec'; - public const LANGUAGES_ES_ES = 'es-es'; - public const LANGUAGES_ES_GQ = 'es-gq'; - public const LANGUAGES_ES_GT = 'es-gt'; - public const LANGUAGES_ES_HN = 'es-hn'; - public const LANGUAGES_ES_IC = 'es-ic'; - public const LANGUAGES_ES_MX = 'es-mx'; - public const LANGUAGES_ES_NI = 'es-ni'; - public const LANGUAGES_ES_PA = 'es-pa'; - public const LANGUAGES_ES_PE = 'es-pe'; - public const LANGUAGES_ES_PH = 'es-ph'; - public const LANGUAGES_ES_PR = 'es-pr'; - public const LANGUAGES_ES_PY = 'es-py'; - public const LANGUAGES_ES_SV = 'es-sv'; - public const LANGUAGES_ES_US = 'es-us'; - public const LANGUAGES_ES_UY = 'es-uy'; - public const LANGUAGES_ES_VE = 'es-ve'; - public const LANGUAGES_ET = 'et'; - public const LANGUAGES_ET_EE = 'et-ee'; - public const LANGUAGES_EU = 'eu'; - public const LANGUAGES_EU_ES = 'eu-es'; - public const LANGUAGES_EWO = 'ewo'; - public const LANGUAGES_EWO_CM = 'ewo-cm'; - public const LANGUAGES_FA = 'fa'; - public const LANGUAGES_FA_AF = 'fa-af'; - public const LANGUAGES_FA_IR = 'fa-ir'; - public const LANGUAGES_FF = 'ff'; - public const LANGUAGES_FF_CM = 'ff-cm'; - public const LANGUAGES_FF_GN = 'ff-gn'; - public const LANGUAGES_FF_MR = 'ff-mr'; - public const LANGUAGES_FF_SN = 'ff-sn'; - public const LANGUAGES_FI = 'fi'; - public const LANGUAGES_FI_FI = 'fi-fi'; - public const LANGUAGES_FIL = 'fil'; - public const LANGUAGES_FIL_PH = 'fil-ph'; - public const LANGUAGES_FO = 'fo'; - public const LANGUAGES_FO_DK = 'fo-dk'; - public const LANGUAGES_FO_FO = 'fo-fo'; - public const LANGUAGES_FR = 'fr'; - public const LANGUAGES_FR_BE = 'fr-be'; - public const LANGUAGES_FR_BF = 'fr-bf'; - public const LANGUAGES_FR_BI = 'fr-bi'; - public const LANGUAGES_FR_BJ = 'fr-bj'; - public const LANGUAGES_FR_BL = 'fr-bl'; - public const LANGUAGES_FR_CA = 'fr-ca'; - public const LANGUAGES_FR_CD = 'fr-cd'; - public const LANGUAGES_FR_CF = 'fr-cf'; - public const LANGUAGES_FR_CG = 'fr-cg'; - public const LANGUAGES_FR_CH = 'fr-ch'; - public const LANGUAGES_FR_CI = 'fr-ci'; - public const LANGUAGES_FR_CM = 'fr-cm'; - public const LANGUAGES_FR_DJ = 'fr-dj'; - public const LANGUAGES_FR_DZ = 'fr-dz'; - public const LANGUAGES_FR_FR = 'fr-fr'; - public const LANGUAGES_FR_GA = 'fr-ga'; - public const LANGUAGES_FR_GF = 'fr-gf'; - public const LANGUAGES_FR_GN = 'fr-gn'; - public const LANGUAGES_FR_GP = 'fr-gp'; - public const LANGUAGES_FR_GQ = 'fr-gq'; - public const LANGUAGES_FR_HT = 'fr-ht'; - public const LANGUAGES_FR_KM = 'fr-km'; - public const LANGUAGES_FR_LU = 'fr-lu'; - public const LANGUAGES_FR_MA = 'fr-ma'; - public const LANGUAGES_FR_MC = 'fr-mc'; - public const LANGUAGES_FR_MF = 'fr-mf'; - public const LANGUAGES_FR_MG = 'fr-mg'; - public const LANGUAGES_FR_ML = 'fr-ml'; - public const LANGUAGES_FR_MQ = 'fr-mq'; - public const LANGUAGES_FR_MR = 'fr-mr'; - public const LANGUAGES_FR_MU = 'fr-mu'; - public const LANGUAGES_FR_NC = 'fr-nc'; - public const LANGUAGES_FR_NE = 'fr-ne'; - public const LANGUAGES_FR_PF = 'fr-pf'; - public const LANGUAGES_FR_PM = 'fr-pm'; - public const LANGUAGES_FR_RE = 'fr-re'; - public const LANGUAGES_FR_RW = 'fr-rw'; - public const LANGUAGES_FR_SC = 'fr-sc'; - public const LANGUAGES_FR_SN = 'fr-sn'; - public const LANGUAGES_FR_SY = 'fr-sy'; - public const LANGUAGES_FR_TD = 'fr-td'; - public const LANGUAGES_FR_TG = 'fr-tg'; - public const LANGUAGES_FR_TN = 'fr-tn'; - public const LANGUAGES_FR_VU = 'fr-vu'; - public const LANGUAGES_FR_WF = 'fr-wf'; - public const LANGUAGES_FR_YT = 'fr-yt'; - public const LANGUAGES_FUR = 'fur'; - public const LANGUAGES_FUR_IT = 'fur-it'; - public const LANGUAGES_FY = 'fy'; - public const LANGUAGES_FY_NL = 'fy-nl'; - public const LANGUAGES_GA = 'ga'; - public const LANGUAGES_GA_IE = 'ga-ie'; - public const LANGUAGES_GD = 'gd'; - public const LANGUAGES_GD_GB = 'gd-gb'; - public const LANGUAGES_GL = 'gl'; - public const LANGUAGES_GL_ES = 'gl-es'; - public const LANGUAGES_GSW = 'gsw'; - public const LANGUAGES_GSW_CH = 'gsw-ch'; - public const LANGUAGES_GSW_FR = 'gsw-fr'; - public const LANGUAGES_GSW_LI = 'gsw-li'; - public const LANGUAGES_GU = 'gu'; - public const LANGUAGES_GU_IN = 'gu-in'; - public const LANGUAGES_GUZ = 'guz'; - public const LANGUAGES_GUZ_KE = 'guz-ke'; - public const LANGUAGES_GV = 'gv'; - public const LANGUAGES_GV_IM = 'gv-im'; - public const LANGUAGES_HA = 'ha'; - public const LANGUAGES_HA_GH = 'ha-gh'; - public const LANGUAGES_HA_NE = 'ha-ne'; - public const LANGUAGES_HA_NG = 'ha-ng'; - public const LANGUAGES_HAW = 'haw'; - public const LANGUAGES_HAW_US = 'haw-us'; - public const LANGUAGES_HE = 'he'; - public const LANGUAGES_HI = 'hi'; - public const LANGUAGES_HI_IN = 'hi-in'; - public const LANGUAGES_HR = 'hr'; - public const LANGUAGES_HR_BA = 'hr-ba'; - public const LANGUAGES_HR_HR = 'hr-hr'; - public const LANGUAGES_HSB = 'hsb'; - public const LANGUAGES_HSB_DE = 'hsb-de'; - public const LANGUAGES_HU = 'hu'; - public const LANGUAGES_HU_HU = 'hu-hu'; - public const LANGUAGES_HY = 'hy'; - public const LANGUAGES_HY_AM = 'hy-am'; - public const LANGUAGES_ID = 'id'; - public const LANGUAGES_IG = 'ig'; - public const LANGUAGES_IG_NG = 'ig-ng'; - public const LANGUAGES_II = 'ii'; - public const LANGUAGES_II_CN = 'ii-cn'; - public const LANGUAGES_ID_ID = 'id-id'; - public const LANGUAGES_IS = 'is'; - public const LANGUAGES_IS_IS = 'is-is'; - public const LANGUAGES_IT = 'it'; - public const LANGUAGES_IT_CH = 'it-ch'; - public const LANGUAGES_IT_IT = 'it-it'; - public const LANGUAGES_IT_SM = 'it-sm'; - public const LANGUAGES_IT_VA = 'it-va'; - public const LANGUAGES_HE_IL = 'he-il'; - public const LANGUAGES_JA = 'ja'; - public const LANGUAGES_JA_JP = 'ja-jp'; - public const LANGUAGES_JGO = 'jgo'; - public const LANGUAGES_JGO_CM = 'jgo-cm'; - public const LANGUAGES_YI = 'yi'; - public const LANGUAGES_YI_001 = 'yi-001'; - public const LANGUAGES_JMC = 'jmc'; - public const LANGUAGES_JMC_TZ = 'jmc-tz'; - public const LANGUAGES_KA = 'ka'; - public const LANGUAGES_KA_GE = 'ka-ge'; - public const LANGUAGES_KAB = 'kab'; - public const LANGUAGES_KAB_DZ = 'kab-dz'; - public const LANGUAGES_KAM = 'kam'; - public const LANGUAGES_KAM_KE = 'kam-ke'; - public const LANGUAGES_KDE = 'kde'; - public const LANGUAGES_KDE_TZ = 'kde-tz'; - public const LANGUAGES_KEA = 'kea'; - public const LANGUAGES_KEA_CV = 'kea-cv'; - public const LANGUAGES_KHQ = 'khq'; - public const LANGUAGES_KHQ_ML = 'khq-ml'; - public const LANGUAGES_KI = 'ki'; - public const LANGUAGES_KI_KE = 'ki-ke'; - public const LANGUAGES_KK = 'kk'; - public const LANGUAGES_KK_KZ = 'kk-kz'; - public const LANGUAGES_KKJ = 'kkj'; - public const LANGUAGES_KKJ_CM = 'kkj-cm'; - public const LANGUAGES_KL = 'kl'; - public const LANGUAGES_KL_GL = 'kl-gl'; - public const LANGUAGES_KLN = 'kln'; - public const LANGUAGES_KLN_KE = 'kln-ke'; - public const LANGUAGES_KM = 'km'; - public const LANGUAGES_KM_KH = 'km-kh'; - public const LANGUAGES_KN = 'kn'; - public const LANGUAGES_KN_IN = 'kn-in'; - public const LANGUAGES_KO = 'ko'; - public const LANGUAGES_KO_KP = 'ko-kp'; - public const LANGUAGES_KO_KR = 'ko-kr'; - public const LANGUAGES_KOK = 'kok'; - public const LANGUAGES_KOK_IN = 'kok-in'; - public const LANGUAGES_KS = 'ks'; - public const LANGUAGES_KS_IN = 'ks-in'; - public const LANGUAGES_KSB = 'ksb'; - public const LANGUAGES_KSB_TZ = 'ksb-tz'; - public const LANGUAGES_KSF = 'ksf'; - public const LANGUAGES_KSF_CM = 'ksf-cm'; - public const LANGUAGES_KSH = 'ksh'; - public const LANGUAGES_KSH_DE = 'ksh-de'; - public const LANGUAGES_KW = 'kw'; - public const LANGUAGES_KW_GB = 'kw-gb'; - public const LANGUAGES_KY = 'ky'; - public const LANGUAGES_KY_KG = 'ky-kg'; - public const LANGUAGES_LAG = 'lag'; - public const LANGUAGES_LAG_TZ = 'lag-tz'; - public const LANGUAGES_LB = 'lb'; - public const LANGUAGES_LB_LU = 'lb-lu'; - public const LANGUAGES_LG = 'lg'; - public const LANGUAGES_LG_UG = 'lg-ug'; - public const LANGUAGES_LKT = 'lkt'; - public const LANGUAGES_LKT_US = 'lkt-us'; - public const LANGUAGES_LN = 'ln'; - public const LANGUAGES_LN_AO = 'ln-ao'; - public const LANGUAGES_LN_CD = 'ln-cd'; - public const LANGUAGES_LN_CF = 'ln-cf'; - public const LANGUAGES_LN_CG = 'ln-cg'; - public const LANGUAGES_LO = 'lo'; - public const LANGUAGES_LO_LA = 'lo-la'; - public const LANGUAGES_LRC = 'lrc'; - public const LANGUAGES_LRC_IQ = 'lrc-iq'; - public const LANGUAGES_LRC_IR = 'lrc-ir'; - public const LANGUAGES_LT = 'lt'; - public const LANGUAGES_LT_LT = 'lt-lt'; - public const LANGUAGES_LU = 'lu'; - public const LANGUAGES_LU_CD = 'lu-cd'; - public const LANGUAGES_LUO = 'luo'; - public const LANGUAGES_LUO_KE = 'luo-ke'; - public const LANGUAGES_LUY = 'luy'; - public const LANGUAGES_LUY_KE = 'luy-ke'; - public const LANGUAGES_LV = 'lv'; - public const LANGUAGES_LV_LV = 'lv-lv'; - public const LANGUAGES_MAS = 'mas'; - public const LANGUAGES_MAS_KE = 'mas-ke'; - public const LANGUAGES_MAS_TZ = 'mas-tz'; - public const LANGUAGES_MER = 'mer'; - public const LANGUAGES_MER_KE = 'mer-ke'; - public const LANGUAGES_MFE = 'mfe'; - public const LANGUAGES_MFE_MU = 'mfe-mu'; - public const LANGUAGES_MG = 'mg'; - public const LANGUAGES_MG_MG = 'mg-mg'; - public const LANGUAGES_MGH = 'mgh'; - public const LANGUAGES_MGH_MZ = 'mgh-mz'; - public const LANGUAGES_MGO = 'mgo'; - public const LANGUAGES_MGO_CM = 'mgo-cm'; - public const LANGUAGES_MK = 'mk'; - public const LANGUAGES_MK_MK = 'mk-mk'; - public const LANGUAGES_ML = 'ml'; - public const LANGUAGES_ML_IN = 'ml-in'; - public const LANGUAGES_MN = 'mn'; - public const LANGUAGES_MN_MN = 'mn-mn'; - public const LANGUAGES_MR = 'mr'; - public const LANGUAGES_MR_IN = 'mr-in'; - public const LANGUAGES_MS = 'ms'; - public const LANGUAGES_MS_BN = 'ms-bn'; - public const LANGUAGES_MS_MY = 'ms-my'; - public const LANGUAGES_MS_SG = 'ms-sg'; - public const LANGUAGES_MT = 'mt'; - public const LANGUAGES_MT_MT = 'mt-mt'; - public const LANGUAGES_MUA = 'mua'; - public const LANGUAGES_MUA_CM = 'mua-cm'; - public const LANGUAGES_MY = 'my'; - public const LANGUAGES_MY_MM = 'my-mm'; - public const LANGUAGES_MZN = 'mzn'; - public const LANGUAGES_MZN_IR = 'mzn-ir'; - public const LANGUAGES_NAQ = 'naq'; - public const LANGUAGES_NAQ_NA = 'naq-na'; - public const LANGUAGES_NB = 'nb'; - public const LANGUAGES_NB_NO = 'nb-no'; - public const LANGUAGES_NB_SJ = 'nb-sj'; - public const LANGUAGES_ND = 'nd'; - public const LANGUAGES_ND_ZW = 'nd-zw'; - public const LANGUAGES_NDS = 'nds'; - public const LANGUAGES_NDS_DE = 'nds-de'; - public const LANGUAGES_NDS_NL = 'nds-nl'; - public const LANGUAGES_NE = 'ne'; - public const LANGUAGES_NE_IN = 'ne-in'; - public const LANGUAGES_NE_NP = 'ne-np'; - public const LANGUAGES_NL = 'nl'; - public const LANGUAGES_NL_AW = 'nl-aw'; - public const LANGUAGES_NL_BE = 'nl-be'; - public const LANGUAGES_NL_CH = 'nl-ch'; - public const LANGUAGES_NL_BQ = 'nl-bq'; - public const LANGUAGES_NL_CW = 'nl-cw'; - public const LANGUAGES_NL_LU = 'nl-lu'; - public const LANGUAGES_NL_NL = 'nl-nl'; - public const LANGUAGES_NL_SR = 'nl-sr'; - public const LANGUAGES_NL_SX = 'nl-sx'; - public const LANGUAGES_NMG = 'nmg'; - public const LANGUAGES_NMG_CM = 'nmg-cm'; - public const LANGUAGES_NN = 'nn'; - public const LANGUAGES_NN_NO = 'nn-no'; - public const LANGUAGES_NNH = 'nnh'; - public const LANGUAGES_NNH_CM = 'nnh-cm'; - public const LANGUAGES_NO = 'no'; - public const LANGUAGES_NO_NO = 'no-no'; - public const LANGUAGES_NUS = 'nus'; - public const LANGUAGES_NUS_SS = 'nus-ss'; - public const LANGUAGES_NYN = 'nyn'; - public const LANGUAGES_NYN_UG = 'nyn-ug'; - public const LANGUAGES_OM = 'om'; - public const LANGUAGES_OM_ET = 'om-et'; - public const LANGUAGES_OM_KE = 'om-ke'; - public const LANGUAGES__OR = 'or'; - public const LANGUAGES_OR_IN = 'or-in'; - public const LANGUAGES_OS = 'os'; - public const LANGUAGES_OS_GE = 'os-ge'; - public const LANGUAGES_OS_RU = 'os-ru'; - public const LANGUAGES_PA = 'pa'; - public const LANGUAGES_PA_IN = 'pa-in'; - public const LANGUAGES_PA_PK = 'pa-pk'; - public const LANGUAGES_PL = 'pl'; - public const LANGUAGES_PL_PL = 'pl-pl'; - public const LANGUAGES_PRG = 'prg'; - public const LANGUAGES_PRG_001 = 'prg-001'; - public const LANGUAGES_PS = 'ps'; - public const LANGUAGES_PS_AF = 'ps-af'; - public const LANGUAGES_PT = 'pt'; - public const LANGUAGES_PT_AO = 'pt-ao'; - public const LANGUAGES_PT_BR = 'pt-br'; - public const LANGUAGES_PT_CH = 'pt-ch'; - public const LANGUAGES_PT_CV = 'pt-cv'; - public const LANGUAGES_PT_GQ = 'pt-gq'; - public const LANGUAGES_PT_GW = 'pt-gw'; - public const LANGUAGES_PT_LU = 'pt-lu'; - public const LANGUAGES_PT_MO = 'pt-mo'; - public const LANGUAGES_PT_MZ = 'pt-mz'; - public const LANGUAGES_PT_PT = 'pt-pt'; - public const LANGUAGES_PT_ST = 'pt-st'; - public const LANGUAGES_PT_TL = 'pt-tl'; - public const LANGUAGES_QU = 'qu'; - public const LANGUAGES_QU_BO = 'qu-bo'; - public const LANGUAGES_QU_EC = 'qu-ec'; - public const LANGUAGES_QU_PE = 'qu-pe'; - public const LANGUAGES_RM = 'rm'; - public const LANGUAGES_RM_CH = 'rm-ch'; - public const LANGUAGES_RN = 'rn'; - public const LANGUAGES_RN_BI = 'rn-bi'; - public const LANGUAGES_RO = 'ro'; - public const LANGUAGES_RO_MD = 'ro-md'; - public const LANGUAGES_RO_RO = 'ro-ro'; - public const LANGUAGES_ROF = 'rof'; - public const LANGUAGES_ROF_TZ = 'rof-tz'; - public const LANGUAGES_RU = 'ru'; - public const LANGUAGES_RU_BY = 'ru-by'; - public const LANGUAGES_RU_KG = 'ru-kg'; - public const LANGUAGES_RU_KZ = 'ru-kz'; - public const LANGUAGES_RU_MD = 'ru-md'; - public const LANGUAGES_RU_RU = 'ru-ru'; - public const LANGUAGES_RU_UA = 'ru-ua'; - public const LANGUAGES_RW = 'rw'; - public const LANGUAGES_RW_RW = 'rw-rw'; - public const LANGUAGES_RWK = 'rwk'; - public const LANGUAGES_RWK_TZ = 'rwk-tz'; - public const LANGUAGES_SA = 'sa'; - public const LANGUAGES_SAH = 'sah'; - public const LANGUAGES_SAH_RU = 'sah-ru'; - public const LANGUAGES_SAQ = 'saq'; - public const LANGUAGES_SAQ_KE = 'saq-ke'; - public const LANGUAGES_SBP = 'sbp'; - public const LANGUAGES_SBP_TZ = 'sbp-tz'; - public const LANGUAGES_SD = 'sd'; - public const LANGUAGES_SD_PK = 'sd-pk'; - public const LANGUAGES_SE = 'se'; - public const LANGUAGES_SE_FI = 'se-fi'; - public const LANGUAGES_SE_NO = 'se-no'; - public const LANGUAGES_SE_SE = 'se-se'; - public const LANGUAGES_SEH = 'seh'; - public const LANGUAGES_SEH_MZ = 'seh-mz'; - public const LANGUAGES_SES = 'ses'; - public const LANGUAGES_SES_ML = 'ses-ml'; - public const LANGUAGES_SG = 'sg'; - public const LANGUAGES_SG_CF = 'sg-cf'; - public const LANGUAGES_SHI = 'shi'; - public const LANGUAGES_SHI_MA = 'shi-ma'; - public const LANGUAGES_SI = 'si'; - public const LANGUAGES_SI_LK = 'si-lk'; - public const LANGUAGES_SK = 'sk'; - public const LANGUAGES_SK_SK = 'sk-sk'; - public const LANGUAGES_SL = 'sl'; - public const LANGUAGES_SL_SI = 'sl-si'; - public const LANGUAGES_SMN = 'smn'; - public const LANGUAGES_SMN_FI = 'smn-fi'; - public const LANGUAGES_SN = 'sn'; - public const LANGUAGES_SN_ZW = 'sn-zw'; - public const LANGUAGES_SO = 'so'; - public const LANGUAGES_SO_DJ = 'so-dj'; - public const LANGUAGES_SO_ET = 'so-et'; - public const LANGUAGES_SO_KE = 'so-ke'; - public const LANGUAGES_SO_SO = 'so-so'; - public const LANGUAGES_SQ = 'sq'; - public const LANGUAGES_SQ_AL = 'sq-al'; - public const LANGUAGES_SQ_MK = 'sq-mk'; - public const LANGUAGES_SQ_XK = 'sq-xk'; - public const LANGUAGES_SR = 'sr'; - public const LANGUAGES_SR_BA = 'sr-ba'; - public const LANGUAGES_SR_CS = 'sr-cs'; - public const LANGUAGES_SR_ME = 'sr-me'; - public const LANGUAGES_SR_RS = 'sr-rs'; - public const LANGUAGES_SR_XK = 'sr-xk'; - public const LANGUAGES_SV = 'sv'; - public const LANGUAGES_SV_AX = 'sv-ax'; - public const LANGUAGES_SV_FI = 'sv-fi'; - public const LANGUAGES_SV_SE = 'sv-se'; - public const LANGUAGES_SW = 'sw'; - public const LANGUAGES_SW_CD = 'sw-cd'; - public const LANGUAGES_SW_KE = 'sw-ke'; - public const LANGUAGES_SW_TZ = 'sw-tz'; - public const LANGUAGES_SW_UG = 'sw-ug'; - public const LANGUAGES_SY = 'sy'; - public const LANGUAGES_TA = 'ta'; - public const LANGUAGES_TA_IN = 'ta-in'; - public const LANGUAGES_TA_LK = 'ta-lk'; - public const LANGUAGES_TA_MY = 'ta-my'; - public const LANGUAGES_TA_SG = 'ta-sg'; - public const LANGUAGES_TE = 'te'; - public const LANGUAGES_TE_IN = 'te-in'; - public const LANGUAGES_TEO = 'teo'; - public const LANGUAGES_TEO_KE = 'teo-ke'; - public const LANGUAGES_TEO_UG = 'teo-ug'; - public const LANGUAGES_TG = 'tg'; - public const LANGUAGES_TG_TJ = 'tg-tj'; - public const LANGUAGES_TH = 'th'; - public const LANGUAGES_TH_TH = 'th-th'; - public const LANGUAGES_TI = 'ti'; - public const LANGUAGES_TI_ER = 'ti-er'; - public const LANGUAGES_TI_ET = 'ti-et'; - public const LANGUAGES_TK = 'tk'; - public const LANGUAGES_TK_TM = 'tk-tm'; - public const LANGUAGES_TO = 'to'; - public const LANGUAGES_TO_TO = 'to-to'; - public const LANGUAGES_TR = 'tr'; - public const LANGUAGES_TR_CY = 'tr-cy'; - public const LANGUAGES_TR_TR = 'tr-tr'; - public const LANGUAGES_TT = 'tt'; - public const LANGUAGES_TT_RU = 'tt-ru'; - public const LANGUAGES_TWQ = 'twq'; - public const LANGUAGES_TWQ_NE = 'twq-ne'; - public const LANGUAGES_TZM = 'tzm'; - public const LANGUAGES_TZM_MA = 'tzm-ma'; - public const LANGUAGES_UG = 'ug'; - public const LANGUAGES_UG_CN = 'ug-cn'; - public const LANGUAGES_UK = 'uk'; - public const LANGUAGES_UK_UA = 'uk-ua'; - public const LANGUAGES_UR = 'ur'; - public const LANGUAGES_UR_IN = 'ur-in'; - public const LANGUAGES_UR_PK = 'ur-pk'; - public const LANGUAGES_UZ = 'uz'; - public const LANGUAGES_UZ_AF = 'uz-af'; - public const LANGUAGES_UZ_UZ = 'uz-uz'; - public const LANGUAGES_VAI = 'vai'; - public const LANGUAGES_VAI_LR = 'vai-lr'; - public const LANGUAGES_VI = 'vi'; - public const LANGUAGES_VI_VN = 'vi-vn'; - public const LANGUAGES_VO = 'vo'; - public const LANGUAGES_VO_001 = 'vo-001'; - public const LANGUAGES_VUN = 'vun'; - public const LANGUAGES_VUN_TZ = 'vun-tz'; - public const LANGUAGES_WAE = 'wae'; - public const LANGUAGES_WAE_CH = 'wae-ch'; - public const LANGUAGES_WO = 'wo'; - public const LANGUAGES_WO_SN = 'wo-sn'; - public const LANGUAGES_XOG = 'xog'; - public const LANGUAGES_XOG_UG = 'xog-ug'; - public const LANGUAGES_YAV = 'yav'; - public const LANGUAGES_YAV_CM = 'yav-cm'; - public const LANGUAGES_YO = 'yo'; - public const LANGUAGES_YO_BJ = 'yo-bj'; - public const LANGUAGES_YO_NG = 'yo-ng'; - public const LANGUAGES_YUE = 'yue'; - public const LANGUAGES_YUE_CN = 'yue-cn'; - public const LANGUAGES_YUE_HK = 'yue-hk'; - public const LANGUAGES_ZGH = 'zgh'; - public const LANGUAGES_ZGH_MA = 'zgh-ma'; - public const LANGUAGES_ZH = 'zh'; - public const LANGUAGES_ZH_CN = 'zh-cn'; - public const LANGUAGES_ZH_HK = 'zh-hk'; - public const LANGUAGES_ZH_MO = 'zh-mo'; - public const LANGUAGES_ZH_SG = 'zh-sg'; - public const LANGUAGES_ZH_TW = 'zh-tw'; - public const LANGUAGES_ZH_HANS = 'zh-hans'; - public const LANGUAGES_ZH_HANT = 'zh-hant'; - public const LANGUAGES_ZU = 'zu'; - public const LANGUAGES_ZU_ZA = 'zu-za'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getLanguagesAllowableValues() - { - return [ - self::LANGUAGES_AF, - self::LANGUAGES_AF_NA, - self::LANGUAGES_AF_ZA, - self::LANGUAGES_AGQ, - self::LANGUAGES_AGQ_CM, - self::LANGUAGES_AK, - self::LANGUAGES_AK_GH, - self::LANGUAGES_AM, - self::LANGUAGES_AM_ET, - self::LANGUAGES_AR, - self::LANGUAGES_AR_001, - self::LANGUAGES_AR_AE, - self::LANGUAGES_AR_BH, - self::LANGUAGES_AR_DJ, - self::LANGUAGES_AR_DZ, - self::LANGUAGES_AR_EG, - self::LANGUAGES_AR_EH, - self::LANGUAGES_AR_ER, - self::LANGUAGES_AR_IL, - self::LANGUAGES_AR_IQ, - self::LANGUAGES_AR_JO, - self::LANGUAGES_AR_KM, - self::LANGUAGES_AR_KW, - self::LANGUAGES_AR_LB, - self::LANGUAGES_AR_LY, - self::LANGUAGES_AR_MA, - self::LANGUAGES_AR_MR, - self::LANGUAGES_AR_OM, - self::LANGUAGES_AR_PS, - self::LANGUAGES_AR_QA, - self::LANGUAGES_AR_SA, - self::LANGUAGES_AR_SD, - self::LANGUAGES_AR_SO, - self::LANGUAGES_AR_SS, - self::LANGUAGES_AR_SY, - self::LANGUAGES_AR_TD, - self::LANGUAGES_AR_TN, - self::LANGUAGES_AR_YE, - self::LANGUAGES__AS, - self::LANGUAGES_AS_IN, - self::LANGUAGES_ASA, - self::LANGUAGES_ASA_TZ, - self::LANGUAGES_AST, - self::LANGUAGES_AST_ES, - self::LANGUAGES_AZ, - self::LANGUAGES_AZ_AZ, - self::LANGUAGES_BAS, - self::LANGUAGES_BAS_CM, - self::LANGUAGES_BE, - self::LANGUAGES_BE_BY, - self::LANGUAGES_BEM, - self::LANGUAGES_BEM_ZM, - self::LANGUAGES_BEZ, - self::LANGUAGES_BEZ_TZ, - self::LANGUAGES_BG, - self::LANGUAGES_BG_BG, - self::LANGUAGES_BM, - self::LANGUAGES_BM_ML, - self::LANGUAGES_BN, - self::LANGUAGES_BN_BD, - self::LANGUAGES_BN_IN, - self::LANGUAGES_BO, - self::LANGUAGES_BO_CN, - self::LANGUAGES_BO_IN, - self::LANGUAGES_BR, - self::LANGUAGES_BR_FR, - self::LANGUAGES_BRX, - self::LANGUAGES_BRX_IN, - self::LANGUAGES_BS, - self::LANGUAGES_BS_BA, - self::LANGUAGES_CA, - self::LANGUAGES_CA_AD, - self::LANGUAGES_CA_ES, - self::LANGUAGES_CA_FR, - self::LANGUAGES_CA_IT, - self::LANGUAGES_CCP, - self::LANGUAGES_CCP_BD, - self::LANGUAGES_CCP_IN, - self::LANGUAGES_CE, - self::LANGUAGES_CE_RU, - self::LANGUAGES_CGG, - self::LANGUAGES_CGG_UG, - self::LANGUAGES_CHR, - self::LANGUAGES_CHR_US, - self::LANGUAGES_CKB, - self::LANGUAGES_CKB_IQ, - self::LANGUAGES_CKB_IR, - self::LANGUAGES_CS, - self::LANGUAGES_CS_CZ, - self::LANGUAGES_CU, - self::LANGUAGES_CU_RU, - self::LANGUAGES_CY, - self::LANGUAGES_CY_GB, - self::LANGUAGES_DA, - self::LANGUAGES_DA_DK, - self::LANGUAGES_DA_GL, - self::LANGUAGES_DAV, - self::LANGUAGES_DAV_KE, - self::LANGUAGES_DE, - self::LANGUAGES_DE_AT, - self::LANGUAGES_DE_BE, - self::LANGUAGES_DE_CH, - self::LANGUAGES_DE_DE, - self::LANGUAGES_DE_GR, - self::LANGUAGES_DE_IT, - self::LANGUAGES_DE_LI, - self::LANGUAGES_DE_LU, - self::LANGUAGES_DJE, - self::LANGUAGES_DJE_NE, - self::LANGUAGES_DSB, - self::LANGUAGES_DSB_DE, - self::LANGUAGES_DUA, - self::LANGUAGES_DUA_CM, - self::LANGUAGES_DYO, - self::LANGUAGES_DYO_SN, - self::LANGUAGES_DZ, - self::LANGUAGES_DZ_BT, - self::LANGUAGES_EBU, - self::LANGUAGES_EBU_KE, - self::LANGUAGES_EE, - self::LANGUAGES_EE_GH, - self::LANGUAGES_EE_TG, - self::LANGUAGES_EL, - self::LANGUAGES_EL_CY, - self::LANGUAGES_EL_GR, - self::LANGUAGES_EN, - self::LANGUAGES_EN_001, - self::LANGUAGES_EN_150, - self::LANGUAGES_EN_AE, - self::LANGUAGES_EN_AG, - self::LANGUAGES_EN_AI, - self::LANGUAGES_EN_AS, - self::LANGUAGES_EN_AT, - self::LANGUAGES_EN_AU, - self::LANGUAGES_EN_BB, - self::LANGUAGES_EN_BE, - self::LANGUAGES_EN_BI, - self::LANGUAGES_EN_BM, - self::LANGUAGES_EN_BS, - self::LANGUAGES_EN_BW, - self::LANGUAGES_EN_BZ, - self::LANGUAGES_EN_CA, - self::LANGUAGES_EN_CC, - self::LANGUAGES_EN_CH, - self::LANGUAGES_EN_CK, - self::LANGUAGES_EN_CM, - self::LANGUAGES_EN_CX, - self::LANGUAGES_EN_CY, - self::LANGUAGES_EN_DE, - self::LANGUAGES_EN_DG, - self::LANGUAGES_EN_DK, - self::LANGUAGES_EN_DM, - self::LANGUAGES_EN_ER, - self::LANGUAGES_EN_FI, - self::LANGUAGES_EN_FJ, - self::LANGUAGES_EN_FK, - self::LANGUAGES_EN_FM, - self::LANGUAGES_EN_GB, - self::LANGUAGES_EN_GD, - self::LANGUAGES_EN_GG, - self::LANGUAGES_EN_GH, - self::LANGUAGES_EN_GI, - self::LANGUAGES_EN_GM, - self::LANGUAGES_EN_GU, - self::LANGUAGES_EN_GY, - self::LANGUAGES_EN_HK, - self::LANGUAGES_EN_IE, - self::LANGUAGES_EN_IL, - self::LANGUAGES_EN_IM, - self::LANGUAGES_EN_IN, - self::LANGUAGES_EN_IO, - self::LANGUAGES_EN_JE, - self::LANGUAGES_EN_JM, - self::LANGUAGES_EN_KE, - self::LANGUAGES_EN_KI, - self::LANGUAGES_EN_KN, - self::LANGUAGES_EN_KY, - self::LANGUAGES_EN_LC, - self::LANGUAGES_EN_LR, - self::LANGUAGES_EN_LS, - self::LANGUAGES_EN_LU, - self::LANGUAGES_EN_MG, - self::LANGUAGES_EN_MH, - self::LANGUAGES_EN_MO, - self::LANGUAGES_EN_MP, - self::LANGUAGES_EN_MS, - self::LANGUAGES_EN_MT, - self::LANGUAGES_EN_MU, - self::LANGUAGES_EN_MW, - self::LANGUAGES_EN_MY, - self::LANGUAGES_EN_NA, - self::LANGUAGES_EN_NF, - self::LANGUAGES_EN_NG, - self::LANGUAGES_EN_NL, - self::LANGUAGES_EN_NR, - self::LANGUAGES_EN_NU, - self::LANGUAGES_EN_NZ, - self::LANGUAGES_EN_PG, - self::LANGUAGES_EN_PH, - self::LANGUAGES_EN_PK, - self::LANGUAGES_EN_PN, - self::LANGUAGES_EN_PR, - self::LANGUAGES_EN_PW, - self::LANGUAGES_EN_RW, - self::LANGUAGES_EN_SB, - self::LANGUAGES_EN_SC, - self::LANGUAGES_EN_SD, - self::LANGUAGES_EN_SE, - self::LANGUAGES_EN_SG, - self::LANGUAGES_EN_SH, - self::LANGUAGES_EN_SI, - self::LANGUAGES_EN_SL, - self::LANGUAGES_EN_SS, - self::LANGUAGES_EN_SX, - self::LANGUAGES_EN_SZ, - self::LANGUAGES_EN_TC, - self::LANGUAGES_EN_TK, - self::LANGUAGES_EN_TO, - self::LANGUAGES_EN_TT, - self::LANGUAGES_EN_TV, - self::LANGUAGES_EN_TZ, - self::LANGUAGES_EN_UG, - self::LANGUAGES_EN_UM, - self::LANGUAGES_EN_US, - self::LANGUAGES_EN_VC, - self::LANGUAGES_EN_VG, - self::LANGUAGES_EN_VI, - self::LANGUAGES_EN_VU, - self::LANGUAGES_EN_WS, - self::LANGUAGES_EN_ZA, - self::LANGUAGES_EN_ZM, - self::LANGUAGES_EN_ZW, - self::LANGUAGES_EO, - self::LANGUAGES_EO_001, - self::LANGUAGES_ES, - self::LANGUAGES_ES_419, - self::LANGUAGES_ES_AR, - self::LANGUAGES_ES_BO, - self::LANGUAGES_ES_BR, - self::LANGUAGES_ES_BZ, - self::LANGUAGES_ES_CL, - self::LANGUAGES_ES_CO, - self::LANGUAGES_ES_CR, - self::LANGUAGES_ES_CU, - self::LANGUAGES_ES_DO, - self::LANGUAGES_ES_EA, - self::LANGUAGES_ES_EC, - self::LANGUAGES_ES_ES, - self::LANGUAGES_ES_GQ, - self::LANGUAGES_ES_GT, - self::LANGUAGES_ES_HN, - self::LANGUAGES_ES_IC, - self::LANGUAGES_ES_MX, - self::LANGUAGES_ES_NI, - self::LANGUAGES_ES_PA, - self::LANGUAGES_ES_PE, - self::LANGUAGES_ES_PH, - self::LANGUAGES_ES_PR, - self::LANGUAGES_ES_PY, - self::LANGUAGES_ES_SV, - self::LANGUAGES_ES_US, - self::LANGUAGES_ES_UY, - self::LANGUAGES_ES_VE, - self::LANGUAGES_ET, - self::LANGUAGES_ET_EE, - self::LANGUAGES_EU, - self::LANGUAGES_EU_ES, - self::LANGUAGES_EWO, - self::LANGUAGES_EWO_CM, - self::LANGUAGES_FA, - self::LANGUAGES_FA_AF, - self::LANGUAGES_FA_IR, - self::LANGUAGES_FF, - self::LANGUAGES_FF_CM, - self::LANGUAGES_FF_GN, - self::LANGUAGES_FF_MR, - self::LANGUAGES_FF_SN, - self::LANGUAGES_FI, - self::LANGUAGES_FI_FI, - self::LANGUAGES_FIL, - self::LANGUAGES_FIL_PH, - self::LANGUAGES_FO, - self::LANGUAGES_FO_DK, - self::LANGUAGES_FO_FO, - self::LANGUAGES_FR, - self::LANGUAGES_FR_BE, - self::LANGUAGES_FR_BF, - self::LANGUAGES_FR_BI, - self::LANGUAGES_FR_BJ, - self::LANGUAGES_FR_BL, - self::LANGUAGES_FR_CA, - self::LANGUAGES_FR_CD, - self::LANGUAGES_FR_CF, - self::LANGUAGES_FR_CG, - self::LANGUAGES_FR_CH, - self::LANGUAGES_FR_CI, - self::LANGUAGES_FR_CM, - self::LANGUAGES_FR_DJ, - self::LANGUAGES_FR_DZ, - self::LANGUAGES_FR_FR, - self::LANGUAGES_FR_GA, - self::LANGUAGES_FR_GF, - self::LANGUAGES_FR_GN, - self::LANGUAGES_FR_GP, - self::LANGUAGES_FR_GQ, - self::LANGUAGES_FR_HT, - self::LANGUAGES_FR_KM, - self::LANGUAGES_FR_LU, - self::LANGUAGES_FR_MA, - self::LANGUAGES_FR_MC, - self::LANGUAGES_FR_MF, - self::LANGUAGES_FR_MG, - self::LANGUAGES_FR_ML, - self::LANGUAGES_FR_MQ, - self::LANGUAGES_FR_MR, - self::LANGUAGES_FR_MU, - self::LANGUAGES_FR_NC, - self::LANGUAGES_FR_NE, - self::LANGUAGES_FR_PF, - self::LANGUAGES_FR_PM, - self::LANGUAGES_FR_RE, - self::LANGUAGES_FR_RW, - self::LANGUAGES_FR_SC, - self::LANGUAGES_FR_SN, - self::LANGUAGES_FR_SY, - self::LANGUAGES_FR_TD, - self::LANGUAGES_FR_TG, - self::LANGUAGES_FR_TN, - self::LANGUAGES_FR_VU, - self::LANGUAGES_FR_WF, - self::LANGUAGES_FR_YT, - self::LANGUAGES_FUR, - self::LANGUAGES_FUR_IT, - self::LANGUAGES_FY, - self::LANGUAGES_FY_NL, - self::LANGUAGES_GA, - self::LANGUAGES_GA_IE, - self::LANGUAGES_GD, - self::LANGUAGES_GD_GB, - self::LANGUAGES_GL, - self::LANGUAGES_GL_ES, - self::LANGUAGES_GSW, - self::LANGUAGES_GSW_CH, - self::LANGUAGES_GSW_FR, - self::LANGUAGES_GSW_LI, - self::LANGUAGES_GU, - self::LANGUAGES_GU_IN, - self::LANGUAGES_GUZ, - self::LANGUAGES_GUZ_KE, - self::LANGUAGES_GV, - self::LANGUAGES_GV_IM, - self::LANGUAGES_HA, - self::LANGUAGES_HA_GH, - self::LANGUAGES_HA_NE, - self::LANGUAGES_HA_NG, - self::LANGUAGES_HAW, - self::LANGUAGES_HAW_US, - self::LANGUAGES_HE, - self::LANGUAGES_HI, - self::LANGUAGES_HI_IN, - self::LANGUAGES_HR, - self::LANGUAGES_HR_BA, - self::LANGUAGES_HR_HR, - self::LANGUAGES_HSB, - self::LANGUAGES_HSB_DE, - self::LANGUAGES_HU, - self::LANGUAGES_HU_HU, - self::LANGUAGES_HY, - self::LANGUAGES_HY_AM, - self::LANGUAGES_ID, - self::LANGUAGES_IG, - self::LANGUAGES_IG_NG, - self::LANGUAGES_II, - self::LANGUAGES_II_CN, - self::LANGUAGES_ID_ID, - self::LANGUAGES_IS, - self::LANGUAGES_IS_IS, - self::LANGUAGES_IT, - self::LANGUAGES_IT_CH, - self::LANGUAGES_IT_IT, - self::LANGUAGES_IT_SM, - self::LANGUAGES_IT_VA, - self::LANGUAGES_HE_IL, - self::LANGUAGES_JA, - self::LANGUAGES_JA_JP, - self::LANGUAGES_JGO, - self::LANGUAGES_JGO_CM, - self::LANGUAGES_YI, - self::LANGUAGES_YI_001, - self::LANGUAGES_JMC, - self::LANGUAGES_JMC_TZ, - self::LANGUAGES_KA, - self::LANGUAGES_KA_GE, - self::LANGUAGES_KAB, - self::LANGUAGES_KAB_DZ, - self::LANGUAGES_KAM, - self::LANGUAGES_KAM_KE, - self::LANGUAGES_KDE, - self::LANGUAGES_KDE_TZ, - self::LANGUAGES_KEA, - self::LANGUAGES_KEA_CV, - self::LANGUAGES_KHQ, - self::LANGUAGES_KHQ_ML, - self::LANGUAGES_KI, - self::LANGUAGES_KI_KE, - self::LANGUAGES_KK, - self::LANGUAGES_KK_KZ, - self::LANGUAGES_KKJ, - self::LANGUAGES_KKJ_CM, - self::LANGUAGES_KL, - self::LANGUAGES_KL_GL, - self::LANGUAGES_KLN, - self::LANGUAGES_KLN_KE, - self::LANGUAGES_KM, - self::LANGUAGES_KM_KH, - self::LANGUAGES_KN, - self::LANGUAGES_KN_IN, - self::LANGUAGES_KO, - self::LANGUAGES_KO_KP, - self::LANGUAGES_KO_KR, - self::LANGUAGES_KOK, - self::LANGUAGES_KOK_IN, - self::LANGUAGES_KS, - self::LANGUAGES_KS_IN, - self::LANGUAGES_KSB, - self::LANGUAGES_KSB_TZ, - self::LANGUAGES_KSF, - self::LANGUAGES_KSF_CM, - self::LANGUAGES_KSH, - self::LANGUAGES_KSH_DE, - self::LANGUAGES_KW, - self::LANGUAGES_KW_GB, - self::LANGUAGES_KY, - self::LANGUAGES_KY_KG, - self::LANGUAGES_LAG, - self::LANGUAGES_LAG_TZ, - self::LANGUAGES_LB, - self::LANGUAGES_LB_LU, - self::LANGUAGES_LG, - self::LANGUAGES_LG_UG, - self::LANGUAGES_LKT, - self::LANGUAGES_LKT_US, - self::LANGUAGES_LN, - self::LANGUAGES_LN_AO, - self::LANGUAGES_LN_CD, - self::LANGUAGES_LN_CF, - self::LANGUAGES_LN_CG, - self::LANGUAGES_LO, - self::LANGUAGES_LO_LA, - self::LANGUAGES_LRC, - self::LANGUAGES_LRC_IQ, - self::LANGUAGES_LRC_IR, - self::LANGUAGES_LT, - self::LANGUAGES_LT_LT, - self::LANGUAGES_LU, - self::LANGUAGES_LU_CD, - self::LANGUAGES_LUO, - self::LANGUAGES_LUO_KE, - self::LANGUAGES_LUY, - self::LANGUAGES_LUY_KE, - self::LANGUAGES_LV, - self::LANGUAGES_LV_LV, - self::LANGUAGES_MAS, - self::LANGUAGES_MAS_KE, - self::LANGUAGES_MAS_TZ, - self::LANGUAGES_MER, - self::LANGUAGES_MER_KE, - self::LANGUAGES_MFE, - self::LANGUAGES_MFE_MU, - self::LANGUAGES_MG, - self::LANGUAGES_MG_MG, - self::LANGUAGES_MGH, - self::LANGUAGES_MGH_MZ, - self::LANGUAGES_MGO, - self::LANGUAGES_MGO_CM, - self::LANGUAGES_MK, - self::LANGUAGES_MK_MK, - self::LANGUAGES_ML, - self::LANGUAGES_ML_IN, - self::LANGUAGES_MN, - self::LANGUAGES_MN_MN, - self::LANGUAGES_MR, - self::LANGUAGES_MR_IN, - self::LANGUAGES_MS, - self::LANGUAGES_MS_BN, - self::LANGUAGES_MS_MY, - self::LANGUAGES_MS_SG, - self::LANGUAGES_MT, - self::LANGUAGES_MT_MT, - self::LANGUAGES_MUA, - self::LANGUAGES_MUA_CM, - self::LANGUAGES_MY, - self::LANGUAGES_MY_MM, - self::LANGUAGES_MZN, - self::LANGUAGES_MZN_IR, - self::LANGUAGES_NAQ, - self::LANGUAGES_NAQ_NA, - self::LANGUAGES_NB, - self::LANGUAGES_NB_NO, - self::LANGUAGES_NB_SJ, - self::LANGUAGES_ND, - self::LANGUAGES_ND_ZW, - self::LANGUAGES_NDS, - self::LANGUAGES_NDS_DE, - self::LANGUAGES_NDS_NL, - self::LANGUAGES_NE, - self::LANGUAGES_NE_IN, - self::LANGUAGES_NE_NP, - self::LANGUAGES_NL, - self::LANGUAGES_NL_AW, - self::LANGUAGES_NL_BE, - self::LANGUAGES_NL_CH, - self::LANGUAGES_NL_BQ, - self::LANGUAGES_NL_CW, - self::LANGUAGES_NL_LU, - self::LANGUAGES_NL_NL, - self::LANGUAGES_NL_SR, - self::LANGUAGES_NL_SX, - self::LANGUAGES_NMG, - self::LANGUAGES_NMG_CM, - self::LANGUAGES_NN, - self::LANGUAGES_NN_NO, - self::LANGUAGES_NNH, - self::LANGUAGES_NNH_CM, - self::LANGUAGES_NO, - self::LANGUAGES_NO_NO, - self::LANGUAGES_NUS, - self::LANGUAGES_NUS_SS, - self::LANGUAGES_NYN, - self::LANGUAGES_NYN_UG, - self::LANGUAGES_OM, - self::LANGUAGES_OM_ET, - self::LANGUAGES_OM_KE, - self::LANGUAGES__OR, - self::LANGUAGES_OR_IN, - self::LANGUAGES_OS, - self::LANGUAGES_OS_GE, - self::LANGUAGES_OS_RU, - self::LANGUAGES_PA, - self::LANGUAGES_PA_IN, - self::LANGUAGES_PA_PK, - self::LANGUAGES_PL, - self::LANGUAGES_PL_PL, - self::LANGUAGES_PRG, - self::LANGUAGES_PRG_001, - self::LANGUAGES_PS, - self::LANGUAGES_PS_AF, - self::LANGUAGES_PT, - self::LANGUAGES_PT_AO, - self::LANGUAGES_PT_BR, - self::LANGUAGES_PT_CH, - self::LANGUAGES_PT_CV, - self::LANGUAGES_PT_GQ, - self::LANGUAGES_PT_GW, - self::LANGUAGES_PT_LU, - self::LANGUAGES_PT_MO, - self::LANGUAGES_PT_MZ, - self::LANGUAGES_PT_PT, - self::LANGUAGES_PT_ST, - self::LANGUAGES_PT_TL, - self::LANGUAGES_QU, - self::LANGUAGES_QU_BO, - self::LANGUAGES_QU_EC, - self::LANGUAGES_QU_PE, - self::LANGUAGES_RM, - self::LANGUAGES_RM_CH, - self::LANGUAGES_RN, - self::LANGUAGES_RN_BI, - self::LANGUAGES_RO, - self::LANGUAGES_RO_MD, - self::LANGUAGES_RO_RO, - self::LANGUAGES_ROF, - self::LANGUAGES_ROF_TZ, - self::LANGUAGES_RU, - self::LANGUAGES_RU_BY, - self::LANGUAGES_RU_KG, - self::LANGUAGES_RU_KZ, - self::LANGUAGES_RU_MD, - self::LANGUAGES_RU_RU, - self::LANGUAGES_RU_UA, - self::LANGUAGES_RW, - self::LANGUAGES_RW_RW, - self::LANGUAGES_RWK, - self::LANGUAGES_RWK_TZ, - self::LANGUAGES_SA, - self::LANGUAGES_SAH, - self::LANGUAGES_SAH_RU, - self::LANGUAGES_SAQ, - self::LANGUAGES_SAQ_KE, - self::LANGUAGES_SBP, - self::LANGUAGES_SBP_TZ, - self::LANGUAGES_SD, - self::LANGUAGES_SD_PK, - self::LANGUAGES_SE, - self::LANGUAGES_SE_FI, - self::LANGUAGES_SE_NO, - self::LANGUAGES_SE_SE, - self::LANGUAGES_SEH, - self::LANGUAGES_SEH_MZ, - self::LANGUAGES_SES, - self::LANGUAGES_SES_ML, - self::LANGUAGES_SG, - self::LANGUAGES_SG_CF, - self::LANGUAGES_SHI, - self::LANGUAGES_SHI_MA, - self::LANGUAGES_SI, - self::LANGUAGES_SI_LK, - self::LANGUAGES_SK, - self::LANGUAGES_SK_SK, - self::LANGUAGES_SL, - self::LANGUAGES_SL_SI, - self::LANGUAGES_SMN, - self::LANGUAGES_SMN_FI, - self::LANGUAGES_SN, - self::LANGUAGES_SN_ZW, - self::LANGUAGES_SO, - self::LANGUAGES_SO_DJ, - self::LANGUAGES_SO_ET, - self::LANGUAGES_SO_KE, - self::LANGUAGES_SO_SO, - self::LANGUAGES_SQ, - self::LANGUAGES_SQ_AL, - self::LANGUAGES_SQ_MK, - self::LANGUAGES_SQ_XK, - self::LANGUAGES_SR, - self::LANGUAGES_SR_BA, - self::LANGUAGES_SR_CS, - self::LANGUAGES_SR_ME, - self::LANGUAGES_SR_RS, - self::LANGUAGES_SR_XK, - self::LANGUAGES_SV, - self::LANGUAGES_SV_AX, - self::LANGUAGES_SV_FI, - self::LANGUAGES_SV_SE, - self::LANGUAGES_SW, - self::LANGUAGES_SW_CD, - self::LANGUAGES_SW_KE, - self::LANGUAGES_SW_TZ, - self::LANGUAGES_SW_UG, - self::LANGUAGES_SY, - self::LANGUAGES_TA, - self::LANGUAGES_TA_IN, - self::LANGUAGES_TA_LK, - self::LANGUAGES_TA_MY, - self::LANGUAGES_TA_SG, - self::LANGUAGES_TE, - self::LANGUAGES_TE_IN, - self::LANGUAGES_TEO, - self::LANGUAGES_TEO_KE, - self::LANGUAGES_TEO_UG, - self::LANGUAGES_TG, - self::LANGUAGES_TG_TJ, - self::LANGUAGES_TH, - self::LANGUAGES_TH_TH, - self::LANGUAGES_TI, - self::LANGUAGES_TI_ER, - self::LANGUAGES_TI_ET, - self::LANGUAGES_TK, - self::LANGUAGES_TK_TM, - self::LANGUAGES_TO, - self::LANGUAGES_TO_TO, - self::LANGUAGES_TR, - self::LANGUAGES_TR_CY, - self::LANGUAGES_TR_TR, - self::LANGUAGES_TT, - self::LANGUAGES_TT_RU, - self::LANGUAGES_TWQ, - self::LANGUAGES_TWQ_NE, - self::LANGUAGES_TZM, - self::LANGUAGES_TZM_MA, - self::LANGUAGES_UG, - self::LANGUAGES_UG_CN, - self::LANGUAGES_UK, - self::LANGUAGES_UK_UA, - self::LANGUAGES_UR, - self::LANGUAGES_UR_IN, - self::LANGUAGES_UR_PK, - self::LANGUAGES_UZ, - self::LANGUAGES_UZ_AF, - self::LANGUAGES_UZ_UZ, - self::LANGUAGES_VAI, - self::LANGUAGES_VAI_LR, - self::LANGUAGES_VI, - self::LANGUAGES_VI_VN, - self::LANGUAGES_VO, - self::LANGUAGES_VO_001, - self::LANGUAGES_VUN, - self::LANGUAGES_VUN_TZ, - self::LANGUAGES_WAE, - self::LANGUAGES_WAE_CH, - self::LANGUAGES_WO, - self::LANGUAGES_WO_SN, - self::LANGUAGES_XOG, - self::LANGUAGES_XOG_UG, - self::LANGUAGES_YAV, - self::LANGUAGES_YAV_CM, - self::LANGUAGES_YO, - self::LANGUAGES_YO_BJ, - self::LANGUAGES_YO_NG, - self::LANGUAGES_YUE, - self::LANGUAGES_YUE_CN, - self::LANGUAGES_YUE_HK, - self::LANGUAGES_ZGH, - self::LANGUAGES_ZGH_MA, - self::LANGUAGES_ZH, - self::LANGUAGES_ZH_CN, - self::LANGUAGES_ZH_HK, - self::LANGUAGES_ZH_MO, - self::LANGUAGES_ZH_SG, - self::LANGUAGES_ZH_TW, - self::LANGUAGES_ZH_HANS, - self::LANGUAGES_ZH_HANT, - self::LANGUAGES_ZU, - self::LANGUAGES_ZU_ZA, - ]; - } /** * Associative array for storing property values @@ -1621,8 +182,8 @@ public function getLanguagesAllowableValues() */ public function __construct(array $data = null) { - $this->container['primary_id'] = $data['primary_id'] ?? null; $this->container['languages'] = $data['languages'] ?? null; + $this->container['primary_id'] = $data['primary_id'] ?? null; } /** @@ -1634,12 +195,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['primary_id'] === null) { - $invalidProperties[] = "'primary_id' can't be null"; - } if ($this->container['languages'] === null) { $invalidProperties[] = "'languages' can't be null"; } + if ($this->container['primary_id'] === null) { + $invalidProperties[] = "'primary_id' can't be null"; + } return $invalidProperties; } @@ -1656,58 +217,49 @@ public function valid() /** - * Gets primary_id + * Gets languages * - * @return string + * @return array */ - public function getPrimaryId() + public function getLanguages() { - return $this->container['primary_id']; + return $this->container['languages']; } /** - * Sets primary_id + * Sets languages * - * @param string $primary_id ID of the primary object in the multi-language group. + * @param array $languages Map of object IDs to associated languages of object in the multi-language group. * * @return self */ - public function setPrimaryId($primary_id) + public function setLanguages($languages) { - $this->container['primary_id'] = $primary_id; + $this->container['languages'] = $languages; return $this; } /** - * Gets languages + * Gets primary_id * - * @return array + * @return string */ - public function getLanguages() + public function getPrimaryId() { - return $this->container['languages']; + return $this->container['primary_id']; } /** - * Sets languages + * Sets primary_id * - * @param array $languages Map of object IDs to associated languages of object in the multi-language group. + * @param string $primary_id ID of the primary object in the multi-language group. * * @return self */ - public function setLanguages($languages) + public function setPrimaryId($primary_id) { - $allowedValues = $this->getLanguagesAllowableValues(); - if (array_diff($languages, $allowedValues)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'languages', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); - } - $this->container['languages'] = $languages; + $this->container['primary_id'] = $primary_id; return $this; } diff --git a/codegen/Cms/Blogs/Authors/ObjectSerializer.php b/codegen/Cms/Blogs/Authors/ObjectSerializer.php index 3b562c61..224989ae 100644 --- a/codegen/Cms/Blogs/Authors/ObjectSerializer.php +++ b/codegen/Cms/Blogs/Authors/ObjectSerializer.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Authors * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/BlogPosts/Api/BlogPostsApi.php b/codegen/Cms/Blogs/BlogPosts/Api/BlogPostsApi.php index 2794556c..f795e753 100644 --- a/codegen/Cms/Blogs/BlogPosts/Api/BlogPostsApi.php +++ b/codegen/Cms/Blogs/BlogPosts/Api/BlogPostsApi.php @@ -10,7 +10,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -612,12 +612,11 @@ public function archiveBatchRequest($batch_input_string) * * @throws \HubSpot\Client\Cms\Blogs\BlogPosts\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error + * @return void */ public function attachToLangGroup($attach_to_lang_primary_request_v_next) { - list($response) = $this->attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_next); - return $response; + $this->attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_next); } /** @@ -629,7 +628,7 @@ public function attachToLangGroup($attach_to_lang_primary_request_v_next) * * @throws \HubSpot\Client\Cms\Blogs\BlogPosts\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error, HTTP status code, HTTP response headers (array of strings) + * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_next) { @@ -670,39 +669,7 @@ public function attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_ ); } - switch($statusCode) { - default: - if ('\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $statusCode, $response->getHeaders()]; } catch (ApiException $e) { switch ($e->getCode()) { @@ -751,27 +718,14 @@ function ($response) { */ public function attachToLangGroupAsyncWithHttpInfo($attach_to_lang_primary_request_v_next) { - $returnType = '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error'; + $returnType = ''; $request = $this->attachToLangGroupRequest($attach_to_lang_primary_request_v_next); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $response->getStatusCode(), $response->getHeaders()]; }, function ($exception) { $response = $exception->getResponse(); @@ -2137,12 +2091,11 @@ public function createLangVariationRequest($blog_post_language_clone_request_v_n * * @throws \HubSpot\Client\Cms\Blogs\BlogPosts\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error + * @return void */ public function detachFromLangGroup($detach_from_lang_group_request_v_next) { - list($response) = $this->detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_v_next); - return $response; + $this->detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_v_next); } /** @@ -2154,7 +2107,7 @@ public function detachFromLangGroup($detach_from_lang_group_request_v_next) * * @throws \HubSpot\Client\Cms\Blogs\BlogPosts\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error, HTTP status code, HTTP response headers (array of strings) + * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_v_next) { @@ -2195,39 +2148,7 @@ public function detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_ ); } - switch($statusCode) { - default: - if ('\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $statusCode, $response->getHeaders()]; } catch (ApiException $e) { switch ($e->getCode()) { @@ -2276,27 +2197,14 @@ function ($response) { */ public function detachFromLangGroupAsyncWithHttpInfo($detach_from_lang_group_request_v_next) { - $returnType = '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error'; + $returnType = ''; $request = $this->detachFromLangGroupRequest($detach_from_lang_group_request_v_next); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $response->getStatusCode(), $response->getHeaders()]; }, function ($exception) { $response = $exception->getResponse(); @@ -2417,14 +2325,15 @@ public function detachFromLangGroupRequest($detach_from_lang_group_request_v_nex * * @param string $object_id The Blog Post id. (required) * @param bool $archived Specifies whether to return deleted Blog Posts. Defaults to `false`. (optional) + * @param string $property property (optional) * * @throws \HubSpot\Client\Cms\Blogs\BlogPosts\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost|\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error */ - public function getById($object_id, $archived = null) + public function getById($object_id, $archived = null, $property = null) { - list($response) = $this->getByIdWithHttpInfo($object_id, $archived); + list($response) = $this->getByIdWithHttpInfo($object_id, $archived, $property); return $response; } @@ -2435,14 +2344,15 @@ public function getById($object_id, $archived = null) * * @param string $object_id The Blog Post id. (required) * @param bool $archived Specifies whether to return deleted Blog Posts. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \HubSpot\Client\Cms\Blogs\BlogPosts\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost|\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error, HTTP status code, HTTP response headers (array of strings) */ - public function getByIdWithHttpInfo($object_id, $archived = null) + public function getByIdWithHttpInfo($object_id, $archived = null, $property = null) { - $request = $this->getByIdRequest($object_id, $archived); + $request = $this->getByIdRequest($object_id, $archived, $property); try { $options = $this->createHttpClientOption(); @@ -2558,13 +2468,14 @@ public function getByIdWithHttpInfo($object_id, $archived = null) * * @param string $object_id The Blog Post id. (required) * @param bool $archived Specifies whether to return deleted Blog Posts. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getByIdAsync($object_id, $archived = null) + public function getByIdAsync($object_id, $archived = null, $property = null) { - return $this->getByIdAsyncWithHttpInfo($object_id, $archived) + return $this->getByIdAsyncWithHttpInfo($object_id, $archived, $property) ->then( function ($response) { return $response[0]; @@ -2579,14 +2490,15 @@ function ($response) { * * @param string $object_id The Blog Post id. (required) * @param bool $archived Specifies whether to return deleted Blog Posts. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getByIdAsyncWithHttpInfo($object_id, $archived = null) + public function getByIdAsyncWithHttpInfo($object_id, $archived = null, $property = null) { $returnType = '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost'; - $request = $this->getByIdRequest($object_id, $archived); + $request = $this->getByIdRequest($object_id, $archived, $property); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2629,11 +2541,12 @@ function ($exception) { * * @param string $object_id The Blog Post id. (required) * @param bool $archived Specifies whether to return deleted Blog Posts. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getByIdRequest($object_id, $archived = null) + public function getByIdRequest($object_id, $archived = null, $property = null) { // verify the required parameter 'object_id' is set if ($object_id === null || (is_array($object_id) && count($object_id) === 0)) { @@ -2658,6 +2571,15 @@ public function getByIdRequest($object_id, $archived = null) true, // explode false // required ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $property, + 'property', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // path params @@ -3053,14 +2975,15 @@ public function getDraftByIdRequest($object_id) * @param string $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 $limit The maximum number of results to return. Default is 20. (optional) * @param bool $archived Specifies whether to return deleted Blog Posts. Defaults to `false`. (optional) + * @param string $property property (optional) * * @throws \HubSpot\Client\Cms\Blogs\BlogPosts\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\CollectionResponseWithTotalBlogPostForwardPaging|\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error */ - public function getPage($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPage($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { - list($response) = $this->getPageWithHttpInfo($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived); + list($response) = $this->getPageWithHttpInfo($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived, $property); return $response; } @@ -3079,14 +3002,15 @@ public function getPage($created_at = null, $created_after = null, $created_befo * @param string $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 $limit The maximum number of results to return. Default is 20. (optional) * @param bool $archived Specifies whether to return deleted Blog Posts. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \HubSpot\Client\Cms\Blogs\BlogPosts\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \HubSpot\Client\Cms\Blogs\BlogPosts\Model\CollectionResponseWithTotalBlogPostForwardPaging|\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error, HTTP status code, HTTP response headers (array of strings) */ - public function getPageWithHttpInfo($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPageWithHttpInfo($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { - $request = $this->getPageRequest($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived); + $request = $this->getPageRequest($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived, $property); try { $options = $this->createHttpClientOption(); @@ -3210,13 +3134,14 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ * @param string $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 $limit The maximum number of results to return. Default is 20. (optional) * @param bool $archived Specifies whether to return deleted Blog Posts. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPageAsync($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPageAsync($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { - return $this->getPageAsyncWithHttpInfo($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived) + return $this->getPageAsyncWithHttpInfo($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived, $property) ->then( function ($response) { return $response[0]; @@ -3239,14 +3164,15 @@ function ($response) { * @param string $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 $limit The maximum number of results to return. Default is 20. (optional) * @param bool $archived Specifies whether to return deleted Blog Posts. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPageAsyncWithHttpInfo($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPageAsyncWithHttpInfo($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { $returnType = '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\CollectionResponseWithTotalBlogPostForwardPaging'; - $request = $this->getPageRequest($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived); + $request = $this->getPageRequest($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived, $property); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3297,11 +3223,12 @@ function ($exception) { * @param string $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 $limit The maximum number of results to return. Default is 20. (optional) * @param bool $archived Specifies whether to return deleted Blog Posts. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getPageRequest($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPageRequest($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { $resourcePath = '/cms/v3/blogs/posts'; @@ -3401,6 +3328,15 @@ public function getPageRequest($created_at = null, $created_after = null, $creat true, // explode false // required ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $property, + 'property', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); @@ -7096,12 +7032,11 @@ public function updateDraftRequest($object_id, $blog_post) * * @throws \HubSpot\Client\Cms\Blogs\BlogPosts\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error + * @return void */ public function updateLangs($update_languages_request_v_next) { - list($response) = $this->updateLangsWithHttpInfo($update_languages_request_v_next); - return $response; + $this->updateLangsWithHttpInfo($update_languages_request_v_next); } /** @@ -7113,7 +7048,7 @@ public function updateLangs($update_languages_request_v_next) * * @throws \HubSpot\Client\Cms\Blogs\BlogPosts\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error, HTTP status code, HTTP response headers (array of strings) + * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function updateLangsWithHttpInfo($update_languages_request_v_next) { @@ -7154,39 +7089,7 @@ public function updateLangsWithHttpInfo($update_languages_request_v_next) ); } - switch($statusCode) { - default: - if ('\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $statusCode, $response->getHeaders()]; } catch (ApiException $e) { switch ($e->getCode()) { @@ -7235,27 +7138,14 @@ function ($response) { */ public function updateLangsAsyncWithHttpInfo($update_languages_request_v_next) { - $returnType = '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Error'; + $returnType = ''; $request = $this->updateLangsRequest($update_languages_request_v_next); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $response->getStatusCode(), $response->getHeaders()]; }, function ($exception) { $response = $exception->getResponse(); diff --git a/codegen/Cms/Blogs/BlogPosts/ApiException.php b/codegen/Cms/Blogs/BlogPosts/ApiException.php index 9811a44a..266783cf 100644 --- a/codegen/Cms/Blogs/BlogPosts/ApiException.php +++ b/codegen/Cms/Blogs/BlogPosts/ApiException.php @@ -10,7 +10,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/BlogPosts/Configuration.php b/codegen/Cms/Blogs/BlogPosts/Configuration.php index efac9427..7cb3af9c 100644 --- a/codegen/Cms/Blogs/BlogPosts/Configuration.php +++ b/codegen/Cms/Blogs/BlogPosts/Configuration.php @@ -10,7 +10,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/BlogPosts/HeaderSelector.php b/codegen/Cms/Blogs/BlogPosts/HeaderSelector.php index 9a2bc895..bef56c1e 100644 --- a/codegen/Cms/Blogs/BlogPosts/HeaderSelector.php +++ b/codegen/Cms/Blogs/BlogPosts/HeaderSelector.php @@ -10,7 +10,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/BlogPosts/Model/Angle.php b/codegen/Cms/Blogs/BlogPosts/Model/Angle.php index 603f8579..f19010c4 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/Angle.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/Angle.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -57,8 +57,8 @@ class Angle implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'value' => 'float', - 'units' => 'string' + 'units' => 'string', + 'value' => 'float' ]; /** @@ -69,8 +69,8 @@ class Angle implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'value' => null, - 'units' => null + 'units' => null, + 'value' => null ]; /** @@ -100,8 +100,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'value' => 'value', - 'units' => 'units' + 'units' => 'units', + 'value' => 'value' ]; /** @@ -110,8 +110,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'value' => 'setValue', - 'units' => 'setUnits' + 'units' => 'setUnits', + 'value' => 'setValue' ]; /** @@ -120,8 +120,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'value' => 'getValue', - 'units' => 'getUnits' + 'units' => 'getUnits', + 'value' => 'getValue' ]; /** @@ -165,25 +165,6 @@ public function getModelName() return self::$openAPIModelName; } - public const UNITS_DEG = 'deg'; - public const UNITS_GRAD = 'grad'; - public const UNITS_RAD = 'rad'; - public const UNITS_TURN = 'turn'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getUnitsAllowableValues() - { - return [ - self::UNITS_DEG, - self::UNITS_GRAD, - self::UNITS_RAD, - self::UNITS_TURN, - ]; - } /** * Associative array for storing property values @@ -200,8 +181,8 @@ public function getUnitsAllowableValues() */ public function __construct(array $data = null) { - $this->container['value'] = $data['value'] ?? null; $this->container['units'] = $data['units'] ?? null; + $this->container['value'] = $data['value'] ?? null; } /** @@ -213,21 +194,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['value'] === null) { - $invalidProperties[] = "'value' can't be null"; - } if ($this->container['units'] === null) { $invalidProperties[] = "'units' can't be null"; } - $allowedValues = $this->getUnitsAllowableValues(); - if (!is_null($this->container['units']) && !in_array($this->container['units'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'units', must be one of '%s'", - $this->container['units'], - implode("', '", $allowedValues) - ); + if ($this->container['value'] === null) { + $invalidProperties[] = "'value' can't be null"; } - return $invalidProperties; } @@ -244,59 +216,49 @@ public function valid() /** - * Gets value + * Gets units * - * @return float + * @return string */ - public function getValue() + public function getUnits() { - return $this->container['value']; + return $this->container['units']; } /** - * Sets value + * Sets units * - * @param float $value value + * @param string $units units * * @return self */ - public function setValue($value) + public function setUnits($units) { - $this->container['value'] = $value; + $this->container['units'] = $units; return $this; } /** - * Gets units + * Gets value * - * @return string + * @return float */ - public function getUnits() + public function getValue() { - return $this->container['units']; + return $this->container['value']; } /** - * Sets units + * Sets value * - * @param string $units units + * @param float $value value * * @return self */ - public function setUnits($units) + public function setValue($value) { - $allowedValues = $this->getUnitsAllowableValues(); - if (!in_array($units, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'units', must be one of '%s'", - $units, - implode("', '", $allowedValues) - ) - ); - } - $this->container['units'] = $units; + $this->container['value'] = $value; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/AttachToLangPrimaryRequestVNext.php b/codegen/Cms/Blogs/BlogPosts/Model/AttachToLangPrimaryRequestVNext.php index f346db71..49545840 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/AttachToLangPrimaryRequestVNext.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/AttachToLangPrimaryRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -35,7 +35,7 @@ * AttachToLangPrimaryRequestVNext Class Doc Comment * * @category Class - * @description Request body object fro attaching objects to multi-language groups. + * @description Request body object for attaching objects to multi-language groups. * @package HubSpot\Client\Cms\Blogs\BlogPosts * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -58,8 +58,8 @@ class AttachToLangPrimaryRequestVNext implements ModelInterface, ArrayAccess, \J * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', 'language' => 'string', + 'id' => 'string', 'primary_id' => 'string', 'primary_language' => 'string' ]; @@ -72,8 +72,8 @@ class AttachToLangPrimaryRequestVNext implements ModelInterface, ArrayAccess, \J * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, 'language' => null, + 'id' => null, 'primary_id' => null, 'primary_language' => null ]; @@ -105,8 +105,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', 'language' => 'language', + 'id' => 'id', 'primary_id' => 'primaryId', 'primary_language' => 'primaryLanguage' ]; @@ -117,8 +117,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', 'language' => 'setLanguage', + 'id' => 'setId', 'primary_id' => 'setPrimaryId', 'primary_language' => 'setPrimaryLanguage' ]; @@ -129,8 +129,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', 'language' => 'getLanguage', + 'id' => 'getId', 'primary_id' => 'getPrimaryId', 'primary_language' => 'getPrimaryLanguage' ]; @@ -176,2884 +176,6 @@ public function getModelName() return self::$openAPIModelName; } - public const LANGUAGE_AF = 'af'; - public const LANGUAGE_AF_NA = 'af-na'; - public const LANGUAGE_AF_ZA = 'af-za'; - public const LANGUAGE_AGQ = 'agq'; - public const LANGUAGE_AGQ_CM = 'agq-cm'; - public const LANGUAGE_AK = 'ak'; - public const LANGUAGE_AK_GH = 'ak-gh'; - public const LANGUAGE_AM = 'am'; - public const LANGUAGE_AM_ET = 'am-et'; - public const LANGUAGE_AR = 'ar'; - public const LANGUAGE_AR_001 = 'ar-001'; - public const LANGUAGE_AR_AE = 'ar-ae'; - public const LANGUAGE_AR_BH = 'ar-bh'; - public const LANGUAGE_AR_DJ = 'ar-dj'; - public const LANGUAGE_AR_DZ = 'ar-dz'; - public const LANGUAGE_AR_EG = 'ar-eg'; - public const LANGUAGE_AR_EH = 'ar-eh'; - public const LANGUAGE_AR_ER = 'ar-er'; - public const LANGUAGE_AR_IL = 'ar-il'; - public const LANGUAGE_AR_IQ = 'ar-iq'; - public const LANGUAGE_AR_JO = 'ar-jo'; - public const LANGUAGE_AR_KM = 'ar-km'; - public const LANGUAGE_AR_KW = 'ar-kw'; - public const LANGUAGE_AR_LB = 'ar-lb'; - public const LANGUAGE_AR_LY = 'ar-ly'; - public const LANGUAGE_AR_MA = 'ar-ma'; - public const LANGUAGE_AR_MR = 'ar-mr'; - public const LANGUAGE_AR_OM = 'ar-om'; - public const LANGUAGE_AR_PS = 'ar-ps'; - public const LANGUAGE_AR_QA = 'ar-qa'; - public const LANGUAGE_AR_SA = 'ar-sa'; - public const LANGUAGE_AR_SD = 'ar-sd'; - public const LANGUAGE_AR_SO = 'ar-so'; - public const LANGUAGE_AR_SS = 'ar-ss'; - public const LANGUAGE_AR_SY = 'ar-sy'; - public const LANGUAGE_AR_TD = 'ar-td'; - public const LANGUAGE_AR_TN = 'ar-tn'; - public const LANGUAGE_AR_YE = 'ar-ye'; - public const LANGUAGE__AS = 'as'; - public const LANGUAGE_AS_IN = 'as-in'; - public const LANGUAGE_ASA = 'asa'; - public const LANGUAGE_ASA_TZ = 'asa-tz'; - public const LANGUAGE_AST = 'ast'; - public const LANGUAGE_AST_ES = 'ast-es'; - public const LANGUAGE_AZ = 'az'; - public const LANGUAGE_AZ_AZ = 'az-az'; - public const LANGUAGE_BAS = 'bas'; - public const LANGUAGE_BAS_CM = 'bas-cm'; - public const LANGUAGE_BE = 'be'; - public const LANGUAGE_BE_BY = 'be-by'; - public const LANGUAGE_BEM = 'bem'; - public const LANGUAGE_BEM_ZM = 'bem-zm'; - public const LANGUAGE_BEZ = 'bez'; - public const LANGUAGE_BEZ_TZ = 'bez-tz'; - public const LANGUAGE_BG = 'bg'; - public const LANGUAGE_BG_BG = 'bg-bg'; - public const LANGUAGE_BM = 'bm'; - public const LANGUAGE_BM_ML = 'bm-ml'; - public const LANGUAGE_BN = 'bn'; - public const LANGUAGE_BN_BD = 'bn-bd'; - public const LANGUAGE_BN_IN = 'bn-in'; - public const LANGUAGE_BO = 'bo'; - public const LANGUAGE_BO_CN = 'bo-cn'; - public const LANGUAGE_BO_IN = 'bo-in'; - public const LANGUAGE_BR = 'br'; - public const LANGUAGE_BR_FR = 'br-fr'; - public const LANGUAGE_BRX = 'brx'; - public const LANGUAGE_BRX_IN = 'brx-in'; - public const LANGUAGE_BS = 'bs'; - public const LANGUAGE_BS_BA = 'bs-ba'; - public const LANGUAGE_CA = 'ca'; - public const LANGUAGE_CA_AD = 'ca-ad'; - public const LANGUAGE_CA_ES = 'ca-es'; - public const LANGUAGE_CA_FR = 'ca-fr'; - public const LANGUAGE_CA_IT = 'ca-it'; - public const LANGUAGE_CCP = 'ccp'; - public const LANGUAGE_CCP_BD = 'ccp-bd'; - public const LANGUAGE_CCP_IN = 'ccp-in'; - public const LANGUAGE_CE = 'ce'; - public const LANGUAGE_CE_RU = 'ce-ru'; - public const LANGUAGE_CGG = 'cgg'; - public const LANGUAGE_CGG_UG = 'cgg-ug'; - public const LANGUAGE_CHR = 'chr'; - public const LANGUAGE_CHR_US = 'chr-us'; - public const LANGUAGE_CKB = 'ckb'; - public const LANGUAGE_CKB_IQ = 'ckb-iq'; - public const LANGUAGE_CKB_IR = 'ckb-ir'; - public const LANGUAGE_CS = 'cs'; - public const LANGUAGE_CS_CZ = 'cs-cz'; - public const LANGUAGE_CU = 'cu'; - public const LANGUAGE_CU_RU = 'cu-ru'; - public const LANGUAGE_CY = 'cy'; - public const LANGUAGE_CY_GB = 'cy-gb'; - public const LANGUAGE_DA = 'da'; - public const LANGUAGE_DA_DK = 'da-dk'; - public const LANGUAGE_DA_GL = 'da-gl'; - public const LANGUAGE_DAV = 'dav'; - public const LANGUAGE_DAV_KE = 'dav-ke'; - public const LANGUAGE_DE = 'de'; - public const LANGUAGE_DE_AT = 'de-at'; - public const LANGUAGE_DE_BE = 'de-be'; - public const LANGUAGE_DE_CH = 'de-ch'; - public const LANGUAGE_DE_DE = 'de-de'; - public const LANGUAGE_DE_GR = 'de-gr'; - public const LANGUAGE_DE_IT = 'de-it'; - public const LANGUAGE_DE_LI = 'de-li'; - public const LANGUAGE_DE_LU = 'de-lu'; - public const LANGUAGE_DJE = 'dje'; - public const LANGUAGE_DJE_NE = 'dje-ne'; - public const LANGUAGE_DSB = 'dsb'; - public const LANGUAGE_DSB_DE = 'dsb-de'; - public const LANGUAGE_DUA = 'dua'; - public const LANGUAGE_DUA_CM = 'dua-cm'; - public const LANGUAGE_DYO = 'dyo'; - public const LANGUAGE_DYO_SN = 'dyo-sn'; - public const LANGUAGE_DZ = 'dz'; - public const LANGUAGE_DZ_BT = 'dz-bt'; - public const LANGUAGE_EBU = 'ebu'; - public const LANGUAGE_EBU_KE = 'ebu-ke'; - public const LANGUAGE_EE = 'ee'; - public const LANGUAGE_EE_GH = 'ee-gh'; - public const LANGUAGE_EE_TG = 'ee-tg'; - public const LANGUAGE_EL = 'el'; - public const LANGUAGE_EL_CY = 'el-cy'; - public const LANGUAGE_EL_GR = 'el-gr'; - public const LANGUAGE_EN = 'en'; - public const LANGUAGE_EN_001 = 'en-001'; - public const LANGUAGE_EN_150 = 'en-150'; - public const LANGUAGE_EN_AE = 'en-ae'; - public const LANGUAGE_EN_AG = 'en-ag'; - public const LANGUAGE_EN_AI = 'en-ai'; - public const LANGUAGE_EN_AS = 'en-as'; - public const LANGUAGE_EN_AT = 'en-at'; - public const LANGUAGE_EN_AU = 'en-au'; - public const LANGUAGE_EN_BB = 'en-bb'; - public const LANGUAGE_EN_BE = 'en-be'; - public const LANGUAGE_EN_BI = 'en-bi'; - public const LANGUAGE_EN_BM = 'en-bm'; - public const LANGUAGE_EN_BS = 'en-bs'; - public const LANGUAGE_EN_BW = 'en-bw'; - public const LANGUAGE_EN_BZ = 'en-bz'; - public const LANGUAGE_EN_CA = 'en-ca'; - public const LANGUAGE_EN_CC = 'en-cc'; - public const LANGUAGE_EN_CH = 'en-ch'; - public const LANGUAGE_EN_CK = 'en-ck'; - public const LANGUAGE_EN_CM = 'en-cm'; - public const LANGUAGE_EN_CX = 'en-cx'; - public const LANGUAGE_EN_CY = 'en-cy'; - public const LANGUAGE_EN_DE = 'en-de'; - public const LANGUAGE_EN_DG = 'en-dg'; - public const LANGUAGE_EN_DK = 'en-dk'; - public const LANGUAGE_EN_DM = 'en-dm'; - public const LANGUAGE_EN_ER = 'en-er'; - public const LANGUAGE_EN_FI = 'en-fi'; - public const LANGUAGE_EN_FJ = 'en-fj'; - public const LANGUAGE_EN_FK = 'en-fk'; - public const LANGUAGE_EN_FM = 'en-fm'; - public const LANGUAGE_EN_GB = 'en-gb'; - public const LANGUAGE_EN_GD = 'en-gd'; - public const LANGUAGE_EN_GG = 'en-gg'; - public const LANGUAGE_EN_GH = 'en-gh'; - public const LANGUAGE_EN_GI = 'en-gi'; - public const LANGUAGE_EN_GM = 'en-gm'; - public const LANGUAGE_EN_GU = 'en-gu'; - public const LANGUAGE_EN_GY = 'en-gy'; - public const LANGUAGE_EN_HK = 'en-hk'; - public const LANGUAGE_EN_IE = 'en-ie'; - public const LANGUAGE_EN_IL = 'en-il'; - public const LANGUAGE_EN_IM = 'en-im'; - public const LANGUAGE_EN_IN = 'en-in'; - public const LANGUAGE_EN_IO = 'en-io'; - public const LANGUAGE_EN_JE = 'en-je'; - public const LANGUAGE_EN_JM = 'en-jm'; - public const LANGUAGE_EN_KE = 'en-ke'; - public const LANGUAGE_EN_KI = 'en-ki'; - public const LANGUAGE_EN_KN = 'en-kn'; - public const LANGUAGE_EN_KY = 'en-ky'; - public const LANGUAGE_EN_LC = 'en-lc'; - public const LANGUAGE_EN_LR = 'en-lr'; - public const LANGUAGE_EN_LS = 'en-ls'; - public const LANGUAGE_EN_LU = 'en-lu'; - public const LANGUAGE_EN_MG = 'en-mg'; - public const LANGUAGE_EN_MH = 'en-mh'; - public const LANGUAGE_EN_MO = 'en-mo'; - public const LANGUAGE_EN_MP = 'en-mp'; - public const LANGUAGE_EN_MS = 'en-ms'; - public const LANGUAGE_EN_MT = 'en-mt'; - public const LANGUAGE_EN_MU = 'en-mu'; - public const LANGUAGE_EN_MW = 'en-mw'; - public const LANGUAGE_EN_MY = 'en-my'; - public const LANGUAGE_EN_NA = 'en-na'; - public const LANGUAGE_EN_NF = 'en-nf'; - public const LANGUAGE_EN_NG = 'en-ng'; - public const LANGUAGE_EN_NL = 'en-nl'; - public const LANGUAGE_EN_NR = 'en-nr'; - public const LANGUAGE_EN_NU = 'en-nu'; - public const LANGUAGE_EN_NZ = 'en-nz'; - public const LANGUAGE_EN_PG = 'en-pg'; - public const LANGUAGE_EN_PH = 'en-ph'; - public const LANGUAGE_EN_PK = 'en-pk'; - public const LANGUAGE_EN_PN = 'en-pn'; - public const LANGUAGE_EN_PR = 'en-pr'; - public const LANGUAGE_EN_PW = 'en-pw'; - public const LANGUAGE_EN_RW = 'en-rw'; - public const LANGUAGE_EN_SB = 'en-sb'; - public const LANGUAGE_EN_SC = 'en-sc'; - public const LANGUAGE_EN_SD = 'en-sd'; - public const LANGUAGE_EN_SE = 'en-se'; - public const LANGUAGE_EN_SG = 'en-sg'; - public const LANGUAGE_EN_SH = 'en-sh'; - public const LANGUAGE_EN_SI = 'en-si'; - public const LANGUAGE_EN_SL = 'en-sl'; - public const LANGUAGE_EN_SS = 'en-ss'; - public const LANGUAGE_EN_SX = 'en-sx'; - public const LANGUAGE_EN_SZ = 'en-sz'; - public const LANGUAGE_EN_TC = 'en-tc'; - public const LANGUAGE_EN_TK = 'en-tk'; - public const LANGUAGE_EN_TO = 'en-to'; - public const LANGUAGE_EN_TT = 'en-tt'; - public const LANGUAGE_EN_TV = 'en-tv'; - public const LANGUAGE_EN_TZ = 'en-tz'; - public const LANGUAGE_EN_UG = 'en-ug'; - public const LANGUAGE_EN_UM = 'en-um'; - public const LANGUAGE_EN_US = 'en-us'; - public const LANGUAGE_EN_VC = 'en-vc'; - public const LANGUAGE_EN_VG = 'en-vg'; - public const LANGUAGE_EN_VI = 'en-vi'; - public const LANGUAGE_EN_VU = 'en-vu'; - public const LANGUAGE_EN_WS = 'en-ws'; - public const LANGUAGE_EN_ZA = 'en-za'; - public const LANGUAGE_EN_ZM = 'en-zm'; - public const LANGUAGE_EN_ZW = 'en-zw'; - public const LANGUAGE_EO = 'eo'; - public const LANGUAGE_EO_001 = 'eo-001'; - public const LANGUAGE_ES = 'es'; - public const LANGUAGE_ES_419 = 'es-419'; - public const LANGUAGE_ES_AR = 'es-ar'; - public const LANGUAGE_ES_BO = 'es-bo'; - public const LANGUAGE_ES_BR = 'es-br'; - public const LANGUAGE_ES_BZ = 'es-bz'; - public const LANGUAGE_ES_CL = 'es-cl'; - public const LANGUAGE_ES_CO = 'es-co'; - public const LANGUAGE_ES_CR = 'es-cr'; - public const LANGUAGE_ES_CU = 'es-cu'; - public const LANGUAGE_ES_DO = 'es-do'; - public const LANGUAGE_ES_EA = 'es-ea'; - public const LANGUAGE_ES_EC = 'es-ec'; - public const LANGUAGE_ES_ES = 'es-es'; - public const LANGUAGE_ES_GQ = 'es-gq'; - public const LANGUAGE_ES_GT = 'es-gt'; - public const LANGUAGE_ES_HN = 'es-hn'; - public const LANGUAGE_ES_IC = 'es-ic'; - public const LANGUAGE_ES_MX = 'es-mx'; - public const LANGUAGE_ES_NI = 'es-ni'; - public const LANGUAGE_ES_PA = 'es-pa'; - public const LANGUAGE_ES_PE = 'es-pe'; - public const LANGUAGE_ES_PH = 'es-ph'; - public const LANGUAGE_ES_PR = 'es-pr'; - public const LANGUAGE_ES_PY = 'es-py'; - public const LANGUAGE_ES_SV = 'es-sv'; - public const LANGUAGE_ES_US = 'es-us'; - public const LANGUAGE_ES_UY = 'es-uy'; - public const LANGUAGE_ES_VE = 'es-ve'; - public const LANGUAGE_ET = 'et'; - public const LANGUAGE_ET_EE = 'et-ee'; - public const LANGUAGE_EU = 'eu'; - public const LANGUAGE_EU_ES = 'eu-es'; - public const LANGUAGE_EWO = 'ewo'; - public const LANGUAGE_EWO_CM = 'ewo-cm'; - public const LANGUAGE_FA = 'fa'; - public const LANGUAGE_FA_AF = 'fa-af'; - public const LANGUAGE_FA_IR = 'fa-ir'; - public const LANGUAGE_FF = 'ff'; - public const LANGUAGE_FF_CM = 'ff-cm'; - public const LANGUAGE_FF_GN = 'ff-gn'; - public const LANGUAGE_FF_MR = 'ff-mr'; - public const LANGUAGE_FF_SN = 'ff-sn'; - public const LANGUAGE_FI = 'fi'; - public const LANGUAGE_FI_FI = 'fi-fi'; - public const LANGUAGE_FIL = 'fil'; - public const LANGUAGE_FIL_PH = 'fil-ph'; - public const LANGUAGE_FO = 'fo'; - public const LANGUAGE_FO_DK = 'fo-dk'; - public const LANGUAGE_FO_FO = 'fo-fo'; - public const LANGUAGE_FR = 'fr'; - public const LANGUAGE_FR_BE = 'fr-be'; - public const LANGUAGE_FR_BF = 'fr-bf'; - public const LANGUAGE_FR_BI = 'fr-bi'; - public const LANGUAGE_FR_BJ = 'fr-bj'; - public const LANGUAGE_FR_BL = 'fr-bl'; - public const LANGUAGE_FR_CA = 'fr-ca'; - public const LANGUAGE_FR_CD = 'fr-cd'; - public const LANGUAGE_FR_CF = 'fr-cf'; - public const LANGUAGE_FR_CG = 'fr-cg'; - public const LANGUAGE_FR_CH = 'fr-ch'; - public const LANGUAGE_FR_CI = 'fr-ci'; - public const LANGUAGE_FR_CM = 'fr-cm'; - public const LANGUAGE_FR_DJ = 'fr-dj'; - public const LANGUAGE_FR_DZ = 'fr-dz'; - public const LANGUAGE_FR_FR = 'fr-fr'; - public const LANGUAGE_FR_GA = 'fr-ga'; - public const LANGUAGE_FR_GF = 'fr-gf'; - public const LANGUAGE_FR_GN = 'fr-gn'; - public const LANGUAGE_FR_GP = 'fr-gp'; - public const LANGUAGE_FR_GQ = 'fr-gq'; - public const LANGUAGE_FR_HT = 'fr-ht'; - public const LANGUAGE_FR_KM = 'fr-km'; - public const LANGUAGE_FR_LU = 'fr-lu'; - public const LANGUAGE_FR_MA = 'fr-ma'; - public const LANGUAGE_FR_MC = 'fr-mc'; - public const LANGUAGE_FR_MF = 'fr-mf'; - public const LANGUAGE_FR_MG = 'fr-mg'; - public const LANGUAGE_FR_ML = 'fr-ml'; - public const LANGUAGE_FR_MQ = 'fr-mq'; - public const LANGUAGE_FR_MR = 'fr-mr'; - public const LANGUAGE_FR_MU = 'fr-mu'; - public const LANGUAGE_FR_NC = 'fr-nc'; - public const LANGUAGE_FR_NE = 'fr-ne'; - public const LANGUAGE_FR_PF = 'fr-pf'; - public const LANGUAGE_FR_PM = 'fr-pm'; - public const LANGUAGE_FR_RE = 'fr-re'; - public const LANGUAGE_FR_RW = 'fr-rw'; - public const LANGUAGE_FR_SC = 'fr-sc'; - public const LANGUAGE_FR_SN = 'fr-sn'; - public const LANGUAGE_FR_SY = 'fr-sy'; - public const LANGUAGE_FR_TD = 'fr-td'; - public const LANGUAGE_FR_TG = 'fr-tg'; - public const LANGUAGE_FR_TN = 'fr-tn'; - public const LANGUAGE_FR_VU = 'fr-vu'; - public const LANGUAGE_FR_WF = 'fr-wf'; - public const LANGUAGE_FR_YT = 'fr-yt'; - public const LANGUAGE_FUR = 'fur'; - public const LANGUAGE_FUR_IT = 'fur-it'; - public const LANGUAGE_FY = 'fy'; - public const LANGUAGE_FY_NL = 'fy-nl'; - public const LANGUAGE_GA = 'ga'; - public const LANGUAGE_GA_IE = 'ga-ie'; - public const LANGUAGE_GD = 'gd'; - public const LANGUAGE_GD_GB = 'gd-gb'; - public const LANGUAGE_GL = 'gl'; - public const LANGUAGE_GL_ES = 'gl-es'; - public const LANGUAGE_GSW = 'gsw'; - public const LANGUAGE_GSW_CH = 'gsw-ch'; - public const LANGUAGE_GSW_FR = 'gsw-fr'; - public const LANGUAGE_GSW_LI = 'gsw-li'; - public const LANGUAGE_GU = 'gu'; - public const LANGUAGE_GU_IN = 'gu-in'; - public const LANGUAGE_GUZ = 'guz'; - public const LANGUAGE_GUZ_KE = 'guz-ke'; - public const LANGUAGE_GV = 'gv'; - public const LANGUAGE_GV_IM = 'gv-im'; - public const LANGUAGE_HA = 'ha'; - public const LANGUAGE_HA_GH = 'ha-gh'; - public const LANGUAGE_HA_NE = 'ha-ne'; - public const LANGUAGE_HA_NG = 'ha-ng'; - public const LANGUAGE_HAW = 'haw'; - public const LANGUAGE_HAW_US = 'haw-us'; - public const LANGUAGE_HE = 'he'; - public const LANGUAGE_HI = 'hi'; - public const LANGUAGE_HI_IN = 'hi-in'; - public const LANGUAGE_HR = 'hr'; - public const LANGUAGE_HR_BA = 'hr-ba'; - public const LANGUAGE_HR_HR = 'hr-hr'; - public const LANGUAGE_HSB = 'hsb'; - public const LANGUAGE_HSB_DE = 'hsb-de'; - public const LANGUAGE_HU = 'hu'; - public const LANGUAGE_HU_HU = 'hu-hu'; - public const LANGUAGE_HY = 'hy'; - public const LANGUAGE_HY_AM = 'hy-am'; - public const LANGUAGE_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'; - public const LANGUAGE_IT_CH = 'it-ch'; - 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_KA = 'ka'; - public const LANGUAGE_KA_GE = 'ka-ge'; - public const LANGUAGE_KAB = 'kab'; - public const LANGUAGE_KAB_DZ = 'kab-dz'; - public const LANGUAGE_KAM = 'kam'; - public const LANGUAGE_KAM_KE = 'kam-ke'; - public const LANGUAGE_KDE = 'kde'; - public const LANGUAGE_KDE_TZ = 'kde-tz'; - public const LANGUAGE_KEA = 'kea'; - public const LANGUAGE_KEA_CV = 'kea-cv'; - public const LANGUAGE_KHQ = 'khq'; - public const LANGUAGE_KHQ_ML = 'khq-ml'; - public const LANGUAGE_KI = 'ki'; - public const LANGUAGE_KI_KE = 'ki-ke'; - public const LANGUAGE_KK = 'kk'; - public const LANGUAGE_KK_KZ = 'kk-kz'; - public const LANGUAGE_KKJ = 'kkj'; - public const LANGUAGE_KKJ_CM = 'kkj-cm'; - public const LANGUAGE_KL = 'kl'; - public const LANGUAGE_KL_GL = 'kl-gl'; - public const LANGUAGE_KLN = 'kln'; - public const LANGUAGE_KLN_KE = 'kln-ke'; - public const LANGUAGE_KM = 'km'; - public const LANGUAGE_KM_KH = 'km-kh'; - public const LANGUAGE_KN = 'kn'; - public const LANGUAGE_KN_IN = 'kn-in'; - public const LANGUAGE_KO = 'ko'; - public const LANGUAGE_KO_KP = 'ko-kp'; - public const LANGUAGE_KO_KR = 'ko-kr'; - public const LANGUAGE_KOK = 'kok'; - public const LANGUAGE_KOK_IN = 'kok-in'; - public const LANGUAGE_KS = 'ks'; - public const LANGUAGE_KS_IN = 'ks-in'; - public const LANGUAGE_KSB = 'ksb'; - public const LANGUAGE_KSB_TZ = 'ksb-tz'; - public const LANGUAGE_KSF = 'ksf'; - 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_KY = 'ky'; - public const LANGUAGE_KY_KG = 'ky-kg'; - public const LANGUAGE_LAG = 'lag'; - public const LANGUAGE_LAG_TZ = 'lag-tz'; - public const LANGUAGE_LB = 'lb'; - public const LANGUAGE_LB_LU = 'lb-lu'; - public const LANGUAGE_LG = 'lg'; - public const LANGUAGE_LG_UG = 'lg-ug'; - public const LANGUAGE_LKT = 'lkt'; - public const LANGUAGE_LKT_US = 'lkt-us'; - public const LANGUAGE_LN = 'ln'; - public const LANGUAGE_LN_AO = 'ln-ao'; - public const LANGUAGE_LN_CD = 'ln-cd'; - public const LANGUAGE_LN_CF = 'ln-cf'; - public const LANGUAGE_LN_CG = 'ln-cg'; - public const LANGUAGE_LO = 'lo'; - public const LANGUAGE_LO_LA = 'lo-la'; - public const LANGUAGE_LRC = 'lrc'; - public const LANGUAGE_LRC_IQ = 'lrc-iq'; - public const LANGUAGE_LRC_IR = 'lrc-ir'; - public const LANGUAGE_LT = 'lt'; - public const LANGUAGE_LT_LT = 'lt-lt'; - public const LANGUAGE_LU = 'lu'; - public const LANGUAGE_LU_CD = 'lu-cd'; - public const LANGUAGE_LUO = 'luo'; - public const LANGUAGE_LUO_KE = 'luo-ke'; - public const LANGUAGE_LUY = 'luy'; - public const LANGUAGE_LUY_KE = 'luy-ke'; - public const LANGUAGE_LV = 'lv'; - public const LANGUAGE_LV_LV = 'lv-lv'; - public const LANGUAGE_MAS = 'mas'; - public const LANGUAGE_MAS_KE = 'mas-ke'; - public const LANGUAGE_MAS_TZ = 'mas-tz'; - public const LANGUAGE_MER = 'mer'; - public const LANGUAGE_MER_KE = 'mer-ke'; - public const LANGUAGE_MFE = 'mfe'; - public const LANGUAGE_MFE_MU = 'mfe-mu'; - public const LANGUAGE_MG = 'mg'; - public const LANGUAGE_MG_MG = 'mg-mg'; - public const LANGUAGE_MGH = 'mgh'; - public const LANGUAGE_MGH_MZ = 'mgh-mz'; - public const LANGUAGE_MGO = 'mgo'; - public const LANGUAGE_MGO_CM = 'mgo-cm'; - public const LANGUAGE_MK = 'mk'; - public const LANGUAGE_MK_MK = 'mk-mk'; - public const LANGUAGE_ML = 'ml'; - public const LANGUAGE_ML_IN = 'ml-in'; - public const LANGUAGE_MN = 'mn'; - public const LANGUAGE_MN_MN = 'mn-mn'; - public const LANGUAGE_MR = 'mr'; - public const LANGUAGE_MR_IN = 'mr-in'; - public const LANGUAGE_MS = 'ms'; - public const LANGUAGE_MS_BN = 'ms-bn'; - public const LANGUAGE_MS_MY = 'ms-my'; - public const LANGUAGE_MS_SG = 'ms-sg'; - public const LANGUAGE_MT = 'mt'; - public const LANGUAGE_MT_MT = 'mt-mt'; - public const LANGUAGE_MUA = 'mua'; - public const LANGUAGE_MUA_CM = 'mua-cm'; - public const LANGUAGE_MY = 'my'; - public const LANGUAGE_MY_MM = 'my-mm'; - public const LANGUAGE_MZN = 'mzn'; - public const LANGUAGE_MZN_IR = 'mzn-ir'; - public const LANGUAGE_NAQ = 'naq'; - public const LANGUAGE_NAQ_NA = 'naq-na'; - public const LANGUAGE_NB = 'nb'; - public const LANGUAGE_NB_NO = 'nb-no'; - public const LANGUAGE_NB_SJ = 'nb-sj'; - public const LANGUAGE_ND = 'nd'; - public const LANGUAGE_ND_ZW = 'nd-zw'; - public const LANGUAGE_NDS = 'nds'; - public const LANGUAGE_NDS_DE = 'nds-de'; - public const LANGUAGE_NDS_NL = 'nds-nl'; - public const LANGUAGE_NE = 'ne'; - public const LANGUAGE_NE_IN = 'ne-in'; - public const LANGUAGE_NE_NP = 'ne-np'; - 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_CW = 'nl-cw'; - public const LANGUAGE_NL_LU = 'nl-lu'; - public const LANGUAGE_NL_NL = 'nl-nl'; - public const LANGUAGE_NL_SR = 'nl-sr'; - public const LANGUAGE_NL_SX = 'nl-sx'; - public const LANGUAGE_NMG = 'nmg'; - public const LANGUAGE_NMG_CM = 'nmg-cm'; - public const LANGUAGE_NN = 'nn'; - public const LANGUAGE_NN_NO = 'nn-no'; - public const LANGUAGE_NNH = 'nnh'; - public const LANGUAGE_NNH_CM = 'nnh-cm'; - public const LANGUAGE_NO = 'no'; - public const LANGUAGE_NO_NO = 'no-no'; - public const LANGUAGE_NUS = 'nus'; - public const LANGUAGE_NUS_SS = 'nus-ss'; - public const LANGUAGE_NYN = 'nyn'; - public const LANGUAGE_NYN_UG = 'nyn-ug'; - public const LANGUAGE_OM = 'om'; - public const LANGUAGE_OM_ET = 'om-et'; - public const LANGUAGE_OM_KE = 'om-ke'; - public const LANGUAGE__OR = 'or'; - public const LANGUAGE_OR_IN = 'or-in'; - public const LANGUAGE_OS = 'os'; - public const LANGUAGE_OS_GE = 'os-ge'; - public const LANGUAGE_OS_RU = 'os-ru'; - public const LANGUAGE_PA = 'pa'; - public const LANGUAGE_PA_IN = 'pa-in'; - public const LANGUAGE_PA_PK = 'pa-pk'; - public const LANGUAGE_PL = 'pl'; - public const LANGUAGE_PL_PL = 'pl-pl'; - public const LANGUAGE_PRG = 'prg'; - public const LANGUAGE_PRG_001 = 'prg-001'; - public const LANGUAGE_PS = 'ps'; - public const LANGUAGE_PS_AF = 'ps-af'; - public const LANGUAGE_PT = 'pt'; - public const LANGUAGE_PT_AO = 'pt-ao'; - public const LANGUAGE_PT_BR = 'pt-br'; - public const LANGUAGE_PT_CH = 'pt-ch'; - public const LANGUAGE_PT_CV = 'pt-cv'; - public const LANGUAGE_PT_GQ = 'pt-gq'; - public const LANGUAGE_PT_GW = 'pt-gw'; - public const LANGUAGE_PT_LU = 'pt-lu'; - public const LANGUAGE_PT_MO = 'pt-mo'; - public const LANGUAGE_PT_MZ = 'pt-mz'; - public const LANGUAGE_PT_PT = 'pt-pt'; - public const LANGUAGE_PT_ST = 'pt-st'; - public const LANGUAGE_PT_TL = 'pt-tl'; - public const LANGUAGE_QU = 'qu'; - public const LANGUAGE_QU_BO = 'qu-bo'; - public const LANGUAGE_QU_EC = 'qu-ec'; - public const LANGUAGE_QU_PE = 'qu-pe'; - public const LANGUAGE_RM = 'rm'; - public const LANGUAGE_RM_CH = 'rm-ch'; - public const LANGUAGE_RN = 'rn'; - public const LANGUAGE_RN_BI = 'rn-bi'; - public const LANGUAGE_RO = 'ro'; - public const LANGUAGE_RO_MD = 'ro-md'; - public const LANGUAGE_RO_RO = 'ro-ro'; - public const LANGUAGE_ROF = 'rof'; - public const LANGUAGE_ROF_TZ = 'rof-tz'; - public const LANGUAGE_RU = 'ru'; - public const LANGUAGE_RU_BY = 'ru-by'; - public const LANGUAGE_RU_KG = 'ru-kg'; - public const LANGUAGE_RU_KZ = 'ru-kz'; - public const LANGUAGE_RU_MD = 'ru-md'; - public const LANGUAGE_RU_RU = 'ru-ru'; - public const LANGUAGE_RU_UA = 'ru-ua'; - public const LANGUAGE_RW = 'rw'; - public const LANGUAGE_RW_RW = 'rw-rw'; - public const LANGUAGE_RWK = 'rwk'; - public const LANGUAGE_RWK_TZ = 'rwk-tz'; - public const LANGUAGE_SA = 'sa'; - public const LANGUAGE_SAH = 'sah'; - public const LANGUAGE_SAH_RU = 'sah-ru'; - public const LANGUAGE_SAQ = 'saq'; - public const LANGUAGE_SAQ_KE = 'saq-ke'; - public const LANGUAGE_SBP = 'sbp'; - public const LANGUAGE_SBP_TZ = 'sbp-tz'; - public const LANGUAGE_SD = 'sd'; - public const LANGUAGE_SD_PK = 'sd-pk'; - public const LANGUAGE_SE = 'se'; - public const LANGUAGE_SE_FI = 'se-fi'; - public const LANGUAGE_SE_NO = 'se-no'; - public const LANGUAGE_SE_SE = 'se-se'; - public const LANGUAGE_SEH = 'seh'; - public const LANGUAGE_SEH_MZ = 'seh-mz'; - public const LANGUAGE_SES = 'ses'; - public const LANGUAGE_SES_ML = 'ses-ml'; - public const LANGUAGE_SG = 'sg'; - public const LANGUAGE_SG_CF = 'sg-cf'; - public const LANGUAGE_SHI = 'shi'; - public const LANGUAGE_SHI_MA = 'shi-ma'; - public const LANGUAGE_SI = 'si'; - public const LANGUAGE_SI_LK = 'si-lk'; - public const LANGUAGE_SK = 'sk'; - public const LANGUAGE_SK_SK = 'sk-sk'; - public const LANGUAGE_SL = 'sl'; - public const LANGUAGE_SL_SI = 'sl-si'; - public const LANGUAGE_SMN = 'smn'; - public const LANGUAGE_SMN_FI = 'smn-fi'; - public const LANGUAGE_SN = 'sn'; - public const LANGUAGE_SN_ZW = 'sn-zw'; - public const LANGUAGE_SO = 'so'; - public const LANGUAGE_SO_DJ = 'so-dj'; - public const LANGUAGE_SO_ET = 'so-et'; - public const LANGUAGE_SO_KE = 'so-ke'; - public const LANGUAGE_SO_SO = 'so-so'; - public const LANGUAGE_SQ = 'sq'; - public const LANGUAGE_SQ_AL = 'sq-al'; - public const LANGUAGE_SQ_MK = 'sq-mk'; - public const LANGUAGE_SQ_XK = 'sq-xk'; - public const LANGUAGE_SR = 'sr'; - public const LANGUAGE_SR_BA = 'sr-ba'; - public const LANGUAGE_SR_CS = 'sr-cs'; - public const LANGUAGE_SR_ME = 'sr-me'; - public const LANGUAGE_SR_RS = 'sr-rs'; - public const LANGUAGE_SR_XK = 'sr-xk'; - public const LANGUAGE_SV = 'sv'; - public const LANGUAGE_SV_AX = 'sv-ax'; - public const LANGUAGE_SV_FI = 'sv-fi'; - public const LANGUAGE_SV_SE = 'sv-se'; - public const LANGUAGE_SW = 'sw'; - public const LANGUAGE_SW_CD = 'sw-cd'; - public const LANGUAGE_SW_KE = 'sw-ke'; - public const LANGUAGE_SW_TZ = 'sw-tz'; - public const LANGUAGE_SW_UG = 'sw-ug'; - public const LANGUAGE_SY = 'sy'; - public const LANGUAGE_TA = 'ta'; - public const LANGUAGE_TA_IN = 'ta-in'; - public const LANGUAGE_TA_LK = 'ta-lk'; - public const LANGUAGE_TA_MY = 'ta-my'; - public const LANGUAGE_TA_SG = 'ta-sg'; - public const LANGUAGE_TE = 'te'; - public const LANGUAGE_TE_IN = 'te-in'; - public const LANGUAGE_TEO = 'teo'; - public const LANGUAGE_TEO_KE = 'teo-ke'; - public const LANGUAGE_TEO_UG = 'teo-ug'; - public const LANGUAGE_TG = 'tg'; - public const LANGUAGE_TG_TJ = 'tg-tj'; - public const LANGUAGE_TH = 'th'; - public const LANGUAGE_TH_TH = 'th-th'; - public const LANGUAGE_TI = 'ti'; - public const LANGUAGE_TI_ER = 'ti-er'; - public const LANGUAGE_TI_ET = 'ti-et'; - public const LANGUAGE_TK = 'tk'; - public const LANGUAGE_TK_TM = 'tk-tm'; - public const LANGUAGE_TO = 'to'; - public const LANGUAGE_TO_TO = 'to-to'; - public const LANGUAGE_TR = 'tr'; - public const LANGUAGE_TR_CY = 'tr-cy'; - public const LANGUAGE_TR_TR = 'tr-tr'; - public const LANGUAGE_TT = 'tt'; - public const LANGUAGE_TT_RU = 'tt-ru'; - public const LANGUAGE_TWQ = 'twq'; - public const LANGUAGE_TWQ_NE = 'twq-ne'; - public const LANGUAGE_TZM = 'tzm'; - public const LANGUAGE_TZM_MA = 'tzm-ma'; - public const LANGUAGE_UG = 'ug'; - public const LANGUAGE_UG_CN = 'ug-cn'; - public const LANGUAGE_UK = 'uk'; - public const LANGUAGE_UK_UA = 'uk-ua'; - public const LANGUAGE_UR = 'ur'; - public const LANGUAGE_UR_IN = 'ur-in'; - public const LANGUAGE_UR_PK = 'ur-pk'; - public const LANGUAGE_UZ = 'uz'; - public const LANGUAGE_UZ_AF = 'uz-af'; - public const LANGUAGE_UZ_UZ = 'uz-uz'; - public const LANGUAGE_VAI = 'vai'; - public const LANGUAGE_VAI_LR = 'vai-lr'; - public const LANGUAGE_VI = 'vi'; - public const LANGUAGE_VI_VN = 'vi-vn'; - public const LANGUAGE_VO = 'vo'; - public const LANGUAGE_VO_001 = 'vo-001'; - public const LANGUAGE_VUN = 'vun'; - public const LANGUAGE_VUN_TZ = 'vun-tz'; - public const LANGUAGE_WAE = 'wae'; - public const LANGUAGE_WAE_CH = 'wae-ch'; - public const LANGUAGE_WO = 'wo'; - public const LANGUAGE_WO_SN = 'wo-sn'; - public const LANGUAGE_XOG = 'xog'; - public const LANGUAGE_XOG_UG = 'xog-ug'; - public const LANGUAGE_YAV = 'yav'; - public const LANGUAGE_YAV_CM = 'yav-cm'; - public const LANGUAGE_YO = 'yo'; - public const LANGUAGE_YO_BJ = 'yo-bj'; - public const LANGUAGE_YO_NG = 'yo-ng'; - public const LANGUAGE_YUE = 'yue'; - public const LANGUAGE_YUE_CN = 'yue-cn'; - public const LANGUAGE_YUE_HK = 'yue-hk'; - public const LANGUAGE_ZGH = 'zgh'; - public const LANGUAGE_ZGH_MA = 'zgh-ma'; - public const LANGUAGE_ZH = 'zh'; - public const LANGUAGE_ZH_CN = 'zh-cn'; - 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 PRIMARY_LANGUAGE_AF = 'af'; - public const PRIMARY_LANGUAGE_AF_NA = 'af-na'; - public const PRIMARY_LANGUAGE_AF_ZA = 'af-za'; - public const PRIMARY_LANGUAGE_AGQ = 'agq'; - public const PRIMARY_LANGUAGE_AGQ_CM = 'agq-cm'; - public const PRIMARY_LANGUAGE_AK = 'ak'; - public const PRIMARY_LANGUAGE_AK_GH = 'ak-gh'; - public const PRIMARY_LANGUAGE_AM = 'am'; - public const PRIMARY_LANGUAGE_AM_ET = 'am-et'; - public const PRIMARY_LANGUAGE_AR = 'ar'; - public const PRIMARY_LANGUAGE_AR_001 = 'ar-001'; - public const PRIMARY_LANGUAGE_AR_AE = 'ar-ae'; - public const PRIMARY_LANGUAGE_AR_BH = 'ar-bh'; - public const PRIMARY_LANGUAGE_AR_DJ = 'ar-dj'; - public const PRIMARY_LANGUAGE_AR_DZ = 'ar-dz'; - public const PRIMARY_LANGUAGE_AR_EG = 'ar-eg'; - public const PRIMARY_LANGUAGE_AR_EH = 'ar-eh'; - public const PRIMARY_LANGUAGE_AR_ER = 'ar-er'; - public const PRIMARY_LANGUAGE_AR_IL = 'ar-il'; - public const PRIMARY_LANGUAGE_AR_IQ = 'ar-iq'; - public const PRIMARY_LANGUAGE_AR_JO = 'ar-jo'; - public const PRIMARY_LANGUAGE_AR_KM = 'ar-km'; - public const PRIMARY_LANGUAGE_AR_KW = 'ar-kw'; - public const PRIMARY_LANGUAGE_AR_LB = 'ar-lb'; - public const PRIMARY_LANGUAGE_AR_LY = 'ar-ly'; - public const PRIMARY_LANGUAGE_AR_MA = 'ar-ma'; - public const PRIMARY_LANGUAGE_AR_MR = 'ar-mr'; - public const PRIMARY_LANGUAGE_AR_OM = 'ar-om'; - public const PRIMARY_LANGUAGE_AR_PS = 'ar-ps'; - public const PRIMARY_LANGUAGE_AR_QA = 'ar-qa'; - public const PRIMARY_LANGUAGE_AR_SA = 'ar-sa'; - public const PRIMARY_LANGUAGE_AR_SD = 'ar-sd'; - public const PRIMARY_LANGUAGE_AR_SO = 'ar-so'; - public const PRIMARY_LANGUAGE_AR_SS = 'ar-ss'; - public const PRIMARY_LANGUAGE_AR_SY = 'ar-sy'; - public const PRIMARY_LANGUAGE_AR_TD = 'ar-td'; - public const PRIMARY_LANGUAGE_AR_TN = 'ar-tn'; - public const PRIMARY_LANGUAGE_AR_YE = 'ar-ye'; - public const PRIMARY_LANGUAGE__AS = 'as'; - public const PRIMARY_LANGUAGE_AS_IN = 'as-in'; - public const PRIMARY_LANGUAGE_ASA = 'asa'; - public const PRIMARY_LANGUAGE_ASA_TZ = 'asa-tz'; - public const PRIMARY_LANGUAGE_AST = 'ast'; - public const PRIMARY_LANGUAGE_AST_ES = 'ast-es'; - public const PRIMARY_LANGUAGE_AZ = 'az'; - public const PRIMARY_LANGUAGE_AZ_AZ = 'az-az'; - public const PRIMARY_LANGUAGE_BAS = 'bas'; - public const PRIMARY_LANGUAGE_BAS_CM = 'bas-cm'; - public const PRIMARY_LANGUAGE_BE = 'be'; - public const PRIMARY_LANGUAGE_BE_BY = 'be-by'; - public const PRIMARY_LANGUAGE_BEM = 'bem'; - public const PRIMARY_LANGUAGE_BEM_ZM = 'bem-zm'; - public const PRIMARY_LANGUAGE_BEZ = 'bez'; - public const PRIMARY_LANGUAGE_BEZ_TZ = 'bez-tz'; - public const PRIMARY_LANGUAGE_BG = 'bg'; - public const PRIMARY_LANGUAGE_BG_BG = 'bg-bg'; - public const PRIMARY_LANGUAGE_BM = 'bm'; - public const PRIMARY_LANGUAGE_BM_ML = 'bm-ml'; - public const PRIMARY_LANGUAGE_BN = 'bn'; - public const PRIMARY_LANGUAGE_BN_BD = 'bn-bd'; - public const PRIMARY_LANGUAGE_BN_IN = 'bn-in'; - public const PRIMARY_LANGUAGE_BO = 'bo'; - public const PRIMARY_LANGUAGE_BO_CN = 'bo-cn'; - public const PRIMARY_LANGUAGE_BO_IN = 'bo-in'; - public const PRIMARY_LANGUAGE_BR = 'br'; - public const PRIMARY_LANGUAGE_BR_FR = 'br-fr'; - public const PRIMARY_LANGUAGE_BRX = 'brx'; - public const PRIMARY_LANGUAGE_BRX_IN = 'brx-in'; - public const PRIMARY_LANGUAGE_BS = 'bs'; - public const PRIMARY_LANGUAGE_BS_BA = 'bs-ba'; - public const PRIMARY_LANGUAGE_CA = 'ca'; - public const PRIMARY_LANGUAGE_CA_AD = 'ca-ad'; - public const PRIMARY_LANGUAGE_CA_ES = 'ca-es'; - public const PRIMARY_LANGUAGE_CA_FR = 'ca-fr'; - public const PRIMARY_LANGUAGE_CA_IT = 'ca-it'; - public const PRIMARY_LANGUAGE_CCP = 'ccp'; - public const PRIMARY_LANGUAGE_CCP_BD = 'ccp-bd'; - public const PRIMARY_LANGUAGE_CCP_IN = 'ccp-in'; - public const PRIMARY_LANGUAGE_CE = 'ce'; - public const PRIMARY_LANGUAGE_CE_RU = 'ce-ru'; - public const PRIMARY_LANGUAGE_CGG = 'cgg'; - public const PRIMARY_LANGUAGE_CGG_UG = 'cgg-ug'; - public const PRIMARY_LANGUAGE_CHR = 'chr'; - public const PRIMARY_LANGUAGE_CHR_US = 'chr-us'; - public const PRIMARY_LANGUAGE_CKB = 'ckb'; - public const PRIMARY_LANGUAGE_CKB_IQ = 'ckb-iq'; - public const PRIMARY_LANGUAGE_CKB_IR = 'ckb-ir'; - public const PRIMARY_LANGUAGE_CS = 'cs'; - public const PRIMARY_LANGUAGE_CS_CZ = 'cs-cz'; - public const PRIMARY_LANGUAGE_CU = 'cu'; - public const PRIMARY_LANGUAGE_CU_RU = 'cu-ru'; - public const PRIMARY_LANGUAGE_CY = 'cy'; - public const PRIMARY_LANGUAGE_CY_GB = 'cy-gb'; - public const PRIMARY_LANGUAGE_DA = 'da'; - public const PRIMARY_LANGUAGE_DA_DK = 'da-dk'; - public const PRIMARY_LANGUAGE_DA_GL = 'da-gl'; - public const PRIMARY_LANGUAGE_DAV = 'dav'; - public const PRIMARY_LANGUAGE_DAV_KE = 'dav-ke'; - public const PRIMARY_LANGUAGE_DE = 'de'; - public const PRIMARY_LANGUAGE_DE_AT = 'de-at'; - public const PRIMARY_LANGUAGE_DE_BE = 'de-be'; - public const PRIMARY_LANGUAGE_DE_CH = 'de-ch'; - public const PRIMARY_LANGUAGE_DE_DE = 'de-de'; - public const PRIMARY_LANGUAGE_DE_GR = 'de-gr'; - public const PRIMARY_LANGUAGE_DE_IT = 'de-it'; - public const PRIMARY_LANGUAGE_DE_LI = 'de-li'; - public const PRIMARY_LANGUAGE_DE_LU = 'de-lu'; - public const PRIMARY_LANGUAGE_DJE = 'dje'; - public const PRIMARY_LANGUAGE_DJE_NE = 'dje-ne'; - public const PRIMARY_LANGUAGE_DSB = 'dsb'; - public const PRIMARY_LANGUAGE_DSB_DE = 'dsb-de'; - public const PRIMARY_LANGUAGE_DUA = 'dua'; - public const PRIMARY_LANGUAGE_DUA_CM = 'dua-cm'; - public const PRIMARY_LANGUAGE_DYO = 'dyo'; - public const PRIMARY_LANGUAGE_DYO_SN = 'dyo-sn'; - public const PRIMARY_LANGUAGE_DZ = 'dz'; - public const PRIMARY_LANGUAGE_DZ_BT = 'dz-bt'; - public const PRIMARY_LANGUAGE_EBU = 'ebu'; - public const PRIMARY_LANGUAGE_EBU_KE = 'ebu-ke'; - public const PRIMARY_LANGUAGE_EE = 'ee'; - public const PRIMARY_LANGUAGE_EE_GH = 'ee-gh'; - public const PRIMARY_LANGUAGE_EE_TG = 'ee-tg'; - public const PRIMARY_LANGUAGE_EL = 'el'; - public const PRIMARY_LANGUAGE_EL_CY = 'el-cy'; - public const PRIMARY_LANGUAGE_EL_GR = 'el-gr'; - public const PRIMARY_LANGUAGE_EN = 'en'; - public const PRIMARY_LANGUAGE_EN_001 = 'en-001'; - public const PRIMARY_LANGUAGE_EN_150 = 'en-150'; - public const PRIMARY_LANGUAGE_EN_AE = 'en-ae'; - public const PRIMARY_LANGUAGE_EN_AG = 'en-ag'; - public const PRIMARY_LANGUAGE_EN_AI = 'en-ai'; - public const PRIMARY_LANGUAGE_EN_AS = 'en-as'; - public const PRIMARY_LANGUAGE_EN_AT = 'en-at'; - public const PRIMARY_LANGUAGE_EN_AU = 'en-au'; - public const PRIMARY_LANGUAGE_EN_BB = 'en-bb'; - public const PRIMARY_LANGUAGE_EN_BE = 'en-be'; - public const PRIMARY_LANGUAGE_EN_BI = 'en-bi'; - public const PRIMARY_LANGUAGE_EN_BM = 'en-bm'; - public const PRIMARY_LANGUAGE_EN_BS = 'en-bs'; - public const PRIMARY_LANGUAGE_EN_BW = 'en-bw'; - public const PRIMARY_LANGUAGE_EN_BZ = 'en-bz'; - public const PRIMARY_LANGUAGE_EN_CA = 'en-ca'; - public const PRIMARY_LANGUAGE_EN_CC = 'en-cc'; - public const PRIMARY_LANGUAGE_EN_CH = 'en-ch'; - public const PRIMARY_LANGUAGE_EN_CK = 'en-ck'; - public const PRIMARY_LANGUAGE_EN_CM = 'en-cm'; - public const PRIMARY_LANGUAGE_EN_CX = 'en-cx'; - public const PRIMARY_LANGUAGE_EN_CY = 'en-cy'; - public const PRIMARY_LANGUAGE_EN_DE = 'en-de'; - public const PRIMARY_LANGUAGE_EN_DG = 'en-dg'; - public const PRIMARY_LANGUAGE_EN_DK = 'en-dk'; - public const PRIMARY_LANGUAGE_EN_DM = 'en-dm'; - public const PRIMARY_LANGUAGE_EN_ER = 'en-er'; - public const PRIMARY_LANGUAGE_EN_FI = 'en-fi'; - public const PRIMARY_LANGUAGE_EN_FJ = 'en-fj'; - public const PRIMARY_LANGUAGE_EN_FK = 'en-fk'; - public const PRIMARY_LANGUAGE_EN_FM = 'en-fm'; - public const PRIMARY_LANGUAGE_EN_GB = 'en-gb'; - public const PRIMARY_LANGUAGE_EN_GD = 'en-gd'; - public const PRIMARY_LANGUAGE_EN_GG = 'en-gg'; - public const PRIMARY_LANGUAGE_EN_GH = 'en-gh'; - public const PRIMARY_LANGUAGE_EN_GI = 'en-gi'; - public const PRIMARY_LANGUAGE_EN_GM = 'en-gm'; - public const PRIMARY_LANGUAGE_EN_GU = 'en-gu'; - public const PRIMARY_LANGUAGE_EN_GY = 'en-gy'; - public const PRIMARY_LANGUAGE_EN_HK = 'en-hk'; - public const PRIMARY_LANGUAGE_EN_IE = 'en-ie'; - public const PRIMARY_LANGUAGE_EN_IL = 'en-il'; - public const PRIMARY_LANGUAGE_EN_IM = 'en-im'; - public const PRIMARY_LANGUAGE_EN_IN = 'en-in'; - public const PRIMARY_LANGUAGE_EN_IO = 'en-io'; - public const PRIMARY_LANGUAGE_EN_JE = 'en-je'; - public const PRIMARY_LANGUAGE_EN_JM = 'en-jm'; - public const PRIMARY_LANGUAGE_EN_KE = 'en-ke'; - public const PRIMARY_LANGUAGE_EN_KI = 'en-ki'; - public const PRIMARY_LANGUAGE_EN_KN = 'en-kn'; - public const PRIMARY_LANGUAGE_EN_KY = 'en-ky'; - public const PRIMARY_LANGUAGE_EN_LC = 'en-lc'; - public const PRIMARY_LANGUAGE_EN_LR = 'en-lr'; - public const PRIMARY_LANGUAGE_EN_LS = 'en-ls'; - public const PRIMARY_LANGUAGE_EN_LU = 'en-lu'; - public const PRIMARY_LANGUAGE_EN_MG = 'en-mg'; - public const PRIMARY_LANGUAGE_EN_MH = 'en-mh'; - public const PRIMARY_LANGUAGE_EN_MO = 'en-mo'; - public const PRIMARY_LANGUAGE_EN_MP = 'en-mp'; - public const PRIMARY_LANGUAGE_EN_MS = 'en-ms'; - public const PRIMARY_LANGUAGE_EN_MT = 'en-mt'; - public const PRIMARY_LANGUAGE_EN_MU = 'en-mu'; - public const PRIMARY_LANGUAGE_EN_MW = 'en-mw'; - public const PRIMARY_LANGUAGE_EN_MY = 'en-my'; - public const PRIMARY_LANGUAGE_EN_NA = 'en-na'; - public const PRIMARY_LANGUAGE_EN_NF = 'en-nf'; - public const PRIMARY_LANGUAGE_EN_NG = 'en-ng'; - public const PRIMARY_LANGUAGE_EN_NL = 'en-nl'; - public const PRIMARY_LANGUAGE_EN_NR = 'en-nr'; - public const PRIMARY_LANGUAGE_EN_NU = 'en-nu'; - public const PRIMARY_LANGUAGE_EN_NZ = 'en-nz'; - public const PRIMARY_LANGUAGE_EN_PG = 'en-pg'; - public const PRIMARY_LANGUAGE_EN_PH = 'en-ph'; - public const PRIMARY_LANGUAGE_EN_PK = 'en-pk'; - public const PRIMARY_LANGUAGE_EN_PN = 'en-pn'; - public const PRIMARY_LANGUAGE_EN_PR = 'en-pr'; - public const PRIMARY_LANGUAGE_EN_PW = 'en-pw'; - public const PRIMARY_LANGUAGE_EN_RW = 'en-rw'; - public const PRIMARY_LANGUAGE_EN_SB = 'en-sb'; - public const PRIMARY_LANGUAGE_EN_SC = 'en-sc'; - public const PRIMARY_LANGUAGE_EN_SD = 'en-sd'; - public const PRIMARY_LANGUAGE_EN_SE = 'en-se'; - public const PRIMARY_LANGUAGE_EN_SG = 'en-sg'; - public const PRIMARY_LANGUAGE_EN_SH = 'en-sh'; - public const PRIMARY_LANGUAGE_EN_SI = 'en-si'; - public const PRIMARY_LANGUAGE_EN_SL = 'en-sl'; - public const PRIMARY_LANGUAGE_EN_SS = 'en-ss'; - public const PRIMARY_LANGUAGE_EN_SX = 'en-sx'; - public const PRIMARY_LANGUAGE_EN_SZ = 'en-sz'; - public const PRIMARY_LANGUAGE_EN_TC = 'en-tc'; - public const PRIMARY_LANGUAGE_EN_TK = 'en-tk'; - public const PRIMARY_LANGUAGE_EN_TO = 'en-to'; - public const PRIMARY_LANGUAGE_EN_TT = 'en-tt'; - public const PRIMARY_LANGUAGE_EN_TV = 'en-tv'; - public const PRIMARY_LANGUAGE_EN_TZ = 'en-tz'; - public const PRIMARY_LANGUAGE_EN_UG = 'en-ug'; - public const PRIMARY_LANGUAGE_EN_UM = 'en-um'; - public const PRIMARY_LANGUAGE_EN_US = 'en-us'; - public const PRIMARY_LANGUAGE_EN_VC = 'en-vc'; - public const PRIMARY_LANGUAGE_EN_VG = 'en-vg'; - public const PRIMARY_LANGUAGE_EN_VI = 'en-vi'; - public const PRIMARY_LANGUAGE_EN_VU = 'en-vu'; - public const PRIMARY_LANGUAGE_EN_WS = 'en-ws'; - public const PRIMARY_LANGUAGE_EN_ZA = 'en-za'; - public const PRIMARY_LANGUAGE_EN_ZM = 'en-zm'; - public const PRIMARY_LANGUAGE_EN_ZW = 'en-zw'; - public const PRIMARY_LANGUAGE_EO = 'eo'; - public const PRIMARY_LANGUAGE_EO_001 = 'eo-001'; - public const PRIMARY_LANGUAGE_ES = 'es'; - public const PRIMARY_LANGUAGE_ES_419 = 'es-419'; - public const PRIMARY_LANGUAGE_ES_AR = 'es-ar'; - public const PRIMARY_LANGUAGE_ES_BO = 'es-bo'; - public const PRIMARY_LANGUAGE_ES_BR = 'es-br'; - public const PRIMARY_LANGUAGE_ES_BZ = 'es-bz'; - public const PRIMARY_LANGUAGE_ES_CL = 'es-cl'; - public const PRIMARY_LANGUAGE_ES_CO = 'es-co'; - public const PRIMARY_LANGUAGE_ES_CR = 'es-cr'; - public const PRIMARY_LANGUAGE_ES_CU = 'es-cu'; - public const PRIMARY_LANGUAGE_ES_DO = 'es-do'; - public const PRIMARY_LANGUAGE_ES_EA = 'es-ea'; - public const PRIMARY_LANGUAGE_ES_EC = 'es-ec'; - public const PRIMARY_LANGUAGE_ES_ES = 'es-es'; - public const PRIMARY_LANGUAGE_ES_GQ = 'es-gq'; - public const PRIMARY_LANGUAGE_ES_GT = 'es-gt'; - public const PRIMARY_LANGUAGE_ES_HN = 'es-hn'; - public const PRIMARY_LANGUAGE_ES_IC = 'es-ic'; - public const PRIMARY_LANGUAGE_ES_MX = 'es-mx'; - public const PRIMARY_LANGUAGE_ES_NI = 'es-ni'; - public const PRIMARY_LANGUAGE_ES_PA = 'es-pa'; - public const PRIMARY_LANGUAGE_ES_PE = 'es-pe'; - public const PRIMARY_LANGUAGE_ES_PH = 'es-ph'; - public const PRIMARY_LANGUAGE_ES_PR = 'es-pr'; - public const PRIMARY_LANGUAGE_ES_PY = 'es-py'; - public const PRIMARY_LANGUAGE_ES_SV = 'es-sv'; - public const PRIMARY_LANGUAGE_ES_US = 'es-us'; - public const PRIMARY_LANGUAGE_ES_UY = 'es-uy'; - public const PRIMARY_LANGUAGE_ES_VE = 'es-ve'; - public const PRIMARY_LANGUAGE_ET = 'et'; - public const PRIMARY_LANGUAGE_ET_EE = 'et-ee'; - public const PRIMARY_LANGUAGE_EU = 'eu'; - public const PRIMARY_LANGUAGE_EU_ES = 'eu-es'; - public const PRIMARY_LANGUAGE_EWO = 'ewo'; - public const PRIMARY_LANGUAGE_EWO_CM = 'ewo-cm'; - public const PRIMARY_LANGUAGE_FA = 'fa'; - public const PRIMARY_LANGUAGE_FA_AF = 'fa-af'; - public const PRIMARY_LANGUAGE_FA_IR = 'fa-ir'; - public const PRIMARY_LANGUAGE_FF = 'ff'; - public const PRIMARY_LANGUAGE_FF_CM = 'ff-cm'; - public const PRIMARY_LANGUAGE_FF_GN = 'ff-gn'; - public const PRIMARY_LANGUAGE_FF_MR = 'ff-mr'; - public const PRIMARY_LANGUAGE_FF_SN = 'ff-sn'; - public const PRIMARY_LANGUAGE_FI = 'fi'; - public const PRIMARY_LANGUAGE_FI_FI = 'fi-fi'; - public const PRIMARY_LANGUAGE_FIL = 'fil'; - public const PRIMARY_LANGUAGE_FIL_PH = 'fil-ph'; - public const PRIMARY_LANGUAGE_FO = 'fo'; - public const PRIMARY_LANGUAGE_FO_DK = 'fo-dk'; - public const PRIMARY_LANGUAGE_FO_FO = 'fo-fo'; - public const PRIMARY_LANGUAGE_FR = 'fr'; - public const PRIMARY_LANGUAGE_FR_BE = 'fr-be'; - public const PRIMARY_LANGUAGE_FR_BF = 'fr-bf'; - public const PRIMARY_LANGUAGE_FR_BI = 'fr-bi'; - public const PRIMARY_LANGUAGE_FR_BJ = 'fr-bj'; - public const PRIMARY_LANGUAGE_FR_BL = 'fr-bl'; - public const PRIMARY_LANGUAGE_FR_CA = 'fr-ca'; - public const PRIMARY_LANGUAGE_FR_CD = 'fr-cd'; - public const PRIMARY_LANGUAGE_FR_CF = 'fr-cf'; - public const PRIMARY_LANGUAGE_FR_CG = 'fr-cg'; - public const PRIMARY_LANGUAGE_FR_CH = 'fr-ch'; - public const PRIMARY_LANGUAGE_FR_CI = 'fr-ci'; - public const PRIMARY_LANGUAGE_FR_CM = 'fr-cm'; - public const PRIMARY_LANGUAGE_FR_DJ = 'fr-dj'; - public const PRIMARY_LANGUAGE_FR_DZ = 'fr-dz'; - public const PRIMARY_LANGUAGE_FR_FR = 'fr-fr'; - public const PRIMARY_LANGUAGE_FR_GA = 'fr-ga'; - public const PRIMARY_LANGUAGE_FR_GF = 'fr-gf'; - public const PRIMARY_LANGUAGE_FR_GN = 'fr-gn'; - public const PRIMARY_LANGUAGE_FR_GP = 'fr-gp'; - public const PRIMARY_LANGUAGE_FR_GQ = 'fr-gq'; - public const PRIMARY_LANGUAGE_FR_HT = 'fr-ht'; - public const PRIMARY_LANGUAGE_FR_KM = 'fr-km'; - public const PRIMARY_LANGUAGE_FR_LU = 'fr-lu'; - public const PRIMARY_LANGUAGE_FR_MA = 'fr-ma'; - public const PRIMARY_LANGUAGE_FR_MC = 'fr-mc'; - public const PRIMARY_LANGUAGE_FR_MF = 'fr-mf'; - public const PRIMARY_LANGUAGE_FR_MG = 'fr-mg'; - public const PRIMARY_LANGUAGE_FR_ML = 'fr-ml'; - public const PRIMARY_LANGUAGE_FR_MQ = 'fr-mq'; - public const PRIMARY_LANGUAGE_FR_MR = 'fr-mr'; - public const PRIMARY_LANGUAGE_FR_MU = 'fr-mu'; - public const PRIMARY_LANGUAGE_FR_NC = 'fr-nc'; - public const PRIMARY_LANGUAGE_FR_NE = 'fr-ne'; - public const PRIMARY_LANGUAGE_FR_PF = 'fr-pf'; - public const PRIMARY_LANGUAGE_FR_PM = 'fr-pm'; - public const PRIMARY_LANGUAGE_FR_RE = 'fr-re'; - public const PRIMARY_LANGUAGE_FR_RW = 'fr-rw'; - public const PRIMARY_LANGUAGE_FR_SC = 'fr-sc'; - public const PRIMARY_LANGUAGE_FR_SN = 'fr-sn'; - public const PRIMARY_LANGUAGE_FR_SY = 'fr-sy'; - public const PRIMARY_LANGUAGE_FR_TD = 'fr-td'; - public const PRIMARY_LANGUAGE_FR_TG = 'fr-tg'; - public const PRIMARY_LANGUAGE_FR_TN = 'fr-tn'; - public const PRIMARY_LANGUAGE_FR_VU = 'fr-vu'; - public const PRIMARY_LANGUAGE_FR_WF = 'fr-wf'; - public const PRIMARY_LANGUAGE_FR_YT = 'fr-yt'; - public const PRIMARY_LANGUAGE_FUR = 'fur'; - public const PRIMARY_LANGUAGE_FUR_IT = 'fur-it'; - public const PRIMARY_LANGUAGE_FY = 'fy'; - public const PRIMARY_LANGUAGE_FY_NL = 'fy-nl'; - public const PRIMARY_LANGUAGE_GA = 'ga'; - public const PRIMARY_LANGUAGE_GA_IE = 'ga-ie'; - public const PRIMARY_LANGUAGE_GD = 'gd'; - public const PRIMARY_LANGUAGE_GD_GB = 'gd-gb'; - public const PRIMARY_LANGUAGE_GL = 'gl'; - public const PRIMARY_LANGUAGE_GL_ES = 'gl-es'; - public const PRIMARY_LANGUAGE_GSW = 'gsw'; - public const PRIMARY_LANGUAGE_GSW_CH = 'gsw-ch'; - public const PRIMARY_LANGUAGE_GSW_FR = 'gsw-fr'; - public const PRIMARY_LANGUAGE_GSW_LI = 'gsw-li'; - public const PRIMARY_LANGUAGE_GU = 'gu'; - public const PRIMARY_LANGUAGE_GU_IN = 'gu-in'; - public const PRIMARY_LANGUAGE_GUZ = 'guz'; - public const PRIMARY_LANGUAGE_GUZ_KE = 'guz-ke'; - public const PRIMARY_LANGUAGE_GV = 'gv'; - public const PRIMARY_LANGUAGE_GV_IM = 'gv-im'; - public const PRIMARY_LANGUAGE_HA = 'ha'; - public const PRIMARY_LANGUAGE_HA_GH = 'ha-gh'; - public const PRIMARY_LANGUAGE_HA_NE = 'ha-ne'; - public const PRIMARY_LANGUAGE_HA_NG = 'ha-ng'; - public const PRIMARY_LANGUAGE_HAW = 'haw'; - public const PRIMARY_LANGUAGE_HAW_US = 'haw-us'; - public const PRIMARY_LANGUAGE_HE = 'he'; - public const PRIMARY_LANGUAGE_HI = 'hi'; - public const PRIMARY_LANGUAGE_HI_IN = 'hi-in'; - public const PRIMARY_LANGUAGE_HR = 'hr'; - public const PRIMARY_LANGUAGE_HR_BA = 'hr-ba'; - public const PRIMARY_LANGUAGE_HR_HR = 'hr-hr'; - public const PRIMARY_LANGUAGE_HSB = 'hsb'; - public const PRIMARY_LANGUAGE_HSB_DE = 'hsb-de'; - public const PRIMARY_LANGUAGE_HU = 'hu'; - public const PRIMARY_LANGUAGE_HU_HU = 'hu-hu'; - public const PRIMARY_LANGUAGE_HY = 'hy'; - public const PRIMARY_LANGUAGE_HY_AM = 'hy-am'; - public const PRIMARY_LANGUAGE_ID = 'id'; - public const PRIMARY_LANGUAGE_IG = 'ig'; - public const PRIMARY_LANGUAGE_IG_NG = 'ig-ng'; - public const PRIMARY_LANGUAGE_II = 'ii'; - public const PRIMARY_LANGUAGE_II_CN = 'ii-cn'; - public const PRIMARY_LANGUAGE_ID_ID = 'id-id'; - public const PRIMARY_LANGUAGE_IS = 'is'; - public const PRIMARY_LANGUAGE_IS_IS = 'is-is'; - public const PRIMARY_LANGUAGE_IT = 'it'; - public const PRIMARY_LANGUAGE_IT_CH = 'it-ch'; - public const PRIMARY_LANGUAGE_IT_IT = 'it-it'; - public const PRIMARY_LANGUAGE_IT_SM = 'it-sm'; - public const PRIMARY_LANGUAGE_IT_VA = 'it-va'; - public const PRIMARY_LANGUAGE_HE_IL = 'he-il'; - public const PRIMARY_LANGUAGE_JA = 'ja'; - public const PRIMARY_LANGUAGE_JA_JP = 'ja-jp'; - public const PRIMARY_LANGUAGE_JGO = 'jgo'; - public const PRIMARY_LANGUAGE_JGO_CM = 'jgo-cm'; - public const PRIMARY_LANGUAGE_YI = 'yi'; - public const PRIMARY_LANGUAGE_YI_001 = 'yi-001'; - public const PRIMARY_LANGUAGE_JMC = 'jmc'; - public const PRIMARY_LANGUAGE_JMC_TZ = 'jmc-tz'; - public const PRIMARY_LANGUAGE_KA = 'ka'; - public const PRIMARY_LANGUAGE_KA_GE = 'ka-ge'; - public const PRIMARY_LANGUAGE_KAB = 'kab'; - public const PRIMARY_LANGUAGE_KAB_DZ = 'kab-dz'; - public const PRIMARY_LANGUAGE_KAM = 'kam'; - public const PRIMARY_LANGUAGE_KAM_KE = 'kam-ke'; - public const PRIMARY_LANGUAGE_KDE = 'kde'; - public const PRIMARY_LANGUAGE_KDE_TZ = 'kde-tz'; - public const PRIMARY_LANGUAGE_KEA = 'kea'; - public const PRIMARY_LANGUAGE_KEA_CV = 'kea-cv'; - public const PRIMARY_LANGUAGE_KHQ = 'khq'; - public const PRIMARY_LANGUAGE_KHQ_ML = 'khq-ml'; - public const PRIMARY_LANGUAGE_KI = 'ki'; - public const PRIMARY_LANGUAGE_KI_KE = 'ki-ke'; - public const PRIMARY_LANGUAGE_KK = 'kk'; - public const PRIMARY_LANGUAGE_KK_KZ = 'kk-kz'; - public const PRIMARY_LANGUAGE_KKJ = 'kkj'; - public const PRIMARY_LANGUAGE_KKJ_CM = 'kkj-cm'; - public const PRIMARY_LANGUAGE_KL = 'kl'; - public const PRIMARY_LANGUAGE_KL_GL = 'kl-gl'; - public const PRIMARY_LANGUAGE_KLN = 'kln'; - public const PRIMARY_LANGUAGE_KLN_KE = 'kln-ke'; - public const PRIMARY_LANGUAGE_KM = 'km'; - public const PRIMARY_LANGUAGE_KM_KH = 'km-kh'; - public const PRIMARY_LANGUAGE_KN = 'kn'; - public const PRIMARY_LANGUAGE_KN_IN = 'kn-in'; - public const PRIMARY_LANGUAGE_KO = 'ko'; - public const PRIMARY_LANGUAGE_KO_KP = 'ko-kp'; - public const PRIMARY_LANGUAGE_KO_KR = 'ko-kr'; - public const PRIMARY_LANGUAGE_KOK = 'kok'; - public const PRIMARY_LANGUAGE_KOK_IN = 'kok-in'; - public const PRIMARY_LANGUAGE_KS = 'ks'; - public const PRIMARY_LANGUAGE_KS_IN = 'ks-in'; - public const PRIMARY_LANGUAGE_KSB = 'ksb'; - public const PRIMARY_LANGUAGE_KSB_TZ = 'ksb-tz'; - public const PRIMARY_LANGUAGE_KSF = 'ksf'; - public const PRIMARY_LANGUAGE_KSF_CM = 'ksf-cm'; - public const PRIMARY_LANGUAGE_KSH = 'ksh'; - public const PRIMARY_LANGUAGE_KSH_DE = 'ksh-de'; - public const PRIMARY_LANGUAGE_KW = 'kw'; - public const PRIMARY_LANGUAGE_KW_GB = 'kw-gb'; - public const PRIMARY_LANGUAGE_KY = 'ky'; - public const PRIMARY_LANGUAGE_KY_KG = 'ky-kg'; - public const PRIMARY_LANGUAGE_LAG = 'lag'; - public const PRIMARY_LANGUAGE_LAG_TZ = 'lag-tz'; - public const PRIMARY_LANGUAGE_LB = 'lb'; - public const PRIMARY_LANGUAGE_LB_LU = 'lb-lu'; - public const PRIMARY_LANGUAGE_LG = 'lg'; - public const PRIMARY_LANGUAGE_LG_UG = 'lg-ug'; - public const PRIMARY_LANGUAGE_LKT = 'lkt'; - public const PRIMARY_LANGUAGE_LKT_US = 'lkt-us'; - public const PRIMARY_LANGUAGE_LN = 'ln'; - public const PRIMARY_LANGUAGE_LN_AO = 'ln-ao'; - public const PRIMARY_LANGUAGE_LN_CD = 'ln-cd'; - public const PRIMARY_LANGUAGE_LN_CF = 'ln-cf'; - public const PRIMARY_LANGUAGE_LN_CG = 'ln-cg'; - public const PRIMARY_LANGUAGE_LO = 'lo'; - public const PRIMARY_LANGUAGE_LO_LA = 'lo-la'; - public const PRIMARY_LANGUAGE_LRC = 'lrc'; - public const PRIMARY_LANGUAGE_LRC_IQ = 'lrc-iq'; - public const PRIMARY_LANGUAGE_LRC_IR = 'lrc-ir'; - public const PRIMARY_LANGUAGE_LT = 'lt'; - public const PRIMARY_LANGUAGE_LT_LT = 'lt-lt'; - public const PRIMARY_LANGUAGE_LU = 'lu'; - public const PRIMARY_LANGUAGE_LU_CD = 'lu-cd'; - public const PRIMARY_LANGUAGE_LUO = 'luo'; - public const PRIMARY_LANGUAGE_LUO_KE = 'luo-ke'; - public const PRIMARY_LANGUAGE_LUY = 'luy'; - public const PRIMARY_LANGUAGE_LUY_KE = 'luy-ke'; - public const PRIMARY_LANGUAGE_LV = 'lv'; - public const PRIMARY_LANGUAGE_LV_LV = 'lv-lv'; - public const PRIMARY_LANGUAGE_MAS = 'mas'; - public const PRIMARY_LANGUAGE_MAS_KE = 'mas-ke'; - public const PRIMARY_LANGUAGE_MAS_TZ = 'mas-tz'; - public const PRIMARY_LANGUAGE_MER = 'mer'; - public const PRIMARY_LANGUAGE_MER_KE = 'mer-ke'; - public const PRIMARY_LANGUAGE_MFE = 'mfe'; - public const PRIMARY_LANGUAGE_MFE_MU = 'mfe-mu'; - public const PRIMARY_LANGUAGE_MG = 'mg'; - public const PRIMARY_LANGUAGE_MG_MG = 'mg-mg'; - public const PRIMARY_LANGUAGE_MGH = 'mgh'; - public const PRIMARY_LANGUAGE_MGH_MZ = 'mgh-mz'; - public const PRIMARY_LANGUAGE_MGO = 'mgo'; - public const PRIMARY_LANGUAGE_MGO_CM = 'mgo-cm'; - public const PRIMARY_LANGUAGE_MK = 'mk'; - public const PRIMARY_LANGUAGE_MK_MK = 'mk-mk'; - public const PRIMARY_LANGUAGE_ML = 'ml'; - public const PRIMARY_LANGUAGE_ML_IN = 'ml-in'; - public const PRIMARY_LANGUAGE_MN = 'mn'; - public const PRIMARY_LANGUAGE_MN_MN = 'mn-mn'; - public const PRIMARY_LANGUAGE_MR = 'mr'; - public const PRIMARY_LANGUAGE_MR_IN = 'mr-in'; - public const PRIMARY_LANGUAGE_MS = 'ms'; - public const PRIMARY_LANGUAGE_MS_BN = 'ms-bn'; - public const PRIMARY_LANGUAGE_MS_MY = 'ms-my'; - public const PRIMARY_LANGUAGE_MS_SG = 'ms-sg'; - public const PRIMARY_LANGUAGE_MT = 'mt'; - public const PRIMARY_LANGUAGE_MT_MT = 'mt-mt'; - public const PRIMARY_LANGUAGE_MUA = 'mua'; - public const PRIMARY_LANGUAGE_MUA_CM = 'mua-cm'; - public const PRIMARY_LANGUAGE_MY = 'my'; - public const PRIMARY_LANGUAGE_MY_MM = 'my-mm'; - public const PRIMARY_LANGUAGE_MZN = 'mzn'; - public const PRIMARY_LANGUAGE_MZN_IR = 'mzn-ir'; - public const PRIMARY_LANGUAGE_NAQ = 'naq'; - public const PRIMARY_LANGUAGE_NAQ_NA = 'naq-na'; - public const PRIMARY_LANGUAGE_NB = 'nb'; - public const PRIMARY_LANGUAGE_NB_NO = 'nb-no'; - public const PRIMARY_LANGUAGE_NB_SJ = 'nb-sj'; - public const PRIMARY_LANGUAGE_ND = 'nd'; - public const PRIMARY_LANGUAGE_ND_ZW = 'nd-zw'; - public const PRIMARY_LANGUAGE_NDS = 'nds'; - public const PRIMARY_LANGUAGE_NDS_DE = 'nds-de'; - public const PRIMARY_LANGUAGE_NDS_NL = 'nds-nl'; - public const PRIMARY_LANGUAGE_NE = 'ne'; - public const PRIMARY_LANGUAGE_NE_IN = 'ne-in'; - public const PRIMARY_LANGUAGE_NE_NP = 'ne-np'; - public const PRIMARY_LANGUAGE_NL = 'nl'; - public const PRIMARY_LANGUAGE_NL_AW = 'nl-aw'; - public const PRIMARY_LANGUAGE_NL_BE = 'nl-be'; - public const PRIMARY_LANGUAGE_NL_CH = 'nl-ch'; - public const PRIMARY_LANGUAGE_NL_BQ = 'nl-bq'; - public const PRIMARY_LANGUAGE_NL_CW = 'nl-cw'; - public const PRIMARY_LANGUAGE_NL_LU = 'nl-lu'; - public const PRIMARY_LANGUAGE_NL_NL = 'nl-nl'; - public const PRIMARY_LANGUAGE_NL_SR = 'nl-sr'; - public const PRIMARY_LANGUAGE_NL_SX = 'nl-sx'; - public const PRIMARY_LANGUAGE_NMG = 'nmg'; - public const PRIMARY_LANGUAGE_NMG_CM = 'nmg-cm'; - public const PRIMARY_LANGUAGE_NN = 'nn'; - public const PRIMARY_LANGUAGE_NN_NO = 'nn-no'; - public const PRIMARY_LANGUAGE_NNH = 'nnh'; - public const PRIMARY_LANGUAGE_NNH_CM = 'nnh-cm'; - public const PRIMARY_LANGUAGE_NO = 'no'; - public const PRIMARY_LANGUAGE_NO_NO = 'no-no'; - public const PRIMARY_LANGUAGE_NUS = 'nus'; - public const PRIMARY_LANGUAGE_NUS_SS = 'nus-ss'; - public const PRIMARY_LANGUAGE_NYN = 'nyn'; - public const PRIMARY_LANGUAGE_NYN_UG = 'nyn-ug'; - public const PRIMARY_LANGUAGE_OM = 'om'; - public const PRIMARY_LANGUAGE_OM_ET = 'om-et'; - public const PRIMARY_LANGUAGE_OM_KE = 'om-ke'; - public const PRIMARY_LANGUAGE__OR = 'or'; - public const PRIMARY_LANGUAGE_OR_IN = 'or-in'; - public const PRIMARY_LANGUAGE_OS = 'os'; - public const PRIMARY_LANGUAGE_OS_GE = 'os-ge'; - public const PRIMARY_LANGUAGE_OS_RU = 'os-ru'; - public const PRIMARY_LANGUAGE_PA = 'pa'; - public const PRIMARY_LANGUAGE_PA_IN = 'pa-in'; - public const PRIMARY_LANGUAGE_PA_PK = 'pa-pk'; - public const PRIMARY_LANGUAGE_PL = 'pl'; - public const PRIMARY_LANGUAGE_PL_PL = 'pl-pl'; - public const PRIMARY_LANGUAGE_PRG = 'prg'; - public const PRIMARY_LANGUAGE_PRG_001 = 'prg-001'; - public const PRIMARY_LANGUAGE_PS = 'ps'; - public const PRIMARY_LANGUAGE_PS_AF = 'ps-af'; - public const PRIMARY_LANGUAGE_PT = 'pt'; - public const PRIMARY_LANGUAGE_PT_AO = 'pt-ao'; - public const PRIMARY_LANGUAGE_PT_BR = 'pt-br'; - public const PRIMARY_LANGUAGE_PT_CH = 'pt-ch'; - public const PRIMARY_LANGUAGE_PT_CV = 'pt-cv'; - public const PRIMARY_LANGUAGE_PT_GQ = 'pt-gq'; - public const PRIMARY_LANGUAGE_PT_GW = 'pt-gw'; - public const PRIMARY_LANGUAGE_PT_LU = 'pt-lu'; - public const PRIMARY_LANGUAGE_PT_MO = 'pt-mo'; - public const PRIMARY_LANGUAGE_PT_MZ = 'pt-mz'; - public const PRIMARY_LANGUAGE_PT_PT = 'pt-pt'; - public const PRIMARY_LANGUAGE_PT_ST = 'pt-st'; - public const PRIMARY_LANGUAGE_PT_TL = 'pt-tl'; - public const PRIMARY_LANGUAGE_QU = 'qu'; - public const PRIMARY_LANGUAGE_QU_BO = 'qu-bo'; - public const PRIMARY_LANGUAGE_QU_EC = 'qu-ec'; - public const PRIMARY_LANGUAGE_QU_PE = 'qu-pe'; - public const PRIMARY_LANGUAGE_RM = 'rm'; - public const PRIMARY_LANGUAGE_RM_CH = 'rm-ch'; - public const PRIMARY_LANGUAGE_RN = 'rn'; - public const PRIMARY_LANGUAGE_RN_BI = 'rn-bi'; - public const PRIMARY_LANGUAGE_RO = 'ro'; - public const PRIMARY_LANGUAGE_RO_MD = 'ro-md'; - public const PRIMARY_LANGUAGE_RO_RO = 'ro-ro'; - public const PRIMARY_LANGUAGE_ROF = 'rof'; - public const PRIMARY_LANGUAGE_ROF_TZ = 'rof-tz'; - public const PRIMARY_LANGUAGE_RU = 'ru'; - public const PRIMARY_LANGUAGE_RU_BY = 'ru-by'; - public const PRIMARY_LANGUAGE_RU_KG = 'ru-kg'; - public const PRIMARY_LANGUAGE_RU_KZ = 'ru-kz'; - public const PRIMARY_LANGUAGE_RU_MD = 'ru-md'; - public const PRIMARY_LANGUAGE_RU_RU = 'ru-ru'; - public const PRIMARY_LANGUAGE_RU_UA = 'ru-ua'; - public const PRIMARY_LANGUAGE_RW = 'rw'; - public const PRIMARY_LANGUAGE_RW_RW = 'rw-rw'; - public const PRIMARY_LANGUAGE_RWK = 'rwk'; - public const PRIMARY_LANGUAGE_RWK_TZ = 'rwk-tz'; - public const PRIMARY_LANGUAGE_SA = 'sa'; - public const PRIMARY_LANGUAGE_SAH = 'sah'; - public const PRIMARY_LANGUAGE_SAH_RU = 'sah-ru'; - public const PRIMARY_LANGUAGE_SAQ = 'saq'; - public const PRIMARY_LANGUAGE_SAQ_KE = 'saq-ke'; - public const PRIMARY_LANGUAGE_SBP = 'sbp'; - public const PRIMARY_LANGUAGE_SBP_TZ = 'sbp-tz'; - public const PRIMARY_LANGUAGE_SD = 'sd'; - public const PRIMARY_LANGUAGE_SD_PK = 'sd-pk'; - public const PRIMARY_LANGUAGE_SE = 'se'; - public const PRIMARY_LANGUAGE_SE_FI = 'se-fi'; - public const PRIMARY_LANGUAGE_SE_NO = 'se-no'; - public const PRIMARY_LANGUAGE_SE_SE = 'se-se'; - public const PRIMARY_LANGUAGE_SEH = 'seh'; - public const PRIMARY_LANGUAGE_SEH_MZ = 'seh-mz'; - public const PRIMARY_LANGUAGE_SES = 'ses'; - public const PRIMARY_LANGUAGE_SES_ML = 'ses-ml'; - public const PRIMARY_LANGUAGE_SG = 'sg'; - public const PRIMARY_LANGUAGE_SG_CF = 'sg-cf'; - public const PRIMARY_LANGUAGE_SHI = 'shi'; - public const PRIMARY_LANGUAGE_SHI_MA = 'shi-ma'; - public const PRIMARY_LANGUAGE_SI = 'si'; - public const PRIMARY_LANGUAGE_SI_LK = 'si-lk'; - public const PRIMARY_LANGUAGE_SK = 'sk'; - public const PRIMARY_LANGUAGE_SK_SK = 'sk-sk'; - public const PRIMARY_LANGUAGE_SL = 'sl'; - public const PRIMARY_LANGUAGE_SL_SI = 'sl-si'; - public const PRIMARY_LANGUAGE_SMN = 'smn'; - public const PRIMARY_LANGUAGE_SMN_FI = 'smn-fi'; - public const PRIMARY_LANGUAGE_SN = 'sn'; - public const PRIMARY_LANGUAGE_SN_ZW = 'sn-zw'; - public const PRIMARY_LANGUAGE_SO = 'so'; - public const PRIMARY_LANGUAGE_SO_DJ = 'so-dj'; - public const PRIMARY_LANGUAGE_SO_ET = 'so-et'; - public const PRIMARY_LANGUAGE_SO_KE = 'so-ke'; - public const PRIMARY_LANGUAGE_SO_SO = 'so-so'; - public const PRIMARY_LANGUAGE_SQ = 'sq'; - public const PRIMARY_LANGUAGE_SQ_AL = 'sq-al'; - public const PRIMARY_LANGUAGE_SQ_MK = 'sq-mk'; - public const PRIMARY_LANGUAGE_SQ_XK = 'sq-xk'; - public const PRIMARY_LANGUAGE_SR = 'sr'; - public const PRIMARY_LANGUAGE_SR_BA = 'sr-ba'; - public const PRIMARY_LANGUAGE_SR_CS = 'sr-cs'; - public const PRIMARY_LANGUAGE_SR_ME = 'sr-me'; - public const PRIMARY_LANGUAGE_SR_RS = 'sr-rs'; - public const PRIMARY_LANGUAGE_SR_XK = 'sr-xk'; - public const PRIMARY_LANGUAGE_SV = 'sv'; - public const PRIMARY_LANGUAGE_SV_AX = 'sv-ax'; - public const PRIMARY_LANGUAGE_SV_FI = 'sv-fi'; - public const PRIMARY_LANGUAGE_SV_SE = 'sv-se'; - public const PRIMARY_LANGUAGE_SW = 'sw'; - public const PRIMARY_LANGUAGE_SW_CD = 'sw-cd'; - public const PRIMARY_LANGUAGE_SW_KE = 'sw-ke'; - public const PRIMARY_LANGUAGE_SW_TZ = 'sw-tz'; - public const PRIMARY_LANGUAGE_SW_UG = 'sw-ug'; - public const PRIMARY_LANGUAGE_SY = 'sy'; - public const PRIMARY_LANGUAGE_TA = 'ta'; - public const PRIMARY_LANGUAGE_TA_IN = 'ta-in'; - public const PRIMARY_LANGUAGE_TA_LK = 'ta-lk'; - public const PRIMARY_LANGUAGE_TA_MY = 'ta-my'; - public const PRIMARY_LANGUAGE_TA_SG = 'ta-sg'; - public const PRIMARY_LANGUAGE_TE = 'te'; - public const PRIMARY_LANGUAGE_TE_IN = 'te-in'; - public const PRIMARY_LANGUAGE_TEO = 'teo'; - public const PRIMARY_LANGUAGE_TEO_KE = 'teo-ke'; - public const PRIMARY_LANGUAGE_TEO_UG = 'teo-ug'; - public const PRIMARY_LANGUAGE_TG = 'tg'; - public const PRIMARY_LANGUAGE_TG_TJ = 'tg-tj'; - public const PRIMARY_LANGUAGE_TH = 'th'; - public const PRIMARY_LANGUAGE_TH_TH = 'th-th'; - public const PRIMARY_LANGUAGE_TI = 'ti'; - public const PRIMARY_LANGUAGE_TI_ER = 'ti-er'; - public const PRIMARY_LANGUAGE_TI_ET = 'ti-et'; - public const PRIMARY_LANGUAGE_TK = 'tk'; - public const PRIMARY_LANGUAGE_TK_TM = 'tk-tm'; - public const PRIMARY_LANGUAGE_TO = 'to'; - public const PRIMARY_LANGUAGE_TO_TO = 'to-to'; - public const PRIMARY_LANGUAGE_TR = 'tr'; - public const PRIMARY_LANGUAGE_TR_CY = 'tr-cy'; - public const PRIMARY_LANGUAGE_TR_TR = 'tr-tr'; - public const PRIMARY_LANGUAGE_TT = 'tt'; - public const PRIMARY_LANGUAGE_TT_RU = 'tt-ru'; - public const PRIMARY_LANGUAGE_TWQ = 'twq'; - public const PRIMARY_LANGUAGE_TWQ_NE = 'twq-ne'; - public const PRIMARY_LANGUAGE_TZM = 'tzm'; - public const PRIMARY_LANGUAGE_TZM_MA = 'tzm-ma'; - public const PRIMARY_LANGUAGE_UG = 'ug'; - public const PRIMARY_LANGUAGE_UG_CN = 'ug-cn'; - public const PRIMARY_LANGUAGE_UK = 'uk'; - public const PRIMARY_LANGUAGE_UK_UA = 'uk-ua'; - public const PRIMARY_LANGUAGE_UR = 'ur'; - public const PRIMARY_LANGUAGE_UR_IN = 'ur-in'; - public const PRIMARY_LANGUAGE_UR_PK = 'ur-pk'; - public const PRIMARY_LANGUAGE_UZ = 'uz'; - public const PRIMARY_LANGUAGE_UZ_AF = 'uz-af'; - public const PRIMARY_LANGUAGE_UZ_UZ = 'uz-uz'; - public const PRIMARY_LANGUAGE_VAI = 'vai'; - public const PRIMARY_LANGUAGE_VAI_LR = 'vai-lr'; - public const PRIMARY_LANGUAGE_VI = 'vi'; - public const PRIMARY_LANGUAGE_VI_VN = 'vi-vn'; - public const PRIMARY_LANGUAGE_VO = 'vo'; - public const PRIMARY_LANGUAGE_VO_001 = 'vo-001'; - public const PRIMARY_LANGUAGE_VUN = 'vun'; - public const PRIMARY_LANGUAGE_VUN_TZ = 'vun-tz'; - public const PRIMARY_LANGUAGE_WAE = 'wae'; - public const PRIMARY_LANGUAGE_WAE_CH = 'wae-ch'; - public const PRIMARY_LANGUAGE_WO = 'wo'; - public const PRIMARY_LANGUAGE_WO_SN = 'wo-sn'; - public const PRIMARY_LANGUAGE_XOG = 'xog'; - public const PRIMARY_LANGUAGE_XOG_UG = 'xog-ug'; - public const PRIMARY_LANGUAGE_YAV = 'yav'; - public const PRIMARY_LANGUAGE_YAV_CM = 'yav-cm'; - public const PRIMARY_LANGUAGE_YO = 'yo'; - public const PRIMARY_LANGUAGE_YO_BJ = 'yo-bj'; - public const PRIMARY_LANGUAGE_YO_NG = 'yo-ng'; - public const PRIMARY_LANGUAGE_YUE = 'yue'; - public const PRIMARY_LANGUAGE_YUE_CN = 'yue-cn'; - public const PRIMARY_LANGUAGE_YUE_HK = 'yue-hk'; - public const PRIMARY_LANGUAGE_ZGH = 'zgh'; - public const PRIMARY_LANGUAGE_ZGH_MA = 'zgh-ma'; - public const PRIMARY_LANGUAGE_ZH = 'zh'; - public const PRIMARY_LANGUAGE_ZH_CN = 'zh-cn'; - public const PRIMARY_LANGUAGE_ZH_HK = 'zh-hk'; - public const PRIMARY_LANGUAGE_ZH_MO = 'zh-mo'; - public const PRIMARY_LANGUAGE_ZH_SG = 'zh-sg'; - public const PRIMARY_LANGUAGE_ZH_TW = 'zh-tw'; - public const PRIMARY_LANGUAGE_ZH_HANS = 'zh-hans'; - public const PRIMARY_LANGUAGE_ZH_HANT = 'zh-hant'; - public const PRIMARY_LANGUAGE_ZU = 'zu'; - public const PRIMARY_LANGUAGE_ZU_ZA = 'zu-za'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getLanguageAllowableValues() - { - return [ - self::LANGUAGE_AF, - self::LANGUAGE_AF_NA, - self::LANGUAGE_AF_ZA, - self::LANGUAGE_AGQ, - self::LANGUAGE_AGQ_CM, - self::LANGUAGE_AK, - self::LANGUAGE_AK_GH, - self::LANGUAGE_AM, - self::LANGUAGE_AM_ET, - self::LANGUAGE_AR, - self::LANGUAGE_AR_001, - self::LANGUAGE_AR_AE, - self::LANGUAGE_AR_BH, - self::LANGUAGE_AR_DJ, - self::LANGUAGE_AR_DZ, - self::LANGUAGE_AR_EG, - self::LANGUAGE_AR_EH, - self::LANGUAGE_AR_ER, - self::LANGUAGE_AR_IL, - self::LANGUAGE_AR_IQ, - self::LANGUAGE_AR_JO, - self::LANGUAGE_AR_KM, - self::LANGUAGE_AR_KW, - self::LANGUAGE_AR_LB, - self::LANGUAGE_AR_LY, - self::LANGUAGE_AR_MA, - self::LANGUAGE_AR_MR, - self::LANGUAGE_AR_OM, - self::LANGUAGE_AR_PS, - self::LANGUAGE_AR_QA, - self::LANGUAGE_AR_SA, - self::LANGUAGE_AR_SD, - self::LANGUAGE_AR_SO, - self::LANGUAGE_AR_SS, - self::LANGUAGE_AR_SY, - self::LANGUAGE_AR_TD, - self::LANGUAGE_AR_TN, - self::LANGUAGE_AR_YE, - self::LANGUAGE__AS, - self::LANGUAGE_AS_IN, - self::LANGUAGE_ASA, - self::LANGUAGE_ASA_TZ, - self::LANGUAGE_AST, - self::LANGUAGE_AST_ES, - self::LANGUAGE_AZ, - self::LANGUAGE_AZ_AZ, - self::LANGUAGE_BAS, - self::LANGUAGE_BAS_CM, - self::LANGUAGE_BE, - self::LANGUAGE_BE_BY, - self::LANGUAGE_BEM, - self::LANGUAGE_BEM_ZM, - self::LANGUAGE_BEZ, - self::LANGUAGE_BEZ_TZ, - self::LANGUAGE_BG, - self::LANGUAGE_BG_BG, - self::LANGUAGE_BM, - self::LANGUAGE_BM_ML, - self::LANGUAGE_BN, - self::LANGUAGE_BN_BD, - self::LANGUAGE_BN_IN, - self::LANGUAGE_BO, - self::LANGUAGE_BO_CN, - self::LANGUAGE_BO_IN, - self::LANGUAGE_BR, - self::LANGUAGE_BR_FR, - self::LANGUAGE_BRX, - self::LANGUAGE_BRX_IN, - self::LANGUAGE_BS, - self::LANGUAGE_BS_BA, - self::LANGUAGE_CA, - self::LANGUAGE_CA_AD, - self::LANGUAGE_CA_ES, - self::LANGUAGE_CA_FR, - self::LANGUAGE_CA_IT, - self::LANGUAGE_CCP, - self::LANGUAGE_CCP_BD, - self::LANGUAGE_CCP_IN, - self::LANGUAGE_CE, - self::LANGUAGE_CE_RU, - self::LANGUAGE_CGG, - self::LANGUAGE_CGG_UG, - self::LANGUAGE_CHR, - self::LANGUAGE_CHR_US, - self::LANGUAGE_CKB, - self::LANGUAGE_CKB_IQ, - self::LANGUAGE_CKB_IR, - self::LANGUAGE_CS, - self::LANGUAGE_CS_CZ, - self::LANGUAGE_CU, - self::LANGUAGE_CU_RU, - self::LANGUAGE_CY, - self::LANGUAGE_CY_GB, - self::LANGUAGE_DA, - self::LANGUAGE_DA_DK, - self::LANGUAGE_DA_GL, - self::LANGUAGE_DAV, - self::LANGUAGE_DAV_KE, - self::LANGUAGE_DE, - self::LANGUAGE_DE_AT, - self::LANGUAGE_DE_BE, - self::LANGUAGE_DE_CH, - self::LANGUAGE_DE_DE, - self::LANGUAGE_DE_GR, - self::LANGUAGE_DE_IT, - self::LANGUAGE_DE_LI, - self::LANGUAGE_DE_LU, - self::LANGUAGE_DJE, - self::LANGUAGE_DJE_NE, - self::LANGUAGE_DSB, - self::LANGUAGE_DSB_DE, - self::LANGUAGE_DUA, - self::LANGUAGE_DUA_CM, - self::LANGUAGE_DYO, - self::LANGUAGE_DYO_SN, - self::LANGUAGE_DZ, - self::LANGUAGE_DZ_BT, - self::LANGUAGE_EBU, - self::LANGUAGE_EBU_KE, - self::LANGUAGE_EE, - self::LANGUAGE_EE_GH, - self::LANGUAGE_EE_TG, - self::LANGUAGE_EL, - self::LANGUAGE_EL_CY, - self::LANGUAGE_EL_GR, - self::LANGUAGE_EN, - self::LANGUAGE_EN_001, - self::LANGUAGE_EN_150, - self::LANGUAGE_EN_AE, - self::LANGUAGE_EN_AG, - self::LANGUAGE_EN_AI, - self::LANGUAGE_EN_AS, - self::LANGUAGE_EN_AT, - self::LANGUAGE_EN_AU, - self::LANGUAGE_EN_BB, - self::LANGUAGE_EN_BE, - self::LANGUAGE_EN_BI, - self::LANGUAGE_EN_BM, - self::LANGUAGE_EN_BS, - self::LANGUAGE_EN_BW, - self::LANGUAGE_EN_BZ, - self::LANGUAGE_EN_CA, - self::LANGUAGE_EN_CC, - self::LANGUAGE_EN_CH, - self::LANGUAGE_EN_CK, - self::LANGUAGE_EN_CM, - self::LANGUAGE_EN_CX, - self::LANGUAGE_EN_CY, - self::LANGUAGE_EN_DE, - self::LANGUAGE_EN_DG, - self::LANGUAGE_EN_DK, - self::LANGUAGE_EN_DM, - self::LANGUAGE_EN_ER, - self::LANGUAGE_EN_FI, - self::LANGUAGE_EN_FJ, - self::LANGUAGE_EN_FK, - self::LANGUAGE_EN_FM, - self::LANGUAGE_EN_GB, - self::LANGUAGE_EN_GD, - self::LANGUAGE_EN_GG, - self::LANGUAGE_EN_GH, - self::LANGUAGE_EN_GI, - self::LANGUAGE_EN_GM, - self::LANGUAGE_EN_GU, - self::LANGUAGE_EN_GY, - self::LANGUAGE_EN_HK, - self::LANGUAGE_EN_IE, - self::LANGUAGE_EN_IL, - self::LANGUAGE_EN_IM, - self::LANGUAGE_EN_IN, - self::LANGUAGE_EN_IO, - self::LANGUAGE_EN_JE, - self::LANGUAGE_EN_JM, - self::LANGUAGE_EN_KE, - self::LANGUAGE_EN_KI, - self::LANGUAGE_EN_KN, - self::LANGUAGE_EN_KY, - self::LANGUAGE_EN_LC, - self::LANGUAGE_EN_LR, - self::LANGUAGE_EN_LS, - self::LANGUAGE_EN_LU, - self::LANGUAGE_EN_MG, - self::LANGUAGE_EN_MH, - self::LANGUAGE_EN_MO, - self::LANGUAGE_EN_MP, - self::LANGUAGE_EN_MS, - self::LANGUAGE_EN_MT, - self::LANGUAGE_EN_MU, - self::LANGUAGE_EN_MW, - self::LANGUAGE_EN_MY, - self::LANGUAGE_EN_NA, - self::LANGUAGE_EN_NF, - self::LANGUAGE_EN_NG, - self::LANGUAGE_EN_NL, - self::LANGUAGE_EN_NR, - self::LANGUAGE_EN_NU, - self::LANGUAGE_EN_NZ, - self::LANGUAGE_EN_PG, - self::LANGUAGE_EN_PH, - self::LANGUAGE_EN_PK, - self::LANGUAGE_EN_PN, - self::LANGUAGE_EN_PR, - self::LANGUAGE_EN_PW, - self::LANGUAGE_EN_RW, - self::LANGUAGE_EN_SB, - self::LANGUAGE_EN_SC, - self::LANGUAGE_EN_SD, - self::LANGUAGE_EN_SE, - self::LANGUAGE_EN_SG, - self::LANGUAGE_EN_SH, - self::LANGUAGE_EN_SI, - self::LANGUAGE_EN_SL, - self::LANGUAGE_EN_SS, - self::LANGUAGE_EN_SX, - self::LANGUAGE_EN_SZ, - self::LANGUAGE_EN_TC, - self::LANGUAGE_EN_TK, - self::LANGUAGE_EN_TO, - self::LANGUAGE_EN_TT, - self::LANGUAGE_EN_TV, - self::LANGUAGE_EN_TZ, - self::LANGUAGE_EN_UG, - self::LANGUAGE_EN_UM, - self::LANGUAGE_EN_US, - self::LANGUAGE_EN_VC, - self::LANGUAGE_EN_VG, - self::LANGUAGE_EN_VI, - self::LANGUAGE_EN_VU, - self::LANGUAGE_EN_WS, - self::LANGUAGE_EN_ZA, - self::LANGUAGE_EN_ZM, - self::LANGUAGE_EN_ZW, - self::LANGUAGE_EO, - self::LANGUAGE_EO_001, - self::LANGUAGE_ES, - self::LANGUAGE_ES_419, - self::LANGUAGE_ES_AR, - self::LANGUAGE_ES_BO, - self::LANGUAGE_ES_BR, - self::LANGUAGE_ES_BZ, - self::LANGUAGE_ES_CL, - self::LANGUAGE_ES_CO, - self::LANGUAGE_ES_CR, - self::LANGUAGE_ES_CU, - self::LANGUAGE_ES_DO, - self::LANGUAGE_ES_EA, - self::LANGUAGE_ES_EC, - self::LANGUAGE_ES_ES, - self::LANGUAGE_ES_GQ, - self::LANGUAGE_ES_GT, - self::LANGUAGE_ES_HN, - self::LANGUAGE_ES_IC, - self::LANGUAGE_ES_MX, - self::LANGUAGE_ES_NI, - self::LANGUAGE_ES_PA, - self::LANGUAGE_ES_PE, - self::LANGUAGE_ES_PH, - self::LANGUAGE_ES_PR, - self::LANGUAGE_ES_PY, - self::LANGUAGE_ES_SV, - self::LANGUAGE_ES_US, - self::LANGUAGE_ES_UY, - self::LANGUAGE_ES_VE, - self::LANGUAGE_ET, - self::LANGUAGE_ET_EE, - self::LANGUAGE_EU, - self::LANGUAGE_EU_ES, - self::LANGUAGE_EWO, - self::LANGUAGE_EWO_CM, - self::LANGUAGE_FA, - self::LANGUAGE_FA_AF, - self::LANGUAGE_FA_IR, - self::LANGUAGE_FF, - self::LANGUAGE_FF_CM, - self::LANGUAGE_FF_GN, - self::LANGUAGE_FF_MR, - self::LANGUAGE_FF_SN, - self::LANGUAGE_FI, - self::LANGUAGE_FI_FI, - self::LANGUAGE_FIL, - self::LANGUAGE_FIL_PH, - self::LANGUAGE_FO, - self::LANGUAGE_FO_DK, - self::LANGUAGE_FO_FO, - self::LANGUAGE_FR, - self::LANGUAGE_FR_BE, - self::LANGUAGE_FR_BF, - self::LANGUAGE_FR_BI, - self::LANGUAGE_FR_BJ, - self::LANGUAGE_FR_BL, - self::LANGUAGE_FR_CA, - self::LANGUAGE_FR_CD, - self::LANGUAGE_FR_CF, - self::LANGUAGE_FR_CG, - self::LANGUAGE_FR_CH, - self::LANGUAGE_FR_CI, - self::LANGUAGE_FR_CM, - self::LANGUAGE_FR_DJ, - self::LANGUAGE_FR_DZ, - self::LANGUAGE_FR_FR, - self::LANGUAGE_FR_GA, - self::LANGUAGE_FR_GF, - self::LANGUAGE_FR_GN, - self::LANGUAGE_FR_GP, - self::LANGUAGE_FR_GQ, - self::LANGUAGE_FR_HT, - self::LANGUAGE_FR_KM, - self::LANGUAGE_FR_LU, - self::LANGUAGE_FR_MA, - self::LANGUAGE_FR_MC, - self::LANGUAGE_FR_MF, - self::LANGUAGE_FR_MG, - self::LANGUAGE_FR_ML, - self::LANGUAGE_FR_MQ, - self::LANGUAGE_FR_MR, - self::LANGUAGE_FR_MU, - self::LANGUAGE_FR_NC, - self::LANGUAGE_FR_NE, - self::LANGUAGE_FR_PF, - self::LANGUAGE_FR_PM, - self::LANGUAGE_FR_RE, - self::LANGUAGE_FR_RW, - self::LANGUAGE_FR_SC, - self::LANGUAGE_FR_SN, - self::LANGUAGE_FR_SY, - self::LANGUAGE_FR_TD, - self::LANGUAGE_FR_TG, - self::LANGUAGE_FR_TN, - self::LANGUAGE_FR_VU, - self::LANGUAGE_FR_WF, - self::LANGUAGE_FR_YT, - self::LANGUAGE_FUR, - self::LANGUAGE_FUR_IT, - self::LANGUAGE_FY, - self::LANGUAGE_FY_NL, - self::LANGUAGE_GA, - self::LANGUAGE_GA_IE, - self::LANGUAGE_GD, - self::LANGUAGE_GD_GB, - self::LANGUAGE_GL, - self::LANGUAGE_GL_ES, - self::LANGUAGE_GSW, - self::LANGUAGE_GSW_CH, - self::LANGUAGE_GSW_FR, - self::LANGUAGE_GSW_LI, - self::LANGUAGE_GU, - self::LANGUAGE_GU_IN, - self::LANGUAGE_GUZ, - self::LANGUAGE_GUZ_KE, - self::LANGUAGE_GV, - self::LANGUAGE_GV_IM, - self::LANGUAGE_HA, - self::LANGUAGE_HA_GH, - self::LANGUAGE_HA_NE, - self::LANGUAGE_HA_NG, - self::LANGUAGE_HAW, - self::LANGUAGE_HAW_US, - self::LANGUAGE_HE, - self::LANGUAGE_HI, - self::LANGUAGE_HI_IN, - self::LANGUAGE_HR, - self::LANGUAGE_HR_BA, - self::LANGUAGE_HR_HR, - self::LANGUAGE_HSB, - self::LANGUAGE_HSB_DE, - self::LANGUAGE_HU, - self::LANGUAGE_HU_HU, - self::LANGUAGE_HY, - self::LANGUAGE_HY_AM, - self::LANGUAGE_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, - self::LANGUAGE_IT_CH, - 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_KA, - self::LANGUAGE_KA_GE, - self::LANGUAGE_KAB, - self::LANGUAGE_KAB_DZ, - self::LANGUAGE_KAM, - self::LANGUAGE_KAM_KE, - self::LANGUAGE_KDE, - self::LANGUAGE_KDE_TZ, - self::LANGUAGE_KEA, - self::LANGUAGE_KEA_CV, - self::LANGUAGE_KHQ, - self::LANGUAGE_KHQ_ML, - self::LANGUAGE_KI, - self::LANGUAGE_KI_KE, - self::LANGUAGE_KK, - self::LANGUAGE_KK_KZ, - self::LANGUAGE_KKJ, - self::LANGUAGE_KKJ_CM, - self::LANGUAGE_KL, - self::LANGUAGE_KL_GL, - self::LANGUAGE_KLN, - self::LANGUAGE_KLN_KE, - self::LANGUAGE_KM, - self::LANGUAGE_KM_KH, - self::LANGUAGE_KN, - self::LANGUAGE_KN_IN, - self::LANGUAGE_KO, - self::LANGUAGE_KO_KP, - self::LANGUAGE_KO_KR, - self::LANGUAGE_KOK, - self::LANGUAGE_KOK_IN, - self::LANGUAGE_KS, - self::LANGUAGE_KS_IN, - self::LANGUAGE_KSB, - self::LANGUAGE_KSB_TZ, - self::LANGUAGE_KSF, - self::LANGUAGE_KSF_CM, - self::LANGUAGE_KSH, - self::LANGUAGE_KSH_DE, - self::LANGUAGE_KW, - self::LANGUAGE_KW_GB, - self::LANGUAGE_KY, - self::LANGUAGE_KY_KG, - self::LANGUAGE_LAG, - self::LANGUAGE_LAG_TZ, - self::LANGUAGE_LB, - self::LANGUAGE_LB_LU, - self::LANGUAGE_LG, - self::LANGUAGE_LG_UG, - self::LANGUAGE_LKT, - self::LANGUAGE_LKT_US, - self::LANGUAGE_LN, - self::LANGUAGE_LN_AO, - self::LANGUAGE_LN_CD, - self::LANGUAGE_LN_CF, - self::LANGUAGE_LN_CG, - self::LANGUAGE_LO, - self::LANGUAGE_LO_LA, - self::LANGUAGE_LRC, - self::LANGUAGE_LRC_IQ, - self::LANGUAGE_LRC_IR, - self::LANGUAGE_LT, - self::LANGUAGE_LT_LT, - self::LANGUAGE_LU, - self::LANGUAGE_LU_CD, - self::LANGUAGE_LUO, - self::LANGUAGE_LUO_KE, - self::LANGUAGE_LUY, - self::LANGUAGE_LUY_KE, - self::LANGUAGE_LV, - self::LANGUAGE_LV_LV, - self::LANGUAGE_MAS, - self::LANGUAGE_MAS_KE, - self::LANGUAGE_MAS_TZ, - self::LANGUAGE_MER, - self::LANGUAGE_MER_KE, - self::LANGUAGE_MFE, - self::LANGUAGE_MFE_MU, - self::LANGUAGE_MG, - self::LANGUAGE_MG_MG, - self::LANGUAGE_MGH, - self::LANGUAGE_MGH_MZ, - self::LANGUAGE_MGO, - self::LANGUAGE_MGO_CM, - self::LANGUAGE_MK, - self::LANGUAGE_MK_MK, - self::LANGUAGE_ML, - self::LANGUAGE_ML_IN, - self::LANGUAGE_MN, - self::LANGUAGE_MN_MN, - self::LANGUAGE_MR, - self::LANGUAGE_MR_IN, - self::LANGUAGE_MS, - self::LANGUAGE_MS_BN, - self::LANGUAGE_MS_MY, - self::LANGUAGE_MS_SG, - self::LANGUAGE_MT, - self::LANGUAGE_MT_MT, - self::LANGUAGE_MUA, - self::LANGUAGE_MUA_CM, - self::LANGUAGE_MY, - self::LANGUAGE_MY_MM, - self::LANGUAGE_MZN, - self::LANGUAGE_MZN_IR, - self::LANGUAGE_NAQ, - self::LANGUAGE_NAQ_NA, - self::LANGUAGE_NB, - self::LANGUAGE_NB_NO, - self::LANGUAGE_NB_SJ, - self::LANGUAGE_ND, - self::LANGUAGE_ND_ZW, - self::LANGUAGE_NDS, - self::LANGUAGE_NDS_DE, - self::LANGUAGE_NDS_NL, - self::LANGUAGE_NE, - self::LANGUAGE_NE_IN, - self::LANGUAGE_NE_NP, - self::LANGUAGE_NL, - self::LANGUAGE_NL_AW, - self::LANGUAGE_NL_BE, - self::LANGUAGE_NL_CH, - self::LANGUAGE_NL_BQ, - self::LANGUAGE_NL_CW, - self::LANGUAGE_NL_LU, - self::LANGUAGE_NL_NL, - self::LANGUAGE_NL_SR, - self::LANGUAGE_NL_SX, - self::LANGUAGE_NMG, - self::LANGUAGE_NMG_CM, - self::LANGUAGE_NN, - self::LANGUAGE_NN_NO, - self::LANGUAGE_NNH, - self::LANGUAGE_NNH_CM, - self::LANGUAGE_NO, - self::LANGUAGE_NO_NO, - self::LANGUAGE_NUS, - self::LANGUAGE_NUS_SS, - self::LANGUAGE_NYN, - self::LANGUAGE_NYN_UG, - self::LANGUAGE_OM, - self::LANGUAGE_OM_ET, - self::LANGUAGE_OM_KE, - self::LANGUAGE__OR, - self::LANGUAGE_OR_IN, - self::LANGUAGE_OS, - self::LANGUAGE_OS_GE, - self::LANGUAGE_OS_RU, - self::LANGUAGE_PA, - self::LANGUAGE_PA_IN, - self::LANGUAGE_PA_PK, - self::LANGUAGE_PL, - self::LANGUAGE_PL_PL, - self::LANGUAGE_PRG, - self::LANGUAGE_PRG_001, - self::LANGUAGE_PS, - self::LANGUAGE_PS_AF, - self::LANGUAGE_PT, - self::LANGUAGE_PT_AO, - self::LANGUAGE_PT_BR, - self::LANGUAGE_PT_CH, - self::LANGUAGE_PT_CV, - self::LANGUAGE_PT_GQ, - self::LANGUAGE_PT_GW, - self::LANGUAGE_PT_LU, - self::LANGUAGE_PT_MO, - self::LANGUAGE_PT_MZ, - self::LANGUAGE_PT_PT, - self::LANGUAGE_PT_ST, - self::LANGUAGE_PT_TL, - self::LANGUAGE_QU, - self::LANGUAGE_QU_BO, - self::LANGUAGE_QU_EC, - self::LANGUAGE_QU_PE, - self::LANGUAGE_RM, - self::LANGUAGE_RM_CH, - self::LANGUAGE_RN, - self::LANGUAGE_RN_BI, - self::LANGUAGE_RO, - self::LANGUAGE_RO_MD, - self::LANGUAGE_RO_RO, - self::LANGUAGE_ROF, - self::LANGUAGE_ROF_TZ, - self::LANGUAGE_RU, - self::LANGUAGE_RU_BY, - self::LANGUAGE_RU_KG, - self::LANGUAGE_RU_KZ, - self::LANGUAGE_RU_MD, - self::LANGUAGE_RU_RU, - self::LANGUAGE_RU_UA, - self::LANGUAGE_RW, - self::LANGUAGE_RW_RW, - self::LANGUAGE_RWK, - self::LANGUAGE_RWK_TZ, - self::LANGUAGE_SA, - self::LANGUAGE_SAH, - self::LANGUAGE_SAH_RU, - self::LANGUAGE_SAQ, - self::LANGUAGE_SAQ_KE, - self::LANGUAGE_SBP, - self::LANGUAGE_SBP_TZ, - self::LANGUAGE_SD, - self::LANGUAGE_SD_PK, - self::LANGUAGE_SE, - self::LANGUAGE_SE_FI, - self::LANGUAGE_SE_NO, - self::LANGUAGE_SE_SE, - self::LANGUAGE_SEH, - self::LANGUAGE_SEH_MZ, - self::LANGUAGE_SES, - self::LANGUAGE_SES_ML, - self::LANGUAGE_SG, - self::LANGUAGE_SG_CF, - self::LANGUAGE_SHI, - self::LANGUAGE_SHI_MA, - self::LANGUAGE_SI, - self::LANGUAGE_SI_LK, - self::LANGUAGE_SK, - self::LANGUAGE_SK_SK, - self::LANGUAGE_SL, - self::LANGUAGE_SL_SI, - self::LANGUAGE_SMN, - self::LANGUAGE_SMN_FI, - self::LANGUAGE_SN, - self::LANGUAGE_SN_ZW, - self::LANGUAGE_SO, - self::LANGUAGE_SO_DJ, - self::LANGUAGE_SO_ET, - self::LANGUAGE_SO_KE, - self::LANGUAGE_SO_SO, - self::LANGUAGE_SQ, - self::LANGUAGE_SQ_AL, - self::LANGUAGE_SQ_MK, - self::LANGUAGE_SQ_XK, - self::LANGUAGE_SR, - self::LANGUAGE_SR_BA, - self::LANGUAGE_SR_CS, - self::LANGUAGE_SR_ME, - self::LANGUAGE_SR_RS, - self::LANGUAGE_SR_XK, - self::LANGUAGE_SV, - self::LANGUAGE_SV_AX, - self::LANGUAGE_SV_FI, - self::LANGUAGE_SV_SE, - self::LANGUAGE_SW, - self::LANGUAGE_SW_CD, - self::LANGUAGE_SW_KE, - self::LANGUAGE_SW_TZ, - self::LANGUAGE_SW_UG, - self::LANGUAGE_SY, - self::LANGUAGE_TA, - self::LANGUAGE_TA_IN, - self::LANGUAGE_TA_LK, - self::LANGUAGE_TA_MY, - self::LANGUAGE_TA_SG, - self::LANGUAGE_TE, - self::LANGUAGE_TE_IN, - self::LANGUAGE_TEO, - self::LANGUAGE_TEO_KE, - self::LANGUAGE_TEO_UG, - self::LANGUAGE_TG, - self::LANGUAGE_TG_TJ, - self::LANGUAGE_TH, - self::LANGUAGE_TH_TH, - self::LANGUAGE_TI, - self::LANGUAGE_TI_ER, - self::LANGUAGE_TI_ET, - self::LANGUAGE_TK, - self::LANGUAGE_TK_TM, - self::LANGUAGE_TO, - self::LANGUAGE_TO_TO, - self::LANGUAGE_TR, - self::LANGUAGE_TR_CY, - self::LANGUAGE_TR_TR, - self::LANGUAGE_TT, - self::LANGUAGE_TT_RU, - self::LANGUAGE_TWQ, - self::LANGUAGE_TWQ_NE, - self::LANGUAGE_TZM, - self::LANGUAGE_TZM_MA, - self::LANGUAGE_UG, - self::LANGUAGE_UG_CN, - self::LANGUAGE_UK, - self::LANGUAGE_UK_UA, - self::LANGUAGE_UR, - self::LANGUAGE_UR_IN, - self::LANGUAGE_UR_PK, - self::LANGUAGE_UZ, - self::LANGUAGE_UZ_AF, - self::LANGUAGE_UZ_UZ, - self::LANGUAGE_VAI, - self::LANGUAGE_VAI_LR, - self::LANGUAGE_VI, - self::LANGUAGE_VI_VN, - self::LANGUAGE_VO, - self::LANGUAGE_VO_001, - self::LANGUAGE_VUN, - self::LANGUAGE_VUN_TZ, - self::LANGUAGE_WAE, - self::LANGUAGE_WAE_CH, - self::LANGUAGE_WO, - self::LANGUAGE_WO_SN, - self::LANGUAGE_XOG, - self::LANGUAGE_XOG_UG, - self::LANGUAGE_YAV, - self::LANGUAGE_YAV_CM, - self::LANGUAGE_YO, - self::LANGUAGE_YO_BJ, - self::LANGUAGE_YO_NG, - self::LANGUAGE_YUE, - self::LANGUAGE_YUE_CN, - self::LANGUAGE_YUE_HK, - self::LANGUAGE_ZGH, - self::LANGUAGE_ZGH_MA, - self::LANGUAGE_ZH, - self::LANGUAGE_ZH_CN, - 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 getPrimaryLanguageAllowableValues() - { - return [ - self::PRIMARY_LANGUAGE_AF, - self::PRIMARY_LANGUAGE_AF_NA, - self::PRIMARY_LANGUAGE_AF_ZA, - self::PRIMARY_LANGUAGE_AGQ, - self::PRIMARY_LANGUAGE_AGQ_CM, - self::PRIMARY_LANGUAGE_AK, - self::PRIMARY_LANGUAGE_AK_GH, - self::PRIMARY_LANGUAGE_AM, - self::PRIMARY_LANGUAGE_AM_ET, - self::PRIMARY_LANGUAGE_AR, - self::PRIMARY_LANGUAGE_AR_001, - self::PRIMARY_LANGUAGE_AR_AE, - self::PRIMARY_LANGUAGE_AR_BH, - self::PRIMARY_LANGUAGE_AR_DJ, - self::PRIMARY_LANGUAGE_AR_DZ, - self::PRIMARY_LANGUAGE_AR_EG, - self::PRIMARY_LANGUAGE_AR_EH, - self::PRIMARY_LANGUAGE_AR_ER, - self::PRIMARY_LANGUAGE_AR_IL, - self::PRIMARY_LANGUAGE_AR_IQ, - self::PRIMARY_LANGUAGE_AR_JO, - self::PRIMARY_LANGUAGE_AR_KM, - self::PRIMARY_LANGUAGE_AR_KW, - self::PRIMARY_LANGUAGE_AR_LB, - self::PRIMARY_LANGUAGE_AR_LY, - self::PRIMARY_LANGUAGE_AR_MA, - self::PRIMARY_LANGUAGE_AR_MR, - self::PRIMARY_LANGUAGE_AR_OM, - self::PRIMARY_LANGUAGE_AR_PS, - self::PRIMARY_LANGUAGE_AR_QA, - self::PRIMARY_LANGUAGE_AR_SA, - self::PRIMARY_LANGUAGE_AR_SD, - self::PRIMARY_LANGUAGE_AR_SO, - self::PRIMARY_LANGUAGE_AR_SS, - self::PRIMARY_LANGUAGE_AR_SY, - self::PRIMARY_LANGUAGE_AR_TD, - self::PRIMARY_LANGUAGE_AR_TN, - self::PRIMARY_LANGUAGE_AR_YE, - self::PRIMARY_LANGUAGE__AS, - self::PRIMARY_LANGUAGE_AS_IN, - self::PRIMARY_LANGUAGE_ASA, - self::PRIMARY_LANGUAGE_ASA_TZ, - self::PRIMARY_LANGUAGE_AST, - self::PRIMARY_LANGUAGE_AST_ES, - self::PRIMARY_LANGUAGE_AZ, - self::PRIMARY_LANGUAGE_AZ_AZ, - self::PRIMARY_LANGUAGE_BAS, - self::PRIMARY_LANGUAGE_BAS_CM, - self::PRIMARY_LANGUAGE_BE, - self::PRIMARY_LANGUAGE_BE_BY, - self::PRIMARY_LANGUAGE_BEM, - self::PRIMARY_LANGUAGE_BEM_ZM, - self::PRIMARY_LANGUAGE_BEZ, - self::PRIMARY_LANGUAGE_BEZ_TZ, - self::PRIMARY_LANGUAGE_BG, - self::PRIMARY_LANGUAGE_BG_BG, - self::PRIMARY_LANGUAGE_BM, - self::PRIMARY_LANGUAGE_BM_ML, - self::PRIMARY_LANGUAGE_BN, - self::PRIMARY_LANGUAGE_BN_BD, - self::PRIMARY_LANGUAGE_BN_IN, - self::PRIMARY_LANGUAGE_BO, - self::PRIMARY_LANGUAGE_BO_CN, - self::PRIMARY_LANGUAGE_BO_IN, - self::PRIMARY_LANGUAGE_BR, - self::PRIMARY_LANGUAGE_BR_FR, - self::PRIMARY_LANGUAGE_BRX, - self::PRIMARY_LANGUAGE_BRX_IN, - self::PRIMARY_LANGUAGE_BS, - self::PRIMARY_LANGUAGE_BS_BA, - self::PRIMARY_LANGUAGE_CA, - self::PRIMARY_LANGUAGE_CA_AD, - self::PRIMARY_LANGUAGE_CA_ES, - self::PRIMARY_LANGUAGE_CA_FR, - self::PRIMARY_LANGUAGE_CA_IT, - self::PRIMARY_LANGUAGE_CCP, - self::PRIMARY_LANGUAGE_CCP_BD, - self::PRIMARY_LANGUAGE_CCP_IN, - self::PRIMARY_LANGUAGE_CE, - self::PRIMARY_LANGUAGE_CE_RU, - self::PRIMARY_LANGUAGE_CGG, - self::PRIMARY_LANGUAGE_CGG_UG, - self::PRIMARY_LANGUAGE_CHR, - self::PRIMARY_LANGUAGE_CHR_US, - self::PRIMARY_LANGUAGE_CKB, - self::PRIMARY_LANGUAGE_CKB_IQ, - self::PRIMARY_LANGUAGE_CKB_IR, - self::PRIMARY_LANGUAGE_CS, - self::PRIMARY_LANGUAGE_CS_CZ, - self::PRIMARY_LANGUAGE_CU, - self::PRIMARY_LANGUAGE_CU_RU, - self::PRIMARY_LANGUAGE_CY, - self::PRIMARY_LANGUAGE_CY_GB, - self::PRIMARY_LANGUAGE_DA, - self::PRIMARY_LANGUAGE_DA_DK, - self::PRIMARY_LANGUAGE_DA_GL, - self::PRIMARY_LANGUAGE_DAV, - self::PRIMARY_LANGUAGE_DAV_KE, - self::PRIMARY_LANGUAGE_DE, - self::PRIMARY_LANGUAGE_DE_AT, - self::PRIMARY_LANGUAGE_DE_BE, - self::PRIMARY_LANGUAGE_DE_CH, - self::PRIMARY_LANGUAGE_DE_DE, - self::PRIMARY_LANGUAGE_DE_GR, - self::PRIMARY_LANGUAGE_DE_IT, - self::PRIMARY_LANGUAGE_DE_LI, - self::PRIMARY_LANGUAGE_DE_LU, - self::PRIMARY_LANGUAGE_DJE, - self::PRIMARY_LANGUAGE_DJE_NE, - self::PRIMARY_LANGUAGE_DSB, - self::PRIMARY_LANGUAGE_DSB_DE, - self::PRIMARY_LANGUAGE_DUA, - self::PRIMARY_LANGUAGE_DUA_CM, - self::PRIMARY_LANGUAGE_DYO, - self::PRIMARY_LANGUAGE_DYO_SN, - self::PRIMARY_LANGUAGE_DZ, - self::PRIMARY_LANGUAGE_DZ_BT, - self::PRIMARY_LANGUAGE_EBU, - self::PRIMARY_LANGUAGE_EBU_KE, - self::PRIMARY_LANGUAGE_EE, - self::PRIMARY_LANGUAGE_EE_GH, - self::PRIMARY_LANGUAGE_EE_TG, - self::PRIMARY_LANGUAGE_EL, - self::PRIMARY_LANGUAGE_EL_CY, - self::PRIMARY_LANGUAGE_EL_GR, - self::PRIMARY_LANGUAGE_EN, - self::PRIMARY_LANGUAGE_EN_001, - self::PRIMARY_LANGUAGE_EN_150, - self::PRIMARY_LANGUAGE_EN_AE, - self::PRIMARY_LANGUAGE_EN_AG, - self::PRIMARY_LANGUAGE_EN_AI, - self::PRIMARY_LANGUAGE_EN_AS, - self::PRIMARY_LANGUAGE_EN_AT, - self::PRIMARY_LANGUAGE_EN_AU, - self::PRIMARY_LANGUAGE_EN_BB, - self::PRIMARY_LANGUAGE_EN_BE, - self::PRIMARY_LANGUAGE_EN_BI, - self::PRIMARY_LANGUAGE_EN_BM, - self::PRIMARY_LANGUAGE_EN_BS, - self::PRIMARY_LANGUAGE_EN_BW, - self::PRIMARY_LANGUAGE_EN_BZ, - self::PRIMARY_LANGUAGE_EN_CA, - self::PRIMARY_LANGUAGE_EN_CC, - self::PRIMARY_LANGUAGE_EN_CH, - self::PRIMARY_LANGUAGE_EN_CK, - self::PRIMARY_LANGUAGE_EN_CM, - self::PRIMARY_LANGUAGE_EN_CX, - self::PRIMARY_LANGUAGE_EN_CY, - self::PRIMARY_LANGUAGE_EN_DE, - self::PRIMARY_LANGUAGE_EN_DG, - self::PRIMARY_LANGUAGE_EN_DK, - self::PRIMARY_LANGUAGE_EN_DM, - self::PRIMARY_LANGUAGE_EN_ER, - self::PRIMARY_LANGUAGE_EN_FI, - self::PRIMARY_LANGUAGE_EN_FJ, - self::PRIMARY_LANGUAGE_EN_FK, - self::PRIMARY_LANGUAGE_EN_FM, - self::PRIMARY_LANGUAGE_EN_GB, - self::PRIMARY_LANGUAGE_EN_GD, - self::PRIMARY_LANGUAGE_EN_GG, - self::PRIMARY_LANGUAGE_EN_GH, - self::PRIMARY_LANGUAGE_EN_GI, - self::PRIMARY_LANGUAGE_EN_GM, - self::PRIMARY_LANGUAGE_EN_GU, - self::PRIMARY_LANGUAGE_EN_GY, - self::PRIMARY_LANGUAGE_EN_HK, - self::PRIMARY_LANGUAGE_EN_IE, - self::PRIMARY_LANGUAGE_EN_IL, - self::PRIMARY_LANGUAGE_EN_IM, - self::PRIMARY_LANGUAGE_EN_IN, - self::PRIMARY_LANGUAGE_EN_IO, - self::PRIMARY_LANGUAGE_EN_JE, - self::PRIMARY_LANGUAGE_EN_JM, - self::PRIMARY_LANGUAGE_EN_KE, - self::PRIMARY_LANGUAGE_EN_KI, - self::PRIMARY_LANGUAGE_EN_KN, - self::PRIMARY_LANGUAGE_EN_KY, - self::PRIMARY_LANGUAGE_EN_LC, - self::PRIMARY_LANGUAGE_EN_LR, - self::PRIMARY_LANGUAGE_EN_LS, - self::PRIMARY_LANGUAGE_EN_LU, - self::PRIMARY_LANGUAGE_EN_MG, - self::PRIMARY_LANGUAGE_EN_MH, - self::PRIMARY_LANGUAGE_EN_MO, - self::PRIMARY_LANGUAGE_EN_MP, - self::PRIMARY_LANGUAGE_EN_MS, - self::PRIMARY_LANGUAGE_EN_MT, - self::PRIMARY_LANGUAGE_EN_MU, - self::PRIMARY_LANGUAGE_EN_MW, - self::PRIMARY_LANGUAGE_EN_MY, - self::PRIMARY_LANGUAGE_EN_NA, - self::PRIMARY_LANGUAGE_EN_NF, - self::PRIMARY_LANGUAGE_EN_NG, - self::PRIMARY_LANGUAGE_EN_NL, - self::PRIMARY_LANGUAGE_EN_NR, - self::PRIMARY_LANGUAGE_EN_NU, - self::PRIMARY_LANGUAGE_EN_NZ, - self::PRIMARY_LANGUAGE_EN_PG, - self::PRIMARY_LANGUAGE_EN_PH, - self::PRIMARY_LANGUAGE_EN_PK, - self::PRIMARY_LANGUAGE_EN_PN, - self::PRIMARY_LANGUAGE_EN_PR, - self::PRIMARY_LANGUAGE_EN_PW, - self::PRIMARY_LANGUAGE_EN_RW, - self::PRIMARY_LANGUAGE_EN_SB, - self::PRIMARY_LANGUAGE_EN_SC, - self::PRIMARY_LANGUAGE_EN_SD, - self::PRIMARY_LANGUAGE_EN_SE, - self::PRIMARY_LANGUAGE_EN_SG, - self::PRIMARY_LANGUAGE_EN_SH, - self::PRIMARY_LANGUAGE_EN_SI, - self::PRIMARY_LANGUAGE_EN_SL, - self::PRIMARY_LANGUAGE_EN_SS, - self::PRIMARY_LANGUAGE_EN_SX, - self::PRIMARY_LANGUAGE_EN_SZ, - self::PRIMARY_LANGUAGE_EN_TC, - self::PRIMARY_LANGUAGE_EN_TK, - self::PRIMARY_LANGUAGE_EN_TO, - self::PRIMARY_LANGUAGE_EN_TT, - self::PRIMARY_LANGUAGE_EN_TV, - self::PRIMARY_LANGUAGE_EN_TZ, - self::PRIMARY_LANGUAGE_EN_UG, - self::PRIMARY_LANGUAGE_EN_UM, - self::PRIMARY_LANGUAGE_EN_US, - self::PRIMARY_LANGUAGE_EN_VC, - self::PRIMARY_LANGUAGE_EN_VG, - self::PRIMARY_LANGUAGE_EN_VI, - self::PRIMARY_LANGUAGE_EN_VU, - self::PRIMARY_LANGUAGE_EN_WS, - self::PRIMARY_LANGUAGE_EN_ZA, - self::PRIMARY_LANGUAGE_EN_ZM, - self::PRIMARY_LANGUAGE_EN_ZW, - self::PRIMARY_LANGUAGE_EO, - self::PRIMARY_LANGUAGE_EO_001, - self::PRIMARY_LANGUAGE_ES, - self::PRIMARY_LANGUAGE_ES_419, - self::PRIMARY_LANGUAGE_ES_AR, - self::PRIMARY_LANGUAGE_ES_BO, - self::PRIMARY_LANGUAGE_ES_BR, - self::PRIMARY_LANGUAGE_ES_BZ, - self::PRIMARY_LANGUAGE_ES_CL, - self::PRIMARY_LANGUAGE_ES_CO, - self::PRIMARY_LANGUAGE_ES_CR, - self::PRIMARY_LANGUAGE_ES_CU, - self::PRIMARY_LANGUAGE_ES_DO, - self::PRIMARY_LANGUAGE_ES_EA, - self::PRIMARY_LANGUAGE_ES_EC, - self::PRIMARY_LANGUAGE_ES_ES, - self::PRIMARY_LANGUAGE_ES_GQ, - self::PRIMARY_LANGUAGE_ES_GT, - self::PRIMARY_LANGUAGE_ES_HN, - self::PRIMARY_LANGUAGE_ES_IC, - self::PRIMARY_LANGUAGE_ES_MX, - self::PRIMARY_LANGUAGE_ES_NI, - self::PRIMARY_LANGUAGE_ES_PA, - self::PRIMARY_LANGUAGE_ES_PE, - self::PRIMARY_LANGUAGE_ES_PH, - self::PRIMARY_LANGUAGE_ES_PR, - self::PRIMARY_LANGUAGE_ES_PY, - self::PRIMARY_LANGUAGE_ES_SV, - self::PRIMARY_LANGUAGE_ES_US, - self::PRIMARY_LANGUAGE_ES_UY, - self::PRIMARY_LANGUAGE_ES_VE, - self::PRIMARY_LANGUAGE_ET, - self::PRIMARY_LANGUAGE_ET_EE, - self::PRIMARY_LANGUAGE_EU, - self::PRIMARY_LANGUAGE_EU_ES, - self::PRIMARY_LANGUAGE_EWO, - self::PRIMARY_LANGUAGE_EWO_CM, - self::PRIMARY_LANGUAGE_FA, - self::PRIMARY_LANGUAGE_FA_AF, - self::PRIMARY_LANGUAGE_FA_IR, - self::PRIMARY_LANGUAGE_FF, - self::PRIMARY_LANGUAGE_FF_CM, - self::PRIMARY_LANGUAGE_FF_GN, - self::PRIMARY_LANGUAGE_FF_MR, - self::PRIMARY_LANGUAGE_FF_SN, - self::PRIMARY_LANGUAGE_FI, - self::PRIMARY_LANGUAGE_FI_FI, - self::PRIMARY_LANGUAGE_FIL, - self::PRIMARY_LANGUAGE_FIL_PH, - self::PRIMARY_LANGUAGE_FO, - self::PRIMARY_LANGUAGE_FO_DK, - self::PRIMARY_LANGUAGE_FO_FO, - self::PRIMARY_LANGUAGE_FR, - self::PRIMARY_LANGUAGE_FR_BE, - self::PRIMARY_LANGUAGE_FR_BF, - self::PRIMARY_LANGUAGE_FR_BI, - self::PRIMARY_LANGUAGE_FR_BJ, - self::PRIMARY_LANGUAGE_FR_BL, - self::PRIMARY_LANGUAGE_FR_CA, - self::PRIMARY_LANGUAGE_FR_CD, - self::PRIMARY_LANGUAGE_FR_CF, - self::PRIMARY_LANGUAGE_FR_CG, - self::PRIMARY_LANGUAGE_FR_CH, - self::PRIMARY_LANGUAGE_FR_CI, - self::PRIMARY_LANGUAGE_FR_CM, - self::PRIMARY_LANGUAGE_FR_DJ, - self::PRIMARY_LANGUAGE_FR_DZ, - self::PRIMARY_LANGUAGE_FR_FR, - self::PRIMARY_LANGUAGE_FR_GA, - self::PRIMARY_LANGUAGE_FR_GF, - self::PRIMARY_LANGUAGE_FR_GN, - self::PRIMARY_LANGUAGE_FR_GP, - self::PRIMARY_LANGUAGE_FR_GQ, - self::PRIMARY_LANGUAGE_FR_HT, - self::PRIMARY_LANGUAGE_FR_KM, - self::PRIMARY_LANGUAGE_FR_LU, - self::PRIMARY_LANGUAGE_FR_MA, - self::PRIMARY_LANGUAGE_FR_MC, - self::PRIMARY_LANGUAGE_FR_MF, - self::PRIMARY_LANGUAGE_FR_MG, - self::PRIMARY_LANGUAGE_FR_ML, - self::PRIMARY_LANGUAGE_FR_MQ, - self::PRIMARY_LANGUAGE_FR_MR, - self::PRIMARY_LANGUAGE_FR_MU, - self::PRIMARY_LANGUAGE_FR_NC, - self::PRIMARY_LANGUAGE_FR_NE, - self::PRIMARY_LANGUAGE_FR_PF, - self::PRIMARY_LANGUAGE_FR_PM, - self::PRIMARY_LANGUAGE_FR_RE, - self::PRIMARY_LANGUAGE_FR_RW, - self::PRIMARY_LANGUAGE_FR_SC, - self::PRIMARY_LANGUAGE_FR_SN, - self::PRIMARY_LANGUAGE_FR_SY, - self::PRIMARY_LANGUAGE_FR_TD, - self::PRIMARY_LANGUAGE_FR_TG, - self::PRIMARY_LANGUAGE_FR_TN, - self::PRIMARY_LANGUAGE_FR_VU, - self::PRIMARY_LANGUAGE_FR_WF, - self::PRIMARY_LANGUAGE_FR_YT, - self::PRIMARY_LANGUAGE_FUR, - self::PRIMARY_LANGUAGE_FUR_IT, - self::PRIMARY_LANGUAGE_FY, - self::PRIMARY_LANGUAGE_FY_NL, - self::PRIMARY_LANGUAGE_GA, - self::PRIMARY_LANGUAGE_GA_IE, - self::PRIMARY_LANGUAGE_GD, - self::PRIMARY_LANGUAGE_GD_GB, - self::PRIMARY_LANGUAGE_GL, - self::PRIMARY_LANGUAGE_GL_ES, - self::PRIMARY_LANGUAGE_GSW, - self::PRIMARY_LANGUAGE_GSW_CH, - self::PRIMARY_LANGUAGE_GSW_FR, - self::PRIMARY_LANGUAGE_GSW_LI, - self::PRIMARY_LANGUAGE_GU, - self::PRIMARY_LANGUAGE_GU_IN, - self::PRIMARY_LANGUAGE_GUZ, - self::PRIMARY_LANGUAGE_GUZ_KE, - self::PRIMARY_LANGUAGE_GV, - self::PRIMARY_LANGUAGE_GV_IM, - self::PRIMARY_LANGUAGE_HA, - self::PRIMARY_LANGUAGE_HA_GH, - self::PRIMARY_LANGUAGE_HA_NE, - self::PRIMARY_LANGUAGE_HA_NG, - self::PRIMARY_LANGUAGE_HAW, - self::PRIMARY_LANGUAGE_HAW_US, - self::PRIMARY_LANGUAGE_HE, - self::PRIMARY_LANGUAGE_HI, - self::PRIMARY_LANGUAGE_HI_IN, - self::PRIMARY_LANGUAGE_HR, - self::PRIMARY_LANGUAGE_HR_BA, - self::PRIMARY_LANGUAGE_HR_HR, - self::PRIMARY_LANGUAGE_HSB, - self::PRIMARY_LANGUAGE_HSB_DE, - self::PRIMARY_LANGUAGE_HU, - self::PRIMARY_LANGUAGE_HU_HU, - self::PRIMARY_LANGUAGE_HY, - self::PRIMARY_LANGUAGE_HY_AM, - self::PRIMARY_LANGUAGE_ID, - self::PRIMARY_LANGUAGE_IG, - self::PRIMARY_LANGUAGE_IG_NG, - self::PRIMARY_LANGUAGE_II, - self::PRIMARY_LANGUAGE_II_CN, - self::PRIMARY_LANGUAGE_ID_ID, - self::PRIMARY_LANGUAGE_IS, - self::PRIMARY_LANGUAGE_IS_IS, - self::PRIMARY_LANGUAGE_IT, - self::PRIMARY_LANGUAGE_IT_CH, - self::PRIMARY_LANGUAGE_IT_IT, - self::PRIMARY_LANGUAGE_IT_SM, - self::PRIMARY_LANGUAGE_IT_VA, - self::PRIMARY_LANGUAGE_HE_IL, - self::PRIMARY_LANGUAGE_JA, - self::PRIMARY_LANGUAGE_JA_JP, - self::PRIMARY_LANGUAGE_JGO, - self::PRIMARY_LANGUAGE_JGO_CM, - self::PRIMARY_LANGUAGE_YI, - self::PRIMARY_LANGUAGE_YI_001, - self::PRIMARY_LANGUAGE_JMC, - self::PRIMARY_LANGUAGE_JMC_TZ, - self::PRIMARY_LANGUAGE_KA, - self::PRIMARY_LANGUAGE_KA_GE, - self::PRIMARY_LANGUAGE_KAB, - self::PRIMARY_LANGUAGE_KAB_DZ, - self::PRIMARY_LANGUAGE_KAM, - self::PRIMARY_LANGUAGE_KAM_KE, - self::PRIMARY_LANGUAGE_KDE, - self::PRIMARY_LANGUAGE_KDE_TZ, - self::PRIMARY_LANGUAGE_KEA, - self::PRIMARY_LANGUAGE_KEA_CV, - self::PRIMARY_LANGUAGE_KHQ, - self::PRIMARY_LANGUAGE_KHQ_ML, - self::PRIMARY_LANGUAGE_KI, - self::PRIMARY_LANGUAGE_KI_KE, - self::PRIMARY_LANGUAGE_KK, - self::PRIMARY_LANGUAGE_KK_KZ, - self::PRIMARY_LANGUAGE_KKJ, - self::PRIMARY_LANGUAGE_KKJ_CM, - self::PRIMARY_LANGUAGE_KL, - self::PRIMARY_LANGUAGE_KL_GL, - self::PRIMARY_LANGUAGE_KLN, - self::PRIMARY_LANGUAGE_KLN_KE, - self::PRIMARY_LANGUAGE_KM, - self::PRIMARY_LANGUAGE_KM_KH, - self::PRIMARY_LANGUAGE_KN, - self::PRIMARY_LANGUAGE_KN_IN, - self::PRIMARY_LANGUAGE_KO, - self::PRIMARY_LANGUAGE_KO_KP, - self::PRIMARY_LANGUAGE_KO_KR, - self::PRIMARY_LANGUAGE_KOK, - self::PRIMARY_LANGUAGE_KOK_IN, - self::PRIMARY_LANGUAGE_KS, - self::PRIMARY_LANGUAGE_KS_IN, - self::PRIMARY_LANGUAGE_KSB, - self::PRIMARY_LANGUAGE_KSB_TZ, - self::PRIMARY_LANGUAGE_KSF, - self::PRIMARY_LANGUAGE_KSF_CM, - self::PRIMARY_LANGUAGE_KSH, - self::PRIMARY_LANGUAGE_KSH_DE, - self::PRIMARY_LANGUAGE_KW, - self::PRIMARY_LANGUAGE_KW_GB, - self::PRIMARY_LANGUAGE_KY, - self::PRIMARY_LANGUAGE_KY_KG, - self::PRIMARY_LANGUAGE_LAG, - self::PRIMARY_LANGUAGE_LAG_TZ, - self::PRIMARY_LANGUAGE_LB, - self::PRIMARY_LANGUAGE_LB_LU, - self::PRIMARY_LANGUAGE_LG, - self::PRIMARY_LANGUAGE_LG_UG, - self::PRIMARY_LANGUAGE_LKT, - self::PRIMARY_LANGUAGE_LKT_US, - self::PRIMARY_LANGUAGE_LN, - self::PRIMARY_LANGUAGE_LN_AO, - self::PRIMARY_LANGUAGE_LN_CD, - self::PRIMARY_LANGUAGE_LN_CF, - self::PRIMARY_LANGUAGE_LN_CG, - self::PRIMARY_LANGUAGE_LO, - self::PRIMARY_LANGUAGE_LO_LA, - self::PRIMARY_LANGUAGE_LRC, - self::PRIMARY_LANGUAGE_LRC_IQ, - self::PRIMARY_LANGUAGE_LRC_IR, - self::PRIMARY_LANGUAGE_LT, - self::PRIMARY_LANGUAGE_LT_LT, - self::PRIMARY_LANGUAGE_LU, - self::PRIMARY_LANGUAGE_LU_CD, - self::PRIMARY_LANGUAGE_LUO, - self::PRIMARY_LANGUAGE_LUO_KE, - self::PRIMARY_LANGUAGE_LUY, - self::PRIMARY_LANGUAGE_LUY_KE, - self::PRIMARY_LANGUAGE_LV, - self::PRIMARY_LANGUAGE_LV_LV, - self::PRIMARY_LANGUAGE_MAS, - self::PRIMARY_LANGUAGE_MAS_KE, - self::PRIMARY_LANGUAGE_MAS_TZ, - self::PRIMARY_LANGUAGE_MER, - self::PRIMARY_LANGUAGE_MER_KE, - self::PRIMARY_LANGUAGE_MFE, - self::PRIMARY_LANGUAGE_MFE_MU, - self::PRIMARY_LANGUAGE_MG, - self::PRIMARY_LANGUAGE_MG_MG, - self::PRIMARY_LANGUAGE_MGH, - self::PRIMARY_LANGUAGE_MGH_MZ, - self::PRIMARY_LANGUAGE_MGO, - self::PRIMARY_LANGUAGE_MGO_CM, - self::PRIMARY_LANGUAGE_MK, - self::PRIMARY_LANGUAGE_MK_MK, - self::PRIMARY_LANGUAGE_ML, - self::PRIMARY_LANGUAGE_ML_IN, - self::PRIMARY_LANGUAGE_MN, - self::PRIMARY_LANGUAGE_MN_MN, - self::PRIMARY_LANGUAGE_MR, - self::PRIMARY_LANGUAGE_MR_IN, - self::PRIMARY_LANGUAGE_MS, - self::PRIMARY_LANGUAGE_MS_BN, - self::PRIMARY_LANGUAGE_MS_MY, - self::PRIMARY_LANGUAGE_MS_SG, - self::PRIMARY_LANGUAGE_MT, - self::PRIMARY_LANGUAGE_MT_MT, - self::PRIMARY_LANGUAGE_MUA, - self::PRIMARY_LANGUAGE_MUA_CM, - self::PRIMARY_LANGUAGE_MY, - self::PRIMARY_LANGUAGE_MY_MM, - self::PRIMARY_LANGUAGE_MZN, - self::PRIMARY_LANGUAGE_MZN_IR, - self::PRIMARY_LANGUAGE_NAQ, - self::PRIMARY_LANGUAGE_NAQ_NA, - self::PRIMARY_LANGUAGE_NB, - self::PRIMARY_LANGUAGE_NB_NO, - self::PRIMARY_LANGUAGE_NB_SJ, - self::PRIMARY_LANGUAGE_ND, - self::PRIMARY_LANGUAGE_ND_ZW, - self::PRIMARY_LANGUAGE_NDS, - self::PRIMARY_LANGUAGE_NDS_DE, - self::PRIMARY_LANGUAGE_NDS_NL, - self::PRIMARY_LANGUAGE_NE, - self::PRIMARY_LANGUAGE_NE_IN, - self::PRIMARY_LANGUAGE_NE_NP, - self::PRIMARY_LANGUAGE_NL, - self::PRIMARY_LANGUAGE_NL_AW, - self::PRIMARY_LANGUAGE_NL_BE, - self::PRIMARY_LANGUAGE_NL_CH, - self::PRIMARY_LANGUAGE_NL_BQ, - self::PRIMARY_LANGUAGE_NL_CW, - self::PRIMARY_LANGUAGE_NL_LU, - self::PRIMARY_LANGUAGE_NL_NL, - self::PRIMARY_LANGUAGE_NL_SR, - self::PRIMARY_LANGUAGE_NL_SX, - self::PRIMARY_LANGUAGE_NMG, - self::PRIMARY_LANGUAGE_NMG_CM, - self::PRIMARY_LANGUAGE_NN, - self::PRIMARY_LANGUAGE_NN_NO, - self::PRIMARY_LANGUAGE_NNH, - self::PRIMARY_LANGUAGE_NNH_CM, - self::PRIMARY_LANGUAGE_NO, - self::PRIMARY_LANGUAGE_NO_NO, - self::PRIMARY_LANGUAGE_NUS, - self::PRIMARY_LANGUAGE_NUS_SS, - self::PRIMARY_LANGUAGE_NYN, - self::PRIMARY_LANGUAGE_NYN_UG, - self::PRIMARY_LANGUAGE_OM, - self::PRIMARY_LANGUAGE_OM_ET, - self::PRIMARY_LANGUAGE_OM_KE, - self::PRIMARY_LANGUAGE__OR, - self::PRIMARY_LANGUAGE_OR_IN, - self::PRIMARY_LANGUAGE_OS, - self::PRIMARY_LANGUAGE_OS_GE, - self::PRIMARY_LANGUAGE_OS_RU, - self::PRIMARY_LANGUAGE_PA, - self::PRIMARY_LANGUAGE_PA_IN, - self::PRIMARY_LANGUAGE_PA_PK, - self::PRIMARY_LANGUAGE_PL, - self::PRIMARY_LANGUAGE_PL_PL, - self::PRIMARY_LANGUAGE_PRG, - self::PRIMARY_LANGUAGE_PRG_001, - self::PRIMARY_LANGUAGE_PS, - self::PRIMARY_LANGUAGE_PS_AF, - self::PRIMARY_LANGUAGE_PT, - self::PRIMARY_LANGUAGE_PT_AO, - self::PRIMARY_LANGUAGE_PT_BR, - self::PRIMARY_LANGUAGE_PT_CH, - self::PRIMARY_LANGUAGE_PT_CV, - self::PRIMARY_LANGUAGE_PT_GQ, - self::PRIMARY_LANGUAGE_PT_GW, - self::PRIMARY_LANGUAGE_PT_LU, - self::PRIMARY_LANGUAGE_PT_MO, - self::PRIMARY_LANGUAGE_PT_MZ, - self::PRIMARY_LANGUAGE_PT_PT, - self::PRIMARY_LANGUAGE_PT_ST, - self::PRIMARY_LANGUAGE_PT_TL, - self::PRIMARY_LANGUAGE_QU, - self::PRIMARY_LANGUAGE_QU_BO, - self::PRIMARY_LANGUAGE_QU_EC, - self::PRIMARY_LANGUAGE_QU_PE, - self::PRIMARY_LANGUAGE_RM, - self::PRIMARY_LANGUAGE_RM_CH, - self::PRIMARY_LANGUAGE_RN, - self::PRIMARY_LANGUAGE_RN_BI, - self::PRIMARY_LANGUAGE_RO, - self::PRIMARY_LANGUAGE_RO_MD, - self::PRIMARY_LANGUAGE_RO_RO, - self::PRIMARY_LANGUAGE_ROF, - self::PRIMARY_LANGUAGE_ROF_TZ, - self::PRIMARY_LANGUAGE_RU, - self::PRIMARY_LANGUAGE_RU_BY, - self::PRIMARY_LANGUAGE_RU_KG, - self::PRIMARY_LANGUAGE_RU_KZ, - self::PRIMARY_LANGUAGE_RU_MD, - self::PRIMARY_LANGUAGE_RU_RU, - self::PRIMARY_LANGUAGE_RU_UA, - self::PRIMARY_LANGUAGE_RW, - self::PRIMARY_LANGUAGE_RW_RW, - self::PRIMARY_LANGUAGE_RWK, - self::PRIMARY_LANGUAGE_RWK_TZ, - self::PRIMARY_LANGUAGE_SA, - self::PRIMARY_LANGUAGE_SAH, - self::PRIMARY_LANGUAGE_SAH_RU, - self::PRIMARY_LANGUAGE_SAQ, - self::PRIMARY_LANGUAGE_SAQ_KE, - self::PRIMARY_LANGUAGE_SBP, - self::PRIMARY_LANGUAGE_SBP_TZ, - self::PRIMARY_LANGUAGE_SD, - self::PRIMARY_LANGUAGE_SD_PK, - self::PRIMARY_LANGUAGE_SE, - self::PRIMARY_LANGUAGE_SE_FI, - self::PRIMARY_LANGUAGE_SE_NO, - self::PRIMARY_LANGUAGE_SE_SE, - self::PRIMARY_LANGUAGE_SEH, - self::PRIMARY_LANGUAGE_SEH_MZ, - self::PRIMARY_LANGUAGE_SES, - self::PRIMARY_LANGUAGE_SES_ML, - self::PRIMARY_LANGUAGE_SG, - self::PRIMARY_LANGUAGE_SG_CF, - self::PRIMARY_LANGUAGE_SHI, - self::PRIMARY_LANGUAGE_SHI_MA, - self::PRIMARY_LANGUAGE_SI, - self::PRIMARY_LANGUAGE_SI_LK, - self::PRIMARY_LANGUAGE_SK, - self::PRIMARY_LANGUAGE_SK_SK, - self::PRIMARY_LANGUAGE_SL, - self::PRIMARY_LANGUAGE_SL_SI, - self::PRIMARY_LANGUAGE_SMN, - self::PRIMARY_LANGUAGE_SMN_FI, - self::PRIMARY_LANGUAGE_SN, - self::PRIMARY_LANGUAGE_SN_ZW, - self::PRIMARY_LANGUAGE_SO, - self::PRIMARY_LANGUAGE_SO_DJ, - self::PRIMARY_LANGUAGE_SO_ET, - self::PRIMARY_LANGUAGE_SO_KE, - self::PRIMARY_LANGUAGE_SO_SO, - self::PRIMARY_LANGUAGE_SQ, - self::PRIMARY_LANGUAGE_SQ_AL, - self::PRIMARY_LANGUAGE_SQ_MK, - self::PRIMARY_LANGUAGE_SQ_XK, - self::PRIMARY_LANGUAGE_SR, - self::PRIMARY_LANGUAGE_SR_BA, - self::PRIMARY_LANGUAGE_SR_CS, - self::PRIMARY_LANGUAGE_SR_ME, - self::PRIMARY_LANGUAGE_SR_RS, - self::PRIMARY_LANGUAGE_SR_XK, - self::PRIMARY_LANGUAGE_SV, - self::PRIMARY_LANGUAGE_SV_AX, - self::PRIMARY_LANGUAGE_SV_FI, - self::PRIMARY_LANGUAGE_SV_SE, - self::PRIMARY_LANGUAGE_SW, - self::PRIMARY_LANGUAGE_SW_CD, - self::PRIMARY_LANGUAGE_SW_KE, - self::PRIMARY_LANGUAGE_SW_TZ, - self::PRIMARY_LANGUAGE_SW_UG, - self::PRIMARY_LANGUAGE_SY, - self::PRIMARY_LANGUAGE_TA, - self::PRIMARY_LANGUAGE_TA_IN, - self::PRIMARY_LANGUAGE_TA_LK, - self::PRIMARY_LANGUAGE_TA_MY, - self::PRIMARY_LANGUAGE_TA_SG, - self::PRIMARY_LANGUAGE_TE, - self::PRIMARY_LANGUAGE_TE_IN, - self::PRIMARY_LANGUAGE_TEO, - self::PRIMARY_LANGUAGE_TEO_KE, - self::PRIMARY_LANGUAGE_TEO_UG, - self::PRIMARY_LANGUAGE_TG, - self::PRIMARY_LANGUAGE_TG_TJ, - self::PRIMARY_LANGUAGE_TH, - self::PRIMARY_LANGUAGE_TH_TH, - self::PRIMARY_LANGUAGE_TI, - self::PRIMARY_LANGUAGE_TI_ER, - self::PRIMARY_LANGUAGE_TI_ET, - self::PRIMARY_LANGUAGE_TK, - self::PRIMARY_LANGUAGE_TK_TM, - self::PRIMARY_LANGUAGE_TO, - self::PRIMARY_LANGUAGE_TO_TO, - self::PRIMARY_LANGUAGE_TR, - self::PRIMARY_LANGUAGE_TR_CY, - self::PRIMARY_LANGUAGE_TR_TR, - self::PRIMARY_LANGUAGE_TT, - self::PRIMARY_LANGUAGE_TT_RU, - self::PRIMARY_LANGUAGE_TWQ, - self::PRIMARY_LANGUAGE_TWQ_NE, - self::PRIMARY_LANGUAGE_TZM, - self::PRIMARY_LANGUAGE_TZM_MA, - self::PRIMARY_LANGUAGE_UG, - self::PRIMARY_LANGUAGE_UG_CN, - self::PRIMARY_LANGUAGE_UK, - self::PRIMARY_LANGUAGE_UK_UA, - self::PRIMARY_LANGUAGE_UR, - self::PRIMARY_LANGUAGE_UR_IN, - self::PRIMARY_LANGUAGE_UR_PK, - self::PRIMARY_LANGUAGE_UZ, - self::PRIMARY_LANGUAGE_UZ_AF, - self::PRIMARY_LANGUAGE_UZ_UZ, - self::PRIMARY_LANGUAGE_VAI, - self::PRIMARY_LANGUAGE_VAI_LR, - self::PRIMARY_LANGUAGE_VI, - self::PRIMARY_LANGUAGE_VI_VN, - self::PRIMARY_LANGUAGE_VO, - self::PRIMARY_LANGUAGE_VO_001, - self::PRIMARY_LANGUAGE_VUN, - self::PRIMARY_LANGUAGE_VUN_TZ, - self::PRIMARY_LANGUAGE_WAE, - self::PRIMARY_LANGUAGE_WAE_CH, - self::PRIMARY_LANGUAGE_WO, - self::PRIMARY_LANGUAGE_WO_SN, - self::PRIMARY_LANGUAGE_XOG, - self::PRIMARY_LANGUAGE_XOG_UG, - self::PRIMARY_LANGUAGE_YAV, - self::PRIMARY_LANGUAGE_YAV_CM, - self::PRIMARY_LANGUAGE_YO, - self::PRIMARY_LANGUAGE_YO_BJ, - self::PRIMARY_LANGUAGE_YO_NG, - self::PRIMARY_LANGUAGE_YUE, - self::PRIMARY_LANGUAGE_YUE_CN, - self::PRIMARY_LANGUAGE_YUE_HK, - self::PRIMARY_LANGUAGE_ZGH, - self::PRIMARY_LANGUAGE_ZGH_MA, - self::PRIMARY_LANGUAGE_ZH, - self::PRIMARY_LANGUAGE_ZH_CN, - self::PRIMARY_LANGUAGE_ZH_HK, - self::PRIMARY_LANGUAGE_ZH_MO, - self::PRIMARY_LANGUAGE_ZH_SG, - self::PRIMARY_LANGUAGE_ZH_TW, - self::PRIMARY_LANGUAGE_ZH_HANS, - self::PRIMARY_LANGUAGE_ZH_HANT, - self::PRIMARY_LANGUAGE_ZU, - self::PRIMARY_LANGUAGE_ZU_ZA, - ]; - } /** * Associative array for storing property values @@ -3070,8 +192,8 @@ public function getPrimaryLanguageAllowableValues() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; $this->container['language'] = $data['language'] ?? null; + $this->container['id'] = $data['id'] ?? null; $this->container['primary_id'] = $data['primary_id'] ?? null; $this->container['primary_language'] = $data['primary_language'] ?? null; } @@ -3085,33 +207,15 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' 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['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } - if ($this->container['primary_id'] === null) { $invalidProperties[] = "'primary_id' can't be null"; } - $allowedValues = $this->getPrimaryLanguageAllowableValues(); - if (!is_null($this->container['primary_language']) && !in_array($this->container['primary_language'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'primary_language', must be one of '%s'", - $this->container['primary_language'], - implode("', '", $allowedValues) - ); - } - return $invalidProperties; } @@ -3128,59 +232,49 @@ public function valid() /** - * 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) { - $this->container['id'] = $id; + $this->container['language'] = $language; return $this; } /** - * 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) { - $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; + $this->container['id'] = $id; return $this; } @@ -3228,16 +322,6 @@ public function getPrimaryLanguage() */ public function setPrimaryLanguage($primary_language) { - $allowedValues = $this->getPrimaryLanguageAllowableValues(); - if (!is_null($primary_language) && !in_array($primary_language, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'primary_language', must be one of '%s'", - $primary_language, - implode("', '", $allowedValues) - ) - ); - } $this->container['primary_language'] = $primary_language; return $this; diff --git a/codegen/Cms/Blogs/BlogPosts/Model/BackgroundImage.php b/codegen/Cms/Blogs/BlogPosts/Model/BackgroundImage.php index ec144471..c80fef8c 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/BackgroundImage.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/BackgroundImage.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -170,35 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - public const BACKGROUND_POSITION_TOP_LEFT = 'TOP_LEFT'; - public const BACKGROUND_POSITION_TOP_CENTER = 'TOP_CENTER'; - public const BACKGROUND_POSITION_TOP_RIGHT = 'TOP_RIGHT'; - public const BACKGROUND_POSITION_MIDDLE_LEFT = 'MIDDLE_LEFT'; - public const BACKGROUND_POSITION_MIDDLE_CENTER = 'MIDDLE_CENTER'; - public const BACKGROUND_POSITION_MIDDLE_RIGHT = 'MIDDLE_RIGHT'; - public const BACKGROUND_POSITION_BOTTOM_LEFT = 'BOTTOM_LEFT'; - public const BACKGROUND_POSITION_BOTTOM_CENTER = 'BOTTOM_CENTER'; - public const BACKGROUND_POSITION_BOTTOM_RIGHT = 'BOTTOM_RIGHT'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getBackgroundPositionAllowableValues() - { - return [ - self::BACKGROUND_POSITION_TOP_LEFT, - self::BACKGROUND_POSITION_TOP_CENTER, - self::BACKGROUND_POSITION_TOP_RIGHT, - self::BACKGROUND_POSITION_MIDDLE_LEFT, - self::BACKGROUND_POSITION_MIDDLE_CENTER, - self::BACKGROUND_POSITION_MIDDLE_RIGHT, - self::BACKGROUND_POSITION_BOTTOM_LEFT, - self::BACKGROUND_POSITION_BOTTOM_CENTER, - self::BACKGROUND_POSITION_BOTTOM_RIGHT, - ]; - } /** * Associative array for storing property values @@ -238,15 +209,6 @@ public function listInvalidProperties() if ($this->container['background_position'] === null) { $invalidProperties[] = "'background_position' can't be null"; } - $allowedValues = $this->getBackgroundPositionAllowableValues(); - if (!is_null($this->container['background_position']) && !in_array($this->container['background_position'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'background_position', must be one of '%s'", - $this->container['background_position'], - implode("', '", $allowedValues) - ); - } - return $invalidProperties; } @@ -329,16 +291,6 @@ public function getBackgroundPosition() */ public function setBackgroundPosition($background_position) { - $allowedValues = $this->getBackgroundPositionAllowableValues(); - if (!in_array($background_position, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'background_position', must be one of '%s'", - $background_position, - implode("', '", $allowedValues) - ) - ); - } $this->container['background_position'] = $background_position; return $this; diff --git a/codegen/Cms/Blogs/BlogPosts/Model/BatchInputBlogPost.php b/codegen/Cms/Blogs/BlogPosts/Model/BatchInputBlogPost.php index 21e2c0fb..df3e9923 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/BatchInputBlogPost.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/BatchInputBlogPost.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/BlogPosts/Model/BatchInputJsonNode.php b/codegen/Cms/Blogs/BlogPosts/Model/BatchInputJsonNode.php index 64c725e5..f900b5f0 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/BatchInputJsonNode.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/BatchInputJsonNode.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/BlogPosts/Model/BatchInputString.php b/codegen/Cms/Blogs/BlogPosts/Model/BatchInputString.php index 029d84c5..dbaae51b 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/BatchInputString.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/BatchInputString.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/BlogPosts/Model/BatchResponseBlogPost.php b/codegen/Cms/Blogs/BlogPosts/Model/BatchResponseBlogPost.php index 0ab571b6..6cb4df66 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/BatchResponseBlogPost.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/BatchResponseBlogPost.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,12 +58,12 @@ class BatchResponseBlogPost implements ModelInterface, ArrayAccess, \JsonSeriali * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', - 'results' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[]', + 'completed_at' => '\DateTime', 'requested_at' => '\DateTime', 'started_at' => '\DateTime', - 'completed_at' => '\DateTime', - 'links' => 'array' + 'links' => 'array', + 'results' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[]', + 'status' => 'string' ]; /** @@ -74,12 +74,12 @@ class BatchResponseBlogPost implements ModelInterface, ArrayAccess, \JsonSeriali * @psalm-var array */ protected static $openAPIFormats = [ - 'status' => null, - 'results' => null, + 'completed_at' => 'date-time', 'requested_at' => 'date-time', 'started_at' => 'date-time', - 'completed_at' => 'date-time', - 'links' => null + 'links' => null, + 'results' => null, + 'status' => null ]; /** @@ -109,12 +109,12 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'status' => 'status', - 'results' => 'results', + 'completed_at' => 'completedAt', 'requested_at' => 'requestedAt', 'started_at' => 'startedAt', - 'completed_at' => 'completedAt', - 'links' => 'links' + 'links' => 'links', + 'results' => 'results', + 'status' => 'status' ]; /** @@ -123,12 +123,12 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'status' => 'setStatus', - 'results' => 'setResults', + 'completed_at' => 'setCompletedAt', 'requested_at' => 'setRequestedAt', 'started_at' => 'setStartedAt', - 'completed_at' => 'setCompletedAt', - 'links' => 'setLinks' + 'links' => 'setLinks', + 'results' => 'setResults', + 'status' => 'setStatus' ]; /** @@ -137,12 +137,12 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'status' => 'getStatus', - 'results' => 'getResults', + 'completed_at' => 'getCompletedAt', 'requested_at' => 'getRequestedAt', 'started_at' => 'getStartedAt', - 'completed_at' => 'getCompletedAt', - 'links' => 'getLinks' + 'links' => 'getLinks', + 'results' => 'getResults', + 'status' => 'getStatus' ]; /** @@ -221,12 +221,12 @@ public function getStatusAllowableValues() */ public function __construct(array $data = null) { - $this->container['status'] = $data['status'] ?? null; - $this->container['results'] = $data['results'] ?? null; + $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['requested_at'] = $data['requested_at'] ?? null; $this->container['started_at'] = $data['started_at'] ?? null; - $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['results'] = $data['results'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -238,6 +238,15 @@ public function listInvalidProperties() { $invalidProperties = []; + 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['status'] === null) { $invalidProperties[] = "'status' can't be null"; } @@ -250,15 +259,6 @@ public function listInvalidProperties() ); } - 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['completed_at'] === null) { - $invalidProperties[] = "'completed_at' can't be null"; - } return $invalidProperties; } @@ -275,59 +275,25 @@ public function valid() /** - * Gets status - * - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string $status Status of batch operation. - * - * @return self - */ - public function setStatus($status) - { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets results + * Gets completed_at * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[] + * @return \DateTime */ - public function getResults() + public function getCompletedAt() { - return $this->container['results']; + return $this->container['completed_at']; } /** - * Sets results + * Sets completed_at * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[] $results Results of batch operation. + * @param \DateTime $completed_at Time of batch operation completion. * * @return self */ - public function setResults($results) + public function setCompletedAt($completed_at) { - $this->container['results'] = $results; + $this->container['completed_at'] = $completed_at; return $this; } @@ -381,49 +347,83 @@ public function setStartedAt($started_at) } /** - * Gets completed_at + * Gets links * - * @return \DateTime + * @return array|null */ - public function getCompletedAt() + public function getLinks() { - return $this->container['completed_at']; + return $this->container['links']; } /** - * Sets completed_at + * Sets links * - * @param \DateTime $completed_at Time of batch operation completion. + * @param array|null $links Links associated with batch operation. * * @return self */ - public function setCompletedAt($completed_at) + public function setLinks($links) { - $this->container['completed_at'] = $completed_at; + $this->container['links'] = $links; return $this; } /** - * Gets links + * Gets results * - * @return array|null + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[] */ - public function getLinks() + public function getResults() { - return $this->container['links']; + return $this->container['results']; } /** - * Sets links + * Sets results * - * @param array|null $links Links associated with batch operation. + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[] $results Results of batch operation. * * @return self */ - public function setLinks($links) + public function setResults($results) { - $this->container['links'] = $links; + $this->container['results'] = $results; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status Status of batch operation. + * + * @return self + */ + public function setStatus($status) + { + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/BatchResponseBlogPostWithErrors.php b/codegen/Cms/Blogs/BlogPosts/Model/BatchResponseBlogPostWithErrors.php index 08ea0c36..806cbcc4 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/BatchResponseBlogPostWithErrors.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/BatchResponseBlogPostWithErrors.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,14 +58,14 @@ class BatchResponseBlogPostWithErrors implements ModelInterface, ArrayAccess, \J * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', - 'results' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[]', + 'completed_at' => '\DateTime', 'num_errors' => 'int', - 'errors' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\StandardError[]', 'requested_at' => '\DateTime', 'started_at' => '\DateTime', - 'completed_at' => '\DateTime', - 'links' => 'array' + 'links' => 'array', + 'results' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[]', + 'errors' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\StandardError[]', + 'status' => 'string' ]; /** @@ -76,14 +76,14 @@ class BatchResponseBlogPostWithErrors implements ModelInterface, ArrayAccess, \J * @psalm-var array */ protected static $openAPIFormats = [ - 'status' => null, - 'results' => null, + 'completed_at' => 'date-time', 'num_errors' => 'int32', - 'errors' => null, 'requested_at' => 'date-time', 'started_at' => 'date-time', - 'completed_at' => 'date-time', - 'links' => null + 'links' => null, + 'results' => null, + 'errors' => null, + 'status' => null ]; /** @@ -113,14 +113,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'status' => 'status', - 'results' => 'results', + 'completed_at' => 'completedAt', 'num_errors' => 'numErrors', - 'errors' => 'errors', 'requested_at' => 'requestedAt', 'started_at' => 'startedAt', - 'completed_at' => 'completedAt', - 'links' => 'links' + 'links' => 'links', + 'results' => 'results', + 'errors' => 'errors', + 'status' => 'status' ]; /** @@ -129,14 +129,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'status' => 'setStatus', - 'results' => 'setResults', + 'completed_at' => 'setCompletedAt', 'num_errors' => 'setNumErrors', - 'errors' => 'setErrors', 'requested_at' => 'setRequestedAt', 'started_at' => 'setStartedAt', - 'completed_at' => 'setCompletedAt', - 'links' => 'setLinks' + 'links' => 'setLinks', + 'results' => 'setResults', + 'errors' => 'setErrors', + 'status' => 'setStatus' ]; /** @@ -145,14 +145,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'status' => 'getStatus', - 'results' => 'getResults', + 'completed_at' => 'getCompletedAt', 'num_errors' => 'getNumErrors', - 'errors' => 'getErrors', 'requested_at' => 'getRequestedAt', 'started_at' => 'getStartedAt', - 'completed_at' => 'getCompletedAt', - 'links' => 'getLinks' + 'links' => 'getLinks', + 'results' => 'getResults', + 'errors' => 'getErrors', + 'status' => 'getStatus' ]; /** @@ -231,14 +231,14 @@ public function getStatusAllowableValues() */ public function __construct(array $data = null) { - $this->container['status'] = $data['status'] ?? null; - $this->container['results'] = $data['results'] ?? null; + $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['num_errors'] = $data['num_errors'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['requested_at'] = $data['requested_at'] ?? null; $this->container['started_at'] = $data['started_at'] ?? null; - $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['results'] = $data['results'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -250,6 +250,15 @@ public function listInvalidProperties() { $invalidProperties = []; + 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['status'] === null) { $invalidProperties[] = "'status' can't be null"; } @@ -262,15 +271,6 @@ public function listInvalidProperties() ); } - 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['completed_at'] === null) { - $invalidProperties[] = "'completed_at' can't be null"; - } return $invalidProperties; } @@ -287,203 +287,203 @@ public function valid() /** - * Gets status + * Gets completed_at * - * @return string + * @return \DateTime */ - public function getStatus() + public function getCompletedAt() { - return $this->container['status']; + return $this->container['completed_at']; } /** - * Sets status + * Sets completed_at * - * @param string $status Status of batch operation. + * @param \DateTime $completed_at Time of batch operation completion. * * @return self */ - public function setStatus($status) + public function setCompletedAt($completed_at) { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; + $this->container['completed_at'] = $completed_at; return $this; } /** - * Gets results + * Gets num_errors * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[] + * @return int|null */ - public function getResults() + public function getNumErrors() { - return $this->container['results']; + return $this->container['num_errors']; } /** - * Sets results + * Sets num_errors * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[] $results Results of batch operation. + * @param int|null $num_errors Number of errors. * * @return self */ - public function setResults($results) + public function setNumErrors($num_errors) { - $this->container['results'] = $results; + $this->container['num_errors'] = $num_errors; return $this; } /** - * Gets num_errors + * Gets requested_at * - * @return int|null + * @return \DateTime|null */ - public function getNumErrors() + public function getRequestedAt() { - return $this->container['num_errors']; + return $this->container['requested_at']; } /** - * Sets num_errors + * Sets requested_at * - * @param int|null $num_errors Number of errors. + * @param \DateTime|null $requested_at Time of batch operation request. * * @return self */ - public function setNumErrors($num_errors) + public function setRequestedAt($requested_at) { - $this->container['num_errors'] = $num_errors; + $this->container['requested_at'] = $requested_at; return $this; } /** - * Gets errors + * Gets started_at * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\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\Blogs\BlogPosts\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) { - $this->container['errors'] = $errors; + $this->container['started_at'] = $started_at; 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) { - $this->container['requested_at'] = $requested_at; + $this->container['links'] = $links; return $this; } /** - * Gets started_at + * Gets results * - * @return \DateTime + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[] */ - public function getStartedAt() + public function getResults() { - return $this->container['started_at']; + return $this->container['results']; } /** - * Sets started_at + * Sets results * - * @param \DateTime $started_at Time of batch operation start. + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[] $results Results of batch operation. * * @return self */ - public function setStartedAt($started_at) + public function setResults($results) { - $this->container['started_at'] = $started_at; + $this->container['results'] = $results; return $this; } /** - * Gets completed_at + * Gets errors * - * @return \DateTime + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\StandardError[]|null */ - public function getCompletedAt() + public function getErrors() { - return $this->container['completed_at']; + return $this->container['errors']; } /** - * Sets completed_at + * Sets errors * - * @param \DateTime $completed_at Time of batch operation completion. + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\StandardError[]|null $errors Errors in batch operation. * * @return self */ - public function setCompletedAt($completed_at) + public function setErrors($errors) { - $this->container['completed_at'] = $completed_at; + $this->container['errors'] = $errors; return $this; } /** - * Gets links + * Gets status * - * @return array|null + * @return string */ - public function getLinks() + public function getStatus() { - return $this->container['links']; + return $this->container['status']; } /** - * Sets links + * Sets status * - * @param array|null $links Links associated with batch operation. + * @param string $status Status of batch operation. * * @return self */ - public function setLinks($links) + public function setStatus($status) { - $this->container['links'] = $links; + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/BlogPost.php b/codegen/Cms/Blogs/BlogPosts/Model/BlogPost.php index ba45c861..41496dcb 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/BlogPost.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/BlogPost.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,67 +58,67 @@ class BlogPost implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'publish_date' => '\DateTime', + 'language' => 'string', + 'enable_layout_stylesheets' => 'bool', + 'meta_description' => 'string', + 'attached_stylesheets' => 'array[]', + 'password' => 'string', + 'html_title' => 'string', + 'publish_immediately' => 'bool', + 'translations' => 'array', 'id' => 'string', - 'slug' => 'string', - 'content_group_id' => 'string', - 'campaign' => 'string', - 'category_id' => 'int', 'state' => 'string', - 'name' => 'string', - 'mab_experiment_id' => 'string', - 'archived' => 'bool', - 'author_name' => 'string', - 'ab_test_id' => 'string', + 'slug' => 'string', 'created_by_id' => 'string', + 'rss_body' => 'string', + 'currently_published' => 'bool', + 'archived_in_dashboard' => 'bool', + 'created' => '\DateTime', + 'content_type_category' => 'string', + 'mab_experiment_id' => 'string', 'updated_by_id' => 'string', - 'domain' => 'string', - 'ab_status' => 'string', + 'translated_from_id' => 'string', 'folder_id' => 'string', 'widget_containers' => 'array', - 'widgets' => 'array', - 'language' => 'string', - 'translated_from_id' => 'string', - 'translations' => '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', - 'blog_author_id' => 'string', + 'enable_domain_stylesheets' => 'bool', + 'include_default_custom_css' => 'bool', + 'layout_sections' => 'array', + 'updated' => '\DateTime', + 'footer_html' => 'string', 'tag_ids' => 'int[]', - 'html_title' => 'string', - 'enable_google_amp_output_override' => 'bool', - 'use_featured_image' => 'bool', - 'post_body' => 'string', + 'widgets' => 'array', 'post_summary' => 'string', - 'rss_body' => 'string', - 'rss_summary' => 'string', - 'currently_published' => 'bool', - 'page_expiry_enabled' => 'bool', - 'page_expiry_redirect_id' => 'int', + 'head_html' => 'string', 'page_expiry_redirect_url' => 'string', - 'page_expiry_date' => 'int', - 'include_default_custom_css' => 'bool', - 'enable_layout_stylesheets' => 'bool', - 'enable_domain_stylesheets' => 'bool', - 'publish_immediately' => 'bool', - 'featured_image' => 'string', + 'ab_status' => 'string', + 'use_featured_image' => 'bool', + 'ab_test_id' => 'string', 'featured_image_alt_text' => 'string', - 'link_rel_canonical_url' => 'string', - 'content_type_category' => 'string', - 'attached_stylesheets' => 'array[]', - 'meta_description' => 'string', - 'head_html' => 'string', - 'footer_html' => 'string', - 'archived_in_dashboard' => 'bool', - 'public_access_rules_enabled' => 'bool', + 'blog_author_id' => 'string', + 'content_group_id' => 'string', + 'rss_summary' => 'string', + 'page_expiry_enabled' => 'bool', + 'url' => 'string', 'public_access_rules' => 'object[]', - 'layout_sections' => 'array', + 'enable_google_amp_output_override' => 'bool', + 'archived_at' => 'int', + 'post_body' => 'string', 'theme_settings_values' => 'array', - 'url' => 'string', - 'password' => 'string', + 'page_expiry_date' => 'int', + 'public_access_rules_enabled' => 'bool', 'current_state' => 'string', - 'publish_date' => '\DateTime', - 'created' => '\DateTime', - 'updated' => '\DateTime', - 'deleted_at' => '\DateTime' + 'category_id' => 'int', + 'link_rel_canonical_url' => 'string' ]; /** @@ -129,67 +129,67 @@ class BlogPost implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'publish_date' => 'date-time', + 'language' => null, + 'enable_layout_stylesheets' => null, + 'meta_description' => null, + 'attached_stylesheets' => null, + 'password' => null, + 'html_title' => null, + 'publish_immediately' => null, + 'translations' => null, 'id' => null, - 'slug' => null, - 'content_group_id' => null, - 'campaign' => null, - 'category_id' => 'int32', 'state' => null, - 'name' => null, - 'mab_experiment_id' => null, - 'archived' => null, - 'author_name' => null, - 'ab_test_id' => null, + 'slug' => null, 'created_by_id' => null, + 'rss_body' => null, + 'currently_published' => null, + 'archived_in_dashboard' => null, + 'created' => 'date-time', + 'content_type_category' => null, + 'mab_experiment_id' => null, 'updated_by_id' => null, - 'domain' => null, - 'ab_status' => null, + 'translated_from_id' => null, 'folder_id' => null, 'widget_containers' => null, - 'widgets' => null, - 'language' => null, - 'translated_from_id' => null, - 'translations' => 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, - 'blog_author_id' => null, + 'enable_domain_stylesheets' => null, + 'include_default_custom_css' => null, + 'layout_sections' => null, + 'updated' => 'date-time', + 'footer_html' => null, 'tag_ids' => 'int64', - 'html_title' => null, - 'enable_google_amp_output_override' => null, - 'use_featured_image' => null, - 'post_body' => null, + 'widgets' => null, 'post_summary' => null, - 'rss_body' => null, - 'rss_summary' => null, - 'currently_published' => null, - 'page_expiry_enabled' => null, - 'page_expiry_redirect_id' => 'int64', + 'head_html' => null, 'page_expiry_redirect_url' => null, - 'page_expiry_date' => 'int64', - 'include_default_custom_css' => null, - 'enable_layout_stylesheets' => null, - 'enable_domain_stylesheets' => null, - 'publish_immediately' => null, - 'featured_image' => null, + 'ab_status' => null, + 'use_featured_image' => null, + 'ab_test_id' => null, 'featured_image_alt_text' => null, - 'link_rel_canonical_url' => null, - 'content_type_category' => null, - 'attached_stylesheets' => null, - 'meta_description' => null, - 'head_html' => null, - 'footer_html' => null, - 'archived_in_dashboard' => null, - 'public_access_rules_enabled' => null, + 'blog_author_id' => null, + 'content_group_id' => null, + 'rss_summary' => null, + 'page_expiry_enabled' => null, + 'url' => null, 'public_access_rules' => null, - 'layout_sections' => null, + 'enable_google_amp_output_override' => null, + 'archived_at' => 'int64', + 'post_body' => null, 'theme_settings_values' => null, - 'url' => null, - 'password' => null, + 'page_expiry_date' => 'int64', + 'public_access_rules_enabled' => null, 'current_state' => null, - 'publish_date' => 'date-time', - 'created' => 'date-time', - 'updated' => 'date-time', - 'deleted_at' => 'date-time' + 'category_id' => 'int32', + 'link_rel_canonical_url' => null ]; /** @@ -219,67 +219,67 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ + 'publish_date' => 'publishDate', + 'language' => 'language', + 'enable_layout_stylesheets' => 'enableLayoutStylesheets', + 'meta_description' => 'metaDescription', + 'attached_stylesheets' => 'attachedStylesheets', + 'password' => 'password', + 'html_title' => 'htmlTitle', + 'publish_immediately' => 'publishImmediately', + 'translations' => 'translations', 'id' => 'id', - 'slug' => 'slug', - 'content_group_id' => 'contentGroupId', - 'campaign' => 'campaign', - 'category_id' => 'categoryId', 'state' => 'state', - 'name' => 'name', - 'mab_experiment_id' => 'mabExperimentId', - 'archived' => 'archived', - 'author_name' => 'authorName', - 'ab_test_id' => 'abTestId', + 'slug' => 'slug', 'created_by_id' => 'createdById', + 'rss_body' => 'rssBody', + 'currently_published' => 'currentlyPublished', + 'archived_in_dashboard' => 'archivedInDashboard', + 'created' => 'created', + 'content_type_category' => 'contentTypeCategory', + 'mab_experiment_id' => 'mabExperimentId', 'updated_by_id' => 'updatedById', - 'domain' => 'domain', - 'ab_status' => 'abStatus', + 'translated_from_id' => 'translatedFromId', 'folder_id' => 'folderId', 'widget_containers' => 'widgetContainers', - 'widgets' => 'widgets', - 'language' => 'language', - 'translated_from_id' => 'translatedFromId', - 'translations' => 'translations', + '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', - 'blog_author_id' => 'blogAuthorId', + 'enable_domain_stylesheets' => 'enableDomainStylesheets', + 'include_default_custom_css' => 'includeDefaultCustomCss', + 'layout_sections' => 'layoutSections', + 'updated' => 'updated', + 'footer_html' => 'footerHtml', 'tag_ids' => 'tagIds', - 'html_title' => 'htmlTitle', - 'enable_google_amp_output_override' => 'enableGoogleAmpOutputOverride', - 'use_featured_image' => 'useFeaturedImage', - 'post_body' => 'postBody', + 'widgets' => 'widgets', 'post_summary' => 'postSummary', - 'rss_body' => 'rssBody', - 'rss_summary' => 'rssSummary', - 'currently_published' => 'currentlyPublished', - 'page_expiry_enabled' => 'pageExpiryEnabled', - 'page_expiry_redirect_id' => 'pageExpiryRedirectId', + 'head_html' => 'headHtml', 'page_expiry_redirect_url' => 'pageExpiryRedirectUrl', - 'page_expiry_date' => 'pageExpiryDate', - 'include_default_custom_css' => 'includeDefaultCustomCss', - 'enable_layout_stylesheets' => 'enableLayoutStylesheets', - 'enable_domain_stylesheets' => 'enableDomainStylesheets', - 'publish_immediately' => 'publishImmediately', - 'featured_image' => 'featuredImage', + 'ab_status' => 'abStatus', + 'use_featured_image' => 'useFeaturedImage', + 'ab_test_id' => 'abTestId', 'featured_image_alt_text' => 'featuredImageAltText', - 'link_rel_canonical_url' => 'linkRelCanonicalUrl', - 'content_type_category' => 'contentTypeCategory', - 'attached_stylesheets' => 'attachedStylesheets', - 'meta_description' => 'metaDescription', - 'head_html' => 'headHtml', - 'footer_html' => 'footerHtml', - 'archived_in_dashboard' => 'archivedInDashboard', - 'public_access_rules_enabled' => 'publicAccessRulesEnabled', + 'blog_author_id' => 'blogAuthorId', + 'content_group_id' => 'contentGroupId', + 'rss_summary' => 'rssSummary', + 'page_expiry_enabled' => 'pageExpiryEnabled', + 'url' => 'url', 'public_access_rules' => 'publicAccessRules', - 'layout_sections' => 'layoutSections', + 'enable_google_amp_output_override' => 'enableGoogleAmpOutputOverride', + 'archived_at' => 'archivedAt', + 'post_body' => 'postBody', 'theme_settings_values' => 'themeSettingsValues', - 'url' => 'url', - 'password' => 'password', + 'page_expiry_date' => 'pageExpiryDate', + 'public_access_rules_enabled' => 'publicAccessRulesEnabled', 'current_state' => 'currentState', - 'publish_date' => 'publishDate', - 'created' => 'created', - 'updated' => 'updated', - 'deleted_at' => 'deletedAt' + 'category_id' => 'categoryId', + 'link_rel_canonical_url' => 'linkRelCanonicalUrl' ]; /** @@ -288,67 +288,67 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ + 'publish_date' => 'setPublishDate', + 'language' => 'setLanguage', + 'enable_layout_stylesheets' => 'setEnableLayoutStylesheets', + 'meta_description' => 'setMetaDescription', + 'attached_stylesheets' => 'setAttachedStylesheets', + 'password' => 'setPassword', + 'html_title' => 'setHtmlTitle', + 'publish_immediately' => 'setPublishImmediately', + 'translations' => 'setTranslations', 'id' => 'setId', - 'slug' => 'setSlug', - 'content_group_id' => 'setContentGroupId', - 'campaign' => 'setCampaign', - 'category_id' => 'setCategoryId', 'state' => 'setState', - 'name' => 'setName', - 'mab_experiment_id' => 'setMabExperimentId', - 'archived' => 'setArchived', - 'author_name' => 'setAuthorName', - 'ab_test_id' => 'setAbTestId', + 'slug' => 'setSlug', 'created_by_id' => 'setCreatedById', + 'rss_body' => 'setRssBody', + 'currently_published' => 'setCurrentlyPublished', + 'archived_in_dashboard' => 'setArchivedInDashboard', + 'created' => 'setCreated', + 'content_type_category' => 'setContentTypeCategory', + 'mab_experiment_id' => 'setMabExperimentId', 'updated_by_id' => 'setUpdatedById', - 'domain' => 'setDomain', - 'ab_status' => 'setAbStatus', + 'translated_from_id' => 'setTranslatedFromId', 'folder_id' => 'setFolderId', 'widget_containers' => 'setWidgetContainers', - 'widgets' => 'setWidgets', - 'language' => 'setLanguage', - 'translated_from_id' => 'setTranslatedFromId', - 'translations' => 'setTranslations', + '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', - 'blog_author_id' => 'setBlogAuthorId', + 'enable_domain_stylesheets' => 'setEnableDomainStylesheets', + 'include_default_custom_css' => 'setIncludeDefaultCustomCss', + 'layout_sections' => 'setLayoutSections', + 'updated' => 'setUpdated', + 'footer_html' => 'setFooterHtml', 'tag_ids' => 'setTagIds', - 'html_title' => 'setHtmlTitle', - 'enable_google_amp_output_override' => 'setEnableGoogleAmpOutputOverride', - 'use_featured_image' => 'setUseFeaturedImage', - 'post_body' => 'setPostBody', + 'widgets' => 'setWidgets', 'post_summary' => 'setPostSummary', - 'rss_body' => 'setRssBody', - 'rss_summary' => 'setRssSummary', - 'currently_published' => 'setCurrentlyPublished', - 'page_expiry_enabled' => 'setPageExpiryEnabled', - 'page_expiry_redirect_id' => 'setPageExpiryRedirectId', + 'head_html' => 'setHeadHtml', 'page_expiry_redirect_url' => 'setPageExpiryRedirectUrl', - 'page_expiry_date' => 'setPageExpiryDate', - 'include_default_custom_css' => 'setIncludeDefaultCustomCss', - 'enable_layout_stylesheets' => 'setEnableLayoutStylesheets', - 'enable_domain_stylesheets' => 'setEnableDomainStylesheets', - 'publish_immediately' => 'setPublishImmediately', - 'featured_image' => 'setFeaturedImage', + 'ab_status' => 'setAbStatus', + 'use_featured_image' => 'setUseFeaturedImage', + 'ab_test_id' => 'setAbTestId', 'featured_image_alt_text' => 'setFeaturedImageAltText', - 'link_rel_canonical_url' => 'setLinkRelCanonicalUrl', - 'content_type_category' => 'setContentTypeCategory', - 'attached_stylesheets' => 'setAttachedStylesheets', - 'meta_description' => 'setMetaDescription', - 'head_html' => 'setHeadHtml', - 'footer_html' => 'setFooterHtml', - 'archived_in_dashboard' => 'setArchivedInDashboard', - 'public_access_rules_enabled' => 'setPublicAccessRulesEnabled', + 'blog_author_id' => 'setBlogAuthorId', + 'content_group_id' => 'setContentGroupId', + 'rss_summary' => 'setRssSummary', + 'page_expiry_enabled' => 'setPageExpiryEnabled', + 'url' => 'setUrl', 'public_access_rules' => 'setPublicAccessRules', - 'layout_sections' => 'setLayoutSections', + 'enable_google_amp_output_override' => 'setEnableGoogleAmpOutputOverride', + 'archived_at' => 'setArchivedAt', + 'post_body' => 'setPostBody', 'theme_settings_values' => 'setThemeSettingsValues', - 'url' => 'setUrl', - 'password' => 'setPassword', + 'page_expiry_date' => 'setPageExpiryDate', + 'public_access_rules_enabled' => 'setPublicAccessRulesEnabled', 'current_state' => 'setCurrentState', - 'publish_date' => 'setPublishDate', - 'created' => 'setCreated', - 'updated' => 'setUpdated', - 'deleted_at' => 'setDeletedAt' + 'category_id' => 'setCategoryId', + 'link_rel_canonical_url' => 'setLinkRelCanonicalUrl' ]; /** @@ -357,67 +357,67 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ + 'publish_date' => 'getPublishDate', + 'language' => 'getLanguage', + 'enable_layout_stylesheets' => 'getEnableLayoutStylesheets', + 'meta_description' => 'getMetaDescription', + 'attached_stylesheets' => 'getAttachedStylesheets', + 'password' => 'getPassword', + 'html_title' => 'getHtmlTitle', + 'publish_immediately' => 'getPublishImmediately', + 'translations' => 'getTranslations', 'id' => 'getId', - 'slug' => 'getSlug', - 'content_group_id' => 'getContentGroupId', - 'campaign' => 'getCampaign', - 'category_id' => 'getCategoryId', 'state' => 'getState', - 'name' => 'getName', - 'mab_experiment_id' => 'getMabExperimentId', - 'archived' => 'getArchived', - 'author_name' => 'getAuthorName', - 'ab_test_id' => 'getAbTestId', + 'slug' => 'getSlug', 'created_by_id' => 'getCreatedById', + 'rss_body' => 'getRssBody', + 'currently_published' => 'getCurrentlyPublished', + 'archived_in_dashboard' => 'getArchivedInDashboard', + 'created' => 'getCreated', + 'content_type_category' => 'getContentTypeCategory', + 'mab_experiment_id' => 'getMabExperimentId', 'updated_by_id' => 'getUpdatedById', - 'domain' => 'getDomain', - 'ab_status' => 'getAbStatus', + 'translated_from_id' => 'getTranslatedFromId', 'folder_id' => 'getFolderId', 'widget_containers' => 'getWidgetContainers', - 'widgets' => 'getWidgets', - 'language' => 'getLanguage', - 'translated_from_id' => 'getTranslatedFromId', - 'translations' => 'getTranslations', + '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', - 'blog_author_id' => 'getBlogAuthorId', + 'enable_domain_stylesheets' => 'getEnableDomainStylesheets', + 'include_default_custom_css' => 'getIncludeDefaultCustomCss', + 'layout_sections' => 'getLayoutSections', + 'updated' => 'getUpdated', + 'footer_html' => 'getFooterHtml', 'tag_ids' => 'getTagIds', - 'html_title' => 'getHtmlTitle', - 'enable_google_amp_output_override' => 'getEnableGoogleAmpOutputOverride', - 'use_featured_image' => 'getUseFeaturedImage', - 'post_body' => 'getPostBody', + 'widgets' => 'getWidgets', 'post_summary' => 'getPostSummary', - 'rss_body' => 'getRssBody', - 'rss_summary' => 'getRssSummary', - 'currently_published' => 'getCurrentlyPublished', - 'page_expiry_enabled' => 'getPageExpiryEnabled', - 'page_expiry_redirect_id' => 'getPageExpiryRedirectId', + 'head_html' => 'getHeadHtml', 'page_expiry_redirect_url' => 'getPageExpiryRedirectUrl', - 'page_expiry_date' => 'getPageExpiryDate', - 'include_default_custom_css' => 'getIncludeDefaultCustomCss', - 'enable_layout_stylesheets' => 'getEnableLayoutStylesheets', - 'enable_domain_stylesheets' => 'getEnableDomainStylesheets', - 'publish_immediately' => 'getPublishImmediately', - 'featured_image' => 'getFeaturedImage', + 'ab_status' => 'getAbStatus', + 'use_featured_image' => 'getUseFeaturedImage', + 'ab_test_id' => 'getAbTestId', 'featured_image_alt_text' => 'getFeaturedImageAltText', - 'link_rel_canonical_url' => 'getLinkRelCanonicalUrl', - 'content_type_category' => 'getContentTypeCategory', - 'attached_stylesheets' => 'getAttachedStylesheets', - 'meta_description' => 'getMetaDescription', - 'head_html' => 'getHeadHtml', - 'footer_html' => 'getFooterHtml', - 'archived_in_dashboard' => 'getArchivedInDashboard', - 'public_access_rules_enabled' => 'getPublicAccessRulesEnabled', + 'blog_author_id' => 'getBlogAuthorId', + 'content_group_id' => 'getContentGroupId', + 'rss_summary' => 'getRssSummary', + 'page_expiry_enabled' => 'getPageExpiryEnabled', + 'url' => 'getUrl', 'public_access_rules' => 'getPublicAccessRules', - 'layout_sections' => 'getLayoutSections', + 'enable_google_amp_output_override' => 'getEnableGoogleAmpOutputOverride', + 'archived_at' => 'getArchivedAt', + 'post_body' => 'getPostBody', 'theme_settings_values' => 'getThemeSettingsValues', - 'url' => 'getUrl', - 'password' => 'getPassword', + 'page_expiry_date' => 'getPageExpiryDate', + 'public_access_rules_enabled' => 'getPublicAccessRulesEnabled', 'current_state' => 'getCurrentState', - 'publish_date' => 'getPublishDate', - 'created' => 'getCreated', - 'updated' => 'getUpdated', - 'deleted_at' => 'getDeletedAt' + 'category_id' => 'getCategoryId', + 'link_rel_canonical_url' => 'getLinkRelCanonicalUrl' ]; /** @@ -461,14 +461,6 @@ public function getModelName() return self::$openAPIModelName; } - 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 LANGUAGE_AF = 'af'; public const LANGUAGE_AF_NA = 'af-na'; public const LANGUAGE_AF_ZA = 'af-za'; @@ -549,6 +541,8 @@ public function getModelName() public const LANGUAGE_CCP_IN = 'ccp-in'; public const LANGUAGE_CE = 'ce'; public const LANGUAGE_CE_RU = 'ce-ru'; + public const LANGUAGE_CEB = 'ceb'; + public const LANGUAGE_CEB_PH = 'ceb-ph'; public const LANGUAGE_CGG = 'cgg'; public const LANGUAGE_CGG_UG = 'cgg-ug'; public const LANGUAGE_CHR = 'chr'; @@ -578,6 +572,8 @@ public function getModelName() public const LANGUAGE_DE_LU = 'de-lu'; public const LANGUAGE_DJE = 'dje'; public const LANGUAGE_DJE_NE = 'dje-ne'; + public const LANGUAGE_DOI = 'doi'; + public const LANGUAGE_DOI_IN = 'doi-in'; public const LANGUAGE_DSB = 'dsb'; public const LANGUAGE_DSB_DE = 'dsb-de'; public const LANGUAGE_DUA = 'dua'; @@ -615,6 +611,7 @@ public function getModelName() public const LANGUAGE_EN_CH = 'en-ch'; public const LANGUAGE_EN_CK = 'en-ck'; public const LANGUAGE_EN_CM = 'en-cm'; + public const LANGUAGE_EN_CN = 'en-cn'; public const LANGUAGE_EN_CX = 'en-cx'; public const LANGUAGE_EN_CY = 'en-cy'; public const LANGUAGE_EN_DE = 'en-de'; @@ -658,6 +655,7 @@ public function getModelName() public const LANGUAGE_EN_MT = 'en-mt'; public const LANGUAGE_EN_MU = 'en-mu'; public const LANGUAGE_EN_MW = 'en-mw'; + public const LANGUAGE_EN_MX = 'en-mx'; public const LANGUAGE_EN_MY = 'en-my'; public const LANGUAGE_EN_NA = 'en-na'; public const LANGUAGE_EN_NF = 'en-nf'; @@ -742,9 +740,17 @@ public function getModelName() public const LANGUAGE_FA_AF = 'fa-af'; public const LANGUAGE_FA_IR = 'fa-ir'; public const LANGUAGE_FF = 'ff'; + public const LANGUAGE_FF_BF = 'ff-bf'; public const LANGUAGE_FF_CM = 'ff-cm'; + public const LANGUAGE_FF_GH = 'ff-gh'; + public const LANGUAGE_FF_GM = 'ff-gm'; public const LANGUAGE_FF_GN = 'ff-gn'; + public const LANGUAGE_FF_GW = 'ff-gw'; + public const LANGUAGE_FF_LR = 'ff-lr'; public const LANGUAGE_FF_MR = 'ff-mr'; + public const LANGUAGE_FF_NE = 'ff-ne'; + public const LANGUAGE_FF_NG = 'ff-ng'; + public const LANGUAGE_FF_SL = 'ff-sl'; public const LANGUAGE_FF_SN = 'ff-sn'; public const LANGUAGE_FI = 'fi'; public const LANGUAGE_FI_FI = 'fi-fi'; @@ -805,6 +811,7 @@ public function getModelName() public const LANGUAGE_FY = 'fy'; public const LANGUAGE_FY_NL = 'fy-nl'; public const LANGUAGE_GA = 'ga'; + public const LANGUAGE_GA_GB = 'ga-gb'; public const LANGUAGE_GA_IE = 'ga-ie'; public const LANGUAGE_GD = 'gd'; public const LANGUAGE_GD_GB = 'gd-gb'; @@ -838,6 +845,8 @@ public function getModelName() public const LANGUAGE_HU_HU = 'hu-hu'; public const LANGUAGE_HY = 'hy'; public const LANGUAGE_HY_AM = 'hy-am'; + public const LANGUAGE_IA = 'ia'; + public const LANGUAGE_IA_001 = 'ia-001'; public const LANGUAGE_ID = 'id'; public const LANGUAGE_IG = 'ig'; public const LANGUAGE_IG_NG = 'ig-ng'; @@ -860,6 +869,8 @@ public function getModelName() public const LANGUAGE_YI_001 = 'yi-001'; public const LANGUAGE_JMC = 'jmc'; public const LANGUAGE_JMC_TZ = 'jmc-tz'; + public const LANGUAGE_JV = 'jv'; + public const LANGUAGE_JV_ID = 'jv-id'; public const LANGUAGE_KA = 'ka'; public const LANGUAGE_KA_GE = 'ka-ge'; public const LANGUAGE_KAB = 'kab'; @@ -901,6 +912,8 @@ public function getModelName() 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_KY = 'ky'; public const LANGUAGE_KY_KG = 'ky-kg'; public const LANGUAGE_LAG = 'lag'; @@ -931,6 +944,8 @@ public function getModelName() public const LANGUAGE_LUY_KE = 'luy-ke'; public const LANGUAGE_LV = 'lv'; public const LANGUAGE_LV_LV = 'lv-lv'; + public const LANGUAGE_MAI = 'mai'; + public const LANGUAGE_MAI_IN = 'mai-in'; public const LANGUAGE_MAS = 'mas'; public const LANGUAGE_MAS_KE = 'mas-ke'; public const LANGUAGE_MAS_TZ = 'mas-tz'; @@ -944,16 +959,21 @@ public function getModelName() public const LANGUAGE_MGH_MZ = 'mgh-mz'; public const LANGUAGE_MGO = 'mgo'; public const LANGUAGE_MGO_CM = 'mgo-cm'; + public const LANGUAGE_MI = 'mi'; + public const LANGUAGE_MI_NZ = 'mi-nz'; public const LANGUAGE_MK = 'mk'; public const LANGUAGE_MK_MK = 'mk-mk'; public const LANGUAGE_ML = 'ml'; public const LANGUAGE_ML_IN = 'ml-in'; public const LANGUAGE_MN = 'mn'; public const LANGUAGE_MN_MN = 'mn-mn'; + public const LANGUAGE_MNI = 'mni'; + public const LANGUAGE_MNI_IN = 'mni-in'; public const LANGUAGE_MR = 'mr'; public const LANGUAGE_MR_IN = 'mr-in'; public const LANGUAGE_MS = 'ms'; public const LANGUAGE_MS_BN = 'ms-bn'; + public const LANGUAGE_MS_ID = 'ms-id'; public const LANGUAGE_MS_MY = 'ms-my'; public const LANGUAGE_MS_SG = 'ms-sg'; public const LANGUAGE_MT = 'mt'; @@ -1010,12 +1030,15 @@ public function getModelName() public const LANGUAGE_PA = 'pa'; public const LANGUAGE_PA_IN = 'pa-in'; public const LANGUAGE_PA_PK = 'pa-pk'; + public const LANGUAGE_PCM = 'pcm'; + public const LANGUAGE_PCM_NG = 'pcm-ng'; public const LANGUAGE_PL = 'pl'; public const LANGUAGE_PL_PL = 'pl-pl'; public const LANGUAGE_PRG = 'prg'; public const LANGUAGE_PRG_001 = 'prg-001'; public const LANGUAGE_PS = 'ps'; public const LANGUAGE_PS_AF = 'ps-af'; + public const LANGUAGE_PS_PK = 'ps-pk'; public const LANGUAGE_PT = 'pt'; public const LANGUAGE_PT_AO = 'pt-ao'; public const LANGUAGE_PT_BR = 'pt-br'; @@ -1054,13 +1077,17 @@ public function getModelName() public const LANGUAGE_RWK = 'rwk'; public const LANGUAGE_RWK_TZ = 'rwk-tz'; public const LANGUAGE_SA = 'sa'; + public const LANGUAGE_SA_IN = 'sa-in'; public const LANGUAGE_SAH = 'sah'; public const LANGUAGE_SAH_RU = 'sah-ru'; public const LANGUAGE_SAQ = 'saq'; public const LANGUAGE_SAQ_KE = 'saq-ke'; + public const LANGUAGE_SAT = 'sat'; + public const LANGUAGE_SAT_IN = 'sat-in'; public const LANGUAGE_SBP = 'sbp'; public const LANGUAGE_SBP_TZ = 'sbp-tz'; public const LANGUAGE_SD = 'sd'; + public const LANGUAGE_SD_IN = 'sd-in'; public const LANGUAGE_SD_PK = 'sd-pk'; public const LANGUAGE_SE = 'se'; public const LANGUAGE_SE_FI = 'se-fi'; @@ -1099,6 +1126,8 @@ public function getModelName() public const LANGUAGE_SR_ME = 'sr-me'; public const LANGUAGE_SR_RS = 'sr-rs'; public const LANGUAGE_SR_XK = 'sr-xk'; + public const LANGUAGE_SU = 'su'; + public const LANGUAGE_SU_ID = 'su-id'; public const LANGUAGE_SV = 'sv'; public const LANGUAGE_SV_AX = 'sv-ax'; public const LANGUAGE_SV_FI = 'sv-fi'; @@ -1128,6 +1157,7 @@ public function getModelName() public const LANGUAGE_TI_ET = 'ti-et'; public const LANGUAGE_TK = 'tk'; public const LANGUAGE_TK_TM = 'tk-tm'; + public const LANGUAGE_TL = 'tl'; public const LANGUAGE_TO = 'to'; public const LANGUAGE_TO_TO = 'to-to'; public const LANGUAGE_TR = 'tr'; @@ -1161,6 +1191,8 @@ public function getModelName() public const LANGUAGE_WAE_CH = 'wae-ch'; public const LANGUAGE_WO = 'wo'; public const LANGUAGE_WO_SN = 'wo-sn'; + public const LANGUAGE_XH = 'xh'; + public const LANGUAGE_XH_ZA = 'xh-za'; public const LANGUAGE_XOG = 'xog'; public const LANGUAGE_XOG_UG = 'xog-ug'; public const LANGUAGE_YAV = 'yav'; @@ -1193,6 +1225,17 @@ public function getModelName() 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'; @@ -1225,25 +1268,6 @@ public function getModelName() 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_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 * @@ -1332,6 +1356,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_CCP_IN, self::LANGUAGE_CE, self::LANGUAGE_CE_RU, + self::LANGUAGE_CEB, + self::LANGUAGE_CEB_PH, self::LANGUAGE_CGG, self::LANGUAGE_CGG_UG, self::LANGUAGE_CHR, @@ -1361,6 +1387,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_DE_LU, self::LANGUAGE_DJE, self::LANGUAGE_DJE_NE, + self::LANGUAGE_DOI, + self::LANGUAGE_DOI_IN, self::LANGUAGE_DSB, self::LANGUAGE_DSB_DE, self::LANGUAGE_DUA, @@ -1398,6 +1426,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_EN_CH, self::LANGUAGE_EN_CK, self::LANGUAGE_EN_CM, + self::LANGUAGE_EN_CN, self::LANGUAGE_EN_CX, self::LANGUAGE_EN_CY, self::LANGUAGE_EN_DE, @@ -1441,6 +1470,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_EN_MT, self::LANGUAGE_EN_MU, self::LANGUAGE_EN_MW, + self::LANGUAGE_EN_MX, self::LANGUAGE_EN_MY, self::LANGUAGE_EN_NA, self::LANGUAGE_EN_NF, @@ -1525,9 +1555,17 @@ public function getLanguageAllowableValues() self::LANGUAGE_FA_AF, self::LANGUAGE_FA_IR, self::LANGUAGE_FF, + self::LANGUAGE_FF_BF, self::LANGUAGE_FF_CM, + self::LANGUAGE_FF_GH, + self::LANGUAGE_FF_GM, self::LANGUAGE_FF_GN, + self::LANGUAGE_FF_GW, + self::LANGUAGE_FF_LR, self::LANGUAGE_FF_MR, + self::LANGUAGE_FF_NE, + self::LANGUAGE_FF_NG, + self::LANGUAGE_FF_SL, self::LANGUAGE_FF_SN, self::LANGUAGE_FI, self::LANGUAGE_FI_FI, @@ -1588,6 +1626,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_FY, self::LANGUAGE_FY_NL, self::LANGUAGE_GA, + self::LANGUAGE_GA_GB, self::LANGUAGE_GA_IE, self::LANGUAGE_GD, self::LANGUAGE_GD_GB, @@ -1621,6 +1660,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_HU_HU, self::LANGUAGE_HY, self::LANGUAGE_HY_AM, + self::LANGUAGE_IA, + self::LANGUAGE_IA_001, self::LANGUAGE_ID, self::LANGUAGE_IG, self::LANGUAGE_IG_NG, @@ -1643,6 +1684,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_YI_001, self::LANGUAGE_JMC, self::LANGUAGE_JMC_TZ, + self::LANGUAGE_JV, + self::LANGUAGE_JV_ID, self::LANGUAGE_KA, self::LANGUAGE_KA_GE, self::LANGUAGE_KAB, @@ -1684,6 +1727,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_KSH_DE, self::LANGUAGE_KW, self::LANGUAGE_KW_GB, + self::LANGUAGE_KU, + self::LANGUAGE_KU_TR, self::LANGUAGE_KY, self::LANGUAGE_KY_KG, self::LANGUAGE_LAG, @@ -1714,6 +1759,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_LUY_KE, self::LANGUAGE_LV, self::LANGUAGE_LV_LV, + self::LANGUAGE_MAI, + self::LANGUAGE_MAI_IN, self::LANGUAGE_MAS, self::LANGUAGE_MAS_KE, self::LANGUAGE_MAS_TZ, @@ -1727,16 +1774,21 @@ public function getLanguageAllowableValues() self::LANGUAGE_MGH_MZ, self::LANGUAGE_MGO, self::LANGUAGE_MGO_CM, + self::LANGUAGE_MI, + self::LANGUAGE_MI_NZ, self::LANGUAGE_MK, self::LANGUAGE_MK_MK, self::LANGUAGE_ML, self::LANGUAGE_ML_IN, self::LANGUAGE_MN, self::LANGUAGE_MN_MN, + self::LANGUAGE_MNI, + self::LANGUAGE_MNI_IN, self::LANGUAGE_MR, self::LANGUAGE_MR_IN, self::LANGUAGE_MS, self::LANGUAGE_MS_BN, + self::LANGUAGE_MS_ID, self::LANGUAGE_MS_MY, self::LANGUAGE_MS_SG, self::LANGUAGE_MT, @@ -1793,12 +1845,15 @@ public function getLanguageAllowableValues() self::LANGUAGE_PA, self::LANGUAGE_PA_IN, self::LANGUAGE_PA_PK, + self::LANGUAGE_PCM, + self::LANGUAGE_PCM_NG, self::LANGUAGE_PL, self::LANGUAGE_PL_PL, self::LANGUAGE_PRG, self::LANGUAGE_PRG_001, self::LANGUAGE_PS, self::LANGUAGE_PS_AF, + self::LANGUAGE_PS_PK, self::LANGUAGE_PT, self::LANGUAGE_PT_AO, self::LANGUAGE_PT_BR, @@ -1837,13 +1892,17 @@ public function getLanguageAllowableValues() self::LANGUAGE_RWK, self::LANGUAGE_RWK_TZ, self::LANGUAGE_SA, + self::LANGUAGE_SA_IN, self::LANGUAGE_SAH, self::LANGUAGE_SAH_RU, self::LANGUAGE_SAQ, self::LANGUAGE_SAQ_KE, + self::LANGUAGE_SAT, + self::LANGUAGE_SAT_IN, self::LANGUAGE_SBP, self::LANGUAGE_SBP_TZ, self::LANGUAGE_SD, + self::LANGUAGE_SD_IN, self::LANGUAGE_SD_PK, self::LANGUAGE_SE, self::LANGUAGE_SE_FI, @@ -1882,6 +1941,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_SR_ME, self::LANGUAGE_SR_RS, self::LANGUAGE_SR_XK, + self::LANGUAGE_SU, + self::LANGUAGE_SU_ID, self::LANGUAGE_SV, self::LANGUAGE_SV_AX, self::LANGUAGE_SV_FI, @@ -1911,6 +1972,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_TI_ET, self::LANGUAGE_TK, self::LANGUAGE_TK_TM, + self::LANGUAGE_TL, self::LANGUAGE_TO, self::LANGUAGE_TO_TO, self::LANGUAGE_TR, @@ -1944,6 +2006,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_WAE_CH, self::LANGUAGE_WO, self::LANGUAGE_WO_SN, + self::LANGUAGE_XH, + self::LANGUAGE_XH_ZA, self::LANGUAGE_XOG, self::LANGUAGE_XOG_UG, self::LANGUAGE_YAV, @@ -1987,6 +2051,28 @@ public function getContentTypeCategoryAllowableValues() 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, ]; } @@ -2047,67 +2133,67 @@ public function getCurrentStateAllowableValues() */ public function __construct(array $data = null) { + $this->container['publish_date'] = $data['publish_date'] ?? null; + $this->container['language'] = $data['language'] ?? null; + $this->container['enable_layout_stylesheets'] = $data['enable_layout_stylesheets'] ?? null; + $this->container['meta_description'] = $data['meta_description'] ?? null; + $this->container['attached_stylesheets'] = $data['attached_stylesheets'] ?? null; + $this->container['password'] = $data['password'] ?? null; + $this->container['html_title'] = $data['html_title'] ?? null; + $this->container['publish_immediately'] = $data['publish_immediately'] ?? null; + $this->container['translations'] = $data['translations'] ?? null; $this->container['id'] = $data['id'] ?? null; - $this->container['slug'] = $data['slug'] ?? null; - $this->container['content_group_id'] = $data['content_group_id'] ?? null; - $this->container['campaign'] = $data['campaign'] ?? null; - $this->container['category_id'] = $data['category_id'] ?? null; $this->container['state'] = $data['state'] ?? null; - $this->container['name'] = $data['name'] ?? null; - $this->container['mab_experiment_id'] = $data['mab_experiment_id'] ?? null; - $this->container['archived'] = $data['archived'] ?? null; - $this->container['author_name'] = $data['author_name'] ?? null; - $this->container['ab_test_id'] = $data['ab_test_id'] ?? null; + $this->container['slug'] = $data['slug'] ?? null; $this->container['created_by_id'] = $data['created_by_id'] ?? null; + $this->container['rss_body'] = $data['rss_body'] ?? null; + $this->container['currently_published'] = $data['currently_published'] ?? null; + $this->container['archived_in_dashboard'] = $data['archived_in_dashboard'] ?? null; + $this->container['created'] = $data['created'] ?? null; + $this->container['content_type_category'] = $data['content_type_category'] ?? null; + $this->container['mab_experiment_id'] = $data['mab_experiment_id'] ?? null; $this->container['updated_by_id'] = $data['updated_by_id'] ?? null; - $this->container['domain'] = $data['domain'] ?? null; - $this->container['ab_status'] = $data['ab_status'] ?? null; + $this->container['translated_from_id'] = $data['translated_from_id'] ?? null; $this->container['folder_id'] = $data['folder_id'] ?? null; $this->container['widget_containers'] = $data['widget_containers'] ?? null; - $this->container['widgets'] = $data['widgets'] ?? null; - $this->container['language'] = $data['language'] ?? null; - $this->container['translated_from_id'] = $data['translated_from_id'] ?? null; - $this->container['translations'] = $data['translations'] ?? null; + $this->container['page_expiry_redirect_id'] = $data['page_expiry_redirect_id'] ?? null; $this->container['dynamic_page_data_source_type'] = $data['dynamic_page_data_source_type'] ?? null; + $this->container['featured_image'] = $data['featured_image'] ?? null; + $this->container['author_name'] = $data['author_name'] ?? null; + $this->container['domain'] = $data['domain'] ?? null; + $this->container['name'] = $data['name'] ?? null; + $this->container['dynamic_page_hub_db_table_id'] = $data['dynamic_page_hub_db_table_id'] ?? null; + $this->container['campaign'] = $data['campaign'] ?? null; $this->container['dynamic_page_data_source_id'] = $data['dynamic_page_data_source_id'] ?? null; - $this->container['blog_author_id'] = $data['blog_author_id'] ?? null; + $this->container['enable_domain_stylesheets'] = $data['enable_domain_stylesheets'] ?? null; + $this->container['include_default_custom_css'] = $data['include_default_custom_css'] ?? null; + $this->container['layout_sections'] = $data['layout_sections'] ?? null; + $this->container['updated'] = $data['updated'] ?? null; + $this->container['footer_html'] = $data['footer_html'] ?? null; $this->container['tag_ids'] = $data['tag_ids'] ?? null; - $this->container['html_title'] = $data['html_title'] ?? null; - $this->container['enable_google_amp_output_override'] = $data['enable_google_amp_output_override'] ?? null; - $this->container['use_featured_image'] = $data['use_featured_image'] ?? null; - $this->container['post_body'] = $data['post_body'] ?? null; + $this->container['widgets'] = $data['widgets'] ?? null; $this->container['post_summary'] = $data['post_summary'] ?? null; - $this->container['rss_body'] = $data['rss_body'] ?? null; - $this->container['rss_summary'] = $data['rss_summary'] ?? null; - $this->container['currently_published'] = $data['currently_published'] ?? null; - $this->container['page_expiry_enabled'] = $data['page_expiry_enabled'] ?? null; - $this->container['page_expiry_redirect_id'] = $data['page_expiry_redirect_id'] ?? null; + $this->container['head_html'] = $data['head_html'] ?? null; $this->container['page_expiry_redirect_url'] = $data['page_expiry_redirect_url'] ?? null; - $this->container['page_expiry_date'] = $data['page_expiry_date'] ?? null; - $this->container['include_default_custom_css'] = $data['include_default_custom_css'] ?? null; - $this->container['enable_layout_stylesheets'] = $data['enable_layout_stylesheets'] ?? null; - $this->container['enable_domain_stylesheets'] = $data['enable_domain_stylesheets'] ?? null; - $this->container['publish_immediately'] = $data['publish_immediately'] ?? null; - $this->container['featured_image'] = $data['featured_image'] ?? null; + $this->container['ab_status'] = $data['ab_status'] ?? null; + $this->container['use_featured_image'] = $data['use_featured_image'] ?? null; + $this->container['ab_test_id'] = $data['ab_test_id'] ?? null; $this->container['featured_image_alt_text'] = $data['featured_image_alt_text'] ?? null; - $this->container['link_rel_canonical_url'] = $data['link_rel_canonical_url'] ?? null; - $this->container['content_type_category'] = $data['content_type_category'] ?? null; - $this->container['attached_stylesheets'] = $data['attached_stylesheets'] ?? null; - $this->container['meta_description'] = $data['meta_description'] ?? null; - $this->container['head_html'] = $data['head_html'] ?? null; - $this->container['footer_html'] = $data['footer_html'] ?? null; - $this->container['archived_in_dashboard'] = $data['archived_in_dashboard'] ?? null; - $this->container['public_access_rules_enabled'] = $data['public_access_rules_enabled'] ?? null; + $this->container['blog_author_id'] = $data['blog_author_id'] ?? null; + $this->container['content_group_id'] = $data['content_group_id'] ?? null; + $this->container['rss_summary'] = $data['rss_summary'] ?? null; + $this->container['page_expiry_enabled'] = $data['page_expiry_enabled'] ?? null; + $this->container['url'] = $data['url'] ?? null; $this->container['public_access_rules'] = $data['public_access_rules'] ?? null; - $this->container['layout_sections'] = $data['layout_sections'] ?? null; + $this->container['enable_google_amp_output_override'] = $data['enable_google_amp_output_override'] ?? null; + $this->container['archived_at'] = $data['archived_at'] ?? null; + $this->container['post_body'] = $data['post_body'] ?? null; $this->container['theme_settings_values'] = $data['theme_settings_values'] ?? null; - $this->container['url'] = $data['url'] ?? null; - $this->container['password'] = $data['password'] ?? null; + $this->container['page_expiry_date'] = $data['page_expiry_date'] ?? null; + $this->container['public_access_rules_enabled'] = $data['public_access_rules_enabled'] ?? null; $this->container['current_state'] = $data['current_state'] ?? null; - $this->container['publish_date'] = $data['publish_date'] ?? null; - $this->container['created'] = $data['created'] ?? null; - $this->container['updated'] = $data['updated'] ?? null; - $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['category_id'] = $data['category_id'] ?? null; + $this->container['link_rel_canonical_url'] = $data['link_rel_canonical_url'] ?? null; } /** @@ -2119,20 +2205,44 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; + if ($this->container['publish_date'] === null) { + $invalidProperties[] = "'publish_date' can't be null"; } - if ($this->container['slug'] === null) { - $invalidProperties[] = "'slug' can't be null"; + if ($this->container['language'] === null) { + $invalidProperties[] = "'language' can't be null"; } - if ($this->container['content_group_id'] === null) { - $invalidProperties[] = "'content_group_id' 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['campaign'] === null) { - $invalidProperties[] = "'campaign' can't be null"; + + if ($this->container['enable_layout_stylesheets'] === null) { + $invalidProperties[] = "'enable_layout_stylesheets' can't be null"; } - if ($this->container['category_id'] === null) { - $invalidProperties[] = "'category_id' can't be null"; + if ($this->container['meta_description'] === null) { + $invalidProperties[] = "'meta_description' 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['html_title'] === null) { + $invalidProperties[] = "'html_title' can't be null"; + } + if ($this->container['publish_immediately'] === null) { + $invalidProperties[] = "'publish_immediately' 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"; @@ -2141,182 +2251,164 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'state', the character length must be smaller than or equal to 25."; } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } - if ($this->container['mab_experiment_id'] === null) { - $invalidProperties[] = "'mab_experiment_id' can't be null"; - } - if ($this->container['archived'] === null) { - $invalidProperties[] = "'archived' can't be null"; - } - if ($this->container['author_name'] === null) { - $invalidProperties[] = "'author_name' can't be null"; - } - if ($this->container['ab_test_id'] === null) { - $invalidProperties[] = "'ab_test_id' can't be null"; + 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['updated_by_id'] === null) { - $invalidProperties[] = "'updated_by_id' can't be null"; + if ($this->container['rss_body'] === null) { + $invalidProperties[] = "'rss_body' can't be null"; } - if ($this->container['domain'] === null) { - $invalidProperties[] = "'domain' can't be null"; + if ($this->container['currently_published'] === null) { + $invalidProperties[] = "'currently_published' can't be null"; } - if ($this->container['ab_status'] === null) { - $invalidProperties[] = "'ab_status' can't be null"; + if ($this->container['archived_in_dashboard'] === null) { + $invalidProperties[] = "'archived_in_dashboard' can't be null"; } - $allowedValues = $this->getAbStatusAllowableValues(); - if (!is_null($this->container['ab_status']) && !in_array($this->container['ab_status'], $allowedValues, true)) { + if ($this->container['created'] === null) { + $invalidProperties[] = "'created' can't be null"; + } + if ($this->container['content_type_category'] === null) { + $invalidProperties[] = "'content_type_category' can't be null"; + } + $allowedValues = $this->getContentTypeCategoryAllowableValues(); + if (!is_null($this->container['content_type_category']) && !in_array($this->container['content_type_category'], $allowedValues, true)) { $invalidProperties[] = sprintf( - "invalid value '%s' for 'ab_status', must be one of '%s'", - $this->container['ab_status'], + "invalid value '%s' for 'content_type_category', must be one of '%s'", + $this->container['content_type_category'], implode("', '", $allowedValues) ); } + if ($this->container['mab_experiment_id'] === null) { + $invalidProperties[] = "'mab_experiment_id' can't be null"; + } + if ($this->container['updated_by_id'] === null) { + $invalidProperties[] = "'updated_by_id' can't be null"; + } + if ($this->container['translated_from_id'] === null) { + $invalidProperties[] = "'translated_from_id' can't be null"; + } if ($this->container['folder_id'] === null) { $invalidProperties[] = "'folder_id' 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"; + if ($this->container['page_expiry_redirect_id'] === null) { + $invalidProperties[] = "'page_expiry_redirect_id' can't be null"; } - if ($this->container['language'] === null) { - $invalidProperties[] = "'language' can't be null"; + if ($this->container['dynamic_page_data_source_type'] === null) { + $invalidProperties[] = "'dynamic_page_data_source_type' 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['featured_image'] === null) { + $invalidProperties[] = "'featured_image' can't be null"; } - - if ($this->container['translated_from_id'] === null) { - $invalidProperties[] = "'translated_from_id' can't be null"; + if ($this->container['author_name'] === null) { + $invalidProperties[] = "'author_name' can't be null"; } - if ($this->container['translations'] === null) { - $invalidProperties[] = "'translations' can't be null"; + if ($this->container['domain'] === null) { + $invalidProperties[] = "'domain' 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['name'] === null) { + $invalidProperties[] = "'name' 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['campaign'] === null) { + $invalidProperties[] = "'campaign' 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['blog_author_id'] === null) { - $invalidProperties[] = "'blog_author_id' can't be null"; + if ($this->container['enable_domain_stylesheets'] === null) { + $invalidProperties[] = "'enable_domain_stylesheets' can't be null"; } - if ($this->container['tag_ids'] === null) { - $invalidProperties[] = "'tag_ids' can't be null"; + if ($this->container['include_default_custom_css'] === null) { + $invalidProperties[] = "'include_default_custom_css' can't be null"; } - if ($this->container['html_title'] === null) { - $invalidProperties[] = "'html_title' can't be null"; + if ($this->container['layout_sections'] === null) { + $invalidProperties[] = "'layout_sections' can't be null"; } - if ($this->container['enable_google_amp_output_override'] === null) { - $invalidProperties[] = "'enable_google_amp_output_override' can't be null"; + if ($this->container['updated'] === null) { + $invalidProperties[] = "'updated' can't be null"; } - if ($this->container['use_featured_image'] === null) { - $invalidProperties[] = "'use_featured_image' can't be null"; + if ($this->container['footer_html'] === null) { + $invalidProperties[] = "'footer_html' can't be null"; } - if ($this->container['post_body'] === null) { - $invalidProperties[] = "'post_body' can't be null"; + if ($this->container['tag_ids'] === null) { + $invalidProperties[] = "'tag_ids' can't be null"; + } + if ($this->container['widgets'] === null) { + $invalidProperties[] = "'widgets' can't be null"; } if ($this->container['post_summary'] === null) { $invalidProperties[] = "'post_summary' can't be null"; } - if ($this->container['rss_body'] === null) { - $invalidProperties[] = "'rss_body' can't be null"; - } - if ($this->container['rss_summary'] === null) { - $invalidProperties[] = "'rss_summary' can't be null"; - } - if ($this->container['currently_published'] === null) { - $invalidProperties[] = "'currently_published' can't be null"; - } - if ($this->container['page_expiry_enabled'] === null) { - $invalidProperties[] = "'page_expiry_enabled' can't be null"; - } - if ($this->container['page_expiry_redirect_id'] === null) { - $invalidProperties[] = "'page_expiry_redirect_id' can't be null"; + if ($this->container['head_html'] === null) { + $invalidProperties[] = "'head_html' can't be null"; } if ($this->container['page_expiry_redirect_url'] === null) { $invalidProperties[] = "'page_expiry_redirect_url' can't be null"; } - if ($this->container['page_expiry_date'] === null) { - $invalidProperties[] = "'page_expiry_date' can't be null"; - } - if ($this->container['include_default_custom_css'] === null) { - $invalidProperties[] = "'include_default_custom_css' can't be null"; - } - if ($this->container['enable_layout_stylesheets'] === null) { - $invalidProperties[] = "'enable_layout_stylesheets' can't be null"; - } - if ($this->container['enable_domain_stylesheets'] === null) { - $invalidProperties[] = "'enable_domain_stylesheets' can't be null"; - } - if ($this->container['publish_immediately'] === null) { - $invalidProperties[] = "'publish_immediately' can't be null"; - } - if ($this->container['featured_image'] === null) { - $invalidProperties[] = "'featured_image' can't be null"; - } - if ($this->container['featured_image_alt_text'] === null) { - $invalidProperties[] = "'featured_image_alt_text' can't be null"; - } - if ($this->container['link_rel_canonical_url'] === null) { - $invalidProperties[] = "'link_rel_canonical_url' can't be null"; - } - if ($this->container['content_type_category'] === null) { - $invalidProperties[] = "'content_type_category' can't be null"; + if ($this->container['ab_status'] === null) { + $invalidProperties[] = "'ab_status' can't be null"; } - $allowedValues = $this->getContentTypeCategoryAllowableValues(); - if (!is_null($this->container['content_type_category']) && !in_array($this->container['content_type_category'], $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 'content_type_category', must be one of '%s'", - $this->container['content_type_category'], + "invalid value '%s' for 'ab_status', must be one of '%s'", + $this->container['ab_status'], implode("', '", $allowedValues) ); } - if ($this->container['attached_stylesheets'] === null) { - $invalidProperties[] = "'attached_stylesheets' can't be null"; + if ($this->container['use_featured_image'] === null) { + $invalidProperties[] = "'use_featured_image' can't be null"; } - if ($this->container['meta_description'] === null) { - $invalidProperties[] = "'meta_description' can't be null"; + if ($this->container['ab_test_id'] === null) { + $invalidProperties[] = "'ab_test_id' can't be null"; } - if ($this->container['head_html'] === null) { - $invalidProperties[] = "'head_html' can't be null"; + if ($this->container['featured_image_alt_text'] === null) { + $invalidProperties[] = "'featured_image_alt_text' can't be null"; } - if ($this->container['footer_html'] === null) { - $invalidProperties[] = "'footer_html' can't be null"; + if ($this->container['blog_author_id'] === null) { + $invalidProperties[] = "'blog_author_id' can't be null"; } - if ($this->container['archived_in_dashboard'] === null) { - $invalidProperties[] = "'archived_in_dashboard' can't be null"; + if ($this->container['content_group_id'] === null) { + $invalidProperties[] = "'content_group_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['rss_summary'] === null) { + $invalidProperties[] = "'rss_summary' can't be null"; + } + if ($this->container['page_expiry_enabled'] === null) { + $invalidProperties[] = "'page_expiry_enabled' can't be null"; + } + if ($this->container['url'] === null) { + $invalidProperties[] = "'url' can't be null"; } if ($this->container['public_access_rules'] === null) { $invalidProperties[] = "'public_access_rules' can't be null"; } - if ($this->container['layout_sections'] === null) { - $invalidProperties[] = "'layout_sections' can't be null"; + if ($this->container['enable_google_amp_output_override'] === null) { + $invalidProperties[] = "'enable_google_amp_output_override' can't be null"; + } + if ($this->container['archived_at'] === null) { + $invalidProperties[] = "'archived_at' can't be null"; + } + if ($this->container['post_body'] === null) { + $invalidProperties[] = "'post_body' can't be null"; } if ($this->container['theme_settings_values'] === null) { $invalidProperties[] = "'theme_settings_values' can't be null"; } - if ($this->container['url'] === null) { - $invalidProperties[] = "'url' can't be null"; + if ($this->container['page_expiry_date'] === null) { + $invalidProperties[] = "'page_expiry_date' can't be null"; } - if ($this->container['password'] === null) { - $invalidProperties[] = "'password' can't be null"; + if ($this->container['public_access_rules_enabled'] === null) { + $invalidProperties[] = "'public_access_rules_enabled' can't be null"; } if ($this->container['current_state'] === null) { $invalidProperties[] = "'current_state' can't be null"; @@ -2330,17 +2422,11 @@ public function listInvalidProperties() ); } - if ($this->container['publish_date'] === null) { - $invalidProperties[] = "'publish_date' can't be null"; - } - if ($this->container['created'] === null) { - $invalidProperties[] = "'created' can't be null"; - } - if ($this->container['updated'] === null) { - $invalidProperties[] = "'updated' can't be null"; + if ($this->container['category_id'] === null) { + $invalidProperties[] = "'category_id' can't be null"; } - if ($this->container['deleted_at'] === null) { - $invalidProperties[] = "'deleted_at' can't be null"; + if ($this->container['link_rel_canonical_url'] === null) { + $invalidProperties[] = "'link_rel_canonical_url' can't be null"; } return $invalidProperties; } @@ -2358,269 +2444,303 @@ public function valid() /** - * 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 unique ID of the Blog Post. + * @param \DateTime $publish_date The date (ISO8601 format) the blog post is to be published at. * * @return self */ - public function setId($id) + public function setPublishDate($publish_date) { - $this->container['id'] = $id; + $this->container['publish_date'] = $publish_date; return $this; } /** - * Gets slug + * Gets language * * @return string */ - public function getSlug() + public function getLanguage() { - return $this->container['slug']; + return $this->container['language']; } /** - * Sets slug + * Sets language * - * @param string $slug The path of the this blog post. This field is appended to the domain to construct the url of this post. + * @param string $language The explicitly defined ISO 639 language code of the Blog Post. If null, the Blog Post will default to the language of the ParentBlog. * * @return self */ - public function setSlug($slug) + public function setLanguage($language) { - $this->container['slug'] = $slug; + $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 content_group_id + * Gets enable_layout_stylesheets * - * @return string + * @return bool */ - public function getContentGroupId() + public function getEnableLayoutStylesheets() { - return $this->container['content_group_id']; + return $this->container['enable_layout_stylesheets']; } /** - * Sets content_group_id + * Sets enable_layout_stylesheets * - * @param string $content_group_id The ID of the parent Blog this Blog Post is associated with. + * @param bool $enable_layout_stylesheets Boolean to determine whether or not the styles from the template should be applied. * * @return self */ - public function setContentGroupId($content_group_id) + public function setEnableLayoutStylesheets($enable_layout_stylesheets) { - $this->container['content_group_id'] = $content_group_id; + $this->container['enable_layout_stylesheets'] = $enable_layout_stylesheets; return $this; } /** - * Gets campaign + * Gets meta_description * * @return string */ - public function getCampaign() + public function getMetaDescription() { - return $this->container['campaign']; + return $this->container['meta_description']; } /** - * Sets campaign + * Sets meta_description * - * @param string $campaign The GUID of the marketing campaign this Blog Post is a part of. + * @param string $meta_description A description that goes in tag on the page. * * @return self */ - public function setCampaign($campaign) + public function setMetaDescription($meta_description) { - $this->container['campaign'] = $campaign; + $this->container['meta_description'] = $meta_description; return $this; } /** - * Gets category_id + * Gets attached_stylesheets * - * @return int + * @return array[] */ - public function getCategoryId() + public function getAttachedStylesheets() { - return $this->container['category_id']; + return $this->container['attached_stylesheets']; } /** - * Sets category_id + * Sets attached_stylesheets * - * @param int $category_id ID of the type of object this is. Should always . + * @param array[] $attached_stylesheets List of stylesheets to attach to this blog post. These stylesheets are attached to just this page. Order of precedence is bottom to top, just like in the HTML. * * @return self */ - public function setCategoryId($category_id) + public function setAttachedStylesheets($attached_stylesheets) { - $this->container['category_id'] = $category_id; + $this->container['attached_stylesheets'] = $attached_stylesheets; return $this; } /** - * Gets state + * Gets password * * @return string */ - public function getState() + public function getPassword() { - return $this->container['state']; + return $this->container['password']; } /** - * Sets state + * Sets password * - * @param string $state An ENUM descibing the current state of this Blog Post. + * @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 setState($state) + public function setPassword($password) { - if ((mb_strlen($state) > 25)) { - throw new \InvalidArgumentException('invalid length for $state when calling BlogPost., must be smaller than or equal to 25.'); - } - - $this->container['state'] = $state; + $this->container['password'] = $password; return $this; } /** - * Gets name + * Gets html_title * * @return string */ - public function getName() + public function getHtmlTitle() { - return $this->container['name']; + return $this->container['html_title']; } /** - * Sets name + * Sets html_title * - * @param string $name The internal name of the Blog Post. + * @param string $html_title The html title of this Blog Post. * * @return self */ - public function setName($name) + public function setHtmlTitle($html_title) { - $this->container['name'] = $name; + $this->container['html_title'] = $html_title; return $this; } /** - * Gets mab_experiment_id + * Gets publish_immediately * - * @return string + * @return bool */ - public function getMabExperimentId() + public function getPublishImmediately() { - return $this->container['mab_experiment_id']; + return $this->container['publish_immediately']; } /** - * Sets mab_experiment_id + * Sets publish_immediately * - * @param string $mab_experiment_id mab_experiment_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. * * @return self */ - public function setMabExperimentId($mab_experiment_id) + public function setPublishImmediately($publish_immediately) { - $this->container['mab_experiment_id'] = $mab_experiment_id; + $this->container['publish_immediately'] = $publish_immediately; return $this; } /** - * Gets archived + * Gets translations * - * @return bool + * @return array */ - public function getArchived() + public function getTranslations() { - return $this->container['archived']; + return $this->container['translations']; } /** - * Sets archived + * Sets translations * - * @param bool $archived archived + * @param array $translations translations * * @return self */ - public function setArchived($archived) + public function setTranslations($translations) { - $this->container['archived'] = $archived; + $this->container['translations'] = $translations; 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 Blog Post. + * @param string $id The unique ID of the Blog Post. * * @return self */ - public function setAuthorName($author_name) + public function setId($id) { - $this->container['author_name'] = $author_name; + $this->container['id'] = $id; return $this; } /** - * Gets ab_test_id + * Gets state + * + * @return string + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param string $state An ENUM descibing the current state of this Blog Post. + * + * @return self + */ + public function setState($state) + { + if ((mb_strlen($state) > 25)) { + throw new \InvalidArgumentException('invalid length for $state when calling BlogPost., must be smaller than or equal to 25.'); + } + + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets slug * * @return string */ - public function getAbTestId() + public function getSlug() { - return $this->container['ab_test_id']; + return $this->container['slug']; } /** - * Sets ab_test_id + * Sets slug * - * @param string $ab_test_id ab_test_id + * @param string $slug The path of the this blog post. This field is appended to the domain to construct the url of this post. * * @return self */ - public function setAbTestId($ab_test_id) + public function setSlug($slug) { - $this->container['ab_test_id'] = $ab_test_id; + $this->container['slug'] = $slug; return $this; } @@ -2650,189 +2770,179 @@ public function setCreatedById($created_by_id) } /** - * Gets updated_by_id + * Gets rss_body * * @return string */ - public function getUpdatedById() + public function getRssBody() { - return $this->container['updated_by_id']; + return $this->container['rss_body']; } /** - * Sets updated_by_id + * Sets rss_body * - * @param string $updated_by_id The ID of the user that updated this Blog Post. + * @param string $rss_body The contents of the RSS body for this Blog Post. * * @return self */ - public function setUpdatedById($updated_by_id) + public function setRssBody($rss_body) { - $this->container['updated_by_id'] = $updated_by_id; + $this->container['rss_body'] = $rss_body; return $this; } /** - * Gets domain + * Gets currently_published * - * @return string + * @return bool */ - public function getDomain() + public function getCurrentlyPublished() { - return $this->container['domain']; + return $this->container['currently_published']; } /** - * Sets domain + * Sets currently_published * - * @param string $domain The domain this Blog Post will resolve to. If null, the Blog Post will default to the domain of the ParentBlog. + * @param bool $currently_published currently_published * * @return self */ - public function setDomain($domain) + public function setCurrentlyPublished($currently_published) { - $this->container['domain'] = $domain; + $this->container['currently_published'] = $currently_published; return $this; } /** - * Gets ab_status + * Gets archived_in_dashboard * - * @return string + * @return bool */ - public function getAbStatus() + public function getArchivedInDashboard() { - return $this->container['ab_status']; + return $this->container['archived_in_dashboard']; } /** - * Sets ab_status + * Sets archived_in_dashboard * - * @param string $ab_status ab_status + * @param bool $archived_in_dashboard If True, the post will not show up in your dashboard, although the post could still be live. * * @return self */ - public function setAbStatus($ab_status) + public function setArchivedInDashboard($archived_in_dashboard) { - $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; + $this->container['archived_in_dashboard'] = $archived_in_dashboard; return $this; } /** - * Gets folder_id + * Gets created * - * @return string + * @return \DateTime */ - public function getFolderId() + public function getCreated() { - return $this->container['folder_id']; + return $this->container['created']; } /** - * Sets folder_id + * Sets created * - * @param string $folder_id folder_id + * @param \DateTime $created created * * @return self */ - public function setFolderId($folder_id) + public function setCreated($created) { - $this->container['folder_id'] = $folder_id; + $this->container['created'] = $created; return $this; } /** - * Gets widget_containers + * Gets content_type_category * - * @return array + * @return string */ - public function getWidgetContainers() + public function getContentTypeCategory() { - return $this->container['widget_containers']; + return $this->container['content_type_category']; } /** - * Sets widget_containers + * Sets content_type_category * - * @param array $widget_containers A data structure containing the data for all the modules inside the containers for this post. This will only be populated if the page has widget containers. + * @param string $content_type_category An ENUM descibing the type of this object. Should always be BLOG_POST. * * @return self */ - public function setWidgetContainers($widget_containers) + public function setContentTypeCategory($content_type_category) { - $this->container['widget_containers'] = $widget_containers; + $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 widgets + * Gets mab_experiment_id * - * @return array + * @return string */ - public function getWidgets() + public function getMabExperimentId() { - return $this->container['widgets']; + return $this->container['mab_experiment_id']; } /** - * Sets widgets + * Sets mab_experiment_id * - * @param array $widgets A data structure containing the data for all the modules for this page. + * @param string $mab_experiment_id * * @return self */ - public function setWidgets($widgets) + public function setMabExperimentId($mab_experiment_id) { - $this->container['widgets'] = $widgets; + $this->container['mab_experiment_id'] = $mab_experiment_id; return $this; } /** - * Gets language + * Gets updated_by_id * * @return string */ - public function getLanguage() + public function getUpdatedById() { - return $this->container['language']; + return $this->container['updated_by_id']; } /** - * Sets language + * Sets updated_by_id * - * @param string $language The explicitly defined ISO 639 language code of the Blog Post. If null, the Blog Post will default to the language of the ParentBlog. + * @param string $updated_by_id The ID of the user that updated this Blog Post. * * @return self */ - public function setLanguage($language) + public function setUpdatedById($updated_by_id) { - $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; + $this->container['updated_by_id'] = $updated_by_id; return $this; } @@ -2862,755 +2972,731 @@ public function setTranslatedFromId($translated_from_id) } /** - * Gets translations - * - * @return array - */ - public function getTranslations() - { - return $this->container['translations']; - } - - /** - * Sets translations - * - * @param array $translations translations - * - * @return self - */ - public function setTranslations($translations) - { - $this->container['translations'] = $translations; - - return $this; - } - - /** - * Gets dynamic_page_data_source_type + * Gets folder_id * - * @return int + * @return string */ - public function getDynamicPageDataSourceType() + public function getFolderId() { - return $this->container['dynamic_page_data_source_type']; + return $this->container['folder_id']; } /** - * Sets dynamic_page_data_source_type + * Sets folder_id * - * @param int $dynamic_page_data_source_type dynamic_page_data_source_type + * @param string $folder_id * * @return self */ - public function setDynamicPageDataSourceType($dynamic_page_data_source_type) + public function setFolderId($folder_id) { - $this->container['dynamic_page_data_source_type'] = $dynamic_page_data_source_type; + $this->container['folder_id'] = $folder_id; return $this; } /** - * Gets dynamic_page_data_source_id + * Gets widget_containers * - * @return string + * @return array */ - public function getDynamicPageDataSourceId() + public function getWidgetContainers() { - return $this->container['dynamic_page_data_source_id']; + return $this->container['widget_containers']; } /** - * Sets dynamic_page_data_source_id + * Sets widget_containers * - * @param string $dynamic_page_data_source_id dynamic_page_data_source_id + * @param array $widget_containers A data structure containing the data for all the modules inside the containers for this post. This will only be populated if the page has widget containers. * * @return self */ - public function setDynamicPageDataSourceId($dynamic_page_data_source_id) + public function setWidgetContainers($widget_containers) { - $this->container['dynamic_page_data_source_id'] = $dynamic_page_data_source_id; + $this->container['widget_containers'] = $widget_containers; return $this; } /** - * Gets blog_author_id + * Gets page_expiry_redirect_id * - * @return string + * @return int */ - public function getBlogAuthorId() + public function getPageExpiryRedirectId() { - return $this->container['blog_author_id']; + return $this->container['page_expiry_redirect_id']; } /** - * Sets blog_author_id + * Sets page_expiry_redirect_id * - * @param string $blog_author_id The ID of the Blog Author associated with this Blog Post. + * @param int $page_expiry_redirect_id * * @return self */ - public function setBlogAuthorId($blog_author_id) + public function setPageExpiryRedirectId($page_expiry_redirect_id) { - $this->container['blog_author_id'] = $blog_author_id; + $this->container['page_expiry_redirect_id'] = $page_expiry_redirect_id; return $this; } /** - * Gets tag_ids + * Gets dynamic_page_data_source_type * - * @return int[] + * @return int */ - public function getTagIds() + public function getDynamicPageDataSourceType() { - return $this->container['tag_ids']; + return $this->container['dynamic_page_data_source_type']; } /** - * Sets tag_ids + * Sets dynamic_page_data_source_type * - * @param int[] $tag_ids List of IDs for the tags associated with this Blog Post. + * @param int $dynamic_page_data_source_type dynamic_page_data_source_type * * @return self */ - public function setTagIds($tag_ids) + public function setDynamicPageDataSourceType($dynamic_page_data_source_type) { - $this->container['tag_ids'] = $tag_ids; + $this->container['dynamic_page_data_source_type'] = $dynamic_page_data_source_type; return $this; } /** - * Gets html_title + * Gets featured_image * * @return string */ - public function getHtmlTitle() + public function getFeaturedImage() { - return $this->container['html_title']; + return $this->container['featured_image']; } /** - * Sets html_title + * Sets featured_image * - * @param string $html_title The html title of this Blog Post. + * @param string $featured_image The featuredImage of this Blog Post. * * @return self */ - public function setHtmlTitle($html_title) + public function setFeaturedImage($featured_image) { - $this->container['html_title'] = $html_title; + $this->container['featured_image'] = $featured_image; return $this; } /** - * Gets enable_google_amp_output_override + * Gets author_name * - * @return bool + * @return string */ - public function getEnableGoogleAmpOutputOverride() + public function getAuthorName() { - return $this->container['enable_google_amp_output_override']; + return $this->container['author_name']; } /** - * Sets enable_google_amp_output_override + * Sets author_name * - * @param bool $enable_google_amp_output_override Boolean to allow overriding the AMP settings for the blog. + * @param string $author_name The name of the user that updated this Blog Post. * * @return self */ - public function setEnableGoogleAmpOutputOverride($enable_google_amp_output_override) + public function setAuthorName($author_name) { - $this->container['enable_google_amp_output_override'] = $enable_google_amp_output_override; + $this->container['author_name'] = $author_name; return $this; } /** - * Gets use_featured_image + * Gets domain * - * @return bool + * @return string */ - public function getUseFeaturedImage() + public function getDomain() { - return $this->container['use_featured_image']; + return $this->container['domain']; } /** - * Sets use_featured_image + * Sets domain * - * @param bool $use_featured_image Boolean to determine if this post should use a featuredImage. + * @param string $domain The domain this Blog Post will resolve to. If null, the Blog Post will default to the domain of the ParentBlog. * * @return self */ - public function setUseFeaturedImage($use_featured_image) + public function setDomain($domain) { - $this->container['use_featured_image'] = $use_featured_image; + $this->container['domain'] = $domain; return $this; } /** - * Gets post_body + * Gets name * * @return string */ - public function getPostBody() + public function getName() { - return $this->container['post_body']; + return $this->container['name']; } /** - * Sets post_body + * Sets name * - * @param string $post_body The HTML of the main post body. + * @param string $name The internal name of the Blog Post. * * @return self */ - public function setPostBody($post_body) + public function setName($name) { - $this->container['post_body'] = $post_body; + $this->container['name'] = $name; return $this; } /** - * Gets post_summary + * Gets dynamic_page_hub_db_table_id * * @return string */ - public function getPostSummary() + public function getDynamicPageHubDbTableId() { - return $this->container['post_summary']; + return $this->container['dynamic_page_hub_db_table_id']; } /** - * Sets post_summary + * Sets dynamic_page_hub_db_table_id * - * @param string $post_summary The summary of the blog post that will appear on the main listing page. + * @param string $dynamic_page_hub_db_table_id The ID of the HubDB table this Blog Post references, if applicable * * @return self */ - public function setPostSummary($post_summary) + public function setDynamicPageHubDbTableId($dynamic_page_hub_db_table_id) { - $this->container['post_summary'] = $post_summary; + $this->container['dynamic_page_hub_db_table_id'] = $dynamic_page_hub_db_table_id; return $this; } /** - * Gets rss_body + * Gets campaign * * @return string */ - public function getRssBody() + public function getCampaign() { - return $this->container['rss_body']; + return $this->container['campaign']; } /** - * Sets rss_body + * Sets campaign * - * @param string $rss_body The contents of the RSS body for this Blog Post. + * @param string $campaign The GUID of the marketing campaign this Blog Post is a part of. * * @return self */ - public function setRssBody($rss_body) + public function setCampaign($campaign) { - $this->container['rss_body'] = $rss_body; + $this->container['campaign'] = $campaign; return $this; } /** - * Gets rss_summary + * Gets dynamic_page_data_source_id * * @return string */ - public function getRssSummary() + public function getDynamicPageDataSourceId() { - return $this->container['rss_summary']; + return $this->container['dynamic_page_data_source_id']; } /** - * Sets rss_summary + * Sets dynamic_page_data_source_id * - * @param string $rss_summary The contents of the RSS summary for this Blog Post. + * @param string $dynamic_page_data_source_id dynamic_page_data_source_id * * @return self */ - public function setRssSummary($rss_summary) + public function setDynamicPageDataSourceId($dynamic_page_data_source_id) { - $this->container['rss_summary'] = $rss_summary; + $this->container['dynamic_page_data_source_id'] = $dynamic_page_data_source_id; return $this; } /** - * Gets currently_published + * Gets enable_domain_stylesheets * * @return bool */ - public function getCurrentlyPublished() + public function getEnableDomainStylesheets() { - return $this->container['currently_published']; + return $this->container['enable_domain_stylesheets']; } /** - * Sets currently_published + * Sets enable_domain_stylesheets * - * @param bool $currently_published currently_published + * @param bool $enable_domain_stylesheets Boolean to determine whether or not the styles from the template should be applied. * * @return self */ - public function setCurrentlyPublished($currently_published) + public function setEnableDomainStylesheets($enable_domain_stylesheets) { - $this->container['currently_published'] = $currently_published; + $this->container['enable_domain_stylesheets'] = $enable_domain_stylesheets; return $this; } /** - * Gets page_expiry_enabled + * Gets include_default_custom_css * * @return bool */ - public function getPageExpiryEnabled() + public function getIncludeDefaultCustomCss() { - return $this->container['page_expiry_enabled']; + return $this->container['include_default_custom_css']; } /** - * Sets page_expiry_enabled + * Sets include_default_custom_css * - * @param bool $page_expiry_enabled page_expiry_enabled + * @param bool $include_default_custom_css Boolean to determine whether or not the Primary CSS Files should be applied. * * @return self */ - public function setPageExpiryEnabled($page_expiry_enabled) + public function setIncludeDefaultCustomCss($include_default_custom_css) { - $this->container['page_expiry_enabled'] = $page_expiry_enabled; + $this->container['include_default_custom_css'] = $include_default_custom_css; return $this; } /** - * Gets page_expiry_redirect_id + * Gets layout_sections * - * @return int + * @return array */ - public function getPageExpiryRedirectId() + public function getLayoutSections() { - return $this->container['page_expiry_redirect_id']; + return $this->container['layout_sections']; } /** - * Sets page_expiry_redirect_id + * Sets layout_sections * - * @param int $page_expiry_redirect_id page_expiry_redirect_id + * @param array $layout_sections * * @return self */ - public function setPageExpiryRedirectId($page_expiry_redirect_id) + public function setLayoutSections($layout_sections) { - $this->container['page_expiry_redirect_id'] = $page_expiry_redirect_id; + $this->container['layout_sections'] = $layout_sections; return $this; } /** - * Gets page_expiry_redirect_url + * Gets updated * - * @return string + * @return \DateTime */ - public function getPageExpiryRedirectUrl() + public function getUpdated() { - return $this->container['page_expiry_redirect_url']; + return $this->container['updated']; } /** - * Sets page_expiry_redirect_url + * Sets updated * - * @param string $page_expiry_redirect_url page_expiry_redirect_url + * @param \DateTime $updated updated * * @return self */ - public function setPageExpiryRedirectUrl($page_expiry_redirect_url) + public function setUpdated($updated) { - $this->container['page_expiry_redirect_url'] = $page_expiry_redirect_url; + $this->container['updated'] = $updated; return $this; } /** - * Gets page_expiry_date + * Gets footer_html * - * @return int + * @return string */ - public function getPageExpiryDate() + public function getFooterHtml() { - return $this->container['page_expiry_date']; + return $this->container['footer_html']; } /** - * Sets page_expiry_date + * Sets footer_html * - * @param int $page_expiry_date page_expiry_date + * @param string $footer_html Custom HTML for embed codes, javascript that should be placed before the tag of the page. * * @return self */ - public function setPageExpiryDate($page_expiry_date) + public function setFooterHtml($footer_html) { - $this->container['page_expiry_date'] = $page_expiry_date; + $this->container['footer_html'] = $footer_html; return $this; } /** - * Gets include_default_custom_css + * Gets tag_ids * - * @return bool + * @return int[] */ - public function getIncludeDefaultCustomCss() + public function getTagIds() { - return $this->container['include_default_custom_css']; + return $this->container['tag_ids']; } /** - * Sets include_default_custom_css + * Sets tag_ids * - * @param bool $include_default_custom_css Boolean to determine whether or not the Primary CSS Files should be applied. + * @param int[] $tag_ids List of IDs for the tags associated with this Blog Post. * * @return self */ - public function setIncludeDefaultCustomCss($include_default_custom_css) + public function setTagIds($tag_ids) { - $this->container['include_default_custom_css'] = $include_default_custom_css; + $this->container['tag_ids'] = $tag_ids; return $this; } /** - * Gets enable_layout_stylesheets + * Gets widgets * - * @return bool + * @return array */ - public function getEnableLayoutStylesheets() + public function getWidgets() { - return $this->container['enable_layout_stylesheets']; + return $this->container['widgets']; } /** - * Sets enable_layout_stylesheets + * Sets widgets * - * @param bool $enable_layout_stylesheets Boolean to determine whether or not the styles from the template should be applied. + * @param array $widgets A data structure containing the data for all the modules for this page. * * @return self */ - public function setEnableLayoutStylesheets($enable_layout_stylesheets) + public function setWidgets($widgets) { - $this->container['enable_layout_stylesheets'] = $enable_layout_stylesheets; + $this->container['widgets'] = $widgets; return $this; } /** - * Gets enable_domain_stylesheets + * Gets post_summary * - * @return bool + * @return string */ - public function getEnableDomainStylesheets() + public function getPostSummary() { - return $this->container['enable_domain_stylesheets']; + return $this->container['post_summary']; } /** - * Sets enable_domain_stylesheets + * Sets post_summary * - * @param bool $enable_domain_stylesheets Boolean to determine whether or not the styles from the template should be applied. + * @param string $post_summary The summary of the blog post that will appear on the main listing page. * * @return self */ - public function setEnableDomainStylesheets($enable_domain_stylesheets) + public function setPostSummary($post_summary) { - $this->container['enable_domain_stylesheets'] = $enable_domain_stylesheets; + $this->container['post_summary'] = $post_summary; return $this; } /** - * Gets publish_immediately + * Gets head_html * - * @return bool + * @return string */ - public function getPublishImmediately() + public function getHeadHtml() { - return $this->container['publish_immediately']; + return $this->container['head_html']; } /** - * Sets publish_immediately + * Sets head_html * - * @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 $head_html Custom HTML for embed codes, javascript, etc. that goes in the tag of the page. * * @return self */ - public function setPublishImmediately($publish_immediately) + public function setHeadHtml($head_html) { - $this->container['publish_immediately'] = $publish_immediately; + $this->container['head_html'] = $head_html; return $this; } /** - * Gets featured_image + * Gets page_expiry_redirect_url * * @return string */ - public function getFeaturedImage() + public function getPageExpiryRedirectUrl() { - return $this->container['featured_image']; + return $this->container['page_expiry_redirect_url']; } /** - * Sets featured_image + * Sets page_expiry_redirect_url * - * @param string $featured_image The featuredImage of this Blog Post. + * @param string $page_expiry_redirect_url * * @return self */ - public function setFeaturedImage($featured_image) + public function setPageExpiryRedirectUrl($page_expiry_redirect_url) { - $this->container['featured_image'] = $featured_image; + $this->container['page_expiry_redirect_url'] = $page_expiry_redirect_url; return $this; } /** - * Gets featured_image_alt_text + * Gets ab_status * * @return string */ - public function getFeaturedImageAltText() + public function getAbStatus() { - return $this->container['featured_image_alt_text']; + return $this->container['ab_status']; } /** - * Sets featured_image_alt_text + * Sets ab_status * - * @param string $featured_image_alt_text Alt Text of the featuredImage. + * @param string $ab_status * * @return self */ - public function setFeaturedImageAltText($featured_image_alt_text) + public function setAbStatus($ab_status) { - $this->container['featured_image_alt_text'] = $featured_image_alt_text; + $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 link_rel_canonical_url + * Gets use_featured_image * - * @return string + * @return bool */ - public function getLinkRelCanonicalUrl() + public function getUseFeaturedImage() { - return $this->container['link_rel_canonical_url']; + return $this->container['use_featured_image']; } /** - * Sets link_rel_canonical_url + * Sets use_featured_image * - * @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 bool $use_featured_image Boolean to determine if this post should use a featuredImage. * * @return self */ - public function setLinkRelCanonicalUrl($link_rel_canonical_url) + public function setUseFeaturedImage($use_featured_image) { - $this->container['link_rel_canonical_url'] = $link_rel_canonical_url; + $this->container['use_featured_image'] = $use_featured_image; return $this; } /** - * Gets content_type_category + * Gets ab_test_id * * @return string */ - public function getContentTypeCategory() + public function getAbTestId() { - return $this->container['content_type_category']; + return $this->container['ab_test_id']; } /** - * Sets content_type_category + * Sets ab_test_id * - * @param string $content_type_category An ENUM descibing the type of this object. Should always be BLOG_POST. + * @param string $ab_test_id * * @return self */ - public function setContentTypeCategory($content_type_category) + public function setAbTestId($ab_test_id) { - $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; + $this->container['ab_test_id'] = $ab_test_id; return $this; } /** - * Gets attached_stylesheets + * Gets featured_image_alt_text * - * @return array[] + * @return string */ - public function getAttachedStylesheets() + public function getFeaturedImageAltText() { - return $this->container['attached_stylesheets']; + return $this->container['featured_image_alt_text']; } /** - * Sets attached_stylesheets + * Sets featured_image_alt_text * - * @param array[] $attached_stylesheets List of stylesheets to attach to this blog post. These stylesheets are attached to just this page. Order of precedence is bottom to top, just like in the HTML. + * @param string $featured_image_alt_text Alt Text of the featuredImage. * * @return self */ - public function setAttachedStylesheets($attached_stylesheets) + public function setFeaturedImageAltText($featured_image_alt_text) { - $this->container['attached_stylesheets'] = $attached_stylesheets; + $this->container['featured_image_alt_text'] = $featured_image_alt_text; return $this; } /** - * Gets meta_description + * Gets blog_author_id * * @return string */ - public function getMetaDescription() + public function getBlogAuthorId() { - return $this->container['meta_description']; + return $this->container['blog_author_id']; } /** - * Sets meta_description + * Sets blog_author_id * - * @param string $meta_description A description that goes in tag on the page. + * @param string $blog_author_id The ID of the Blog Author associated with this Blog Post. * * @return self */ - public function setMetaDescription($meta_description) + public function setBlogAuthorId($blog_author_id) { - $this->container['meta_description'] = $meta_description; + $this->container['blog_author_id'] = $blog_author_id; return $this; } /** - * Gets head_html + * Gets content_group_id * * @return string */ - public function getHeadHtml() + public function getContentGroupId() { - return $this->container['head_html']; + return $this->container['content_group_id']; } /** - * Sets head_html + * Sets content_group_id * - * @param string $head_html Custom HTML for embed codes, javascript, etc. that goes in the tag of the page. + * @param string $content_group_id The ID of the parent Blog this Blog Post is associated with. * * @return self */ - public function setHeadHtml($head_html) + public function setContentGroupId($content_group_id) { - $this->container['head_html'] = $head_html; + $this->container['content_group_id'] = $content_group_id; return $this; } /** - * Gets footer_html + * Gets rss_summary * * @return string */ - public function getFooterHtml() + public function getRssSummary() { - return $this->container['footer_html']; + return $this->container['rss_summary']; } /** - * Sets footer_html + * Sets rss_summary * - * @param string $footer_html Custom HTML for embed codes, javascript that should be placed before the tag of the page. + * @param string $rss_summary The contents of the RSS summary for this Blog Post. * * @return self */ - public function setFooterHtml($footer_html) + public function setRssSummary($rss_summary) { - $this->container['footer_html'] = $footer_html; + $this->container['rss_summary'] = $rss_summary; return $this; } /** - * Gets archived_in_dashboard + * Gets page_expiry_enabled * * @return bool */ - public function getArchivedInDashboard() + public function getPageExpiryEnabled() { - return $this->container['archived_in_dashboard']; + return $this->container['page_expiry_enabled']; } /** - * Sets archived_in_dashboard + * Sets page_expiry_enabled * - * @param bool $archived_in_dashboard If True, the post will not show up in your dashboard, although the post could still be live. + * @param bool $page_expiry_enabled * * @return self */ - public function setArchivedInDashboard($archived_in_dashboard) + public function setPageExpiryEnabled($page_expiry_enabled) { - $this->container['archived_in_dashboard'] = $archived_in_dashboard; + $this->container['page_expiry_enabled'] = $page_expiry_enabled; 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 blog post. * * @return self */ - public function setPublicAccessRulesEnabled($public_access_rules_enabled) + public function setUrl($url) { - $this->container['public_access_rules_enabled'] = $public_access_rules_enabled; + $this->container['url'] = $url; return $this; } @@ -3640,227 +3726,227 @@ public function setPublicAccessRules($public_access_rules) } /** - * Gets layout_sections + * Gets enable_google_amp_output_override * - * @return array + * @return bool */ - public function getLayoutSections() + public function getEnableGoogleAmpOutputOverride() { - return $this->container['layout_sections']; + return $this->container['enable_google_amp_output_override']; } /** - * Sets layout_sections + * Sets enable_google_amp_output_override * - * @param array $layout_sections layout_sections + * @param bool $enable_google_amp_output_override Boolean to allow overriding the AMP settings for the blog. * * @return self */ - public function setLayoutSections($layout_sections) + public function setEnableGoogleAmpOutputOverride($enable_google_amp_output_override) { - $this->container['layout_sections'] = $layout_sections; + $this->container['enable_google_amp_output_override'] = $enable_google_amp_output_override; return $this; } /** - * Gets theme_settings_values + * Gets archived_at * - * @return array + * @return int */ - public function getThemeSettingsValues() + public function getArchivedAt() { - return $this->container['theme_settings_values']; + return $this->container['archived_at']; } /** - * Sets theme_settings_values + * Sets archived_at * - * @param array $theme_settings_values theme_settings_values + * @param int $archived_at The timestamp (ISO8601 format) when this Blog Post was deleted. * * @return self */ - public function setThemeSettingsValues($theme_settings_values) + public function setArchivedAt($archived_at) { - $this->container['theme_settings_values'] = $theme_settings_values; + $this->container['archived_at'] = $archived_at; return $this; } /** - * Gets url + * Gets post_body * * @return string */ - public function getUrl() + public function getPostBody() { - return $this->container['url']; + return $this->container['post_body']; } /** - * Sets url + * Sets post_body * - * @param string $url A generated field representing the URL of this blog post. + * @param string $post_body The HTML of the main post body. * * @return self */ - public function setUrl($url) + public function setPostBody($post_body) { - $this->container['url'] = $url; + $this->container['post_body'] = $post_body; return $this; } /** - * Gets password + * Gets theme_settings_values * - * @return string + * @return array */ - public function getPassword() + public function getThemeSettingsValues() { - return $this->container['password']; + return $this->container['theme_settings_values']; } /** - * Sets password + * Sets theme_settings_values * - * @param string $password Set this to create a password protected page. Entering the password will be required to view the page. + * @param array $theme_settings_values * * @return self */ - public function setPassword($password) + public function setThemeSettingsValues($theme_settings_values) { - $this->container['password'] = $password; + $this->container['theme_settings_values'] = $theme_settings_values; return $this; } /** - * Gets current_state + * Gets page_expiry_date * - * @return string + * @return int */ - public function getCurrentState() + public function getPageExpiryDate() { - return $this->container['current_state']; + return $this->container['page_expiry_date']; } /** - * Sets current_state + * Sets page_expiry_date * - * @param string $current_state A generated ENUM descibing the current state of this Blog Post. Should always match state. + * @param int $page_expiry_date * * @return self */ - public function setCurrentState($current_state) + public function setPageExpiryDate($page_expiry_date) { - $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['current_state'] = $current_state; + $this->container['page_expiry_date'] = $page_expiry_date; return $this; } /** - * Gets publish_date + * Gets public_access_rules_enabled * - * @return \DateTime + * @return bool */ - public function getPublishDate() + public function getPublicAccessRulesEnabled() { - return $this->container['publish_date']; + return $this->container['public_access_rules_enabled']; } /** - * Sets publish_date + * Sets public_access_rules_enabled * - * @param \DateTime $publish_date The date (ISO8601 format) the blog post is to be published at. + * @param bool $public_access_rules_enabled Boolean to determine whether or not to respect publicAccessRules. * * @return self */ - public function setPublishDate($publish_date) + public function setPublicAccessRulesEnabled($public_access_rules_enabled) { - $this->container['publish_date'] = $publish_date; + $this->container['public_access_rules_enabled'] = $public_access_rules_enabled; return $this; } /** - * Gets created + * Gets current_state * - * @return \DateTime + * @return string */ - public function getCreated() + public function getCurrentState() { - return $this->container['created']; + return $this->container['current_state']; } /** - * Sets created + * Sets current_state * - * @param \DateTime $created created + * @param string $current_state A generated ENUM descibing the current state of this Blog Post. Should always match state. * * @return self */ - public function setCreated($created) + public function setCurrentState($current_state) { - $this->container['created'] = $created; + $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['current_state'] = $current_state; return $this; } /** - * Gets updated + * Gets category_id * - * @return \DateTime + * @return int */ - public function getUpdated() + public function getCategoryId() { - return $this->container['updated']; + return $this->container['category_id']; } /** - * Sets updated + * Sets category_id * - * @param \DateTime $updated updated + * @param int $category_id ID of the type of object this is. Should always . * * @return self */ - public function setUpdated($updated) + public function setCategoryId($category_id) { - $this->container['updated'] = $updated; + $this->container['category_id'] = $category_id; return $this; } /** - * Gets deleted_at + * Gets link_rel_canonical_url * - * @return \DateTime + * @return string */ - public function getDeletedAt() + public function getLinkRelCanonicalUrl() { - return $this->container['deleted_at']; + return $this->container['link_rel_canonical_url']; } /** - * Sets deleted_at + * Sets link_rel_canonical_url * - * @param \DateTime $deleted_at The timestamp (ISO8601 format) when this Blog Post was deleted. + * @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 setDeletedAt($deleted_at) + public function setLinkRelCanonicalUrl($link_rel_canonical_url) { - $this->container['deleted_at'] = $deleted_at; + $this->container['link_rel_canonical_url'] = $link_rel_canonical_url; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/BlogPostLanguageCloneRequestVNext.php b/codegen/Cms/Blogs/BlogPosts/Model/BlogPostLanguageCloneRequestVNext.php index 24986a5c..ffde9cd4 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/BlogPostLanguageCloneRequestVNext.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/BlogPostLanguageCloneRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,8 +58,8 @@ class BlogPostLanguageCloneRequestVNext implements ModelInterface, ArrayAccess, * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', - 'language' => 'string' + 'language' => 'string', + 'id' => 'string' ]; /** @@ -70,8 +70,8 @@ class BlogPostLanguageCloneRequestVNext implements ModelInterface, ArrayAccess, * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, - 'language' => null + 'language' => null, + 'id' => null ]; /** @@ -101,8 +101,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', - 'language' => 'language' + 'language' => 'language', + 'id' => 'id' ]; /** @@ -111,8 +111,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', - 'language' => 'setLanguage' + 'language' => 'setLanguage', + 'id' => 'setId' ]; /** @@ -121,8 +121,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', - 'language' => 'getLanguage' + 'language' => 'getLanguage', + 'id' => 'getId' ]; /** @@ -182,8 +182,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; $this->container['language'] = $data['language'] ?? null; + $this->container['id'] = $data['id'] ?? null; } /** @@ -214,49 +214,49 @@ public function valid() /** - * 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 blog post to clone. + * @param string|null $language Target language of new variant. * * @return self */ - public function setId($id) + public function setLanguage($language) { - $this->container['id'] = $id; + $this->container['language'] = $language; return $this; } /** - * 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 blog post to clone. * * @return self */ - public function setLanguage($language) + public function setId($id) { - $this->container['language'] = $language; + $this->container['id'] = $id; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/CollectionResponseWithTotalBlogPostForwardPaging.php b/codegen/Cms/Blogs/BlogPosts/Model/CollectionResponseWithTotalBlogPostForwardPaging.php index 61d51e1c..6253db7a 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/CollectionResponseWithTotalBlogPostForwardPaging.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/CollectionResponseWithTotalBlogPostForwardPaging.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -59,8 +59,8 @@ class CollectionResponseWithTotalBlogPostForwardPaging implements ModelInterface */ protected static $openAPITypes = [ 'total' => 'int', - 'results' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[]', - 'paging' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\ForwardPaging' + 'paging' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\ForwardPaging', + 'results' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[]' ]; /** @@ -72,8 +72,8 @@ class CollectionResponseWithTotalBlogPostForwardPaging implements ModelInterface */ protected static $openAPIFormats = [ 'total' => 'int32', - 'results' => null, - 'paging' => null + 'paging' => null, + 'results' => null ]; /** @@ -104,8 +104,8 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'total' => 'total', - 'results' => 'results', - 'paging' => 'paging' + 'paging' => 'paging', + 'results' => 'results' ]; /** @@ -115,8 +115,8 @@ public static function openAPIFormats() */ protected static $setters = [ 'total' => 'setTotal', - 'results' => 'setResults', - 'paging' => 'setPaging' + 'paging' => 'setPaging', + 'results' => 'setResults' ]; /** @@ -126,8 +126,8 @@ public static function openAPIFormats() */ protected static $getters = [ 'total' => 'getTotal', - 'results' => 'getResults', - 'paging' => 'getPaging' + 'paging' => 'getPaging', + 'results' => 'getResults' ]; /** @@ -188,8 +188,8 @@ public function getModelName() public function __construct(array $data = null) { $this->container['total'] = $data['total'] ?? null; - $this->container['results'] = $data['results'] ?? null; $this->container['paging'] = $data['paging'] ?? null; + $this->container['results'] = $data['results'] ?? null; } /** @@ -247,49 +247,49 @@ public function setTotal($total) } /** - * Gets results + * Gets paging * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[] + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\ForwardPaging|null */ - public function getResults() + public function getPaging() { - return $this->container['results']; + return $this->container['paging']; } /** - * Sets results + * Sets paging * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[] $results Collection of blog posts. + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\ForwardPaging|null $paging paging * * @return self */ - public function setResults($results) + public function setPaging($paging) { - $this->container['results'] = $results; + $this->container['paging'] = $paging; return $this; } /** - * Gets paging + * Gets results * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\ForwardPaging|null + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[] */ - public function getPaging() + public function getResults() { - return $this->container['paging']; + return $this->container['results']; } /** - * Sets paging + * Sets results * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\ForwardPaging|null $paging paging + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost[] $results Collection of blog posts. * * @return self */ - public function setPaging($paging) + public function setResults($results) { - $this->container['paging'] = $paging; + $this->container['results'] = $results; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/CollectionResponseWithTotalVersionBlogPost.php b/codegen/Cms/Blogs/BlogPosts/Model/CollectionResponseWithTotalVersionBlogPost.php index 9a447c76..ffdb86a7 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/CollectionResponseWithTotalVersionBlogPost.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/CollectionResponseWithTotalVersionBlogPost.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -59,8 +59,8 @@ class CollectionResponseWithTotalVersionBlogPost implements ModelInterface, Arra */ protected static $openAPITypes = [ 'total' => 'int', - 'results' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\VersionBlogPost[]', - 'paging' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Paging' + 'paging' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Paging', + 'results' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\VersionBlogPost[]' ]; /** @@ -72,8 +72,8 @@ class CollectionResponseWithTotalVersionBlogPost implements ModelInterface, Arra */ protected static $openAPIFormats = [ 'total' => 'int32', - 'results' => null, - 'paging' => null + 'paging' => null, + 'results' => null ]; /** @@ -104,8 +104,8 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'total' => 'total', - 'results' => 'results', - 'paging' => 'paging' + 'paging' => 'paging', + 'results' => 'results' ]; /** @@ -115,8 +115,8 @@ public static function openAPIFormats() */ protected static $setters = [ 'total' => 'setTotal', - 'results' => 'setResults', - 'paging' => 'setPaging' + 'paging' => 'setPaging', + 'results' => 'setResults' ]; /** @@ -126,8 +126,8 @@ public static function openAPIFormats() */ protected static $getters = [ 'total' => 'getTotal', - 'results' => 'getResults', - 'paging' => 'getPaging' + 'paging' => 'getPaging', + 'results' => 'getResults' ]; /** @@ -188,8 +188,8 @@ public function getModelName() public function __construct(array $data = null) { $this->container['total'] = $data['total'] ?? null; - $this->container['results'] = $data['results'] ?? null; $this->container['paging'] = $data['paging'] ?? null; + $this->container['results'] = $data['results'] ?? null; } /** @@ -247,49 +247,49 @@ public function setTotal($total) } /** - * Gets results + * Gets paging * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\VersionBlogPost[] + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Paging|null */ - public function getResults() + public function getPaging() { - return $this->container['results']; + return $this->container['paging']; } /** - * Sets results + * Sets paging * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\VersionBlogPost[] $results Collection of blog post versions. + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Paging|null $paging paging * * @return self */ - public function setResults($results) + public function setPaging($paging) { - $this->container['results'] = $results; + $this->container['paging'] = $paging; return $this; } /** - * Gets paging + * Gets results * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Paging|null + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\VersionBlogPost[] */ - public function getPaging() + public function getResults() { - return $this->container['paging']; + return $this->container['results']; } /** - * Sets paging + * Sets results * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Paging|null $paging paging + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\VersionBlogPost[] $results Collection of blog post versions. * * @return self */ - public function setPaging($paging) + public function setResults($results) { - $this->container['paging'] = $paging; + $this->container['results'] = $results; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/ColorStop.php b/codegen/Cms/Blogs/BlogPosts/Model/ColorStop.php index 0face82d..96941dfa 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/ColorStop.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/ColorStop.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/BlogPosts/Model/ContentCloneRequestVNext.php b/codegen/Cms/Blogs/BlogPosts/Model/ContentCloneRequestVNext.php index 244a3585..e2bfcd45 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/ContentCloneRequestVNext.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/ContentCloneRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,8 +58,8 @@ class ContentCloneRequestVNext implements ModelInterface, ArrayAccess, \JsonSeri * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', - 'clone_name' => 'string' + 'clone_name' => 'string', + 'id' => 'string' ]; /** @@ -70,8 +70,8 @@ class ContentCloneRequestVNext implements ModelInterface, ArrayAccess, \JsonSeri * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, - 'clone_name' => null + 'clone_name' => null, + 'id' => null ]; /** @@ -101,8 +101,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', - 'clone_name' => 'cloneName' + 'clone_name' => 'cloneName', + 'id' => 'id' ]; /** @@ -111,8 +111,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', - 'clone_name' => 'setCloneName' + 'clone_name' => 'setCloneName', + 'id' => 'setId' ]; /** @@ -121,8 +121,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', - 'clone_name' => 'getCloneName' + 'clone_name' => 'getCloneName', + 'id' => 'getId' ]; /** @@ -182,8 +182,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; $this->container['clone_name'] = $data['clone_name'] ?? null; + $this->container['id'] = $data['id'] ?? null; } /** @@ -214,49 +214,49 @@ public function valid() /** - * Gets id + * Gets clone_name * - * @return string + * @return string|null */ - public function getId() + public function getCloneName() { - return $this->container['id']; + return $this->container['clone_name']; } /** - * Sets id + * Sets clone_name * - * @param string $id ID of the object to be cloned. + * @param string|null $clone_name Name of the cloned object. * * @return self */ - public function setId($id) + public function setCloneName($clone_name) { - $this->container['id'] = $id; + $this->container['clone_name'] = $clone_name; return $this; } /** - * Gets clone_name + * Gets id * - * @return string|null + * @return string */ - public function getCloneName() + public function getId() { - return $this->container['clone_name']; + return $this->container['id']; } /** - * Sets clone_name + * Sets id * - * @param string|null $clone_name Name of the cloned object. + * @param string $id ID of the object to be cloned. * * @return self */ - public function setCloneName($clone_name) + public function setId($id) { - $this->container['clone_name'] = $clone_name; + $this->container['id'] = $id; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/ContentLanguageVariation.php b/codegen/Cms/Blogs/BlogPosts/Model/ContentLanguageVariation.php index e35780c8..b0ade309 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/ContentLanguageVariation.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/ContentLanguageVariation.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -57,20 +57,20 @@ class ContentLanguageVariation implements ModelInterface, ArrayAccess, \JsonSeri * @var string[] */ protected static $openAPITypes = [ - 'id' => 'int', - 'name' => 'string', - 'slug' => 'string', - 'state' => 'string', - 'author_name' => 'string', + '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', - 'public_access_rules' => 'object[]', + 'name' => 'string', 'campaign' => 'string', - 'tag_ids' => 'int[]', - 'archived_in_dashboard' => 'bool', - 'created' => '\DateTime', + 'id' => 'int', + 'state' => 'string', 'updated' => '\DateTime', - 'publish_date' => '\DateTime' + 'slug' => 'string' ]; /** @@ -81,20 +81,20 @@ class ContentLanguageVariation implements ModelInterface, ArrayAccess, \JsonSeri * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => 'int64', - 'name' => null, - 'slug' => null, - 'state' => null, - 'author_name' => null, + '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, - 'public_access_rules' => null, + 'name' => null, 'campaign' => null, - 'tag_ids' => 'int64', - 'archived_in_dashboard' => null, - 'created' => 'date-time', + 'id' => 'int64', + 'state' => null, 'updated' => 'date-time', - 'publish_date' => 'date-time' + 'slug' => null ]; /** @@ -124,20 +124,20 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'slug' => 'slug', - 'state' => 'state', - 'author_name' => 'authorName', + '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', - 'public_access_rules' => 'publicAccessRules', + 'name' => 'name', 'campaign' => 'campaign', - 'tag_ids' => 'tagIds', - 'archived_in_dashboard' => 'archivedInDashboard', - 'created' => 'created', + 'id' => 'id', + 'state' => 'state', 'updated' => 'updated', - 'publish_date' => 'publishDate' + 'slug' => 'slug' ]; /** @@ -146,20 +146,20 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'slug' => 'setSlug', - 'state' => 'setState', - 'author_name' => 'setAuthorName', + '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', - 'public_access_rules' => 'setPublicAccessRules', + 'name' => 'setName', 'campaign' => 'setCampaign', - 'tag_ids' => 'setTagIds', - 'archived_in_dashboard' => 'setArchivedInDashboard', - 'created' => 'setCreated', + 'id' => 'setId', + 'state' => 'setState', 'updated' => 'setUpdated', - 'publish_date' => 'setPublishDate' + 'slug' => 'setSlug' ]; /** @@ -168,20 +168,20 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'slug' => 'getSlug', - 'state' => 'getState', - 'author_name' => 'getAuthorName', + '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', - 'public_access_rules' => 'getPublicAccessRules', + 'name' => 'getName', 'campaign' => 'getCampaign', - 'tag_ids' => 'getTagIds', - 'archived_in_dashboard' => 'getArchivedInDashboard', - 'created' => 'getCreated', + 'id' => 'getId', + 'state' => 'getState', 'updated' => 'getUpdated', - 'publish_date' => 'getPublishDate' + 'slug' => 'getSlug' ]; /** @@ -241,20 +241,20 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; - $this->container['name'] = $data['name'] ?? null; - $this->container['slug'] = $data['slug'] ?? null; - $this->container['state'] = $data['state'] ?? null; - $this->container['author_name'] = $data['author_name'] ?? null; + $this->container['archived_in_dashboard'] = $data['archived_in_dashboard'] ?? null; + $this->container['created'] = $data['created'] ?? null; + $this->container['tag_ids'] = $data['tag_ids'] ?? null; + $this->container['publish_date'] = $data['publish_date'] ?? null; + $this->container['public_access_rules'] = $data['public_access_rules'] ?? null; $this->container['password'] = $data['password'] ?? null; + $this->container['author_name'] = $data['author_name'] ?? null; $this->container['public_access_rules_enabled'] = $data['public_access_rules_enabled'] ?? null; - $this->container['public_access_rules'] = $data['public_access_rules'] ?? null; + $this->container['name'] = $data['name'] ?? null; $this->container['campaign'] = $data['campaign'] ?? null; - $this->container['tag_ids'] = $data['tag_ids'] ?? null; - $this->container['archived_in_dashboard'] = $data['archived_in_dashboard'] ?? null; - $this->container['created'] = $data['created'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['state'] = $data['state'] ?? null; $this->container['updated'] = $data['updated'] ?? null; - $this->container['publish_date'] = $data['publish_date'] ?? null; + $this->container['slug'] = $data['slug'] ?? null; } /** @@ -266,44 +266,44 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; + if ($this->container['archived_in_dashboard'] === null) { + $invalidProperties[] = "'archived_in_dashboard' can't be null"; } - if ($this->container['slug'] === null) { - $invalidProperties[] = "'slug' can't be null"; + if ($this->container['created'] === null) { + $invalidProperties[] = "'created' can't be null"; } - if ($this->container['state'] === null) { - $invalidProperties[] = "'state' can't be null"; + if ($this->container['publish_date'] === null) { + $invalidProperties[] = "'publish_date' 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['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_enabled'] === null) { $invalidProperties[] = "'public_access_rules_enabled' 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['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['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } - if ($this->container['created'] === null) { - $invalidProperties[] = "'created' can't be null"; + if ($this->container['state'] === null) { + $invalidProperties[] = "'state' can't be null"; } if ($this->container['updated'] === null) { $invalidProperties[] = "'updated' can't be null"; } - if ($this->container['publish_date'] === null) { - $invalidProperties[] = "'publish_date' can't be null"; + if ($this->container['slug'] === null) { + $invalidProperties[] = "'slug' can't be null"; } return $invalidProperties; } @@ -321,121 +321,121 @@ public function valid() /** - * Gets id + * Gets archived_in_dashboard * - * @return int + * @return bool */ - public function getId() + public function getArchivedInDashboard() { - return $this->container['id']; + return $this->container['archived_in_dashboard']; } /** - * Sets id + * Sets archived_in_dashboard * - * @param int $id id + * @param bool $archived_in_dashboard archived_in_dashboard * * @return self */ - public function setId($id) + public function setArchivedInDashboard($archived_in_dashboard) { - $this->container['id'] = $id; + $this->container['archived_in_dashboard'] = $archived_in_dashboard; return $this; } /** - * Gets name + * Gets created * - * @return string + * @return \DateTime */ - public function getName() + public function getCreated() { - return $this->container['name']; + return $this->container['created']; } /** - * Sets name + * Sets created * - * @param string $name name + * @param \DateTime $created created * * @return self */ - public function setName($name) + public function setCreated($created) { - $this->container['name'] = $name; + $this->container['created'] = $created; return $this; } /** - * Gets slug + * Gets tag_ids * - * @return string + * @return int[]|null */ - public function getSlug() + public function getTagIds() { - return $this->container['slug']; + return $this->container['tag_ids']; } /** - * Sets slug + * Sets tag_ids * - * @param string $slug slug + * @param int[]|null $tag_ids tag_ids * * @return self */ - public function setSlug($slug) + public function setTagIds($tag_ids) { - $this->container['slug'] = $slug; + $this->container['tag_ids'] = $tag_ids; return $this; } /** - * Gets state + * Gets publish_date * - * @return string + * @return \DateTime */ - public function getState() + public function getPublishDate() { - return $this->container['state']; + return $this->container['publish_date']; } /** - * Sets state + * Sets publish_date * - * @param string $state state + * @param \DateTime $publish_date publish_date * * @return self */ - public function setState($state) + public function setPublishDate($publish_date) { - $this->container['state'] = $state; + $this->container['publish_date'] = $publish_date; return $this; } /** - * Gets author_name + * Gets public_access_rules * - * @return string + * @return object[] */ - public function getAuthorName() + public function getPublicAccessRules() { - return $this->container['author_name']; + return $this->container['public_access_rules']; } /** - * Sets author_name + * Sets public_access_rules * - * @param string $author_name author_name + * @param object[] $public_access_rules public_access_rules * * @return self */ - public function setAuthorName($author_name) + public function setPublicAccessRules($public_access_rules) { - $this->container['author_name'] = $author_name; + $this->container['public_access_rules'] = $public_access_rules; return $this; } @@ -465,145 +465,145 @@ public function setPassword($password) } /** - * Gets public_access_rules_enabled + * Gets author_name * - * @return bool + * @return string */ - public function getPublicAccessRulesEnabled() + public function getAuthorName() { - return $this->container['public_access_rules_enabled']; + return $this->container['author_name']; } /** - * Sets public_access_rules_enabled + * Sets author_name * - * @param bool $public_access_rules_enabled public_access_rules_enabled + * @param string $author_name author_name * * @return self */ - public function setPublicAccessRulesEnabled($public_access_rules_enabled) + public function setAuthorName($author_name) { - $this->container['public_access_rules_enabled'] = $public_access_rules_enabled; + $this->container['author_name'] = $author_name; return $this; } /** - * Gets public_access_rules + * Gets public_access_rules_enabled * - * @return object[] + * @return bool */ - public function getPublicAccessRules() + public function getPublicAccessRulesEnabled() { - return $this->container['public_access_rules']; + return $this->container['public_access_rules_enabled']; } /** - * Sets public_access_rules + * Sets public_access_rules_enabled * - * @param object[] $public_access_rules public_access_rules + * @param bool $public_access_rules_enabled public_access_rules_enabled * * @return self */ - public function setPublicAccessRules($public_access_rules) + public function setPublicAccessRulesEnabled($public_access_rules_enabled) { - $this->container['public_access_rules'] = $public_access_rules; + $this->container['public_access_rules_enabled'] = $public_access_rules_enabled; return $this; } /** - * Gets campaign + * Gets name * * @return string */ - public function getCampaign() + public function getName() { - return $this->container['campaign']; + return $this->container['name']; } /** - * Sets campaign + * Sets name * - * @param string $campaign campaign + * @param string $name name * * @return self */ - public function setCampaign($campaign) + public function setName($name) { - $this->container['campaign'] = $campaign; + $this->container['name'] = $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 campaign * * @return self */ - public function setTagIds($tag_ids) + public function setCampaign($campaign) { - $this->container['tag_ids'] = $tag_ids; + $this->container['campaign'] = $campaign; return $this; } /** - * Gets archived_in_dashboard + * Gets id * - * @return bool + * @return int */ - public function getArchivedInDashboard() + public function getId() { - return $this->container['archived_in_dashboard']; + return $this->container['id']; } /** - * Sets archived_in_dashboard + * Sets id * - * @param bool $archived_in_dashboard archived_in_dashboard + * @param int $id id * * @return self */ - public function setArchivedInDashboard($archived_in_dashboard) + public function setId($id) { - $this->container['archived_in_dashboard'] = $archived_in_dashboard; + $this->container['id'] = $id; return $this; } /** - * Gets created + * Gets state * - * @return \DateTime + * @return string */ - public function getCreated() + public function getState() { - return $this->container['created']; + return $this->container['state']; } /** - * Sets created + * Sets state * - * @param \DateTime $created created + * @param string $state state * * @return self */ - public function setCreated($created) + public function setState($state) { - $this->container['created'] = $created; + $this->container['state'] = $state; return $this; } @@ -633,25 +633,25 @@ public function setUpdated($updated) } /** - * Gets publish_date + * Gets slug * - * @return \DateTime + * @return string */ - public function getPublishDate() + public function getSlug() { - return $this->container['publish_date']; + return $this->container['slug']; } /** - * Sets publish_date + * Sets slug * - * @param \DateTime $publish_date publish_date + * @param string $slug slug * * @return self */ - public function setPublishDate($publish_date) + public function setSlug($slug) { - $this->container['publish_date'] = $publish_date; + $this->container['slug'] = $slug; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/ContentScheduleRequestVNext.php b/codegen/Cms/Blogs/BlogPosts/Model/ContentScheduleRequestVNext.php index 78e13e33..f73f5e54 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/ContentScheduleRequestVNext.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/ContentScheduleRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,8 +58,8 @@ class ContentScheduleRequestVNext implements ModelInterface, ArrayAccess, \JsonS * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', - 'publish_date' => '\DateTime' + 'publish_date' => '\DateTime', + 'id' => 'string' ]; /** @@ -70,8 +70,8 @@ class ContentScheduleRequestVNext implements ModelInterface, ArrayAccess, \JsonS * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, - 'publish_date' => 'date-time' + 'publish_date' => 'date-time', + 'id' => null ]; /** @@ -101,8 +101,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', - 'publish_date' => 'publishDate' + 'publish_date' => 'publishDate', + 'id' => 'id' ]; /** @@ -111,8 +111,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', - 'publish_date' => 'setPublishDate' + 'publish_date' => 'setPublishDate', + 'id' => 'setId' ]; /** @@ -121,8 +121,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', - 'publish_date' => 'getPublishDate' + 'publish_date' => 'getPublishDate', + 'id' => 'getId' ]; /** @@ -182,8 +182,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; $this->container['publish_date'] = $data['publish_date'] ?? null; + $this->container['id'] = $data['id'] ?? null; } /** @@ -195,12 +195,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' 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"; + } return $invalidProperties; } @@ -217,49 +217,49 @@ public function valid() /** - * 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) { - $this->container['id'] = $id; + $this->container['publish_date'] = $publish_date; return $this; } /** - * 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) { - $this->container['publish_date'] = $publish_date; + $this->container['id'] = $id; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/DetachFromLangGroupRequestVNext.php b/codegen/Cms/Blogs/BlogPosts/Model/DetachFromLangGroupRequestVNext.php index 9e9e8351..97419cda 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/DetachFromLangGroupRequestVNext.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/DetachFromLangGroupRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/BlogPosts/Model/Error.php b/codegen/Cms/Blogs/BlogPosts/Model/Error.php index 066515f7..fe3a9c83 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/Error.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/Error.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'correlation_id' => 'string', - 'category' => 'string', 'sub_category' => 'string', - 'errors' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\ErrorDetail[]', 'context' => 'array', - 'links' => 'array' + 'correlation_id' => 'string', + 'links' => 'array', + 'message' => 'string', + 'category' => 'string', + 'errors' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\ErrorDetail[]' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'correlation_id' => 'uuid', - 'category' => null, 'sub_category' => null, - 'errors' => null, 'context' => null, - 'links' => null + 'correlation_id' => 'uuid', + 'links' => null, + 'message' => null, + 'category' => null, + 'errors' => null ]; /** @@ -110,13 +110,13 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'correlation_id' => 'correlationId', - 'category' => 'category', 'sub_category' => 'subCategory', - 'errors' => 'errors', 'context' => 'context', - 'links' => 'links' + 'correlation_id' => 'correlationId', + 'links' => 'links', + 'message' => 'message', + 'category' => 'category', + 'errors' => 'errors' ]; /** @@ -125,13 +125,13 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'correlation_id' => 'setCorrelationId', - 'category' => 'setCategory', 'sub_category' => 'setSubCategory', - 'errors' => 'setErrors', 'context' => 'setContext', - 'links' => 'setLinks' + 'correlation_id' => 'setCorrelationId', + 'links' => 'setLinks', + 'message' => 'setMessage', + 'category' => 'setCategory', + 'errors' => 'setErrors' ]; /** @@ -140,13 +140,13 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'correlation_id' => 'getCorrelationId', - 'category' => 'getCategory', 'sub_category' => 'getSubCategory', - 'errors' => 'getErrors', 'context' => 'getContext', - 'links' => 'getLinks' + 'correlation_id' => 'getCorrelationId', + 'links' => 'getLinks', + 'message' => 'getMessage', + 'category' => 'getCategory', + 'errors' => 'getErrors' ]; /** @@ -206,13 +206,13 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['correlation_id'] = $data['correlation_id'] ?? null; - $this->container['category'] = $data['category'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['correlation_id'] = $data['correlation_id'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['message'] = $data['message'] ?? null; + $this->container['category'] = $data['category'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; } /** @@ -224,12 +224,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' 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"; } @@ -249,169 +249,169 @@ public function valid() /** - * 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) { - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets correlation_id + * Gets context * - * @return string + * @return array|null */ - public function getCorrelationId() + public function getContext() { - return $this->container['correlation_id']; + return $this->container['context']; } /** - * Sets correlation_id + * Sets context * - * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets + * @param array|null $context Context about the error condition * * @return self */ - public function setCorrelationId($correlation_id) + public function setContext($context) { - $this->container['correlation_id'] = $correlation_id; + $this->container['context'] = $context; return $this; } /** - * Gets category + * Gets correlation_id * * @return string */ - public function getCategory() + public function getCorrelationId() { - return $this->container['category']; + return $this->container['correlation_id']; } /** - * Sets category + * Sets correlation_id * - * @param string $category The error category + * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets * * @return self */ - public function setCategory($category) + public function setCorrelationId($correlation_id) { - $this->container['category'] = $category; + $this->container['correlation_id'] = $correlation_id; return $this; } /** - * Gets sub_category + * Gets links * - * @return string|null + * @return array|null */ - public function getSubCategory() + public function getLinks() { - return $this->container['sub_category']; + return $this->container['links']; } /** - * Sets sub_category + * Sets links * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps * * @return self */ - public function setSubCategory($sub_category) + public function setLinks($links) { - $this->container['sub_category'] = $sub_category; + $this->container['links'] = $links; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\ErrorDetail[]|null + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\ErrorDetail[]|null $errors further information about the error + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets category * - * @return array|null + * @return string */ - public function getContext() + public function getCategory() { - return $this->container['context']; + return $this->container['category']; } /** - * Sets context + * Sets category * - * @param array|null $context Context about the error condition + * @param string $category The error category * * @return self */ - public function setContext($context) + public function setCategory($category) { - $this->container['context'] = $context; + $this->container['category'] = $category; return $this; } /** - * Gets links + * Gets errors * - * @return array|null + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\ErrorDetail[]|null */ - public function getLinks() + public function getErrors() { - return $this->container['links']; + return $this->container['errors']; } /** - * Sets links + * Sets errors * - * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\ErrorDetail[]|null $errors further information about the error * * @return self */ - public function setLinks($links) + public function setErrors($errors) { - $this->container['links'] = $links; + $this->container['errors'] = $errors; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/ErrorDetail.php b/codegen/Cms/Blogs/BlogPosts/Model/ErrorDetail.php index b7d686d1..e6c9f274 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/ErrorDetail.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/ErrorDetail.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'in' => 'string', - 'code' => 'string', 'sub_category' => 'string', - 'context' => 'array' + 'code' => 'string', + 'in' => 'string', + 'context' => 'array', + 'message' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'in' => null, - 'code' => null, 'sub_category' => null, - 'context' => null + 'code' => null, + 'in' => null, + 'context' => null, + 'message' => null ]; /** @@ -106,11 +106,11 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'in' => 'in', - 'code' => 'code', 'sub_category' => 'subCategory', - 'context' => 'context' + 'code' => 'code', + 'in' => 'in', + 'context' => 'context', + 'message' => 'message' ]; /** @@ -119,11 +119,11 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'in' => 'setIn', - 'code' => 'setCode', 'sub_category' => 'setSubCategory', - 'context' => 'setContext' + 'code' => 'setCode', + 'in' => 'setIn', + 'context' => 'setContext', + 'message' => 'setMessage' ]; /** @@ -132,11 +132,11 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'in' => 'getIn', - 'code' => 'getCode', 'sub_category' => 'getSubCategory', - 'context' => 'getContext' + 'code' => 'getCode', + 'in' => 'getIn', + 'context' => 'getContext', + 'message' => 'getMessage' ]; /** @@ -196,11 +196,11 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['in'] = $data['in'] ?? null; - $this->container['code'] = $data['code'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['code'] = $data['code'] ?? null; + $this->container['in'] = $data['in'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['message'] = $data['message'] ?? null; } /** @@ -231,49 +231,25 @@ public function valid() /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A human readable message describing the error along with remediation steps where appropriate - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - - /** - * Gets in + * Gets sub_category * * @return string|null */ - public function getIn() + public function getSubCategory() { - return $this->container['in']; + return $this->container['sub_category']; } /** - * Sets in + * Sets sub_category * - * @param string|null $in The name of the field or parameter in which the error was found. + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setIn($in) + public function setSubCategory($sub_category) { - $this->container['in'] = $in; + $this->container['sub_category'] = $sub_category; return $this; } @@ -303,25 +279,25 @@ public function setCode($code) } /** - * Gets sub_category + * Gets in * * @return string|null */ - public function getSubCategory() + public function getIn() { - return $this->container['sub_category']; + return $this->container['in']; } /** - * Sets sub_category + * Sets in * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $in The name of the field or parameter in which the error was found. * * @return self */ - public function setSubCategory($sub_category) + public function setIn($in) { - $this->container['sub_category'] = $sub_category; + $this->container['in'] = $in; return $this; } @@ -349,6 +325,30 @@ public function setContext($context) return $this; } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message A human readable message describing the error along with remediation steps where appropriate + * + * @return self + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Blogs/BlogPosts/Model/ForwardPaging.php b/codegen/Cms/Blogs/BlogPosts/Model/ForwardPaging.php index 84dabde0..a1ebd4ac 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/ForwardPaging.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/ForwardPaging.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/BlogPosts/Model/Gradient.php b/codegen/Cms/Blogs/BlogPosts/Model/Gradient.php index 52060ae6..6cfc3d19 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/Gradient.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/Gradient.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -57,8 +57,8 @@ class Gradient implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'side_or_corner' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\SideOrCorner', 'angle' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Angle', + 'side_or_corner' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\SideOrCorner', 'colors' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\ColorStop[]' ]; @@ -70,8 +70,8 @@ class Gradient implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'side_or_corner' => null, 'angle' => null, + 'side_or_corner' => null, 'colors' => null ]; @@ -102,8 +102,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'side_or_corner' => 'sideOrCorner', 'angle' => 'angle', + 'side_or_corner' => 'sideOrCorner', 'colors' => 'colors' ]; @@ -113,8 +113,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'side_or_corner' => 'setSideOrCorner', 'angle' => 'setAngle', + 'side_or_corner' => 'setSideOrCorner', 'colors' => 'setColors' ]; @@ -124,8 +124,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'side_or_corner' => 'getSideOrCorner', 'angle' => 'getAngle', + 'side_or_corner' => 'getSideOrCorner', 'colors' => 'getColors' ]; @@ -186,8 +186,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['side_or_corner'] = $data['side_or_corner'] ?? null; $this->container['angle'] = $data['angle'] ?? null; + $this->container['side_or_corner'] = $data['side_or_corner'] ?? null; $this->container['colors'] = $data['colors'] ?? null; } @@ -200,12 +200,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['side_or_corner'] === null) { - $invalidProperties[] = "'side_or_corner' can't be null"; - } 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"; } @@ -225,49 +225,49 @@ public function valid() /** - * Gets side_or_corner + * Gets angle * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\SideOrCorner + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Angle */ - public function getSideOrCorner() + public function getAngle() { - return $this->container['side_or_corner']; + return $this->container['angle']; } /** - * Sets side_or_corner + * Sets angle * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\SideOrCorner $side_or_corner side_or_corner + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Angle $angle angle * * @return self */ - public function setSideOrCorner($side_or_corner) + public function setAngle($angle) { - $this->container['side_or_corner'] = $side_or_corner; + $this->container['angle'] = $angle; return $this; } /** - * Gets angle + * Gets side_or_corner * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Angle + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\SideOrCorner */ - public function getAngle() + public function getSideOrCorner() { - return $this->container['angle']; + return $this->container['side_or_corner']; } /** - * Sets angle + * Sets side_or_corner * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Angle $angle angle + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\SideOrCorner $side_or_corner side_or_corner * * @return self */ - public function setAngle($angle) + public function setSideOrCorner($side_or_corner) { - $this->container['angle'] = $angle; + $this->container['side_or_corner'] = $side_or_corner; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/LayoutSection.php b/codegen/Cms/Blogs/BlogPosts/Model/LayoutSection.php index 1a3d9162..ddfc732b 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/LayoutSection.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/LayoutSection.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -57,9 +57,7 @@ class LayoutSection implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'x' => 'int', - 'w' => 'int', - 'name' => 'string', + 'css_style' => 'string', 'label' => 'string', 'type' => 'string', 'params' => 'array', @@ -67,8 +65,10 @@ class LayoutSection implements ModelInterface, ArrayAccess, \JsonSerializable 'row_meta_data' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\RowMetaData[]', 'cells' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\LayoutSection[]', 'css_class' => 'string', - 'css_style' => 'string', + 'w' => 'int', 'css_id' => 'string', + 'x' => 'int', + 'name' => 'string', 'styles' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Styles' ]; @@ -80,9 +80,7 @@ class LayoutSection implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'x' => 'int32', - 'w' => 'int32', - 'name' => null, + 'css_style' => null, 'label' => null, 'type' => null, 'params' => null, @@ -90,8 +88,10 @@ class LayoutSection implements ModelInterface, ArrayAccess, \JsonSerializable 'row_meta_data' => null, 'cells' => null, 'css_class' => null, - 'css_style' => null, + 'w' => 'int32', 'css_id' => null, + 'x' => 'int32', + 'name' => null, 'styles' => null ]; @@ -122,9 +122,7 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'x' => 'x', - 'w' => 'w', - 'name' => 'name', + 'css_style' => 'cssStyle', 'label' => 'label', 'type' => 'type', 'params' => 'params', @@ -132,8 +130,10 @@ public static function openAPIFormats() 'row_meta_data' => 'rowMetaData', 'cells' => 'cells', 'css_class' => 'cssClass', - 'css_style' => 'cssStyle', + 'w' => 'w', 'css_id' => 'cssId', + 'x' => 'x', + 'name' => 'name', 'styles' => 'styles' ]; @@ -143,9 +143,7 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'x' => 'setX', - 'w' => 'setW', - 'name' => 'setName', + 'css_style' => 'setCssStyle', 'label' => 'setLabel', 'type' => 'setType', 'params' => 'setParams', @@ -153,8 +151,10 @@ public static function openAPIFormats() 'row_meta_data' => 'setRowMetaData', 'cells' => 'setCells', 'css_class' => 'setCssClass', - 'css_style' => 'setCssStyle', + 'w' => 'setW', 'css_id' => 'setCssId', + 'x' => 'setX', + 'name' => 'setName', 'styles' => 'setStyles' ]; @@ -164,9 +164,7 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'x' => 'getX', - 'w' => 'getW', - 'name' => 'getName', + 'css_style' => 'getCssStyle', 'label' => 'getLabel', 'type' => 'getType', 'params' => 'getParams', @@ -174,8 +172,10 @@ public static function openAPIFormats() 'row_meta_data' => 'getRowMetaData', 'cells' => 'getCells', 'css_class' => 'getCssClass', - 'css_style' => 'getCssStyle', + 'w' => 'getW', 'css_id' => 'getCssId', + 'x' => 'getX', + 'name' => 'getName', 'styles' => 'getStyles' ]; @@ -236,9 +236,7 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['x'] = $data['x'] ?? null; - $this->container['w'] = $data['w'] ?? null; - $this->container['name'] = $data['name'] ?? null; + $this->container['css_style'] = $data['css_style'] ?? null; $this->container['label'] = $data['label'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['params'] = $data['params'] ?? null; @@ -246,8 +244,10 @@ public function __construct(array $data = null) $this->container['row_meta_data'] = $data['row_meta_data'] ?? null; $this->container['cells'] = $data['cells'] ?? null; $this->container['css_class'] = $data['css_class'] ?? null; - $this->container['css_style'] = $data['css_style'] ?? null; + $this->container['w'] = $data['w'] ?? null; $this->container['css_id'] = $data['css_id'] ?? null; + $this->container['x'] = $data['x'] ?? null; + $this->container['name'] = $data['name'] ?? null; $this->container['styles'] = $data['styles'] ?? null; } @@ -260,14 +260,8 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['x'] === null) { - $invalidProperties[] = "'x' can't be null"; - } - if ($this->container['w'] === null) { - $invalidProperties[] = "'w' can't be null"; - } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' 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"; @@ -290,12 +284,18 @@ public function listInvalidProperties() if ($this->container['css_class'] === null) { $invalidProperties[] = "'css_class' can't be null"; } - if ($this->container['css_style'] === null) { - $invalidProperties[] = "'css_style' 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"; } @@ -315,73 +315,25 @@ public function valid() /** - * Gets x - * - * @return int - */ - public function getX() - { - return $this->container['x']; - } - - /** - * Sets x - * - * @param int $x x - * - * @return self - */ - public function setX($x) - { - $this->container['x'] = $x; - - return $this; - } - - /** - * Gets w - * - * @return int - */ - public function getW() - { - return $this->container['w']; - } - - /** - * Sets w - * - * @param int $w w - * - * @return self - */ - public function setW($w) - { - $this->container['w'] = $w; - - return $this; - } - - /** - * Gets name + * Gets css_style * * @return string */ - public function getName() + public function getCssStyle() { - return $this->container['name']; + return $this->container['css_style']; } /** - * Sets name + * Sets css_style * - * @param string $name name + * @param string $css_style css_style * * @return self */ - public function setName($name) + public function setCssStyle($css_style) { - $this->container['name'] = $name; + $this->container['css_style'] = $css_style; return $this; } @@ -555,25 +507,25 @@ public function setCssClass($css_class) } /** - * Gets css_style + * Gets w * - * @return string + * @return int */ - public function getCssStyle() + public function getW() { - return $this->container['css_style']; + return $this->container['w']; } /** - * Sets css_style + * Sets w * - * @param string $css_style css_style + * @param int $w w * * @return self */ - public function setCssStyle($css_style) + public function setW($w) { - $this->container['css_style'] = $css_style; + $this->container['w'] = $w; return $this; } @@ -602,6 +554,54 @@ public function setCssId($css_id) return $this; } + /** + * Gets x + * + * @return int + */ + public function getX() + { + return $this->container['x']; + } + + /** + * Sets x + * + * @param int $x x + * + * @return self + */ + public function setX($x) + { + $this->container['x'] = $x; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return self + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** * Gets styles * diff --git a/codegen/Cms/Blogs/BlogPosts/Model/ModelInterface.php b/codegen/Cms/Blogs/BlogPosts/Model/ModelInterface.php index b976b921..5af14241 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/ModelInterface.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/ModelInterface.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/BlogPosts/Model/NextPage.php b/codegen/Cms/Blogs/BlogPosts/Model/NextPage.php index d5c0b33c..0ae45ac8 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/NextPage.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/NextPage.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,8 +58,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'after' => 'string', - 'link' => 'string' + 'link' => 'string', + 'after' => 'string' ]; /** @@ -70,8 +70,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'after' => null, - 'link' => null + 'link' => null, + 'after' => null ]; /** @@ -101,8 +101,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'after' => 'after', - 'link' => 'link' + 'link' => 'link', + 'after' => 'after' ]; /** @@ -111,8 +111,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'after' => 'setAfter', - 'link' => 'setLink' + 'link' => 'setLink', + 'after' => 'setAfter' ]; /** @@ -121,8 +121,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'after' => 'getAfter', - 'link' => 'getLink' + 'link' => 'getLink', + 'after' => 'getAfter' ]; /** @@ -182,8 +182,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['after'] = $data['after'] ?? null; $this->container['link'] = $data['link'] ?? null; + $this->container['after'] = $data['after'] ?? null; } /** @@ -214,49 +214,49 @@ public function valid() /** - * 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 after + * @param string|null $link * * @return self */ - public function setAfter($after) + public function setLink($link) { - $this->container['after'] = $after; + $this->container['link'] = $link; return $this; } /** - * 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 link + * @param string $after * * @return self */ - public function setLink($link) + public function setAfter($after) { - $this->container['link'] = $link; + $this->container['after'] = $after; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/Paging.php b/codegen/Cms/Blogs/BlogPosts/Model/Paging.php index e589f149..dc09a4e6 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/Paging.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/Paging.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/BlogPosts/Model/PreviousPage.php b/codegen/Cms/Blogs/BlogPosts/Model/PreviousPage.php index 8898f6c2..ed1a0e27 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/PreviousPage.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/PreviousPage.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -226,7 +226,7 @@ public function getBefore() /** * Sets before * - * @param string $before before + * @param string $before * * @return self */ @@ -250,7 +250,7 @@ public function getLink() /** * Sets link * - * @param string|null $link link + * @param string|null $link * * @return self */ diff --git a/codegen/Cms/Blogs/BlogPosts/Model/RGBAColor.php b/codegen/Cms/Blogs/BlogPosts/Model/RGBAColor.php index 04effbc1..5733ad1c 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/RGBAColor.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/RGBAColor.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,10 +58,10 @@ class RGBAColor implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'a' => 'float', 'r' => 'int', - 'g' => 'int', 'b' => 'int', - 'a' => 'float' + 'g' => 'int' ]; /** @@ -72,10 +72,10 @@ class RGBAColor implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'a' => null, 'r' => 'int32', - 'g' => 'int32', 'b' => 'int32', - 'a' => null + 'g' => 'int32' ]; /** @@ -105,10 +105,10 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ + 'a' => 'a', 'r' => 'r', - 'g' => 'g', 'b' => 'b', - 'a' => 'a' + 'g' => 'g' ]; /** @@ -117,10 +117,10 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ + 'a' => 'setA', 'r' => 'setR', - 'g' => 'setG', 'b' => 'setB', - 'a' => 'setA' + 'g' => 'setG' ]; /** @@ -129,10 +129,10 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ + 'a' => 'getA', 'r' => 'getR', - 'g' => 'getG', 'b' => 'getB', - 'a' => 'getA' + 'g' => 'getG' ]; /** @@ -192,10 +192,10 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['a'] = $data['a'] ?? null; $this->container['r'] = $data['r'] ?? null; - $this->container['g'] = $data['g'] ?? null; $this->container['b'] = $data['b'] ?? null; - $this->container['a'] = $data['a'] ?? null; + $this->container['g'] = $data['g'] ?? null; } /** @@ -207,17 +207,17 @@ public function listInvalidProperties() { $invalidProperties = []; + 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['g'] === null) { - $invalidProperties[] = "'g' can't be null"; - } if ($this->container['b'] === null) { $invalidProperties[] = "'b' can't be null"; } - if ($this->container['a'] === null) { - $invalidProperties[] = "'a' can't be null"; + if ($this->container['g'] === null) { + $invalidProperties[] = "'g' can't be null"; } return $invalidProperties; } @@ -235,49 +235,49 @@ public function valid() /** - * Gets r + * Gets a * - * @return int + * @return float */ - public function getR() + public function getA() { - return $this->container['r']; + return $this->container['a']; } /** - * Sets r + * Sets a * - * @param int $r Red. + * @param float $a Alpha. * * @return self */ - public function setR($r) + public function setA($a) { - $this->container['r'] = $r; + $this->container['a'] = $a; return $this; } /** - * Gets g + * Gets r * * @return int */ - public function getG() + public function getR() { - return $this->container['g']; + return $this->container['r']; } /** - * Sets g + * Sets r * - * @param int $g Green. + * @param int $r Red. * * @return self */ - public function setG($g) + public function setR($r) { - $this->container['g'] = $g; + $this->container['r'] = $r; return $this; } @@ -307,25 +307,25 @@ public function setB($b) } /** - * Gets a + * Gets g * - * @return float + * @return int */ - public function getA() + public function getG() { - return $this->container['a']; + return $this->container['g']; } /** - * Sets a + * Sets g * - * @param float $a Alpha. + * @param int $g Green. * * @return self */ - public function setA($a) + public function setG($g) { - $this->container['a'] = $a; + $this->container['g'] = $g; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/RowMetaData.php b/codegen/Cms/Blogs/BlogPosts/Model/RowMetaData.php index 9dacb236..39e46438 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/RowMetaData.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/RowMetaData.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -57,8 +57,8 @@ class RowMetaData implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'styles' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Styles', - 'css_class' => 'string' + 'css_class' => 'string', + 'styles' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Styles' ]; /** @@ -69,8 +69,8 @@ class RowMetaData implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'styles' => null, - 'css_class' => null + 'css_class' => null, + 'styles' => null ]; /** @@ -100,8 +100,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'styles' => 'styles', - 'css_class' => 'cssClass' + 'css_class' => 'cssClass', + 'styles' => 'styles' ]; /** @@ -110,8 +110,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'styles' => 'setStyles', - 'css_class' => 'setCssClass' + 'css_class' => 'setCssClass', + 'styles' => 'setStyles' ]; /** @@ -120,8 +120,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'styles' => 'getStyles', - 'css_class' => 'getCssClass' + 'css_class' => 'getCssClass', + 'styles' => 'getStyles' ]; /** @@ -181,8 +181,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['styles'] = $data['styles'] ?? null; $this->container['css_class'] = $data['css_class'] ?? null; + $this->container['styles'] = $data['styles'] ?? null; } /** @@ -194,12 +194,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['styles'] === null) { - $invalidProperties[] = "'styles' 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"; + } return $invalidProperties; } @@ -216,49 +216,49 @@ public function valid() /** - * Gets styles + * Gets css_class * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Styles + * @return string */ - public function getStyles() + public function getCssClass() { - return $this->container['styles']; + return $this->container['css_class']; } /** - * Sets styles + * Sets css_class * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Styles $styles styles + * @param string $css_class css_class * * @return self */ - public function setStyles($styles) + public function setCssClass($css_class) { - $this->container['styles'] = $styles; + $this->container['css_class'] = $css_class; return $this; } /** - * Gets css_class + * Gets styles * - * @return string + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Styles */ - public function getCssClass() + public function getStyles() { - return $this->container['css_class']; + return $this->container['styles']; } /** - * Sets css_class + * Sets styles * - * @param string $css_class css_class + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Styles $styles styles * * @return self */ - public function setCssClass($css_class) + public function setStyles($styles) { - $this->container['css_class'] = $css_class; + $this->container['styles'] = $styles; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/SetNewLanguagePrimaryRequestVNext.php b/codegen/Cms/Blogs/BlogPosts/Model/SetNewLanguagePrimaryRequestVNext.php index ed945765..a25cefa4 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/SetNewLanguagePrimaryRequestVNext.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/SetNewLanguagePrimaryRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/BlogPosts/Model/SideOrCorner.php b/codegen/Cms/Blogs/BlogPosts/Model/SideOrCorner.php index 6521be59..dfb6d2d7 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/SideOrCorner.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/SideOrCorner.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -57,8 +57,8 @@ class SideOrCorner implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'vertical_side' => 'string', - 'horizontal_side' => 'string' + 'horizontal_side' => 'string', + 'vertical_side' => 'string' ]; /** @@ -69,8 +69,8 @@ class SideOrCorner implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'vertical_side' => null, - 'horizontal_side' => null + 'horizontal_side' => null, + 'vertical_side' => null ]; /** @@ -100,8 +100,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'vertical_side' => 'verticalSide', - 'horizontal_side' => 'horizontalSide' + 'horizontal_side' => 'horizontalSide', + 'vertical_side' => 'verticalSide' ]; /** @@ -110,8 +110,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'vertical_side' => 'setVerticalSide', - 'horizontal_side' => 'setHorizontalSide' + 'horizontal_side' => 'setHorizontalSide', + 'vertical_side' => 'setVerticalSide' ]; /** @@ -120,8 +120,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'vertical_side' => 'getVerticalSide', - 'horizontal_side' => 'getHorizontalSide' + 'horizontal_side' => 'getHorizontalSide', + 'vertical_side' => 'getVerticalSide' ]; /** @@ -165,40 +165,6 @@ public function getModelName() return self::$openAPIModelName; } - public const VERTICAL_SIDE_TOP = 'TOP'; - public const VERTICAL_SIDE_MIDDLE = 'MIDDLE'; - public const VERTICAL_SIDE_BOTTOM = 'BOTTOM'; - public const HORIZONTAL_SIDE_LEFT = 'LEFT'; - public const HORIZONTAL_SIDE_CENTER = 'CENTER'; - public const HORIZONTAL_SIDE_RIGHT = 'RIGHT'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getVerticalSideAllowableValues() - { - return [ - self::VERTICAL_SIDE_TOP, - self::VERTICAL_SIDE_MIDDLE, - self::VERTICAL_SIDE_BOTTOM, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getHorizontalSideAllowableValues() - { - return [ - self::HORIZONTAL_SIDE_LEFT, - self::HORIZONTAL_SIDE_CENTER, - self::HORIZONTAL_SIDE_RIGHT, - ]; - } /** * Associative array for storing property values @@ -215,8 +181,8 @@ public function getHorizontalSideAllowableValues() */ public function __construct(array $data = null) { - $this->container['vertical_side'] = $data['vertical_side'] ?? null; $this->container['horizontal_side'] = $data['horizontal_side'] ?? null; + $this->container['vertical_side'] = $data['vertical_side'] ?? null; } /** @@ -228,30 +194,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['vertical_side'] === null) { - $invalidProperties[] = "'vertical_side' can't be null"; - } - $allowedValues = $this->getVerticalSideAllowableValues(); - if (!is_null($this->container['vertical_side']) && !in_array($this->container['vertical_side'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'vertical_side', must be one of '%s'", - $this->container['vertical_side'], - implode("', '", $allowedValues) - ); - } - if ($this->container['horizontal_side'] === null) { $invalidProperties[] = "'horizontal_side' can't be null"; } - $allowedValues = $this->getHorizontalSideAllowableValues(); - if (!is_null($this->container['horizontal_side']) && !in_array($this->container['horizontal_side'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'horizontal_side', must be one of '%s'", - $this->container['horizontal_side'], - implode("', '", $allowedValues) - ); + if ($this->container['vertical_side'] === null) { + $invalidProperties[] = "'vertical_side' can't be null"; } - return $invalidProperties; } @@ -268,69 +216,49 @@ public function valid() /** - * Gets vertical_side + * Gets horizontal_side * * @return string */ - public function getVerticalSide() + public function getHorizontalSide() { - return $this->container['vertical_side']; + return $this->container['horizontal_side']; } /** - * Sets vertical_side + * Sets horizontal_side * - * @param string $vertical_side vertical_side + * @param string $horizontal_side horizontal_side * * @return self */ - public function setVerticalSide($vertical_side) + public function setHorizontalSide($horizontal_side) { - $allowedValues = $this->getVerticalSideAllowableValues(); - if (!in_array($vertical_side, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'vertical_side', must be one of '%s'", - $vertical_side, - implode("', '", $allowedValues) - ) - ); - } - $this->container['vertical_side'] = $vertical_side; + $this->container['horizontal_side'] = $horizontal_side; return $this; } /** - * Gets horizontal_side + * Gets vertical_side * * @return string */ - public function getHorizontalSide() + public function getVerticalSide() { - return $this->container['horizontal_side']; + return $this->container['vertical_side']; } /** - * Sets horizontal_side + * Sets vertical_side * - * @param string $horizontal_side horizontal_side + * @param string $vertical_side vertical_side * * @return self */ - public function setHorizontalSide($horizontal_side) + public function setVerticalSide($vertical_side) { - $allowedValues = $this->getHorizontalSideAllowableValues(); - if (!in_array($horizontal_side, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'horizontal_side', must be one of '%s'", - $horizontal_side, - implode("', '", $allowedValues) - ) - ); - } - $this->container['horizontal_side'] = $horizontal_side; + $this->container['vertical_side'] = $vertical_side; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/StandardError.php b/codegen/Cms/Blogs/BlogPosts/Model/StandardError.php index e3af864c..c2d1442e 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/StandardError.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/StandardError.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,14 +58,14 @@ class StandardError implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', - 'id' => 'string', - 'category' => 'object', 'sub_category' => 'object', + 'context' => 'array', + 'links' => 'array', + 'id' => 'string', + 'category' => 'string', 'message' => 'string', 'errors' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\ErrorDetail[]', - 'context' => 'array', - 'links' => 'array' + 'status' => 'string' ]; /** @@ -76,14 +76,14 @@ class StandardError implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'status' => null, + 'sub_category' => null, + 'context' => null, + 'links' => null, 'id' => null, 'category' => null, - 'sub_category' => null, 'message' => null, 'errors' => null, - 'context' => null, - 'links' => null + 'status' => null ]; /** @@ -113,14 +113,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'status' => 'status', + 'sub_category' => 'subCategory', + 'context' => 'context', + 'links' => 'links', 'id' => 'id', 'category' => 'category', - 'sub_category' => 'subCategory', 'message' => 'message', 'errors' => 'errors', - 'context' => 'context', - 'links' => 'links' + 'status' => 'status' ]; /** @@ -129,14 +129,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'status' => 'setStatus', + 'sub_category' => 'setSubCategory', + 'context' => 'setContext', + 'links' => 'setLinks', 'id' => 'setId', 'category' => 'setCategory', - 'sub_category' => 'setSubCategory', 'message' => 'setMessage', 'errors' => 'setErrors', - 'context' => 'setContext', - 'links' => 'setLinks' + 'status' => 'setStatus' ]; /** @@ -145,14 +145,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'status' => 'getStatus', + 'sub_category' => 'getSubCategory', + 'context' => 'getContext', + 'links' => 'getLinks', 'id' => 'getId', 'category' => 'getCategory', - 'sub_category' => 'getSubCategory', 'message' => 'getMessage', 'errors' => 'getErrors', - 'context' => 'getContext', - 'links' => 'getLinks' + 'status' => 'getStatus' ]; /** @@ -212,14 +212,14 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['status'] = $data['status'] ?? null; + $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['context'] = $data['context'] ?? null; + $this->container['links'] = $data['links'] ?? null; $this->container['id'] = $data['id'] ?? null; $this->container['category'] = $data['category'] ?? null; - $this->container['sub_category'] = $data['sub_category'] ?? null; $this->container['message'] = $data['message'] ?? null; $this->container['errors'] = $data['errors'] ?? null; - $this->container['context'] = $data['context'] ?? null; - $this->container['links'] = $data['links'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -231,8 +231,11 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; + if ($this->container['context'] === null) { + $invalidProperties[] = "'context' 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"; @@ -243,11 +246,8 @@ public function listInvalidProperties() if ($this->container['errors'] === null) { $invalidProperties[] = "'errors' can't be null"; } - if ($this->container['context'] === null) { - $invalidProperties[] = "'context' can't be null"; - } - if ($this->container['links'] === null) { - $invalidProperties[] = "'links' can't be null"; + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; } return $invalidProperties; } @@ -265,193 +265,193 @@ public function valid() /** - * 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) { - $this->container['status'] = $status; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets id + * Gets context * - * @return string|null + * @return array */ - public function getId() + public function getContext() { - return $this->container['id']; + return $this->container['context']; } /** - * Sets id + * Sets context * - * @param string|null $id Error ID. + * @param array $context Error context. * * @return self */ - public function setId($id) + public function setContext($context) { - $this->container['id'] = $id; + $this->container['context'] = $context; return $this; } /** - * Gets category + * Gets links * - * @return object + * @return array */ - public function getCategory() + public function getLinks() { - return $this->container['category']; + return $this->container['links']; } /** - * Sets category + * Sets links * - * @param object $category Model definition for an error category. + * @param array $links Error links. * * @return self */ - public function setCategory($category) + public function setLinks($links) { - $this->container['category'] = $category; + $this->container['links'] = $links; return $this; } /** - * Gets sub_category + * Gets id * - * @return object|null + * @return string|null */ - public function getSubCategory() + public function getId() { - return $this->container['sub_category']; + return $this->container['id']; } /** - * Sets sub_category + * Sets id * - * @param object|null $sub_category Error subcategory. + * @param string|null $id Error ID. * * @return self */ - public function setSubCategory($sub_category) + public function setId($id) { - $this->container['sub_category'] = $sub_category; + $this->container['id'] = $id; return $this; } /** - * Gets message + * Gets category * * @return string */ - public function getMessage() + public function getCategory() { - return $this->container['message']; + return $this->container['category']; } /** - * Sets message + * Sets category * - * @param string $message Error message. + * @param string $category Error category. * * @return self */ - public function setMessage($message) + public function setCategory($category) { - $this->container['message'] = $message; + $this->container['category'] = $category; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\ErrorDetail[] + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\ErrorDetail[] $errors List of error details. + * @param string $message Error message. * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets errors * - * @return array + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\ErrorDetail[] */ - public function getContext() + public function getErrors() { - return $this->container['context']; + return $this->container['errors']; } /** - * Sets context + * Sets errors * - * @param array $context Error context. + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\ErrorDetail[] $errors List of error details. * * @return self */ - public function setContext($context) + public function setErrors($errors) { - $this->container['context'] = $context; + $this->container['errors'] = $errors; return $this; } /** - * Gets links + * Gets status * - * @return array + * @return string */ - public function getLinks() + public function getStatus() { - return $this->container['links']; + return $this->container['status']; } /** - * Sets links + * Sets status * - * @param array $links Error links. + * @param string $status Error status. * * @return self */ - public function setLinks($links) + public function setStatus($status) { - $this->container['links'] = $links; + $this->container['status'] = $status; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/Styles.php b/codegen/Cms/Blogs/BlogPosts/Model/Styles.php index 865ad870..68778bfd 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/Styles.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/Styles.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -57,13 +57,13 @@ class Styles implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'vertical_alignment' => 'string', 'background_color' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\RGBAColor', + 'flexbox_positioning' => 'string', 'background_image' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\BackgroundImage', - 'background_gradient' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Gradient', - 'max_width_section_centering' => 'int', 'force_full_width_section' => 'bool', - 'flexbox_positioning' => 'string' + 'vertical_alignment' => 'string', + 'max_width_section_centering' => 'int', + 'background_gradient' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\Gradient' ]; /** @@ -74,13 +74,13 @@ class Styles implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'vertical_alignment' => null, 'background_color' => null, + 'flexbox_positioning' => null, 'background_image' => null, - 'background_gradient' => null, - 'max_width_section_centering' => 'int32', 'force_full_width_section' => null, - 'flexbox_positioning' => null + 'vertical_alignment' => null, + 'max_width_section_centering' => 'int32', + 'background_gradient' => null ]; /** @@ -110,13 +110,13 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'vertical_alignment' => 'verticalAlignment', 'background_color' => 'backgroundColor', + 'flexbox_positioning' => 'flexboxPositioning', 'background_image' => 'backgroundImage', - 'background_gradient' => 'backgroundGradient', - 'max_width_section_centering' => 'maxWidthSectionCentering', 'force_full_width_section' => 'forceFullWidthSection', - 'flexbox_positioning' => 'flexboxPositioning' + 'vertical_alignment' => 'verticalAlignment', + 'max_width_section_centering' => 'maxWidthSectionCentering', + 'background_gradient' => 'backgroundGradient' ]; /** @@ -125,13 +125,13 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'vertical_alignment' => 'setVerticalAlignment', 'background_color' => 'setBackgroundColor', + 'flexbox_positioning' => 'setFlexboxPositioning', 'background_image' => 'setBackgroundImage', - 'background_gradient' => 'setBackgroundGradient', - 'max_width_section_centering' => 'setMaxWidthSectionCentering', 'force_full_width_section' => 'setForceFullWidthSection', - 'flexbox_positioning' => 'setFlexboxPositioning' + 'vertical_alignment' => 'setVerticalAlignment', + 'max_width_section_centering' => 'setMaxWidthSectionCentering', + 'background_gradient' => 'setBackgroundGradient' ]; /** @@ -140,13 +140,13 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'vertical_alignment' => 'getVerticalAlignment', 'background_color' => 'getBackgroundColor', + 'flexbox_positioning' => 'getFlexboxPositioning', 'background_image' => 'getBackgroundImage', - 'background_gradient' => 'getBackgroundGradient', - 'max_width_section_centering' => 'getMaxWidthSectionCentering', 'force_full_width_section' => 'getForceFullWidthSection', - 'flexbox_positioning' => 'getFlexboxPositioning' + 'vertical_alignment' => 'getVerticalAlignment', + 'max_width_section_centering' => 'getMaxWidthSectionCentering', + 'background_gradient' => 'getBackgroundGradient' ]; /** @@ -190,52 +190,6 @@ public function getModelName() return self::$openAPIModelName; } - public const VERTICAL_ALIGNMENT_TOP = 'TOP'; - public const VERTICAL_ALIGNMENT_MIDDLE = 'MIDDLE'; - public const VERTICAL_ALIGNMENT_BOTTOM = 'BOTTOM'; - public const FLEXBOX_POSITIONING_TOP_LEFT = 'TOP_LEFT'; - public const FLEXBOX_POSITIONING_TOP_CENTER = 'TOP_CENTER'; - public const FLEXBOX_POSITIONING_TOP_RIGHT = 'TOP_RIGHT'; - public const FLEXBOX_POSITIONING_MIDDLE_LEFT = 'MIDDLE_LEFT'; - public const FLEXBOX_POSITIONING_MIDDLE_CENTER = 'MIDDLE_CENTER'; - public const FLEXBOX_POSITIONING_MIDDLE_RIGHT = 'MIDDLE_RIGHT'; - public const FLEXBOX_POSITIONING_BOTTOM_LEFT = 'BOTTOM_LEFT'; - public const FLEXBOX_POSITIONING_BOTTOM_CENTER = 'BOTTOM_CENTER'; - public const FLEXBOX_POSITIONING_BOTTOM_RIGHT = 'BOTTOM_RIGHT'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getVerticalAlignmentAllowableValues() - { - return [ - self::VERTICAL_ALIGNMENT_TOP, - self::VERTICAL_ALIGNMENT_MIDDLE, - self::VERTICAL_ALIGNMENT_BOTTOM, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getFlexboxPositioningAllowableValues() - { - return [ - self::FLEXBOX_POSITIONING_TOP_LEFT, - self::FLEXBOX_POSITIONING_TOP_CENTER, - self::FLEXBOX_POSITIONING_TOP_RIGHT, - self::FLEXBOX_POSITIONING_MIDDLE_LEFT, - self::FLEXBOX_POSITIONING_MIDDLE_CENTER, - self::FLEXBOX_POSITIONING_MIDDLE_RIGHT, - self::FLEXBOX_POSITIONING_BOTTOM_LEFT, - self::FLEXBOX_POSITIONING_BOTTOM_CENTER, - self::FLEXBOX_POSITIONING_BOTTOM_RIGHT, - ]; - } /** * Associative array for storing property values @@ -252,13 +206,13 @@ public function getFlexboxPositioningAllowableValues() */ public function __construct(array $data = null) { - $this->container['vertical_alignment'] = $data['vertical_alignment'] ?? null; $this->container['background_color'] = $data['background_color'] ?? null; + $this->container['flexbox_positioning'] = $data['flexbox_positioning'] ?? null; $this->container['background_image'] = $data['background_image'] ?? null; - $this->container['background_gradient'] = $data['background_gradient'] ?? null; - $this->container['max_width_section_centering'] = $data['max_width_section_centering'] ?? null; $this->container['force_full_width_section'] = $data['force_full_width_section'] ?? null; - $this->container['flexbox_positioning'] = $data['flexbox_positioning'] ?? null; + $this->container['vertical_alignment'] = $data['vertical_alignment'] ?? null; + $this->container['max_width_section_centering'] = $data['max_width_section_centering'] ?? null; + $this->container['background_gradient'] = $data['background_gradient'] ?? null; } /** @@ -270,45 +224,27 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['vertical_alignment'] === null) { - $invalidProperties[] = "'vertical_alignment' can't be null"; - } - $allowedValues = $this->getVerticalAlignmentAllowableValues(); - if (!is_null($this->container['vertical_alignment']) && !in_array($this->container['vertical_alignment'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'vertical_alignment', must be one of '%s'", - $this->container['vertical_alignment'], - implode("', '", $allowedValues) - ); - } - 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_image'] === null) { $invalidProperties[] = "'background_image' can't be null"; } - if ($this->container['background_gradient'] === null) { - $invalidProperties[] = "'background_gradient' can't be null"; - } - if ($this->container['max_width_section_centering'] === null) { - $invalidProperties[] = "'max_width_section_centering' can't be null"; - } if ($this->container['force_full_width_section'] === null) { $invalidProperties[] = "'force_full_width_section' can't be null"; } - if ($this->container['flexbox_positioning'] === null) { - $invalidProperties[] = "'flexbox_positioning' can't be null"; + if ($this->container['vertical_alignment'] === null) { + $invalidProperties[] = "'vertical_alignment' can't be null"; } - $allowedValues = $this->getFlexboxPositioningAllowableValues(); - if (!is_null($this->container['flexbox_positioning']) && !in_array($this->container['flexbox_positioning'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'flexbox_positioning', must be one of '%s'", - $this->container['flexbox_positioning'], - implode("', '", $allowedValues) - ); + 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"; } - return $invalidProperties; } @@ -325,59 +261,49 @@ public function valid() /** - * Gets vertical_alignment + * Gets background_color * - * @return string + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\RGBAColor */ - public function getVerticalAlignment() + public function getBackgroundColor() { - return $this->container['vertical_alignment']; + return $this->container['background_color']; } /** - * Sets vertical_alignment + * Sets background_color * - * @param string $vertical_alignment vertical_alignment + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\RGBAColor $background_color background_color * * @return self */ - public function setVerticalAlignment($vertical_alignment) + public function setBackgroundColor($background_color) { - $allowedValues = $this->getVerticalAlignmentAllowableValues(); - if (!in_array($vertical_alignment, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'vertical_alignment', must be one of '%s'", - $vertical_alignment, - implode("', '", $allowedValues) - ) - ); - } - $this->container['vertical_alignment'] = $vertical_alignment; + $this->container['background_color'] = $background_color; return $this; } /** - * Gets background_color + * Gets flexbox_positioning * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\RGBAColor + * @return string */ - public function getBackgroundColor() + public function getFlexboxPositioning() { - return $this->container['background_color']; + return $this->container['flexbox_positioning']; } /** - * Sets background_color + * Sets flexbox_positioning * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\RGBAColor $background_color background_color + * @param string $flexbox_positioning flexbox_positioning * * @return self */ - public function setBackgroundColor($background_color) + public function setFlexboxPositioning($flexbox_positioning) { - $this->container['background_color'] = $background_color; + $this->container['flexbox_positioning'] = $flexbox_positioning; return $this; } @@ -407,107 +333,97 @@ public function setBackgroundImage($background_image) } /** - * Gets background_gradient + * Gets force_full_width_section * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Gradient + * @return bool */ - public function getBackgroundGradient() + public function getForceFullWidthSection() { - return $this->container['background_gradient']; + return $this->container['force_full_width_section']; } /** - * Sets background_gradient + * Sets force_full_width_section * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\Gradient $background_gradient background_gradient + * @param bool $force_full_width_section force_full_width_section * * @return self */ - public function setBackgroundGradient($background_gradient) + public function setForceFullWidthSection($force_full_width_section) { - $this->container['background_gradient'] = $background_gradient; + $this->container['force_full_width_section'] = $force_full_width_section; return $this; } /** - * Gets max_width_section_centering + * Gets vertical_alignment * - * @return int + * @return string */ - public function getMaxWidthSectionCentering() + public function getVerticalAlignment() { - return $this->container['max_width_section_centering']; + return $this->container['vertical_alignment']; } /** - * Sets max_width_section_centering + * Sets vertical_alignment * - * @param int $max_width_section_centering max_width_section_centering + * @param string $vertical_alignment vertical_alignment * * @return self */ - public function setMaxWidthSectionCentering($max_width_section_centering) + public function setVerticalAlignment($vertical_alignment) { - $this->container['max_width_section_centering'] = $max_width_section_centering; + $this->container['vertical_alignment'] = $vertical_alignment; return $this; } /** - * Gets force_full_width_section + * Gets max_width_section_centering * - * @return bool + * @return int */ - public function getForceFullWidthSection() + public function getMaxWidthSectionCentering() { - return $this->container['force_full_width_section']; + return $this->container['max_width_section_centering']; } /** - * Sets force_full_width_section + * Sets max_width_section_centering * - * @param bool $force_full_width_section force_full_width_section + * @param int $max_width_section_centering max_width_section_centering * * @return self */ - public function setForceFullWidthSection($force_full_width_section) + public function setMaxWidthSectionCentering($max_width_section_centering) { - $this->container['force_full_width_section'] = $force_full_width_section; + $this->container['max_width_section_centering'] = $max_width_section_centering; return $this; } /** - * Gets flexbox_positioning + * Gets background_gradient * - * @return string + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\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\Blogs\BlogPosts\Model\Gradient $background_gradient background_gradient * * @return self */ - public function setFlexboxPositioning($flexbox_positioning) + public function setBackgroundGradient($background_gradient) { - $allowedValues = $this->getFlexboxPositioningAllowableValues(); - if (!in_array($flexbox_positioning, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'flexbox_positioning', must be one of '%s'", - $flexbox_positioning, - implode("', '", $allowedValues) - ) - ); - } - $this->container['flexbox_positioning'] = $flexbox_positioning; + $this->container['background_gradient'] = $background_gradient; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/UpdateLanguagesRequestVNext.php b/codegen/Cms/Blogs/BlogPosts/Model/UpdateLanguagesRequestVNext.php index a3279239..5f49d2a7 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/UpdateLanguagesRequestVNext.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/UpdateLanguagesRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,8 +58,8 @@ class UpdateLanguagesRequestVNext implements ModelInterface, ArrayAccess, \JsonS * @var string[] */ protected static $openAPITypes = [ - 'primary_id' => 'string', - 'languages' => 'array' + 'languages' => 'array', + 'primary_id' => 'string' ]; /** @@ -70,8 +70,8 @@ class UpdateLanguagesRequestVNext implements ModelInterface, ArrayAccess, \JsonS * @psalm-var array */ protected static $openAPIFormats = [ - 'primary_id' => null, - 'languages' => null + 'languages' => null, + 'primary_id' => null ]; /** @@ -101,8 +101,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'primary_id' => 'primaryId', - 'languages' => 'languages' + 'languages' => 'languages', + 'primary_id' => 'primaryId' ]; /** @@ -111,8 +111,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'primary_id' => 'setPrimaryId', - 'languages' => 'setLanguages' + 'languages' => 'setLanguages', + 'primary_id' => 'setPrimaryId' ]; /** @@ -121,8 +121,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'primary_id' => 'getPrimaryId', - 'languages' => 'getLanguages' + 'languages' => 'getLanguages', + 'primary_id' => 'getPrimaryId' ]; /** @@ -166,1445 +166,6 @@ public function getModelName() return self::$openAPIModelName; } - public const LANGUAGES_AF = 'af'; - public const LANGUAGES_AF_NA = 'af-na'; - public const LANGUAGES_AF_ZA = 'af-za'; - public const LANGUAGES_AGQ = 'agq'; - public const LANGUAGES_AGQ_CM = 'agq-cm'; - public const LANGUAGES_AK = 'ak'; - public const LANGUAGES_AK_GH = 'ak-gh'; - public const LANGUAGES_AM = 'am'; - public const LANGUAGES_AM_ET = 'am-et'; - public const LANGUAGES_AR = 'ar'; - public const LANGUAGES_AR_001 = 'ar-001'; - public const LANGUAGES_AR_AE = 'ar-ae'; - public const LANGUAGES_AR_BH = 'ar-bh'; - public const LANGUAGES_AR_DJ = 'ar-dj'; - public const LANGUAGES_AR_DZ = 'ar-dz'; - public const LANGUAGES_AR_EG = 'ar-eg'; - public const LANGUAGES_AR_EH = 'ar-eh'; - public const LANGUAGES_AR_ER = 'ar-er'; - public const LANGUAGES_AR_IL = 'ar-il'; - public const LANGUAGES_AR_IQ = 'ar-iq'; - public const LANGUAGES_AR_JO = 'ar-jo'; - public const LANGUAGES_AR_KM = 'ar-km'; - public const LANGUAGES_AR_KW = 'ar-kw'; - public const LANGUAGES_AR_LB = 'ar-lb'; - public const LANGUAGES_AR_LY = 'ar-ly'; - public const LANGUAGES_AR_MA = 'ar-ma'; - public const LANGUAGES_AR_MR = 'ar-mr'; - public const LANGUAGES_AR_OM = 'ar-om'; - public const LANGUAGES_AR_PS = 'ar-ps'; - public const LANGUAGES_AR_QA = 'ar-qa'; - public const LANGUAGES_AR_SA = 'ar-sa'; - public const LANGUAGES_AR_SD = 'ar-sd'; - public const LANGUAGES_AR_SO = 'ar-so'; - public const LANGUAGES_AR_SS = 'ar-ss'; - public const LANGUAGES_AR_SY = 'ar-sy'; - public const LANGUAGES_AR_TD = 'ar-td'; - public const LANGUAGES_AR_TN = 'ar-tn'; - public const LANGUAGES_AR_YE = 'ar-ye'; - public const LANGUAGES__AS = 'as'; - public const LANGUAGES_AS_IN = 'as-in'; - public const LANGUAGES_ASA = 'asa'; - public const LANGUAGES_ASA_TZ = 'asa-tz'; - public const LANGUAGES_AST = 'ast'; - public const LANGUAGES_AST_ES = 'ast-es'; - public const LANGUAGES_AZ = 'az'; - public const LANGUAGES_AZ_AZ = 'az-az'; - public const LANGUAGES_BAS = 'bas'; - public const LANGUAGES_BAS_CM = 'bas-cm'; - public const LANGUAGES_BE = 'be'; - public const LANGUAGES_BE_BY = 'be-by'; - public const LANGUAGES_BEM = 'bem'; - public const LANGUAGES_BEM_ZM = 'bem-zm'; - public const LANGUAGES_BEZ = 'bez'; - public const LANGUAGES_BEZ_TZ = 'bez-tz'; - public const LANGUAGES_BG = 'bg'; - public const LANGUAGES_BG_BG = 'bg-bg'; - public const LANGUAGES_BM = 'bm'; - public const LANGUAGES_BM_ML = 'bm-ml'; - public const LANGUAGES_BN = 'bn'; - public const LANGUAGES_BN_BD = 'bn-bd'; - public const LANGUAGES_BN_IN = 'bn-in'; - public const LANGUAGES_BO = 'bo'; - public const LANGUAGES_BO_CN = 'bo-cn'; - public const LANGUAGES_BO_IN = 'bo-in'; - public const LANGUAGES_BR = 'br'; - public const LANGUAGES_BR_FR = 'br-fr'; - public const LANGUAGES_BRX = 'brx'; - public const LANGUAGES_BRX_IN = 'brx-in'; - public const LANGUAGES_BS = 'bs'; - public const LANGUAGES_BS_BA = 'bs-ba'; - public const LANGUAGES_CA = 'ca'; - public const LANGUAGES_CA_AD = 'ca-ad'; - public const LANGUAGES_CA_ES = 'ca-es'; - public const LANGUAGES_CA_FR = 'ca-fr'; - public const LANGUAGES_CA_IT = 'ca-it'; - public const LANGUAGES_CCP = 'ccp'; - public const LANGUAGES_CCP_BD = 'ccp-bd'; - public const LANGUAGES_CCP_IN = 'ccp-in'; - public const LANGUAGES_CE = 'ce'; - public const LANGUAGES_CE_RU = 'ce-ru'; - public const LANGUAGES_CGG = 'cgg'; - public const LANGUAGES_CGG_UG = 'cgg-ug'; - public const LANGUAGES_CHR = 'chr'; - public const LANGUAGES_CHR_US = 'chr-us'; - public const LANGUAGES_CKB = 'ckb'; - public const LANGUAGES_CKB_IQ = 'ckb-iq'; - public const LANGUAGES_CKB_IR = 'ckb-ir'; - public const LANGUAGES_CS = 'cs'; - public const LANGUAGES_CS_CZ = 'cs-cz'; - public const LANGUAGES_CU = 'cu'; - public const LANGUAGES_CU_RU = 'cu-ru'; - public const LANGUAGES_CY = 'cy'; - public const LANGUAGES_CY_GB = 'cy-gb'; - public const LANGUAGES_DA = 'da'; - public const LANGUAGES_DA_DK = 'da-dk'; - public const LANGUAGES_DA_GL = 'da-gl'; - public const LANGUAGES_DAV = 'dav'; - public const LANGUAGES_DAV_KE = 'dav-ke'; - public const LANGUAGES_DE = 'de'; - public const LANGUAGES_DE_AT = 'de-at'; - public const LANGUAGES_DE_BE = 'de-be'; - public const LANGUAGES_DE_CH = 'de-ch'; - public const LANGUAGES_DE_DE = 'de-de'; - public const LANGUAGES_DE_GR = 'de-gr'; - public const LANGUAGES_DE_IT = 'de-it'; - public const LANGUAGES_DE_LI = 'de-li'; - public const LANGUAGES_DE_LU = 'de-lu'; - public const LANGUAGES_DJE = 'dje'; - public const LANGUAGES_DJE_NE = 'dje-ne'; - public const LANGUAGES_DSB = 'dsb'; - public const LANGUAGES_DSB_DE = 'dsb-de'; - public const LANGUAGES_DUA = 'dua'; - public const LANGUAGES_DUA_CM = 'dua-cm'; - public const LANGUAGES_DYO = 'dyo'; - public const LANGUAGES_DYO_SN = 'dyo-sn'; - public const LANGUAGES_DZ = 'dz'; - public const LANGUAGES_DZ_BT = 'dz-bt'; - public const LANGUAGES_EBU = 'ebu'; - public const LANGUAGES_EBU_KE = 'ebu-ke'; - public const LANGUAGES_EE = 'ee'; - public const LANGUAGES_EE_GH = 'ee-gh'; - public const LANGUAGES_EE_TG = 'ee-tg'; - public const LANGUAGES_EL = 'el'; - public const LANGUAGES_EL_CY = 'el-cy'; - public const LANGUAGES_EL_GR = 'el-gr'; - public const LANGUAGES_EN = 'en'; - public const LANGUAGES_EN_001 = 'en-001'; - public const LANGUAGES_EN_150 = 'en-150'; - public const LANGUAGES_EN_AE = 'en-ae'; - public const LANGUAGES_EN_AG = 'en-ag'; - public const LANGUAGES_EN_AI = 'en-ai'; - public const LANGUAGES_EN_AS = 'en-as'; - public const LANGUAGES_EN_AT = 'en-at'; - public const LANGUAGES_EN_AU = 'en-au'; - public const LANGUAGES_EN_BB = 'en-bb'; - public const LANGUAGES_EN_BE = 'en-be'; - public const LANGUAGES_EN_BI = 'en-bi'; - public const LANGUAGES_EN_BM = 'en-bm'; - public const LANGUAGES_EN_BS = 'en-bs'; - public const LANGUAGES_EN_BW = 'en-bw'; - public const LANGUAGES_EN_BZ = 'en-bz'; - public const LANGUAGES_EN_CA = 'en-ca'; - public const LANGUAGES_EN_CC = 'en-cc'; - public const LANGUAGES_EN_CH = 'en-ch'; - public const LANGUAGES_EN_CK = 'en-ck'; - public const LANGUAGES_EN_CM = 'en-cm'; - public const LANGUAGES_EN_CX = 'en-cx'; - public const LANGUAGES_EN_CY = 'en-cy'; - public const LANGUAGES_EN_DE = 'en-de'; - public const LANGUAGES_EN_DG = 'en-dg'; - public const LANGUAGES_EN_DK = 'en-dk'; - public const LANGUAGES_EN_DM = 'en-dm'; - public const LANGUAGES_EN_ER = 'en-er'; - public const LANGUAGES_EN_FI = 'en-fi'; - public const LANGUAGES_EN_FJ = 'en-fj'; - public const LANGUAGES_EN_FK = 'en-fk'; - public const LANGUAGES_EN_FM = 'en-fm'; - public const LANGUAGES_EN_GB = 'en-gb'; - public const LANGUAGES_EN_GD = 'en-gd'; - public const LANGUAGES_EN_GG = 'en-gg'; - public const LANGUAGES_EN_GH = 'en-gh'; - public const LANGUAGES_EN_GI = 'en-gi'; - public const LANGUAGES_EN_GM = 'en-gm'; - public const LANGUAGES_EN_GU = 'en-gu'; - public const LANGUAGES_EN_GY = 'en-gy'; - public const LANGUAGES_EN_HK = 'en-hk'; - public const LANGUAGES_EN_IE = 'en-ie'; - public const LANGUAGES_EN_IL = 'en-il'; - public const LANGUAGES_EN_IM = 'en-im'; - public const LANGUAGES_EN_IN = 'en-in'; - public const LANGUAGES_EN_IO = 'en-io'; - public const LANGUAGES_EN_JE = 'en-je'; - public const LANGUAGES_EN_JM = 'en-jm'; - public const LANGUAGES_EN_KE = 'en-ke'; - public const LANGUAGES_EN_KI = 'en-ki'; - public const LANGUAGES_EN_KN = 'en-kn'; - public const LANGUAGES_EN_KY = 'en-ky'; - public const LANGUAGES_EN_LC = 'en-lc'; - public const LANGUAGES_EN_LR = 'en-lr'; - public const LANGUAGES_EN_LS = 'en-ls'; - public const LANGUAGES_EN_LU = 'en-lu'; - public const LANGUAGES_EN_MG = 'en-mg'; - public const LANGUAGES_EN_MH = 'en-mh'; - public const LANGUAGES_EN_MO = 'en-mo'; - public const LANGUAGES_EN_MP = 'en-mp'; - public const LANGUAGES_EN_MS = 'en-ms'; - public const LANGUAGES_EN_MT = 'en-mt'; - public const LANGUAGES_EN_MU = 'en-mu'; - public const LANGUAGES_EN_MW = 'en-mw'; - public const LANGUAGES_EN_MY = 'en-my'; - public const LANGUAGES_EN_NA = 'en-na'; - public const LANGUAGES_EN_NF = 'en-nf'; - public const LANGUAGES_EN_NG = 'en-ng'; - public const LANGUAGES_EN_NL = 'en-nl'; - public const LANGUAGES_EN_NR = 'en-nr'; - public const LANGUAGES_EN_NU = 'en-nu'; - public const LANGUAGES_EN_NZ = 'en-nz'; - public const LANGUAGES_EN_PG = 'en-pg'; - public const LANGUAGES_EN_PH = 'en-ph'; - public const LANGUAGES_EN_PK = 'en-pk'; - public const LANGUAGES_EN_PN = 'en-pn'; - public const LANGUAGES_EN_PR = 'en-pr'; - public const LANGUAGES_EN_PW = 'en-pw'; - public const LANGUAGES_EN_RW = 'en-rw'; - public const LANGUAGES_EN_SB = 'en-sb'; - public const LANGUAGES_EN_SC = 'en-sc'; - public const LANGUAGES_EN_SD = 'en-sd'; - public const LANGUAGES_EN_SE = 'en-se'; - public const LANGUAGES_EN_SG = 'en-sg'; - public const LANGUAGES_EN_SH = 'en-sh'; - public const LANGUAGES_EN_SI = 'en-si'; - public const LANGUAGES_EN_SL = 'en-sl'; - public const LANGUAGES_EN_SS = 'en-ss'; - public const LANGUAGES_EN_SX = 'en-sx'; - public const LANGUAGES_EN_SZ = 'en-sz'; - public const LANGUAGES_EN_TC = 'en-tc'; - public const LANGUAGES_EN_TK = 'en-tk'; - public const LANGUAGES_EN_TO = 'en-to'; - public const LANGUAGES_EN_TT = 'en-tt'; - public const LANGUAGES_EN_TV = 'en-tv'; - public const LANGUAGES_EN_TZ = 'en-tz'; - public const LANGUAGES_EN_UG = 'en-ug'; - public const LANGUAGES_EN_UM = 'en-um'; - public const LANGUAGES_EN_US = 'en-us'; - public const LANGUAGES_EN_VC = 'en-vc'; - public const LANGUAGES_EN_VG = 'en-vg'; - public const LANGUAGES_EN_VI = 'en-vi'; - public const LANGUAGES_EN_VU = 'en-vu'; - public const LANGUAGES_EN_WS = 'en-ws'; - public const LANGUAGES_EN_ZA = 'en-za'; - public const LANGUAGES_EN_ZM = 'en-zm'; - public const LANGUAGES_EN_ZW = 'en-zw'; - public const LANGUAGES_EO = 'eo'; - public const LANGUAGES_EO_001 = 'eo-001'; - public const LANGUAGES_ES = 'es'; - public const LANGUAGES_ES_419 = 'es-419'; - public const LANGUAGES_ES_AR = 'es-ar'; - public const LANGUAGES_ES_BO = 'es-bo'; - public const LANGUAGES_ES_BR = 'es-br'; - public const LANGUAGES_ES_BZ = 'es-bz'; - public const LANGUAGES_ES_CL = 'es-cl'; - public const LANGUAGES_ES_CO = 'es-co'; - public const LANGUAGES_ES_CR = 'es-cr'; - public const LANGUAGES_ES_CU = 'es-cu'; - public const LANGUAGES_ES_DO = 'es-do'; - public const LANGUAGES_ES_EA = 'es-ea'; - public const LANGUAGES_ES_EC = 'es-ec'; - public const LANGUAGES_ES_ES = 'es-es'; - public const LANGUAGES_ES_GQ = 'es-gq'; - public const LANGUAGES_ES_GT = 'es-gt'; - public const LANGUAGES_ES_HN = 'es-hn'; - public const LANGUAGES_ES_IC = 'es-ic'; - public const LANGUAGES_ES_MX = 'es-mx'; - public const LANGUAGES_ES_NI = 'es-ni'; - public const LANGUAGES_ES_PA = 'es-pa'; - public const LANGUAGES_ES_PE = 'es-pe'; - public const LANGUAGES_ES_PH = 'es-ph'; - public const LANGUAGES_ES_PR = 'es-pr'; - public const LANGUAGES_ES_PY = 'es-py'; - public const LANGUAGES_ES_SV = 'es-sv'; - public const LANGUAGES_ES_US = 'es-us'; - public const LANGUAGES_ES_UY = 'es-uy'; - public const LANGUAGES_ES_VE = 'es-ve'; - public const LANGUAGES_ET = 'et'; - public const LANGUAGES_ET_EE = 'et-ee'; - public const LANGUAGES_EU = 'eu'; - public const LANGUAGES_EU_ES = 'eu-es'; - public const LANGUAGES_EWO = 'ewo'; - public const LANGUAGES_EWO_CM = 'ewo-cm'; - public const LANGUAGES_FA = 'fa'; - public const LANGUAGES_FA_AF = 'fa-af'; - public const LANGUAGES_FA_IR = 'fa-ir'; - public const LANGUAGES_FF = 'ff'; - public const LANGUAGES_FF_CM = 'ff-cm'; - public const LANGUAGES_FF_GN = 'ff-gn'; - public const LANGUAGES_FF_MR = 'ff-mr'; - public const LANGUAGES_FF_SN = 'ff-sn'; - public const LANGUAGES_FI = 'fi'; - public const LANGUAGES_FI_FI = 'fi-fi'; - public const LANGUAGES_FIL = 'fil'; - public const LANGUAGES_FIL_PH = 'fil-ph'; - public const LANGUAGES_FO = 'fo'; - public const LANGUAGES_FO_DK = 'fo-dk'; - public const LANGUAGES_FO_FO = 'fo-fo'; - public const LANGUAGES_FR = 'fr'; - public const LANGUAGES_FR_BE = 'fr-be'; - public const LANGUAGES_FR_BF = 'fr-bf'; - public const LANGUAGES_FR_BI = 'fr-bi'; - public const LANGUAGES_FR_BJ = 'fr-bj'; - public const LANGUAGES_FR_BL = 'fr-bl'; - public const LANGUAGES_FR_CA = 'fr-ca'; - public const LANGUAGES_FR_CD = 'fr-cd'; - public const LANGUAGES_FR_CF = 'fr-cf'; - public const LANGUAGES_FR_CG = 'fr-cg'; - public const LANGUAGES_FR_CH = 'fr-ch'; - public const LANGUAGES_FR_CI = 'fr-ci'; - public const LANGUAGES_FR_CM = 'fr-cm'; - public const LANGUAGES_FR_DJ = 'fr-dj'; - public const LANGUAGES_FR_DZ = 'fr-dz'; - public const LANGUAGES_FR_FR = 'fr-fr'; - public const LANGUAGES_FR_GA = 'fr-ga'; - public const LANGUAGES_FR_GF = 'fr-gf'; - public const LANGUAGES_FR_GN = 'fr-gn'; - public const LANGUAGES_FR_GP = 'fr-gp'; - public const LANGUAGES_FR_GQ = 'fr-gq'; - public const LANGUAGES_FR_HT = 'fr-ht'; - public const LANGUAGES_FR_KM = 'fr-km'; - public const LANGUAGES_FR_LU = 'fr-lu'; - public const LANGUAGES_FR_MA = 'fr-ma'; - public const LANGUAGES_FR_MC = 'fr-mc'; - public const LANGUAGES_FR_MF = 'fr-mf'; - public const LANGUAGES_FR_MG = 'fr-mg'; - public const LANGUAGES_FR_ML = 'fr-ml'; - public const LANGUAGES_FR_MQ = 'fr-mq'; - public const LANGUAGES_FR_MR = 'fr-mr'; - public const LANGUAGES_FR_MU = 'fr-mu'; - public const LANGUAGES_FR_NC = 'fr-nc'; - public const LANGUAGES_FR_NE = 'fr-ne'; - public const LANGUAGES_FR_PF = 'fr-pf'; - public const LANGUAGES_FR_PM = 'fr-pm'; - public const LANGUAGES_FR_RE = 'fr-re'; - public const LANGUAGES_FR_RW = 'fr-rw'; - public const LANGUAGES_FR_SC = 'fr-sc'; - public const LANGUAGES_FR_SN = 'fr-sn'; - public const LANGUAGES_FR_SY = 'fr-sy'; - public const LANGUAGES_FR_TD = 'fr-td'; - public const LANGUAGES_FR_TG = 'fr-tg'; - public const LANGUAGES_FR_TN = 'fr-tn'; - public const LANGUAGES_FR_VU = 'fr-vu'; - public const LANGUAGES_FR_WF = 'fr-wf'; - public const LANGUAGES_FR_YT = 'fr-yt'; - public const LANGUAGES_FUR = 'fur'; - public const LANGUAGES_FUR_IT = 'fur-it'; - public const LANGUAGES_FY = 'fy'; - public const LANGUAGES_FY_NL = 'fy-nl'; - public const LANGUAGES_GA = 'ga'; - public const LANGUAGES_GA_IE = 'ga-ie'; - public const LANGUAGES_GD = 'gd'; - public const LANGUAGES_GD_GB = 'gd-gb'; - public const LANGUAGES_GL = 'gl'; - public const LANGUAGES_GL_ES = 'gl-es'; - public const LANGUAGES_GSW = 'gsw'; - public const LANGUAGES_GSW_CH = 'gsw-ch'; - public const LANGUAGES_GSW_FR = 'gsw-fr'; - public const LANGUAGES_GSW_LI = 'gsw-li'; - public const LANGUAGES_GU = 'gu'; - public const LANGUAGES_GU_IN = 'gu-in'; - public const LANGUAGES_GUZ = 'guz'; - public const LANGUAGES_GUZ_KE = 'guz-ke'; - public const LANGUAGES_GV = 'gv'; - public const LANGUAGES_GV_IM = 'gv-im'; - public const LANGUAGES_HA = 'ha'; - public const LANGUAGES_HA_GH = 'ha-gh'; - public const LANGUAGES_HA_NE = 'ha-ne'; - public const LANGUAGES_HA_NG = 'ha-ng'; - public const LANGUAGES_HAW = 'haw'; - public const LANGUAGES_HAW_US = 'haw-us'; - public const LANGUAGES_HE = 'he'; - public const LANGUAGES_HI = 'hi'; - public const LANGUAGES_HI_IN = 'hi-in'; - public const LANGUAGES_HR = 'hr'; - public const LANGUAGES_HR_BA = 'hr-ba'; - public const LANGUAGES_HR_HR = 'hr-hr'; - public const LANGUAGES_HSB = 'hsb'; - public const LANGUAGES_HSB_DE = 'hsb-de'; - public const LANGUAGES_HU = 'hu'; - public const LANGUAGES_HU_HU = 'hu-hu'; - public const LANGUAGES_HY = 'hy'; - public const LANGUAGES_HY_AM = 'hy-am'; - public const LANGUAGES_ID = 'id'; - public const LANGUAGES_IG = 'ig'; - public const LANGUAGES_IG_NG = 'ig-ng'; - public const LANGUAGES_II = 'ii'; - public const LANGUAGES_II_CN = 'ii-cn'; - public const LANGUAGES_ID_ID = 'id-id'; - public const LANGUAGES_IS = 'is'; - public const LANGUAGES_IS_IS = 'is-is'; - public const LANGUAGES_IT = 'it'; - public const LANGUAGES_IT_CH = 'it-ch'; - public const LANGUAGES_IT_IT = 'it-it'; - public const LANGUAGES_IT_SM = 'it-sm'; - public const LANGUAGES_IT_VA = 'it-va'; - public const LANGUAGES_HE_IL = 'he-il'; - public const LANGUAGES_JA = 'ja'; - public const LANGUAGES_JA_JP = 'ja-jp'; - public const LANGUAGES_JGO = 'jgo'; - public const LANGUAGES_JGO_CM = 'jgo-cm'; - public const LANGUAGES_YI = 'yi'; - public const LANGUAGES_YI_001 = 'yi-001'; - public const LANGUAGES_JMC = 'jmc'; - public const LANGUAGES_JMC_TZ = 'jmc-tz'; - public const LANGUAGES_KA = 'ka'; - public const LANGUAGES_KA_GE = 'ka-ge'; - public const LANGUAGES_KAB = 'kab'; - public const LANGUAGES_KAB_DZ = 'kab-dz'; - public const LANGUAGES_KAM = 'kam'; - public const LANGUAGES_KAM_KE = 'kam-ke'; - public const LANGUAGES_KDE = 'kde'; - public const LANGUAGES_KDE_TZ = 'kde-tz'; - public const LANGUAGES_KEA = 'kea'; - public const LANGUAGES_KEA_CV = 'kea-cv'; - public const LANGUAGES_KHQ = 'khq'; - public const LANGUAGES_KHQ_ML = 'khq-ml'; - public const LANGUAGES_KI = 'ki'; - public const LANGUAGES_KI_KE = 'ki-ke'; - public const LANGUAGES_KK = 'kk'; - public const LANGUAGES_KK_KZ = 'kk-kz'; - public const LANGUAGES_KKJ = 'kkj'; - public const LANGUAGES_KKJ_CM = 'kkj-cm'; - public const LANGUAGES_KL = 'kl'; - public const LANGUAGES_KL_GL = 'kl-gl'; - public const LANGUAGES_KLN = 'kln'; - public const LANGUAGES_KLN_KE = 'kln-ke'; - public const LANGUAGES_KM = 'km'; - public const LANGUAGES_KM_KH = 'km-kh'; - public const LANGUAGES_KN = 'kn'; - public const LANGUAGES_KN_IN = 'kn-in'; - public const LANGUAGES_KO = 'ko'; - public const LANGUAGES_KO_KP = 'ko-kp'; - public const LANGUAGES_KO_KR = 'ko-kr'; - public const LANGUAGES_KOK = 'kok'; - public const LANGUAGES_KOK_IN = 'kok-in'; - public const LANGUAGES_KS = 'ks'; - public const LANGUAGES_KS_IN = 'ks-in'; - public const LANGUAGES_KSB = 'ksb'; - public const LANGUAGES_KSB_TZ = 'ksb-tz'; - public const LANGUAGES_KSF = 'ksf'; - public const LANGUAGES_KSF_CM = 'ksf-cm'; - public const LANGUAGES_KSH = 'ksh'; - public const LANGUAGES_KSH_DE = 'ksh-de'; - public const LANGUAGES_KW = 'kw'; - public const LANGUAGES_KW_GB = 'kw-gb'; - public const LANGUAGES_KY = 'ky'; - public const LANGUAGES_KY_KG = 'ky-kg'; - public const LANGUAGES_LAG = 'lag'; - public const LANGUAGES_LAG_TZ = 'lag-tz'; - public const LANGUAGES_LB = 'lb'; - public const LANGUAGES_LB_LU = 'lb-lu'; - public const LANGUAGES_LG = 'lg'; - public const LANGUAGES_LG_UG = 'lg-ug'; - public const LANGUAGES_LKT = 'lkt'; - public const LANGUAGES_LKT_US = 'lkt-us'; - public const LANGUAGES_LN = 'ln'; - public const LANGUAGES_LN_AO = 'ln-ao'; - public const LANGUAGES_LN_CD = 'ln-cd'; - public const LANGUAGES_LN_CF = 'ln-cf'; - public const LANGUAGES_LN_CG = 'ln-cg'; - public const LANGUAGES_LO = 'lo'; - public const LANGUAGES_LO_LA = 'lo-la'; - public const LANGUAGES_LRC = 'lrc'; - public const LANGUAGES_LRC_IQ = 'lrc-iq'; - public const LANGUAGES_LRC_IR = 'lrc-ir'; - public const LANGUAGES_LT = 'lt'; - public const LANGUAGES_LT_LT = 'lt-lt'; - public const LANGUAGES_LU = 'lu'; - public const LANGUAGES_LU_CD = 'lu-cd'; - public const LANGUAGES_LUO = 'luo'; - public const LANGUAGES_LUO_KE = 'luo-ke'; - public const LANGUAGES_LUY = 'luy'; - public const LANGUAGES_LUY_KE = 'luy-ke'; - public const LANGUAGES_LV = 'lv'; - public const LANGUAGES_LV_LV = 'lv-lv'; - public const LANGUAGES_MAS = 'mas'; - public const LANGUAGES_MAS_KE = 'mas-ke'; - public const LANGUAGES_MAS_TZ = 'mas-tz'; - public const LANGUAGES_MER = 'mer'; - public const LANGUAGES_MER_KE = 'mer-ke'; - public const LANGUAGES_MFE = 'mfe'; - public const LANGUAGES_MFE_MU = 'mfe-mu'; - public const LANGUAGES_MG = 'mg'; - public const LANGUAGES_MG_MG = 'mg-mg'; - public const LANGUAGES_MGH = 'mgh'; - public const LANGUAGES_MGH_MZ = 'mgh-mz'; - public const LANGUAGES_MGO = 'mgo'; - public const LANGUAGES_MGO_CM = 'mgo-cm'; - public const LANGUAGES_MK = 'mk'; - public const LANGUAGES_MK_MK = 'mk-mk'; - public const LANGUAGES_ML = 'ml'; - public const LANGUAGES_ML_IN = 'ml-in'; - public const LANGUAGES_MN = 'mn'; - public const LANGUAGES_MN_MN = 'mn-mn'; - public const LANGUAGES_MR = 'mr'; - public const LANGUAGES_MR_IN = 'mr-in'; - public const LANGUAGES_MS = 'ms'; - public const LANGUAGES_MS_BN = 'ms-bn'; - public const LANGUAGES_MS_MY = 'ms-my'; - public const LANGUAGES_MS_SG = 'ms-sg'; - public const LANGUAGES_MT = 'mt'; - public const LANGUAGES_MT_MT = 'mt-mt'; - public const LANGUAGES_MUA = 'mua'; - public const LANGUAGES_MUA_CM = 'mua-cm'; - public const LANGUAGES_MY = 'my'; - public const LANGUAGES_MY_MM = 'my-mm'; - public const LANGUAGES_MZN = 'mzn'; - public const LANGUAGES_MZN_IR = 'mzn-ir'; - public const LANGUAGES_NAQ = 'naq'; - public const LANGUAGES_NAQ_NA = 'naq-na'; - public const LANGUAGES_NB = 'nb'; - public const LANGUAGES_NB_NO = 'nb-no'; - public const LANGUAGES_NB_SJ = 'nb-sj'; - public const LANGUAGES_ND = 'nd'; - public const LANGUAGES_ND_ZW = 'nd-zw'; - public const LANGUAGES_NDS = 'nds'; - public const LANGUAGES_NDS_DE = 'nds-de'; - public const LANGUAGES_NDS_NL = 'nds-nl'; - public const LANGUAGES_NE = 'ne'; - public const LANGUAGES_NE_IN = 'ne-in'; - public const LANGUAGES_NE_NP = 'ne-np'; - public const LANGUAGES_NL = 'nl'; - public const LANGUAGES_NL_AW = 'nl-aw'; - public const LANGUAGES_NL_BE = 'nl-be'; - public const LANGUAGES_NL_CH = 'nl-ch'; - public const LANGUAGES_NL_BQ = 'nl-bq'; - public const LANGUAGES_NL_CW = 'nl-cw'; - public const LANGUAGES_NL_LU = 'nl-lu'; - public const LANGUAGES_NL_NL = 'nl-nl'; - public const LANGUAGES_NL_SR = 'nl-sr'; - public const LANGUAGES_NL_SX = 'nl-sx'; - public const LANGUAGES_NMG = 'nmg'; - public const LANGUAGES_NMG_CM = 'nmg-cm'; - public const LANGUAGES_NN = 'nn'; - public const LANGUAGES_NN_NO = 'nn-no'; - public const LANGUAGES_NNH = 'nnh'; - public const LANGUAGES_NNH_CM = 'nnh-cm'; - public const LANGUAGES_NO = 'no'; - public const LANGUAGES_NO_NO = 'no-no'; - public const LANGUAGES_NUS = 'nus'; - public const LANGUAGES_NUS_SS = 'nus-ss'; - public const LANGUAGES_NYN = 'nyn'; - public const LANGUAGES_NYN_UG = 'nyn-ug'; - public const LANGUAGES_OM = 'om'; - public const LANGUAGES_OM_ET = 'om-et'; - public const LANGUAGES_OM_KE = 'om-ke'; - public const LANGUAGES__OR = 'or'; - public const LANGUAGES_OR_IN = 'or-in'; - public const LANGUAGES_OS = 'os'; - public const LANGUAGES_OS_GE = 'os-ge'; - public const LANGUAGES_OS_RU = 'os-ru'; - public const LANGUAGES_PA = 'pa'; - public const LANGUAGES_PA_IN = 'pa-in'; - public const LANGUAGES_PA_PK = 'pa-pk'; - public const LANGUAGES_PL = 'pl'; - public const LANGUAGES_PL_PL = 'pl-pl'; - public const LANGUAGES_PRG = 'prg'; - public const LANGUAGES_PRG_001 = 'prg-001'; - public const LANGUAGES_PS = 'ps'; - public const LANGUAGES_PS_AF = 'ps-af'; - public const LANGUAGES_PT = 'pt'; - public const LANGUAGES_PT_AO = 'pt-ao'; - public const LANGUAGES_PT_BR = 'pt-br'; - public const LANGUAGES_PT_CH = 'pt-ch'; - public const LANGUAGES_PT_CV = 'pt-cv'; - public const LANGUAGES_PT_GQ = 'pt-gq'; - public const LANGUAGES_PT_GW = 'pt-gw'; - public const LANGUAGES_PT_LU = 'pt-lu'; - public const LANGUAGES_PT_MO = 'pt-mo'; - public const LANGUAGES_PT_MZ = 'pt-mz'; - public const LANGUAGES_PT_PT = 'pt-pt'; - public const LANGUAGES_PT_ST = 'pt-st'; - public const LANGUAGES_PT_TL = 'pt-tl'; - public const LANGUAGES_QU = 'qu'; - public const LANGUAGES_QU_BO = 'qu-bo'; - public const LANGUAGES_QU_EC = 'qu-ec'; - public const LANGUAGES_QU_PE = 'qu-pe'; - public const LANGUAGES_RM = 'rm'; - public const LANGUAGES_RM_CH = 'rm-ch'; - public const LANGUAGES_RN = 'rn'; - public const LANGUAGES_RN_BI = 'rn-bi'; - public const LANGUAGES_RO = 'ro'; - public const LANGUAGES_RO_MD = 'ro-md'; - public const LANGUAGES_RO_RO = 'ro-ro'; - public const LANGUAGES_ROF = 'rof'; - public const LANGUAGES_ROF_TZ = 'rof-tz'; - public const LANGUAGES_RU = 'ru'; - public const LANGUAGES_RU_BY = 'ru-by'; - public const LANGUAGES_RU_KG = 'ru-kg'; - public const LANGUAGES_RU_KZ = 'ru-kz'; - public const LANGUAGES_RU_MD = 'ru-md'; - public const LANGUAGES_RU_RU = 'ru-ru'; - public const LANGUAGES_RU_UA = 'ru-ua'; - public const LANGUAGES_RW = 'rw'; - public const LANGUAGES_RW_RW = 'rw-rw'; - public const LANGUAGES_RWK = 'rwk'; - public const LANGUAGES_RWK_TZ = 'rwk-tz'; - public const LANGUAGES_SA = 'sa'; - public const LANGUAGES_SAH = 'sah'; - public const LANGUAGES_SAH_RU = 'sah-ru'; - public const LANGUAGES_SAQ = 'saq'; - public const LANGUAGES_SAQ_KE = 'saq-ke'; - public const LANGUAGES_SBP = 'sbp'; - public const LANGUAGES_SBP_TZ = 'sbp-tz'; - public const LANGUAGES_SD = 'sd'; - public const LANGUAGES_SD_PK = 'sd-pk'; - public const LANGUAGES_SE = 'se'; - public const LANGUAGES_SE_FI = 'se-fi'; - public const LANGUAGES_SE_NO = 'se-no'; - public const LANGUAGES_SE_SE = 'se-se'; - public const LANGUAGES_SEH = 'seh'; - public const LANGUAGES_SEH_MZ = 'seh-mz'; - public const LANGUAGES_SES = 'ses'; - public const LANGUAGES_SES_ML = 'ses-ml'; - public const LANGUAGES_SG = 'sg'; - public const LANGUAGES_SG_CF = 'sg-cf'; - public const LANGUAGES_SHI = 'shi'; - public const LANGUAGES_SHI_MA = 'shi-ma'; - public const LANGUAGES_SI = 'si'; - public const LANGUAGES_SI_LK = 'si-lk'; - public const LANGUAGES_SK = 'sk'; - public const LANGUAGES_SK_SK = 'sk-sk'; - public const LANGUAGES_SL = 'sl'; - public const LANGUAGES_SL_SI = 'sl-si'; - public const LANGUAGES_SMN = 'smn'; - public const LANGUAGES_SMN_FI = 'smn-fi'; - public const LANGUAGES_SN = 'sn'; - public const LANGUAGES_SN_ZW = 'sn-zw'; - public const LANGUAGES_SO = 'so'; - public const LANGUAGES_SO_DJ = 'so-dj'; - public const LANGUAGES_SO_ET = 'so-et'; - public const LANGUAGES_SO_KE = 'so-ke'; - public const LANGUAGES_SO_SO = 'so-so'; - public const LANGUAGES_SQ = 'sq'; - public const LANGUAGES_SQ_AL = 'sq-al'; - public const LANGUAGES_SQ_MK = 'sq-mk'; - public const LANGUAGES_SQ_XK = 'sq-xk'; - public const LANGUAGES_SR = 'sr'; - public const LANGUAGES_SR_BA = 'sr-ba'; - public const LANGUAGES_SR_CS = 'sr-cs'; - public const LANGUAGES_SR_ME = 'sr-me'; - public const LANGUAGES_SR_RS = 'sr-rs'; - public const LANGUAGES_SR_XK = 'sr-xk'; - public const LANGUAGES_SV = 'sv'; - public const LANGUAGES_SV_AX = 'sv-ax'; - public const LANGUAGES_SV_FI = 'sv-fi'; - public const LANGUAGES_SV_SE = 'sv-se'; - public const LANGUAGES_SW = 'sw'; - public const LANGUAGES_SW_CD = 'sw-cd'; - public const LANGUAGES_SW_KE = 'sw-ke'; - public const LANGUAGES_SW_TZ = 'sw-tz'; - public const LANGUAGES_SW_UG = 'sw-ug'; - public const LANGUAGES_SY = 'sy'; - public const LANGUAGES_TA = 'ta'; - public const LANGUAGES_TA_IN = 'ta-in'; - public const LANGUAGES_TA_LK = 'ta-lk'; - public const LANGUAGES_TA_MY = 'ta-my'; - public const LANGUAGES_TA_SG = 'ta-sg'; - public const LANGUAGES_TE = 'te'; - public const LANGUAGES_TE_IN = 'te-in'; - public const LANGUAGES_TEO = 'teo'; - public const LANGUAGES_TEO_KE = 'teo-ke'; - public const LANGUAGES_TEO_UG = 'teo-ug'; - public const LANGUAGES_TG = 'tg'; - public const LANGUAGES_TG_TJ = 'tg-tj'; - public const LANGUAGES_TH = 'th'; - public const LANGUAGES_TH_TH = 'th-th'; - public const LANGUAGES_TI = 'ti'; - public const LANGUAGES_TI_ER = 'ti-er'; - public const LANGUAGES_TI_ET = 'ti-et'; - public const LANGUAGES_TK = 'tk'; - public const LANGUAGES_TK_TM = 'tk-tm'; - public const LANGUAGES_TO = 'to'; - public const LANGUAGES_TO_TO = 'to-to'; - public const LANGUAGES_TR = 'tr'; - public const LANGUAGES_TR_CY = 'tr-cy'; - public const LANGUAGES_TR_TR = 'tr-tr'; - public const LANGUAGES_TT = 'tt'; - public const LANGUAGES_TT_RU = 'tt-ru'; - public const LANGUAGES_TWQ = 'twq'; - public const LANGUAGES_TWQ_NE = 'twq-ne'; - public const LANGUAGES_TZM = 'tzm'; - public const LANGUAGES_TZM_MA = 'tzm-ma'; - public const LANGUAGES_UG = 'ug'; - public const LANGUAGES_UG_CN = 'ug-cn'; - public const LANGUAGES_UK = 'uk'; - public const LANGUAGES_UK_UA = 'uk-ua'; - public const LANGUAGES_UR = 'ur'; - public const LANGUAGES_UR_IN = 'ur-in'; - public const LANGUAGES_UR_PK = 'ur-pk'; - public const LANGUAGES_UZ = 'uz'; - public const LANGUAGES_UZ_AF = 'uz-af'; - public const LANGUAGES_UZ_UZ = 'uz-uz'; - public const LANGUAGES_VAI = 'vai'; - public const LANGUAGES_VAI_LR = 'vai-lr'; - public const LANGUAGES_VI = 'vi'; - public const LANGUAGES_VI_VN = 'vi-vn'; - public const LANGUAGES_VO = 'vo'; - public const LANGUAGES_VO_001 = 'vo-001'; - public const LANGUAGES_VUN = 'vun'; - public const LANGUAGES_VUN_TZ = 'vun-tz'; - public const LANGUAGES_WAE = 'wae'; - public const LANGUAGES_WAE_CH = 'wae-ch'; - public const LANGUAGES_WO = 'wo'; - public const LANGUAGES_WO_SN = 'wo-sn'; - public const LANGUAGES_XOG = 'xog'; - public const LANGUAGES_XOG_UG = 'xog-ug'; - public const LANGUAGES_YAV = 'yav'; - public const LANGUAGES_YAV_CM = 'yav-cm'; - public const LANGUAGES_YO = 'yo'; - public const LANGUAGES_YO_BJ = 'yo-bj'; - public const LANGUAGES_YO_NG = 'yo-ng'; - public const LANGUAGES_YUE = 'yue'; - public const LANGUAGES_YUE_CN = 'yue-cn'; - public const LANGUAGES_YUE_HK = 'yue-hk'; - public const LANGUAGES_ZGH = 'zgh'; - public const LANGUAGES_ZGH_MA = 'zgh-ma'; - public const LANGUAGES_ZH = 'zh'; - public const LANGUAGES_ZH_CN = 'zh-cn'; - public const LANGUAGES_ZH_HK = 'zh-hk'; - public const LANGUAGES_ZH_MO = 'zh-mo'; - public const LANGUAGES_ZH_SG = 'zh-sg'; - public const LANGUAGES_ZH_TW = 'zh-tw'; - public const LANGUAGES_ZH_HANS = 'zh-hans'; - public const LANGUAGES_ZH_HANT = 'zh-hant'; - public const LANGUAGES_ZU = 'zu'; - public const LANGUAGES_ZU_ZA = 'zu-za'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getLanguagesAllowableValues() - { - return [ - self::LANGUAGES_AF, - self::LANGUAGES_AF_NA, - self::LANGUAGES_AF_ZA, - self::LANGUAGES_AGQ, - self::LANGUAGES_AGQ_CM, - self::LANGUAGES_AK, - self::LANGUAGES_AK_GH, - self::LANGUAGES_AM, - self::LANGUAGES_AM_ET, - self::LANGUAGES_AR, - self::LANGUAGES_AR_001, - self::LANGUAGES_AR_AE, - self::LANGUAGES_AR_BH, - self::LANGUAGES_AR_DJ, - self::LANGUAGES_AR_DZ, - self::LANGUAGES_AR_EG, - self::LANGUAGES_AR_EH, - self::LANGUAGES_AR_ER, - self::LANGUAGES_AR_IL, - self::LANGUAGES_AR_IQ, - self::LANGUAGES_AR_JO, - self::LANGUAGES_AR_KM, - self::LANGUAGES_AR_KW, - self::LANGUAGES_AR_LB, - self::LANGUAGES_AR_LY, - self::LANGUAGES_AR_MA, - self::LANGUAGES_AR_MR, - self::LANGUAGES_AR_OM, - self::LANGUAGES_AR_PS, - self::LANGUAGES_AR_QA, - self::LANGUAGES_AR_SA, - self::LANGUAGES_AR_SD, - self::LANGUAGES_AR_SO, - self::LANGUAGES_AR_SS, - self::LANGUAGES_AR_SY, - self::LANGUAGES_AR_TD, - self::LANGUAGES_AR_TN, - self::LANGUAGES_AR_YE, - self::LANGUAGES__AS, - self::LANGUAGES_AS_IN, - self::LANGUAGES_ASA, - self::LANGUAGES_ASA_TZ, - self::LANGUAGES_AST, - self::LANGUAGES_AST_ES, - self::LANGUAGES_AZ, - self::LANGUAGES_AZ_AZ, - self::LANGUAGES_BAS, - self::LANGUAGES_BAS_CM, - self::LANGUAGES_BE, - self::LANGUAGES_BE_BY, - self::LANGUAGES_BEM, - self::LANGUAGES_BEM_ZM, - self::LANGUAGES_BEZ, - self::LANGUAGES_BEZ_TZ, - self::LANGUAGES_BG, - self::LANGUAGES_BG_BG, - self::LANGUAGES_BM, - self::LANGUAGES_BM_ML, - self::LANGUAGES_BN, - self::LANGUAGES_BN_BD, - self::LANGUAGES_BN_IN, - self::LANGUAGES_BO, - self::LANGUAGES_BO_CN, - self::LANGUAGES_BO_IN, - self::LANGUAGES_BR, - self::LANGUAGES_BR_FR, - self::LANGUAGES_BRX, - self::LANGUAGES_BRX_IN, - self::LANGUAGES_BS, - self::LANGUAGES_BS_BA, - self::LANGUAGES_CA, - self::LANGUAGES_CA_AD, - self::LANGUAGES_CA_ES, - self::LANGUAGES_CA_FR, - self::LANGUAGES_CA_IT, - self::LANGUAGES_CCP, - self::LANGUAGES_CCP_BD, - self::LANGUAGES_CCP_IN, - self::LANGUAGES_CE, - self::LANGUAGES_CE_RU, - self::LANGUAGES_CGG, - self::LANGUAGES_CGG_UG, - self::LANGUAGES_CHR, - self::LANGUAGES_CHR_US, - self::LANGUAGES_CKB, - self::LANGUAGES_CKB_IQ, - self::LANGUAGES_CKB_IR, - self::LANGUAGES_CS, - self::LANGUAGES_CS_CZ, - self::LANGUAGES_CU, - self::LANGUAGES_CU_RU, - self::LANGUAGES_CY, - self::LANGUAGES_CY_GB, - self::LANGUAGES_DA, - self::LANGUAGES_DA_DK, - self::LANGUAGES_DA_GL, - self::LANGUAGES_DAV, - self::LANGUAGES_DAV_KE, - self::LANGUAGES_DE, - self::LANGUAGES_DE_AT, - self::LANGUAGES_DE_BE, - self::LANGUAGES_DE_CH, - self::LANGUAGES_DE_DE, - self::LANGUAGES_DE_GR, - self::LANGUAGES_DE_IT, - self::LANGUAGES_DE_LI, - self::LANGUAGES_DE_LU, - self::LANGUAGES_DJE, - self::LANGUAGES_DJE_NE, - self::LANGUAGES_DSB, - self::LANGUAGES_DSB_DE, - self::LANGUAGES_DUA, - self::LANGUAGES_DUA_CM, - self::LANGUAGES_DYO, - self::LANGUAGES_DYO_SN, - self::LANGUAGES_DZ, - self::LANGUAGES_DZ_BT, - self::LANGUAGES_EBU, - self::LANGUAGES_EBU_KE, - self::LANGUAGES_EE, - self::LANGUAGES_EE_GH, - self::LANGUAGES_EE_TG, - self::LANGUAGES_EL, - self::LANGUAGES_EL_CY, - self::LANGUAGES_EL_GR, - self::LANGUAGES_EN, - self::LANGUAGES_EN_001, - self::LANGUAGES_EN_150, - self::LANGUAGES_EN_AE, - self::LANGUAGES_EN_AG, - self::LANGUAGES_EN_AI, - self::LANGUAGES_EN_AS, - self::LANGUAGES_EN_AT, - self::LANGUAGES_EN_AU, - self::LANGUAGES_EN_BB, - self::LANGUAGES_EN_BE, - self::LANGUAGES_EN_BI, - self::LANGUAGES_EN_BM, - self::LANGUAGES_EN_BS, - self::LANGUAGES_EN_BW, - self::LANGUAGES_EN_BZ, - self::LANGUAGES_EN_CA, - self::LANGUAGES_EN_CC, - self::LANGUAGES_EN_CH, - self::LANGUAGES_EN_CK, - self::LANGUAGES_EN_CM, - self::LANGUAGES_EN_CX, - self::LANGUAGES_EN_CY, - self::LANGUAGES_EN_DE, - self::LANGUAGES_EN_DG, - self::LANGUAGES_EN_DK, - self::LANGUAGES_EN_DM, - self::LANGUAGES_EN_ER, - self::LANGUAGES_EN_FI, - self::LANGUAGES_EN_FJ, - self::LANGUAGES_EN_FK, - self::LANGUAGES_EN_FM, - self::LANGUAGES_EN_GB, - self::LANGUAGES_EN_GD, - self::LANGUAGES_EN_GG, - self::LANGUAGES_EN_GH, - self::LANGUAGES_EN_GI, - self::LANGUAGES_EN_GM, - self::LANGUAGES_EN_GU, - self::LANGUAGES_EN_GY, - self::LANGUAGES_EN_HK, - self::LANGUAGES_EN_IE, - self::LANGUAGES_EN_IL, - self::LANGUAGES_EN_IM, - self::LANGUAGES_EN_IN, - self::LANGUAGES_EN_IO, - self::LANGUAGES_EN_JE, - self::LANGUAGES_EN_JM, - self::LANGUAGES_EN_KE, - self::LANGUAGES_EN_KI, - self::LANGUAGES_EN_KN, - self::LANGUAGES_EN_KY, - self::LANGUAGES_EN_LC, - self::LANGUAGES_EN_LR, - self::LANGUAGES_EN_LS, - self::LANGUAGES_EN_LU, - self::LANGUAGES_EN_MG, - self::LANGUAGES_EN_MH, - self::LANGUAGES_EN_MO, - self::LANGUAGES_EN_MP, - self::LANGUAGES_EN_MS, - self::LANGUAGES_EN_MT, - self::LANGUAGES_EN_MU, - self::LANGUAGES_EN_MW, - self::LANGUAGES_EN_MY, - self::LANGUAGES_EN_NA, - self::LANGUAGES_EN_NF, - self::LANGUAGES_EN_NG, - self::LANGUAGES_EN_NL, - self::LANGUAGES_EN_NR, - self::LANGUAGES_EN_NU, - self::LANGUAGES_EN_NZ, - self::LANGUAGES_EN_PG, - self::LANGUAGES_EN_PH, - self::LANGUAGES_EN_PK, - self::LANGUAGES_EN_PN, - self::LANGUAGES_EN_PR, - self::LANGUAGES_EN_PW, - self::LANGUAGES_EN_RW, - self::LANGUAGES_EN_SB, - self::LANGUAGES_EN_SC, - self::LANGUAGES_EN_SD, - self::LANGUAGES_EN_SE, - self::LANGUAGES_EN_SG, - self::LANGUAGES_EN_SH, - self::LANGUAGES_EN_SI, - self::LANGUAGES_EN_SL, - self::LANGUAGES_EN_SS, - self::LANGUAGES_EN_SX, - self::LANGUAGES_EN_SZ, - self::LANGUAGES_EN_TC, - self::LANGUAGES_EN_TK, - self::LANGUAGES_EN_TO, - self::LANGUAGES_EN_TT, - self::LANGUAGES_EN_TV, - self::LANGUAGES_EN_TZ, - self::LANGUAGES_EN_UG, - self::LANGUAGES_EN_UM, - self::LANGUAGES_EN_US, - self::LANGUAGES_EN_VC, - self::LANGUAGES_EN_VG, - self::LANGUAGES_EN_VI, - self::LANGUAGES_EN_VU, - self::LANGUAGES_EN_WS, - self::LANGUAGES_EN_ZA, - self::LANGUAGES_EN_ZM, - self::LANGUAGES_EN_ZW, - self::LANGUAGES_EO, - self::LANGUAGES_EO_001, - self::LANGUAGES_ES, - self::LANGUAGES_ES_419, - self::LANGUAGES_ES_AR, - self::LANGUAGES_ES_BO, - self::LANGUAGES_ES_BR, - self::LANGUAGES_ES_BZ, - self::LANGUAGES_ES_CL, - self::LANGUAGES_ES_CO, - self::LANGUAGES_ES_CR, - self::LANGUAGES_ES_CU, - self::LANGUAGES_ES_DO, - self::LANGUAGES_ES_EA, - self::LANGUAGES_ES_EC, - self::LANGUAGES_ES_ES, - self::LANGUAGES_ES_GQ, - self::LANGUAGES_ES_GT, - self::LANGUAGES_ES_HN, - self::LANGUAGES_ES_IC, - self::LANGUAGES_ES_MX, - self::LANGUAGES_ES_NI, - self::LANGUAGES_ES_PA, - self::LANGUAGES_ES_PE, - self::LANGUAGES_ES_PH, - self::LANGUAGES_ES_PR, - self::LANGUAGES_ES_PY, - self::LANGUAGES_ES_SV, - self::LANGUAGES_ES_US, - self::LANGUAGES_ES_UY, - self::LANGUAGES_ES_VE, - self::LANGUAGES_ET, - self::LANGUAGES_ET_EE, - self::LANGUAGES_EU, - self::LANGUAGES_EU_ES, - self::LANGUAGES_EWO, - self::LANGUAGES_EWO_CM, - self::LANGUAGES_FA, - self::LANGUAGES_FA_AF, - self::LANGUAGES_FA_IR, - self::LANGUAGES_FF, - self::LANGUAGES_FF_CM, - self::LANGUAGES_FF_GN, - self::LANGUAGES_FF_MR, - self::LANGUAGES_FF_SN, - self::LANGUAGES_FI, - self::LANGUAGES_FI_FI, - self::LANGUAGES_FIL, - self::LANGUAGES_FIL_PH, - self::LANGUAGES_FO, - self::LANGUAGES_FO_DK, - self::LANGUAGES_FO_FO, - self::LANGUAGES_FR, - self::LANGUAGES_FR_BE, - self::LANGUAGES_FR_BF, - self::LANGUAGES_FR_BI, - self::LANGUAGES_FR_BJ, - self::LANGUAGES_FR_BL, - self::LANGUAGES_FR_CA, - self::LANGUAGES_FR_CD, - self::LANGUAGES_FR_CF, - self::LANGUAGES_FR_CG, - self::LANGUAGES_FR_CH, - self::LANGUAGES_FR_CI, - self::LANGUAGES_FR_CM, - self::LANGUAGES_FR_DJ, - self::LANGUAGES_FR_DZ, - self::LANGUAGES_FR_FR, - self::LANGUAGES_FR_GA, - self::LANGUAGES_FR_GF, - self::LANGUAGES_FR_GN, - self::LANGUAGES_FR_GP, - self::LANGUAGES_FR_GQ, - self::LANGUAGES_FR_HT, - self::LANGUAGES_FR_KM, - self::LANGUAGES_FR_LU, - self::LANGUAGES_FR_MA, - self::LANGUAGES_FR_MC, - self::LANGUAGES_FR_MF, - self::LANGUAGES_FR_MG, - self::LANGUAGES_FR_ML, - self::LANGUAGES_FR_MQ, - self::LANGUAGES_FR_MR, - self::LANGUAGES_FR_MU, - self::LANGUAGES_FR_NC, - self::LANGUAGES_FR_NE, - self::LANGUAGES_FR_PF, - self::LANGUAGES_FR_PM, - self::LANGUAGES_FR_RE, - self::LANGUAGES_FR_RW, - self::LANGUAGES_FR_SC, - self::LANGUAGES_FR_SN, - self::LANGUAGES_FR_SY, - self::LANGUAGES_FR_TD, - self::LANGUAGES_FR_TG, - self::LANGUAGES_FR_TN, - self::LANGUAGES_FR_VU, - self::LANGUAGES_FR_WF, - self::LANGUAGES_FR_YT, - self::LANGUAGES_FUR, - self::LANGUAGES_FUR_IT, - self::LANGUAGES_FY, - self::LANGUAGES_FY_NL, - self::LANGUAGES_GA, - self::LANGUAGES_GA_IE, - self::LANGUAGES_GD, - self::LANGUAGES_GD_GB, - self::LANGUAGES_GL, - self::LANGUAGES_GL_ES, - self::LANGUAGES_GSW, - self::LANGUAGES_GSW_CH, - self::LANGUAGES_GSW_FR, - self::LANGUAGES_GSW_LI, - self::LANGUAGES_GU, - self::LANGUAGES_GU_IN, - self::LANGUAGES_GUZ, - self::LANGUAGES_GUZ_KE, - self::LANGUAGES_GV, - self::LANGUAGES_GV_IM, - self::LANGUAGES_HA, - self::LANGUAGES_HA_GH, - self::LANGUAGES_HA_NE, - self::LANGUAGES_HA_NG, - self::LANGUAGES_HAW, - self::LANGUAGES_HAW_US, - self::LANGUAGES_HE, - self::LANGUAGES_HI, - self::LANGUAGES_HI_IN, - self::LANGUAGES_HR, - self::LANGUAGES_HR_BA, - self::LANGUAGES_HR_HR, - self::LANGUAGES_HSB, - self::LANGUAGES_HSB_DE, - self::LANGUAGES_HU, - self::LANGUAGES_HU_HU, - self::LANGUAGES_HY, - self::LANGUAGES_HY_AM, - self::LANGUAGES_ID, - self::LANGUAGES_IG, - self::LANGUAGES_IG_NG, - self::LANGUAGES_II, - self::LANGUAGES_II_CN, - self::LANGUAGES_ID_ID, - self::LANGUAGES_IS, - self::LANGUAGES_IS_IS, - self::LANGUAGES_IT, - self::LANGUAGES_IT_CH, - self::LANGUAGES_IT_IT, - self::LANGUAGES_IT_SM, - self::LANGUAGES_IT_VA, - self::LANGUAGES_HE_IL, - self::LANGUAGES_JA, - self::LANGUAGES_JA_JP, - self::LANGUAGES_JGO, - self::LANGUAGES_JGO_CM, - self::LANGUAGES_YI, - self::LANGUAGES_YI_001, - self::LANGUAGES_JMC, - self::LANGUAGES_JMC_TZ, - self::LANGUAGES_KA, - self::LANGUAGES_KA_GE, - self::LANGUAGES_KAB, - self::LANGUAGES_KAB_DZ, - self::LANGUAGES_KAM, - self::LANGUAGES_KAM_KE, - self::LANGUAGES_KDE, - self::LANGUAGES_KDE_TZ, - self::LANGUAGES_KEA, - self::LANGUAGES_KEA_CV, - self::LANGUAGES_KHQ, - self::LANGUAGES_KHQ_ML, - self::LANGUAGES_KI, - self::LANGUAGES_KI_KE, - self::LANGUAGES_KK, - self::LANGUAGES_KK_KZ, - self::LANGUAGES_KKJ, - self::LANGUAGES_KKJ_CM, - self::LANGUAGES_KL, - self::LANGUAGES_KL_GL, - self::LANGUAGES_KLN, - self::LANGUAGES_KLN_KE, - self::LANGUAGES_KM, - self::LANGUAGES_KM_KH, - self::LANGUAGES_KN, - self::LANGUAGES_KN_IN, - self::LANGUAGES_KO, - self::LANGUAGES_KO_KP, - self::LANGUAGES_KO_KR, - self::LANGUAGES_KOK, - self::LANGUAGES_KOK_IN, - self::LANGUAGES_KS, - self::LANGUAGES_KS_IN, - self::LANGUAGES_KSB, - self::LANGUAGES_KSB_TZ, - self::LANGUAGES_KSF, - self::LANGUAGES_KSF_CM, - self::LANGUAGES_KSH, - self::LANGUAGES_KSH_DE, - self::LANGUAGES_KW, - self::LANGUAGES_KW_GB, - self::LANGUAGES_KY, - self::LANGUAGES_KY_KG, - self::LANGUAGES_LAG, - self::LANGUAGES_LAG_TZ, - self::LANGUAGES_LB, - self::LANGUAGES_LB_LU, - self::LANGUAGES_LG, - self::LANGUAGES_LG_UG, - self::LANGUAGES_LKT, - self::LANGUAGES_LKT_US, - self::LANGUAGES_LN, - self::LANGUAGES_LN_AO, - self::LANGUAGES_LN_CD, - self::LANGUAGES_LN_CF, - self::LANGUAGES_LN_CG, - self::LANGUAGES_LO, - self::LANGUAGES_LO_LA, - self::LANGUAGES_LRC, - self::LANGUAGES_LRC_IQ, - self::LANGUAGES_LRC_IR, - self::LANGUAGES_LT, - self::LANGUAGES_LT_LT, - self::LANGUAGES_LU, - self::LANGUAGES_LU_CD, - self::LANGUAGES_LUO, - self::LANGUAGES_LUO_KE, - self::LANGUAGES_LUY, - self::LANGUAGES_LUY_KE, - self::LANGUAGES_LV, - self::LANGUAGES_LV_LV, - self::LANGUAGES_MAS, - self::LANGUAGES_MAS_KE, - self::LANGUAGES_MAS_TZ, - self::LANGUAGES_MER, - self::LANGUAGES_MER_KE, - self::LANGUAGES_MFE, - self::LANGUAGES_MFE_MU, - self::LANGUAGES_MG, - self::LANGUAGES_MG_MG, - self::LANGUAGES_MGH, - self::LANGUAGES_MGH_MZ, - self::LANGUAGES_MGO, - self::LANGUAGES_MGO_CM, - self::LANGUAGES_MK, - self::LANGUAGES_MK_MK, - self::LANGUAGES_ML, - self::LANGUAGES_ML_IN, - self::LANGUAGES_MN, - self::LANGUAGES_MN_MN, - self::LANGUAGES_MR, - self::LANGUAGES_MR_IN, - self::LANGUAGES_MS, - self::LANGUAGES_MS_BN, - self::LANGUAGES_MS_MY, - self::LANGUAGES_MS_SG, - self::LANGUAGES_MT, - self::LANGUAGES_MT_MT, - self::LANGUAGES_MUA, - self::LANGUAGES_MUA_CM, - self::LANGUAGES_MY, - self::LANGUAGES_MY_MM, - self::LANGUAGES_MZN, - self::LANGUAGES_MZN_IR, - self::LANGUAGES_NAQ, - self::LANGUAGES_NAQ_NA, - self::LANGUAGES_NB, - self::LANGUAGES_NB_NO, - self::LANGUAGES_NB_SJ, - self::LANGUAGES_ND, - self::LANGUAGES_ND_ZW, - self::LANGUAGES_NDS, - self::LANGUAGES_NDS_DE, - self::LANGUAGES_NDS_NL, - self::LANGUAGES_NE, - self::LANGUAGES_NE_IN, - self::LANGUAGES_NE_NP, - self::LANGUAGES_NL, - self::LANGUAGES_NL_AW, - self::LANGUAGES_NL_BE, - self::LANGUAGES_NL_CH, - self::LANGUAGES_NL_BQ, - self::LANGUAGES_NL_CW, - self::LANGUAGES_NL_LU, - self::LANGUAGES_NL_NL, - self::LANGUAGES_NL_SR, - self::LANGUAGES_NL_SX, - self::LANGUAGES_NMG, - self::LANGUAGES_NMG_CM, - self::LANGUAGES_NN, - self::LANGUAGES_NN_NO, - self::LANGUAGES_NNH, - self::LANGUAGES_NNH_CM, - self::LANGUAGES_NO, - self::LANGUAGES_NO_NO, - self::LANGUAGES_NUS, - self::LANGUAGES_NUS_SS, - self::LANGUAGES_NYN, - self::LANGUAGES_NYN_UG, - self::LANGUAGES_OM, - self::LANGUAGES_OM_ET, - self::LANGUAGES_OM_KE, - self::LANGUAGES__OR, - self::LANGUAGES_OR_IN, - self::LANGUAGES_OS, - self::LANGUAGES_OS_GE, - self::LANGUAGES_OS_RU, - self::LANGUAGES_PA, - self::LANGUAGES_PA_IN, - self::LANGUAGES_PA_PK, - self::LANGUAGES_PL, - self::LANGUAGES_PL_PL, - self::LANGUAGES_PRG, - self::LANGUAGES_PRG_001, - self::LANGUAGES_PS, - self::LANGUAGES_PS_AF, - self::LANGUAGES_PT, - self::LANGUAGES_PT_AO, - self::LANGUAGES_PT_BR, - self::LANGUAGES_PT_CH, - self::LANGUAGES_PT_CV, - self::LANGUAGES_PT_GQ, - self::LANGUAGES_PT_GW, - self::LANGUAGES_PT_LU, - self::LANGUAGES_PT_MO, - self::LANGUAGES_PT_MZ, - self::LANGUAGES_PT_PT, - self::LANGUAGES_PT_ST, - self::LANGUAGES_PT_TL, - self::LANGUAGES_QU, - self::LANGUAGES_QU_BO, - self::LANGUAGES_QU_EC, - self::LANGUAGES_QU_PE, - self::LANGUAGES_RM, - self::LANGUAGES_RM_CH, - self::LANGUAGES_RN, - self::LANGUAGES_RN_BI, - self::LANGUAGES_RO, - self::LANGUAGES_RO_MD, - self::LANGUAGES_RO_RO, - self::LANGUAGES_ROF, - self::LANGUAGES_ROF_TZ, - self::LANGUAGES_RU, - self::LANGUAGES_RU_BY, - self::LANGUAGES_RU_KG, - self::LANGUAGES_RU_KZ, - self::LANGUAGES_RU_MD, - self::LANGUAGES_RU_RU, - self::LANGUAGES_RU_UA, - self::LANGUAGES_RW, - self::LANGUAGES_RW_RW, - self::LANGUAGES_RWK, - self::LANGUAGES_RWK_TZ, - self::LANGUAGES_SA, - self::LANGUAGES_SAH, - self::LANGUAGES_SAH_RU, - self::LANGUAGES_SAQ, - self::LANGUAGES_SAQ_KE, - self::LANGUAGES_SBP, - self::LANGUAGES_SBP_TZ, - self::LANGUAGES_SD, - self::LANGUAGES_SD_PK, - self::LANGUAGES_SE, - self::LANGUAGES_SE_FI, - self::LANGUAGES_SE_NO, - self::LANGUAGES_SE_SE, - self::LANGUAGES_SEH, - self::LANGUAGES_SEH_MZ, - self::LANGUAGES_SES, - self::LANGUAGES_SES_ML, - self::LANGUAGES_SG, - self::LANGUAGES_SG_CF, - self::LANGUAGES_SHI, - self::LANGUAGES_SHI_MA, - self::LANGUAGES_SI, - self::LANGUAGES_SI_LK, - self::LANGUAGES_SK, - self::LANGUAGES_SK_SK, - self::LANGUAGES_SL, - self::LANGUAGES_SL_SI, - self::LANGUAGES_SMN, - self::LANGUAGES_SMN_FI, - self::LANGUAGES_SN, - self::LANGUAGES_SN_ZW, - self::LANGUAGES_SO, - self::LANGUAGES_SO_DJ, - self::LANGUAGES_SO_ET, - self::LANGUAGES_SO_KE, - self::LANGUAGES_SO_SO, - self::LANGUAGES_SQ, - self::LANGUAGES_SQ_AL, - self::LANGUAGES_SQ_MK, - self::LANGUAGES_SQ_XK, - self::LANGUAGES_SR, - self::LANGUAGES_SR_BA, - self::LANGUAGES_SR_CS, - self::LANGUAGES_SR_ME, - self::LANGUAGES_SR_RS, - self::LANGUAGES_SR_XK, - self::LANGUAGES_SV, - self::LANGUAGES_SV_AX, - self::LANGUAGES_SV_FI, - self::LANGUAGES_SV_SE, - self::LANGUAGES_SW, - self::LANGUAGES_SW_CD, - self::LANGUAGES_SW_KE, - self::LANGUAGES_SW_TZ, - self::LANGUAGES_SW_UG, - self::LANGUAGES_SY, - self::LANGUAGES_TA, - self::LANGUAGES_TA_IN, - self::LANGUAGES_TA_LK, - self::LANGUAGES_TA_MY, - self::LANGUAGES_TA_SG, - self::LANGUAGES_TE, - self::LANGUAGES_TE_IN, - self::LANGUAGES_TEO, - self::LANGUAGES_TEO_KE, - self::LANGUAGES_TEO_UG, - self::LANGUAGES_TG, - self::LANGUAGES_TG_TJ, - self::LANGUAGES_TH, - self::LANGUAGES_TH_TH, - self::LANGUAGES_TI, - self::LANGUAGES_TI_ER, - self::LANGUAGES_TI_ET, - self::LANGUAGES_TK, - self::LANGUAGES_TK_TM, - self::LANGUAGES_TO, - self::LANGUAGES_TO_TO, - self::LANGUAGES_TR, - self::LANGUAGES_TR_CY, - self::LANGUAGES_TR_TR, - self::LANGUAGES_TT, - self::LANGUAGES_TT_RU, - self::LANGUAGES_TWQ, - self::LANGUAGES_TWQ_NE, - self::LANGUAGES_TZM, - self::LANGUAGES_TZM_MA, - self::LANGUAGES_UG, - self::LANGUAGES_UG_CN, - self::LANGUAGES_UK, - self::LANGUAGES_UK_UA, - self::LANGUAGES_UR, - self::LANGUAGES_UR_IN, - self::LANGUAGES_UR_PK, - self::LANGUAGES_UZ, - self::LANGUAGES_UZ_AF, - self::LANGUAGES_UZ_UZ, - self::LANGUAGES_VAI, - self::LANGUAGES_VAI_LR, - self::LANGUAGES_VI, - self::LANGUAGES_VI_VN, - self::LANGUAGES_VO, - self::LANGUAGES_VO_001, - self::LANGUAGES_VUN, - self::LANGUAGES_VUN_TZ, - self::LANGUAGES_WAE, - self::LANGUAGES_WAE_CH, - self::LANGUAGES_WO, - self::LANGUAGES_WO_SN, - self::LANGUAGES_XOG, - self::LANGUAGES_XOG_UG, - self::LANGUAGES_YAV, - self::LANGUAGES_YAV_CM, - self::LANGUAGES_YO, - self::LANGUAGES_YO_BJ, - self::LANGUAGES_YO_NG, - self::LANGUAGES_YUE, - self::LANGUAGES_YUE_CN, - self::LANGUAGES_YUE_HK, - self::LANGUAGES_ZGH, - self::LANGUAGES_ZGH_MA, - self::LANGUAGES_ZH, - self::LANGUAGES_ZH_CN, - self::LANGUAGES_ZH_HK, - self::LANGUAGES_ZH_MO, - self::LANGUAGES_ZH_SG, - self::LANGUAGES_ZH_TW, - self::LANGUAGES_ZH_HANS, - self::LANGUAGES_ZH_HANT, - self::LANGUAGES_ZU, - self::LANGUAGES_ZU_ZA, - ]; - } /** * Associative array for storing property values @@ -1621,8 +182,8 @@ public function getLanguagesAllowableValues() */ public function __construct(array $data = null) { - $this->container['primary_id'] = $data['primary_id'] ?? null; $this->container['languages'] = $data['languages'] ?? null; + $this->container['primary_id'] = $data['primary_id'] ?? null; } /** @@ -1634,12 +195,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['primary_id'] === null) { - $invalidProperties[] = "'primary_id' can't be null"; - } if ($this->container['languages'] === null) { $invalidProperties[] = "'languages' can't be null"; } + if ($this->container['primary_id'] === null) { + $invalidProperties[] = "'primary_id' can't be null"; + } return $invalidProperties; } @@ -1656,58 +217,49 @@ public function valid() /** - * Gets primary_id + * Gets languages * - * @return string + * @return array */ - public function getPrimaryId() + public function getLanguages() { - return $this->container['primary_id']; + return $this->container['languages']; } /** - * Sets primary_id + * Sets languages * - * @param string $primary_id ID of the primary object in the multi-language group. + * @param array $languages Map of object IDs to associated languages of object in the multi-language group. * * @return self */ - public function setPrimaryId($primary_id) + public function setLanguages($languages) { - $this->container['primary_id'] = $primary_id; + $this->container['languages'] = $languages; return $this; } /** - * Gets languages + * Gets primary_id * - * @return array + * @return string */ - public function getLanguages() + public function getPrimaryId() { - return $this->container['languages']; + return $this->container['primary_id']; } /** - * Sets languages + * Sets primary_id * - * @param array $languages Map of object IDs to associated languages of object in the multi-language group. + * @param string $primary_id ID of the primary object in the multi-language group. * * @return self */ - public function setLanguages($languages) + public function setPrimaryId($primary_id) { - $allowedValues = $this->getLanguagesAllowableValues(); - if (array_diff($languages, $allowedValues)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'languages', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); - } - $this->container['languages'] = $languages; + $this->container['primary_id'] = $primary_id; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/VersionBlogPost.php b/codegen/Cms/Blogs/BlogPosts/Model/VersionBlogPost.php index 3860eaad..ae47f78a 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/VersionBlogPost.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/VersionBlogPost.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,9 +58,9 @@ class VersionBlogPost implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'object' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost', - 'user' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\VersionUser', 'id' => 'string', + 'user' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\VersionUser', + 'object' => '\HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost', 'updated_at' => '\DateTime' ]; @@ -72,9 +72,9 @@ class VersionBlogPost implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'object' => null, - 'user' => null, 'id' => null, + 'user' => null, + 'object' => null, 'updated_at' => 'date-time' ]; @@ -105,9 +105,9 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'object' => 'object', - 'user' => 'user', 'id' => 'id', + 'user' => 'user', + 'object' => 'object', 'updated_at' => 'updatedAt' ]; @@ -117,9 +117,9 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'object' => 'setObject', - 'user' => 'setUser', 'id' => 'setId', + 'user' => 'setUser', + 'object' => 'setObject', 'updated_at' => 'setUpdatedAt' ]; @@ -129,9 +129,9 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'object' => 'getObject', - 'user' => 'getUser', 'id' => 'getId', + 'user' => 'getUser', + 'object' => 'getObject', 'updated_at' => 'getUpdatedAt' ]; @@ -192,9 +192,9 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['object'] = $data['object'] ?? null; - $this->container['user'] = $data['user'] ?? null; $this->container['id'] = $data['id'] ?? null; + $this->container['user'] = $data['user'] ?? null; + $this->container['object'] = $data['object'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; } @@ -207,14 +207,14 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['object'] === null) { - $invalidProperties[] = "'object' can't be null"; + 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['id'] === null) { - $invalidProperties[] = "'id' 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"; @@ -235,25 +235,25 @@ public function valid() /** - * Gets object + * Gets id * - * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost + * @return string */ - public function getObject() + public function getId() { - return $this->container['object']; + return $this->container['id']; } /** - * Sets object + * Sets id * - * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost $object object + * @param string $id The id of the version. * * @return self */ - public function setObject($object) + public function setId($id) { - $this->container['object'] = $object; + $this->container['id'] = $id; return $this; } @@ -283,25 +283,25 @@ public function setUser($user) } /** - * Gets id + * Gets object * - * @return string + * @return \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost */ - public function getId() + public function getObject() { - return $this->container['id']; + return $this->container['object']; } /** - * Sets id + * Sets object * - * @param string $id The id of the version. + * @param \HubSpot\Client\Cms\Blogs\BlogPosts\Model\BlogPost $object object * * @return self */ - public function setId($id) + public function setObject($object) { - $this->container['id'] = $id; + $this->container['object'] = $object; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/Model/VersionUser.php b/codegen/Cms/Blogs/BlogPosts/Model/VersionUser.php index 75c85bf9..5e46c7b9 100644 --- a/codegen/Cms/Blogs/BlogPosts/Model/VersionUser.php +++ b/codegen/Cms/Blogs/BlogPosts/Model/VersionUser.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,9 +58,9 @@ class VersionUser implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'full_name' => 'string', 'id' => 'string', - 'email' => 'string', - 'full_name' => 'string' + 'email' => 'string' ]; /** @@ -71,9 +71,9 @@ class VersionUser implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'full_name' => null, 'id' => null, - 'email' => null, - 'full_name' => null + 'email' => null ]; /** @@ -103,9 +103,9 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ + 'full_name' => 'fullName', 'id' => 'id', - 'email' => 'email', - 'full_name' => 'fullName' + 'email' => 'email' ]; /** @@ -114,9 +114,9 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ + 'full_name' => 'setFullName', 'id' => 'setId', - 'email' => 'setEmail', - 'full_name' => 'setFullName' + 'email' => 'setEmail' ]; /** @@ -125,9 +125,9 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ + 'full_name' => 'getFullName', 'id' => 'getId', - 'email' => 'getEmail', - 'full_name' => 'getFullName' + 'email' => 'getEmail' ]; /** @@ -187,9 +187,9 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['full_name'] = $data['full_name'] ?? null; $this->container['id'] = $data['id'] ?? null; $this->container['email'] = $data['email'] ?? null; - $this->container['full_name'] = $data['full_name'] ?? null; } /** @@ -201,15 +201,15 @@ public function listInvalidProperties() { $invalidProperties = []; + 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"; } - if ($this->container['full_name'] === null) { - $invalidProperties[] = "'full_name' can't be null"; - } return $invalidProperties; } @@ -226,73 +226,73 @@ public function valid() /** - * 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 The unique ID of the User. + * @param string $full_name The first and last name of the User. * * @return self */ - public function setId($id) + public function setFullName($full_name) { - $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 The email address of the user. + * @param string $id The unique ID of the User. * * @return self */ - public function setEmail($email) + public function setId($id) { - $this->container['email'] = $email; + $this->container['id'] = $id; return $this; } /** - * 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 The first and last name of the User. + * @param string $email The email address of the user. * * @return self */ - public function setFullName($full_name) + public function setEmail($email) { - $this->container['full_name'] = $full_name; + $this->container['email'] = $email; return $this; } diff --git a/codegen/Cms/Blogs/BlogPosts/ObjectSerializer.php b/codegen/Cms/Blogs/BlogPosts/ObjectSerializer.php index 983cd93a..b949e2d4 100644 --- a/codegen/Cms/Blogs/BlogPosts/ObjectSerializer.php +++ b/codegen/Cms/Blogs/BlogPosts/ObjectSerializer.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Posts * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Tags/Api/BlogTagsApi.php b/codegen/Cms/Blogs/Tags/Api/BlogTagsApi.php index 5edd5b98..74b13eef 100644 --- a/codegen/Cms/Blogs/Tags/Api/BlogTagsApi.php +++ b/codegen/Cms/Blogs/Tags/Api/BlogTagsApi.php @@ -10,7 +10,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -612,12 +612,11 @@ public function archiveBatchRequest($batch_input_string) * * @throws \HubSpot\Client\Cms\Blogs\Tags\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \HubSpot\Client\Cms\Blogs\Tags\Model\Error + * @return void */ public function attachToLangGroup($attach_to_lang_primary_request_v_next) { - list($response) = $this->attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_next); - return $response; + $this->attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_next); } /** @@ -629,7 +628,7 @@ public function attachToLangGroup($attach_to_lang_primary_request_v_next) * * @throws \HubSpot\Client\Cms\Blogs\Tags\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \HubSpot\Client\Cms\Blogs\Tags\Model\Error, HTTP status code, HTTP response headers (array of strings) + * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_next) { @@ -670,39 +669,7 @@ public function attachToLangGroupWithHttpInfo($attach_to_lang_primary_request_v_ ); } - switch($statusCode) { - default: - if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\Error'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $statusCode, $response->getHeaders()]; } catch (ApiException $e) { switch ($e->getCode()) { @@ -751,27 +718,14 @@ function ($response) { */ public function attachToLangGroupAsyncWithHttpInfo($attach_to_lang_primary_request_v_next) { - $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\Error'; + $returnType = ''; $request = $this->attachToLangGroupRequest($attach_to_lang_primary_request_v_next); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $response->getStatusCode(), $response->getHeaders()]; }, function ($exception) { $response = $exception->getResponse(); @@ -1832,12 +1786,11 @@ public function createLangVariationRequest($tag_clone_request_v_next) * * @throws \HubSpot\Client\Cms\Blogs\Tags\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \HubSpot\Client\Cms\Blogs\Tags\Model\Error + * @return void */ public function detachFromLangGroup($detach_from_lang_group_request_v_next) { - list($response) = $this->detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_v_next); - return $response; + $this->detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_v_next); } /** @@ -1849,7 +1802,7 @@ public function detachFromLangGroup($detach_from_lang_group_request_v_next) * * @throws \HubSpot\Client\Cms\Blogs\Tags\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \HubSpot\Client\Cms\Blogs\Tags\Model\Error, HTTP status code, HTTP response headers (array of strings) + * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_v_next) { @@ -1890,39 +1843,7 @@ public function detachFromLangGroupWithHttpInfo($detach_from_lang_group_request_ ); } - switch($statusCode) { - default: - if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\Error'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $statusCode, $response->getHeaders()]; } catch (ApiException $e) { switch ($e->getCode()) { @@ -1971,27 +1892,14 @@ function ($response) { */ public function detachFromLangGroupAsyncWithHttpInfo($detach_from_lang_group_request_v_next) { - $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\Error'; + $returnType = ''; $request = $this->detachFromLangGroupRequest($detach_from_lang_group_request_v_next); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $response->getStatusCode(), $response->getHeaders()]; }, function ($exception) { $response = $exception->getResponse(); @@ -2112,14 +2020,15 @@ public function detachFromLangGroupRequest($detach_from_lang_group_request_v_nex * * @param string $object_id The Blog Tag id. (required) * @param bool $archived Specifies whether to return deleted Blog Tags. Defaults to `false`. (optional) + * @param string $property property (optional) * * @throws \HubSpot\Client\Cms\Blogs\Tags\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \HubSpot\Client\Cms\Blogs\Tags\Model\Tag|\HubSpot\Client\Cms\Blogs\Tags\Model\Error */ - public function getById($object_id, $archived = null) + public function getById($object_id, $archived = null, $property = null) { - list($response) = $this->getByIdWithHttpInfo($object_id, $archived); + list($response) = $this->getByIdWithHttpInfo($object_id, $archived, $property); return $response; } @@ -2130,14 +2039,15 @@ public function getById($object_id, $archived = null) * * @param string $object_id The Blog Tag id. (required) * @param bool $archived Specifies whether to return deleted Blog Tags. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \HubSpot\Client\Cms\Blogs\Tags\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \HubSpot\Client\Cms\Blogs\Tags\Model\Tag|\HubSpot\Client\Cms\Blogs\Tags\Model\Error, HTTP status code, HTTP response headers (array of strings) */ - public function getByIdWithHttpInfo($object_id, $archived = null) + public function getByIdWithHttpInfo($object_id, $archived = null, $property = null) { - $request = $this->getByIdRequest($object_id, $archived); + $request = $this->getByIdRequest($object_id, $archived, $property); try { $options = $this->createHttpClientOption(); @@ -2253,13 +2163,14 @@ public function getByIdWithHttpInfo($object_id, $archived = null) * * @param string $object_id The Blog Tag id. (required) * @param bool $archived Specifies whether to return deleted Blog Tags. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getByIdAsync($object_id, $archived = null) + public function getByIdAsync($object_id, $archived = null, $property = null) { - return $this->getByIdAsyncWithHttpInfo($object_id, $archived) + return $this->getByIdAsyncWithHttpInfo($object_id, $archived, $property) ->then( function ($response) { return $response[0]; @@ -2274,14 +2185,15 @@ function ($response) { * * @param string $object_id The Blog Tag id. (required) * @param bool $archived Specifies whether to return deleted Blog Tags. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getByIdAsyncWithHttpInfo($object_id, $archived = null) + public function getByIdAsyncWithHttpInfo($object_id, $archived = null, $property = null) { $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag'; - $request = $this->getByIdRequest($object_id, $archived); + $request = $this->getByIdRequest($object_id, $archived, $property); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2324,11 +2236,12 @@ function ($exception) { * * @param string $object_id The Blog Tag id. (required) * @param bool $archived Specifies whether to return deleted Blog Tags. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getByIdRequest($object_id, $archived = null) + public function getByIdRequest($object_id, $archived = null, $property = null) { // verify the required parameter 'object_id' is set if ($object_id === null || (is_array($object_id) && count($object_id) === 0)) { @@ -2353,6 +2266,15 @@ public function getByIdRequest($object_id, $archived = null) true, // explode false // required ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $property, + 'property', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // path params @@ -2441,14 +2363,15 @@ public function getByIdRequest($object_id, $archived = null) * @param string $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 $limit The maximum number of results to return. Default is 100. (optional) * @param bool $archived Specifies whether to return deleted Blog Tags. Defaults to `false`. (optional) + * @param string $property property (optional) * * @throws \HubSpot\Client\Cms\Blogs\Tags\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \HubSpot\Client\Cms\Blogs\Tags\Model\CollectionResponseWithTotalTagForwardPaging|\HubSpot\Client\Cms\Blogs\Tags\Model\Error */ - public function getPage($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPage($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { - list($response) = $this->getPageWithHttpInfo($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived); + list($response) = $this->getPageWithHttpInfo($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived, $property); return $response; } @@ -2467,14 +2390,15 @@ public function getPage($created_at = null, $created_after = null, $created_befo * @param string $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 $limit The maximum number of results to return. Default is 100. (optional) * @param bool $archived Specifies whether to return deleted Blog Tags. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \HubSpot\Client\Cms\Blogs\Tags\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \HubSpot\Client\Cms\Blogs\Tags\Model\CollectionResponseWithTotalTagForwardPaging|\HubSpot\Client\Cms\Blogs\Tags\Model\Error, HTTP status code, HTTP response headers (array of strings) */ - public function getPageWithHttpInfo($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPageWithHttpInfo($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { - $request = $this->getPageRequest($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived); + $request = $this->getPageRequest($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived, $property); try { $options = $this->createHttpClientOption(); @@ -2598,13 +2522,14 @@ public function getPageWithHttpInfo($created_at = null, $created_after = null, $ * @param string $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 $limit The maximum number of results to return. Default is 100. (optional) * @param bool $archived Specifies whether to return deleted Blog Tags. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPageAsync($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPageAsync($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { - return $this->getPageAsyncWithHttpInfo($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived) + return $this->getPageAsyncWithHttpInfo($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived, $property) ->then( function ($response) { return $response[0]; @@ -2627,14 +2552,15 @@ function ($response) { * @param string $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 $limit The maximum number of results to return. Default is 100. (optional) * @param bool $archived Specifies whether to return deleted Blog Tags. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPageAsyncWithHttpInfo($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPageAsyncWithHttpInfo($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\CollectionResponseWithTotalTagForwardPaging'; - $request = $this->getPageRequest($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived); + $request = $this->getPageRequest($created_at, $created_after, $created_before, $updated_at, $updated_after, $updated_before, $sort, $after, $limit, $archived, $property); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2685,11 +2611,12 @@ function ($exception) { * @param string $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 $limit The maximum number of results to return. Default is 100. (optional) * @param bool $archived Specifies whether to return deleted Blog Tags. Defaults to `false`. (optional) + * @param string $property (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getPageRequest($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null) + public function getPageRequest($created_at = null, $created_after = null, $created_before = null, $updated_at = null, $updated_after = null, $updated_before = null, $sort = null, $after = null, $limit = null, $archived = null, $property = null) { $resourcePath = '/cms/v3/blogs/tags'; @@ -2789,6 +2716,15 @@ public function getPageRequest($created_at = null, $created_after = null, $creat true, // explode false // required ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $property, + 'property', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); @@ -4121,12 +4057,11 @@ public function updateBatchRequest($batch_input_json_node, $archived = null) * * @throws \HubSpot\Client\Cms\Blogs\Tags\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \HubSpot\Client\Cms\Blogs\Tags\Model\Error + * @return void */ public function updateLangs($update_languages_request_v_next) { - list($response) = $this->updateLangsWithHttpInfo($update_languages_request_v_next); - return $response; + $this->updateLangsWithHttpInfo($update_languages_request_v_next); } /** @@ -4138,7 +4073,7 @@ public function updateLangs($update_languages_request_v_next) * * @throws \HubSpot\Client\Cms\Blogs\Tags\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \HubSpot\Client\Cms\Blogs\Tags\Model\Error, HTTP status code, HTTP response headers (array of strings) + * @return array of null, HTTP status code, HTTP response headers (array of strings) */ public function updateLangsWithHttpInfo($update_languages_request_v_next) { @@ -4179,39 +4114,7 @@ public function updateLangsWithHttpInfo($update_languages_request_v_next) ); } - switch($statusCode) { - default: - if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Cms\Blogs\Tags\Model\Error' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\Blogs\Tags\Model\Error', []), - $response->getStatusCode(), - $response->getHeaders() - ]; - } - - $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\Error'; - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $statusCode, $response->getHeaders()]; } catch (ApiException $e) { switch ($e->getCode()) { @@ -4260,27 +4163,14 @@ function ($response) { */ public function updateLangsAsyncWithHttpInfo($update_languages_request_v_next) { - $returnType = '\HubSpot\Client\Cms\Blogs\Tags\Model\Error'; + $returnType = ''; $request = $this->updateLangsRequest($update_languages_request_v_next); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - if ($returnType === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ($returnType !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, $returnType, []), - $response->getStatusCode(), - $response->getHeaders() - ]; + return [null, $response->getStatusCode(), $response->getHeaders()]; }, function ($exception) { $response = $exception->getResponse(); diff --git a/codegen/Cms/Blogs/Tags/ApiException.php b/codegen/Cms/Blogs/Tags/ApiException.php index c762f08b..f6895ba0 100644 --- a/codegen/Cms/Blogs/Tags/ApiException.php +++ b/codegen/Cms/Blogs/Tags/ApiException.php @@ -10,7 +10,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Tags/Configuration.php b/codegen/Cms/Blogs/Tags/Configuration.php index 887802cf..9af6b6ec 100644 --- a/codegen/Cms/Blogs/Tags/Configuration.php +++ b/codegen/Cms/Blogs/Tags/Configuration.php @@ -10,7 +10,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Tags/HeaderSelector.php b/codegen/Cms/Blogs/Tags/HeaderSelector.php index 4cfb4d42..d7a05160 100644 --- a/codegen/Cms/Blogs/Tags/HeaderSelector.php +++ b/codegen/Cms/Blogs/Tags/HeaderSelector.php @@ -10,7 +10,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Tags/Model/AttachToLangPrimaryRequestVNext.php b/codegen/Cms/Blogs/Tags/Model/AttachToLangPrimaryRequestVNext.php index 9b0e6ae2..19928b34 100644 --- a/codegen/Cms/Blogs/Tags/Model/AttachToLangPrimaryRequestVNext.php +++ b/codegen/Cms/Blogs/Tags/Model/AttachToLangPrimaryRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -35,7 +35,7 @@ * AttachToLangPrimaryRequestVNext Class Doc Comment * * @category Class - * @description Request body object fro attaching objects to multi-language groups. + * @description Request body object for attaching objects to multi-language groups. * @package HubSpot\Client\Cms\Blogs\Tags * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -58,8 +58,8 @@ class AttachToLangPrimaryRequestVNext implements ModelInterface, ArrayAccess, \J * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', 'language' => 'string', + 'id' => 'string', 'primary_id' => 'string', 'primary_language' => 'string' ]; @@ -72,8 +72,8 @@ class AttachToLangPrimaryRequestVNext implements ModelInterface, ArrayAccess, \J * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, 'language' => null, + 'id' => null, 'primary_id' => null, 'primary_language' => null ]; @@ -105,8 +105,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', 'language' => 'language', + 'id' => 'id', 'primary_id' => 'primaryId', 'primary_language' => 'primaryLanguage' ]; @@ -117,8 +117,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', 'language' => 'setLanguage', + 'id' => 'setId', 'primary_id' => 'setPrimaryId', 'primary_language' => 'setPrimaryLanguage' ]; @@ -129,8 +129,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', 'language' => 'getLanguage', + 'id' => 'getId', 'primary_id' => 'getPrimaryId', 'primary_language' => 'getPrimaryLanguage' ]; @@ -176,2884 +176,6 @@ public function getModelName() return self::$openAPIModelName; } - public const LANGUAGE_AF = 'af'; - public const LANGUAGE_AF_NA = 'af-na'; - public const LANGUAGE_AF_ZA = 'af-za'; - public const LANGUAGE_AGQ = 'agq'; - public const LANGUAGE_AGQ_CM = 'agq-cm'; - public const LANGUAGE_AK = 'ak'; - public const LANGUAGE_AK_GH = 'ak-gh'; - public const LANGUAGE_AM = 'am'; - public const LANGUAGE_AM_ET = 'am-et'; - public const LANGUAGE_AR = 'ar'; - public const LANGUAGE_AR_001 = 'ar-001'; - public const LANGUAGE_AR_AE = 'ar-ae'; - public const LANGUAGE_AR_BH = 'ar-bh'; - public const LANGUAGE_AR_DJ = 'ar-dj'; - public const LANGUAGE_AR_DZ = 'ar-dz'; - public const LANGUAGE_AR_EG = 'ar-eg'; - public const LANGUAGE_AR_EH = 'ar-eh'; - public const LANGUAGE_AR_ER = 'ar-er'; - public const LANGUAGE_AR_IL = 'ar-il'; - public const LANGUAGE_AR_IQ = 'ar-iq'; - public const LANGUAGE_AR_JO = 'ar-jo'; - public const LANGUAGE_AR_KM = 'ar-km'; - public const LANGUAGE_AR_KW = 'ar-kw'; - public const LANGUAGE_AR_LB = 'ar-lb'; - public const LANGUAGE_AR_LY = 'ar-ly'; - public const LANGUAGE_AR_MA = 'ar-ma'; - public const LANGUAGE_AR_MR = 'ar-mr'; - public const LANGUAGE_AR_OM = 'ar-om'; - public const LANGUAGE_AR_PS = 'ar-ps'; - public const LANGUAGE_AR_QA = 'ar-qa'; - public const LANGUAGE_AR_SA = 'ar-sa'; - public const LANGUAGE_AR_SD = 'ar-sd'; - public const LANGUAGE_AR_SO = 'ar-so'; - public const LANGUAGE_AR_SS = 'ar-ss'; - public const LANGUAGE_AR_SY = 'ar-sy'; - public const LANGUAGE_AR_TD = 'ar-td'; - public const LANGUAGE_AR_TN = 'ar-tn'; - public const LANGUAGE_AR_YE = 'ar-ye'; - public const LANGUAGE__AS = 'as'; - public const LANGUAGE_AS_IN = 'as-in'; - public const LANGUAGE_ASA = 'asa'; - public const LANGUAGE_ASA_TZ = 'asa-tz'; - public const LANGUAGE_AST = 'ast'; - public const LANGUAGE_AST_ES = 'ast-es'; - public const LANGUAGE_AZ = 'az'; - public const LANGUAGE_AZ_AZ = 'az-az'; - public const LANGUAGE_BAS = 'bas'; - public const LANGUAGE_BAS_CM = 'bas-cm'; - public const LANGUAGE_BE = 'be'; - public const LANGUAGE_BE_BY = 'be-by'; - public const LANGUAGE_BEM = 'bem'; - public const LANGUAGE_BEM_ZM = 'bem-zm'; - public const LANGUAGE_BEZ = 'bez'; - public const LANGUAGE_BEZ_TZ = 'bez-tz'; - public const LANGUAGE_BG = 'bg'; - public const LANGUAGE_BG_BG = 'bg-bg'; - public const LANGUAGE_BM = 'bm'; - public const LANGUAGE_BM_ML = 'bm-ml'; - public const LANGUAGE_BN = 'bn'; - public const LANGUAGE_BN_BD = 'bn-bd'; - public const LANGUAGE_BN_IN = 'bn-in'; - public const LANGUAGE_BO = 'bo'; - public const LANGUAGE_BO_CN = 'bo-cn'; - public const LANGUAGE_BO_IN = 'bo-in'; - public const LANGUAGE_BR = 'br'; - public const LANGUAGE_BR_FR = 'br-fr'; - public const LANGUAGE_BRX = 'brx'; - public const LANGUAGE_BRX_IN = 'brx-in'; - public const LANGUAGE_BS = 'bs'; - public const LANGUAGE_BS_BA = 'bs-ba'; - public const LANGUAGE_CA = 'ca'; - public const LANGUAGE_CA_AD = 'ca-ad'; - public const LANGUAGE_CA_ES = 'ca-es'; - public const LANGUAGE_CA_FR = 'ca-fr'; - public const LANGUAGE_CA_IT = 'ca-it'; - public const LANGUAGE_CCP = 'ccp'; - public const LANGUAGE_CCP_BD = 'ccp-bd'; - public const LANGUAGE_CCP_IN = 'ccp-in'; - public const LANGUAGE_CE = 'ce'; - public const LANGUAGE_CE_RU = 'ce-ru'; - public const LANGUAGE_CGG = 'cgg'; - public const LANGUAGE_CGG_UG = 'cgg-ug'; - public const LANGUAGE_CHR = 'chr'; - public const LANGUAGE_CHR_US = 'chr-us'; - public const LANGUAGE_CKB = 'ckb'; - public const LANGUAGE_CKB_IQ = 'ckb-iq'; - public const LANGUAGE_CKB_IR = 'ckb-ir'; - public const LANGUAGE_CS = 'cs'; - public const LANGUAGE_CS_CZ = 'cs-cz'; - public const LANGUAGE_CU = 'cu'; - public const LANGUAGE_CU_RU = 'cu-ru'; - public const LANGUAGE_CY = 'cy'; - public const LANGUAGE_CY_GB = 'cy-gb'; - public const LANGUAGE_DA = 'da'; - public const LANGUAGE_DA_DK = 'da-dk'; - public const LANGUAGE_DA_GL = 'da-gl'; - public const LANGUAGE_DAV = 'dav'; - public const LANGUAGE_DAV_KE = 'dav-ke'; - public const LANGUAGE_DE = 'de'; - public const LANGUAGE_DE_AT = 'de-at'; - public const LANGUAGE_DE_BE = 'de-be'; - public const LANGUAGE_DE_CH = 'de-ch'; - public const LANGUAGE_DE_DE = 'de-de'; - public const LANGUAGE_DE_GR = 'de-gr'; - public const LANGUAGE_DE_IT = 'de-it'; - public const LANGUAGE_DE_LI = 'de-li'; - public const LANGUAGE_DE_LU = 'de-lu'; - public const LANGUAGE_DJE = 'dje'; - public const LANGUAGE_DJE_NE = 'dje-ne'; - public const LANGUAGE_DSB = 'dsb'; - public const LANGUAGE_DSB_DE = 'dsb-de'; - public const LANGUAGE_DUA = 'dua'; - public const LANGUAGE_DUA_CM = 'dua-cm'; - public const LANGUAGE_DYO = 'dyo'; - public const LANGUAGE_DYO_SN = 'dyo-sn'; - public const LANGUAGE_DZ = 'dz'; - public const LANGUAGE_DZ_BT = 'dz-bt'; - public const LANGUAGE_EBU = 'ebu'; - public const LANGUAGE_EBU_KE = 'ebu-ke'; - public const LANGUAGE_EE = 'ee'; - public const LANGUAGE_EE_GH = 'ee-gh'; - public const LANGUAGE_EE_TG = 'ee-tg'; - public const LANGUAGE_EL = 'el'; - public const LANGUAGE_EL_CY = 'el-cy'; - public const LANGUAGE_EL_GR = 'el-gr'; - public const LANGUAGE_EN = 'en'; - public const LANGUAGE_EN_001 = 'en-001'; - public const LANGUAGE_EN_150 = 'en-150'; - public const LANGUAGE_EN_AE = 'en-ae'; - public const LANGUAGE_EN_AG = 'en-ag'; - public const LANGUAGE_EN_AI = 'en-ai'; - public const LANGUAGE_EN_AS = 'en-as'; - public const LANGUAGE_EN_AT = 'en-at'; - public const LANGUAGE_EN_AU = 'en-au'; - public const LANGUAGE_EN_BB = 'en-bb'; - public const LANGUAGE_EN_BE = 'en-be'; - public const LANGUAGE_EN_BI = 'en-bi'; - public const LANGUAGE_EN_BM = 'en-bm'; - public const LANGUAGE_EN_BS = 'en-bs'; - public const LANGUAGE_EN_BW = 'en-bw'; - public const LANGUAGE_EN_BZ = 'en-bz'; - public const LANGUAGE_EN_CA = 'en-ca'; - public const LANGUAGE_EN_CC = 'en-cc'; - public const LANGUAGE_EN_CH = 'en-ch'; - public const LANGUAGE_EN_CK = 'en-ck'; - public const LANGUAGE_EN_CM = 'en-cm'; - public const LANGUAGE_EN_CX = 'en-cx'; - public const LANGUAGE_EN_CY = 'en-cy'; - public const LANGUAGE_EN_DE = 'en-de'; - public const LANGUAGE_EN_DG = 'en-dg'; - public const LANGUAGE_EN_DK = 'en-dk'; - public const LANGUAGE_EN_DM = 'en-dm'; - public const LANGUAGE_EN_ER = 'en-er'; - public const LANGUAGE_EN_FI = 'en-fi'; - public const LANGUAGE_EN_FJ = 'en-fj'; - public const LANGUAGE_EN_FK = 'en-fk'; - public const LANGUAGE_EN_FM = 'en-fm'; - public const LANGUAGE_EN_GB = 'en-gb'; - public const LANGUAGE_EN_GD = 'en-gd'; - public const LANGUAGE_EN_GG = 'en-gg'; - public const LANGUAGE_EN_GH = 'en-gh'; - public const LANGUAGE_EN_GI = 'en-gi'; - public const LANGUAGE_EN_GM = 'en-gm'; - public const LANGUAGE_EN_GU = 'en-gu'; - public const LANGUAGE_EN_GY = 'en-gy'; - public const LANGUAGE_EN_HK = 'en-hk'; - public const LANGUAGE_EN_IE = 'en-ie'; - public const LANGUAGE_EN_IL = 'en-il'; - public const LANGUAGE_EN_IM = 'en-im'; - public const LANGUAGE_EN_IN = 'en-in'; - public const LANGUAGE_EN_IO = 'en-io'; - public const LANGUAGE_EN_JE = 'en-je'; - public const LANGUAGE_EN_JM = 'en-jm'; - public const LANGUAGE_EN_KE = 'en-ke'; - public const LANGUAGE_EN_KI = 'en-ki'; - public const LANGUAGE_EN_KN = 'en-kn'; - public const LANGUAGE_EN_KY = 'en-ky'; - public const LANGUAGE_EN_LC = 'en-lc'; - public const LANGUAGE_EN_LR = 'en-lr'; - public const LANGUAGE_EN_LS = 'en-ls'; - public const LANGUAGE_EN_LU = 'en-lu'; - public const LANGUAGE_EN_MG = 'en-mg'; - public const LANGUAGE_EN_MH = 'en-mh'; - public const LANGUAGE_EN_MO = 'en-mo'; - public const LANGUAGE_EN_MP = 'en-mp'; - public const LANGUAGE_EN_MS = 'en-ms'; - public const LANGUAGE_EN_MT = 'en-mt'; - public const LANGUAGE_EN_MU = 'en-mu'; - public const LANGUAGE_EN_MW = 'en-mw'; - public const LANGUAGE_EN_MY = 'en-my'; - public const LANGUAGE_EN_NA = 'en-na'; - public const LANGUAGE_EN_NF = 'en-nf'; - public const LANGUAGE_EN_NG = 'en-ng'; - public const LANGUAGE_EN_NL = 'en-nl'; - public const LANGUAGE_EN_NR = 'en-nr'; - public const LANGUAGE_EN_NU = 'en-nu'; - public const LANGUAGE_EN_NZ = 'en-nz'; - public const LANGUAGE_EN_PG = 'en-pg'; - public const LANGUAGE_EN_PH = 'en-ph'; - public const LANGUAGE_EN_PK = 'en-pk'; - public const LANGUAGE_EN_PN = 'en-pn'; - public const LANGUAGE_EN_PR = 'en-pr'; - public const LANGUAGE_EN_PW = 'en-pw'; - public const LANGUAGE_EN_RW = 'en-rw'; - public const LANGUAGE_EN_SB = 'en-sb'; - public const LANGUAGE_EN_SC = 'en-sc'; - public const LANGUAGE_EN_SD = 'en-sd'; - public const LANGUAGE_EN_SE = 'en-se'; - public const LANGUAGE_EN_SG = 'en-sg'; - public const LANGUAGE_EN_SH = 'en-sh'; - public const LANGUAGE_EN_SI = 'en-si'; - public const LANGUAGE_EN_SL = 'en-sl'; - public const LANGUAGE_EN_SS = 'en-ss'; - public const LANGUAGE_EN_SX = 'en-sx'; - public const LANGUAGE_EN_SZ = 'en-sz'; - public const LANGUAGE_EN_TC = 'en-tc'; - public const LANGUAGE_EN_TK = 'en-tk'; - public const LANGUAGE_EN_TO = 'en-to'; - public const LANGUAGE_EN_TT = 'en-tt'; - public const LANGUAGE_EN_TV = 'en-tv'; - public const LANGUAGE_EN_TZ = 'en-tz'; - public const LANGUAGE_EN_UG = 'en-ug'; - public const LANGUAGE_EN_UM = 'en-um'; - public const LANGUAGE_EN_US = 'en-us'; - public const LANGUAGE_EN_VC = 'en-vc'; - public const LANGUAGE_EN_VG = 'en-vg'; - public const LANGUAGE_EN_VI = 'en-vi'; - public const LANGUAGE_EN_VU = 'en-vu'; - public const LANGUAGE_EN_WS = 'en-ws'; - public const LANGUAGE_EN_ZA = 'en-za'; - public const LANGUAGE_EN_ZM = 'en-zm'; - public const LANGUAGE_EN_ZW = 'en-zw'; - public const LANGUAGE_EO = 'eo'; - public const LANGUAGE_EO_001 = 'eo-001'; - public const LANGUAGE_ES = 'es'; - public const LANGUAGE_ES_419 = 'es-419'; - public const LANGUAGE_ES_AR = 'es-ar'; - public const LANGUAGE_ES_BO = 'es-bo'; - public const LANGUAGE_ES_BR = 'es-br'; - public const LANGUAGE_ES_BZ = 'es-bz'; - public const LANGUAGE_ES_CL = 'es-cl'; - public const LANGUAGE_ES_CO = 'es-co'; - public const LANGUAGE_ES_CR = 'es-cr'; - public const LANGUAGE_ES_CU = 'es-cu'; - public const LANGUAGE_ES_DO = 'es-do'; - public const LANGUAGE_ES_EA = 'es-ea'; - public const LANGUAGE_ES_EC = 'es-ec'; - public const LANGUAGE_ES_ES = 'es-es'; - public const LANGUAGE_ES_GQ = 'es-gq'; - public const LANGUAGE_ES_GT = 'es-gt'; - public const LANGUAGE_ES_HN = 'es-hn'; - public const LANGUAGE_ES_IC = 'es-ic'; - public const LANGUAGE_ES_MX = 'es-mx'; - public const LANGUAGE_ES_NI = 'es-ni'; - public const LANGUAGE_ES_PA = 'es-pa'; - public const LANGUAGE_ES_PE = 'es-pe'; - public const LANGUAGE_ES_PH = 'es-ph'; - public const LANGUAGE_ES_PR = 'es-pr'; - public const LANGUAGE_ES_PY = 'es-py'; - public const LANGUAGE_ES_SV = 'es-sv'; - public const LANGUAGE_ES_US = 'es-us'; - public const LANGUAGE_ES_UY = 'es-uy'; - public const LANGUAGE_ES_VE = 'es-ve'; - public const LANGUAGE_ET = 'et'; - public const LANGUAGE_ET_EE = 'et-ee'; - public const LANGUAGE_EU = 'eu'; - public const LANGUAGE_EU_ES = 'eu-es'; - public const LANGUAGE_EWO = 'ewo'; - public const LANGUAGE_EWO_CM = 'ewo-cm'; - public const LANGUAGE_FA = 'fa'; - public const LANGUAGE_FA_AF = 'fa-af'; - public const LANGUAGE_FA_IR = 'fa-ir'; - public const LANGUAGE_FF = 'ff'; - public const LANGUAGE_FF_CM = 'ff-cm'; - public const LANGUAGE_FF_GN = 'ff-gn'; - public const LANGUAGE_FF_MR = 'ff-mr'; - public const LANGUAGE_FF_SN = 'ff-sn'; - public const LANGUAGE_FI = 'fi'; - public const LANGUAGE_FI_FI = 'fi-fi'; - public const LANGUAGE_FIL = 'fil'; - public const LANGUAGE_FIL_PH = 'fil-ph'; - public const LANGUAGE_FO = 'fo'; - public const LANGUAGE_FO_DK = 'fo-dk'; - public const LANGUAGE_FO_FO = 'fo-fo'; - public const LANGUAGE_FR = 'fr'; - public const LANGUAGE_FR_BE = 'fr-be'; - public const LANGUAGE_FR_BF = 'fr-bf'; - public const LANGUAGE_FR_BI = 'fr-bi'; - public const LANGUAGE_FR_BJ = 'fr-bj'; - public const LANGUAGE_FR_BL = 'fr-bl'; - public const LANGUAGE_FR_CA = 'fr-ca'; - public const LANGUAGE_FR_CD = 'fr-cd'; - public const LANGUAGE_FR_CF = 'fr-cf'; - public const LANGUAGE_FR_CG = 'fr-cg'; - public const LANGUAGE_FR_CH = 'fr-ch'; - public const LANGUAGE_FR_CI = 'fr-ci'; - public const LANGUAGE_FR_CM = 'fr-cm'; - public const LANGUAGE_FR_DJ = 'fr-dj'; - public const LANGUAGE_FR_DZ = 'fr-dz'; - public const LANGUAGE_FR_FR = 'fr-fr'; - public const LANGUAGE_FR_GA = 'fr-ga'; - public const LANGUAGE_FR_GF = 'fr-gf'; - public const LANGUAGE_FR_GN = 'fr-gn'; - public const LANGUAGE_FR_GP = 'fr-gp'; - public const LANGUAGE_FR_GQ = 'fr-gq'; - public const LANGUAGE_FR_HT = 'fr-ht'; - public const LANGUAGE_FR_KM = 'fr-km'; - public const LANGUAGE_FR_LU = 'fr-lu'; - public const LANGUAGE_FR_MA = 'fr-ma'; - public const LANGUAGE_FR_MC = 'fr-mc'; - public const LANGUAGE_FR_MF = 'fr-mf'; - public const LANGUAGE_FR_MG = 'fr-mg'; - public const LANGUAGE_FR_ML = 'fr-ml'; - public const LANGUAGE_FR_MQ = 'fr-mq'; - public const LANGUAGE_FR_MR = 'fr-mr'; - public const LANGUAGE_FR_MU = 'fr-mu'; - public const LANGUAGE_FR_NC = 'fr-nc'; - public const LANGUAGE_FR_NE = 'fr-ne'; - public const LANGUAGE_FR_PF = 'fr-pf'; - public const LANGUAGE_FR_PM = 'fr-pm'; - public const LANGUAGE_FR_RE = 'fr-re'; - public const LANGUAGE_FR_RW = 'fr-rw'; - public const LANGUAGE_FR_SC = 'fr-sc'; - public const LANGUAGE_FR_SN = 'fr-sn'; - public const LANGUAGE_FR_SY = 'fr-sy'; - public const LANGUAGE_FR_TD = 'fr-td'; - public const LANGUAGE_FR_TG = 'fr-tg'; - public const LANGUAGE_FR_TN = 'fr-tn'; - public const LANGUAGE_FR_VU = 'fr-vu'; - public const LANGUAGE_FR_WF = 'fr-wf'; - public const LANGUAGE_FR_YT = 'fr-yt'; - public const LANGUAGE_FUR = 'fur'; - public const LANGUAGE_FUR_IT = 'fur-it'; - public const LANGUAGE_FY = 'fy'; - public const LANGUAGE_FY_NL = 'fy-nl'; - public const LANGUAGE_GA = 'ga'; - public const LANGUAGE_GA_IE = 'ga-ie'; - public const LANGUAGE_GD = 'gd'; - public const LANGUAGE_GD_GB = 'gd-gb'; - public const LANGUAGE_GL = 'gl'; - public const LANGUAGE_GL_ES = 'gl-es'; - public const LANGUAGE_GSW = 'gsw'; - public const LANGUAGE_GSW_CH = 'gsw-ch'; - public const LANGUAGE_GSW_FR = 'gsw-fr'; - public const LANGUAGE_GSW_LI = 'gsw-li'; - public const LANGUAGE_GU = 'gu'; - public const LANGUAGE_GU_IN = 'gu-in'; - public const LANGUAGE_GUZ = 'guz'; - public const LANGUAGE_GUZ_KE = 'guz-ke'; - public const LANGUAGE_GV = 'gv'; - public const LANGUAGE_GV_IM = 'gv-im'; - public const LANGUAGE_HA = 'ha'; - public const LANGUAGE_HA_GH = 'ha-gh'; - public const LANGUAGE_HA_NE = 'ha-ne'; - public const LANGUAGE_HA_NG = 'ha-ng'; - public const LANGUAGE_HAW = 'haw'; - public const LANGUAGE_HAW_US = 'haw-us'; - public const LANGUAGE_HE = 'he'; - public const LANGUAGE_HI = 'hi'; - public const LANGUAGE_HI_IN = 'hi-in'; - public const LANGUAGE_HR = 'hr'; - public const LANGUAGE_HR_BA = 'hr-ba'; - public const LANGUAGE_HR_HR = 'hr-hr'; - public const LANGUAGE_HSB = 'hsb'; - public const LANGUAGE_HSB_DE = 'hsb-de'; - public const LANGUAGE_HU = 'hu'; - public const LANGUAGE_HU_HU = 'hu-hu'; - public const LANGUAGE_HY = 'hy'; - public const LANGUAGE_HY_AM = 'hy-am'; - public const LANGUAGE_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'; - public const LANGUAGE_IT_CH = 'it-ch'; - 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_KA = 'ka'; - public const LANGUAGE_KA_GE = 'ka-ge'; - public const LANGUAGE_KAB = 'kab'; - public const LANGUAGE_KAB_DZ = 'kab-dz'; - public const LANGUAGE_KAM = 'kam'; - public const LANGUAGE_KAM_KE = 'kam-ke'; - public const LANGUAGE_KDE = 'kde'; - public const LANGUAGE_KDE_TZ = 'kde-tz'; - public const LANGUAGE_KEA = 'kea'; - public const LANGUAGE_KEA_CV = 'kea-cv'; - public const LANGUAGE_KHQ = 'khq'; - public const LANGUAGE_KHQ_ML = 'khq-ml'; - public const LANGUAGE_KI = 'ki'; - public const LANGUAGE_KI_KE = 'ki-ke'; - public const LANGUAGE_KK = 'kk'; - public const LANGUAGE_KK_KZ = 'kk-kz'; - public const LANGUAGE_KKJ = 'kkj'; - public const LANGUAGE_KKJ_CM = 'kkj-cm'; - public const LANGUAGE_KL = 'kl'; - public const LANGUAGE_KL_GL = 'kl-gl'; - public const LANGUAGE_KLN = 'kln'; - public const LANGUAGE_KLN_KE = 'kln-ke'; - public const LANGUAGE_KM = 'km'; - public const LANGUAGE_KM_KH = 'km-kh'; - public const LANGUAGE_KN = 'kn'; - public const LANGUAGE_KN_IN = 'kn-in'; - public const LANGUAGE_KO = 'ko'; - public const LANGUAGE_KO_KP = 'ko-kp'; - public const LANGUAGE_KO_KR = 'ko-kr'; - public const LANGUAGE_KOK = 'kok'; - public const LANGUAGE_KOK_IN = 'kok-in'; - public const LANGUAGE_KS = 'ks'; - public const LANGUAGE_KS_IN = 'ks-in'; - public const LANGUAGE_KSB = 'ksb'; - public const LANGUAGE_KSB_TZ = 'ksb-tz'; - public const LANGUAGE_KSF = 'ksf'; - 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_KY = 'ky'; - public const LANGUAGE_KY_KG = 'ky-kg'; - public const LANGUAGE_LAG = 'lag'; - public const LANGUAGE_LAG_TZ = 'lag-tz'; - public const LANGUAGE_LB = 'lb'; - public const LANGUAGE_LB_LU = 'lb-lu'; - public const LANGUAGE_LG = 'lg'; - public const LANGUAGE_LG_UG = 'lg-ug'; - public const LANGUAGE_LKT = 'lkt'; - public const LANGUAGE_LKT_US = 'lkt-us'; - public const LANGUAGE_LN = 'ln'; - public const LANGUAGE_LN_AO = 'ln-ao'; - public const LANGUAGE_LN_CD = 'ln-cd'; - public const LANGUAGE_LN_CF = 'ln-cf'; - public const LANGUAGE_LN_CG = 'ln-cg'; - public const LANGUAGE_LO = 'lo'; - public const LANGUAGE_LO_LA = 'lo-la'; - public const LANGUAGE_LRC = 'lrc'; - public const LANGUAGE_LRC_IQ = 'lrc-iq'; - public const LANGUAGE_LRC_IR = 'lrc-ir'; - public const LANGUAGE_LT = 'lt'; - public const LANGUAGE_LT_LT = 'lt-lt'; - public const LANGUAGE_LU = 'lu'; - public const LANGUAGE_LU_CD = 'lu-cd'; - public const LANGUAGE_LUO = 'luo'; - public const LANGUAGE_LUO_KE = 'luo-ke'; - public const LANGUAGE_LUY = 'luy'; - public const LANGUAGE_LUY_KE = 'luy-ke'; - public const LANGUAGE_LV = 'lv'; - public const LANGUAGE_LV_LV = 'lv-lv'; - public const LANGUAGE_MAS = 'mas'; - public const LANGUAGE_MAS_KE = 'mas-ke'; - public const LANGUAGE_MAS_TZ = 'mas-tz'; - public const LANGUAGE_MER = 'mer'; - public const LANGUAGE_MER_KE = 'mer-ke'; - public const LANGUAGE_MFE = 'mfe'; - public const LANGUAGE_MFE_MU = 'mfe-mu'; - public const LANGUAGE_MG = 'mg'; - public const LANGUAGE_MG_MG = 'mg-mg'; - public const LANGUAGE_MGH = 'mgh'; - public const LANGUAGE_MGH_MZ = 'mgh-mz'; - public const LANGUAGE_MGO = 'mgo'; - public const LANGUAGE_MGO_CM = 'mgo-cm'; - public const LANGUAGE_MK = 'mk'; - public const LANGUAGE_MK_MK = 'mk-mk'; - public const LANGUAGE_ML = 'ml'; - public const LANGUAGE_ML_IN = 'ml-in'; - public const LANGUAGE_MN = 'mn'; - public const LANGUAGE_MN_MN = 'mn-mn'; - public const LANGUAGE_MR = 'mr'; - public const LANGUAGE_MR_IN = 'mr-in'; - public const LANGUAGE_MS = 'ms'; - public const LANGUAGE_MS_BN = 'ms-bn'; - public const LANGUAGE_MS_MY = 'ms-my'; - public const LANGUAGE_MS_SG = 'ms-sg'; - public const LANGUAGE_MT = 'mt'; - public const LANGUAGE_MT_MT = 'mt-mt'; - public const LANGUAGE_MUA = 'mua'; - public const LANGUAGE_MUA_CM = 'mua-cm'; - public const LANGUAGE_MY = 'my'; - public const LANGUAGE_MY_MM = 'my-mm'; - public const LANGUAGE_MZN = 'mzn'; - public const LANGUAGE_MZN_IR = 'mzn-ir'; - public const LANGUAGE_NAQ = 'naq'; - public const LANGUAGE_NAQ_NA = 'naq-na'; - public const LANGUAGE_NB = 'nb'; - public const LANGUAGE_NB_NO = 'nb-no'; - public const LANGUAGE_NB_SJ = 'nb-sj'; - public const LANGUAGE_ND = 'nd'; - public const LANGUAGE_ND_ZW = 'nd-zw'; - public const LANGUAGE_NDS = 'nds'; - public const LANGUAGE_NDS_DE = 'nds-de'; - public const LANGUAGE_NDS_NL = 'nds-nl'; - public const LANGUAGE_NE = 'ne'; - public const LANGUAGE_NE_IN = 'ne-in'; - public const LANGUAGE_NE_NP = 'ne-np'; - 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_CW = 'nl-cw'; - public const LANGUAGE_NL_LU = 'nl-lu'; - public const LANGUAGE_NL_NL = 'nl-nl'; - public const LANGUAGE_NL_SR = 'nl-sr'; - public const LANGUAGE_NL_SX = 'nl-sx'; - public const LANGUAGE_NMG = 'nmg'; - public const LANGUAGE_NMG_CM = 'nmg-cm'; - public const LANGUAGE_NN = 'nn'; - public const LANGUAGE_NN_NO = 'nn-no'; - public const LANGUAGE_NNH = 'nnh'; - public const LANGUAGE_NNH_CM = 'nnh-cm'; - public const LANGUAGE_NO = 'no'; - public const LANGUAGE_NO_NO = 'no-no'; - public const LANGUAGE_NUS = 'nus'; - public const LANGUAGE_NUS_SS = 'nus-ss'; - public const LANGUAGE_NYN = 'nyn'; - public const LANGUAGE_NYN_UG = 'nyn-ug'; - public const LANGUAGE_OM = 'om'; - public const LANGUAGE_OM_ET = 'om-et'; - public const LANGUAGE_OM_KE = 'om-ke'; - public const LANGUAGE__OR = 'or'; - public const LANGUAGE_OR_IN = 'or-in'; - public const LANGUAGE_OS = 'os'; - public const LANGUAGE_OS_GE = 'os-ge'; - public const LANGUAGE_OS_RU = 'os-ru'; - public const LANGUAGE_PA = 'pa'; - public const LANGUAGE_PA_IN = 'pa-in'; - public const LANGUAGE_PA_PK = 'pa-pk'; - public const LANGUAGE_PL = 'pl'; - public const LANGUAGE_PL_PL = 'pl-pl'; - public const LANGUAGE_PRG = 'prg'; - public const LANGUAGE_PRG_001 = 'prg-001'; - public const LANGUAGE_PS = 'ps'; - public const LANGUAGE_PS_AF = 'ps-af'; - public const LANGUAGE_PT = 'pt'; - public const LANGUAGE_PT_AO = 'pt-ao'; - public const LANGUAGE_PT_BR = 'pt-br'; - public const LANGUAGE_PT_CH = 'pt-ch'; - public const LANGUAGE_PT_CV = 'pt-cv'; - public const LANGUAGE_PT_GQ = 'pt-gq'; - public const LANGUAGE_PT_GW = 'pt-gw'; - public const LANGUAGE_PT_LU = 'pt-lu'; - public const LANGUAGE_PT_MO = 'pt-mo'; - public const LANGUAGE_PT_MZ = 'pt-mz'; - public const LANGUAGE_PT_PT = 'pt-pt'; - public const LANGUAGE_PT_ST = 'pt-st'; - public const LANGUAGE_PT_TL = 'pt-tl'; - public const LANGUAGE_QU = 'qu'; - public const LANGUAGE_QU_BO = 'qu-bo'; - public const LANGUAGE_QU_EC = 'qu-ec'; - public const LANGUAGE_QU_PE = 'qu-pe'; - public const LANGUAGE_RM = 'rm'; - public const LANGUAGE_RM_CH = 'rm-ch'; - public const LANGUAGE_RN = 'rn'; - public const LANGUAGE_RN_BI = 'rn-bi'; - public const LANGUAGE_RO = 'ro'; - public const LANGUAGE_RO_MD = 'ro-md'; - public const LANGUAGE_RO_RO = 'ro-ro'; - public const LANGUAGE_ROF = 'rof'; - public const LANGUAGE_ROF_TZ = 'rof-tz'; - public const LANGUAGE_RU = 'ru'; - public const LANGUAGE_RU_BY = 'ru-by'; - public const LANGUAGE_RU_KG = 'ru-kg'; - public const LANGUAGE_RU_KZ = 'ru-kz'; - public const LANGUAGE_RU_MD = 'ru-md'; - public const LANGUAGE_RU_RU = 'ru-ru'; - public const LANGUAGE_RU_UA = 'ru-ua'; - public const LANGUAGE_RW = 'rw'; - public const LANGUAGE_RW_RW = 'rw-rw'; - public const LANGUAGE_RWK = 'rwk'; - public const LANGUAGE_RWK_TZ = 'rwk-tz'; - public const LANGUAGE_SA = 'sa'; - public const LANGUAGE_SAH = 'sah'; - public const LANGUAGE_SAH_RU = 'sah-ru'; - public const LANGUAGE_SAQ = 'saq'; - public const LANGUAGE_SAQ_KE = 'saq-ke'; - public const LANGUAGE_SBP = 'sbp'; - public const LANGUAGE_SBP_TZ = 'sbp-tz'; - public const LANGUAGE_SD = 'sd'; - public const LANGUAGE_SD_PK = 'sd-pk'; - public const LANGUAGE_SE = 'se'; - public const LANGUAGE_SE_FI = 'se-fi'; - public const LANGUAGE_SE_NO = 'se-no'; - public const LANGUAGE_SE_SE = 'se-se'; - public const LANGUAGE_SEH = 'seh'; - public const LANGUAGE_SEH_MZ = 'seh-mz'; - public const LANGUAGE_SES = 'ses'; - public const LANGUAGE_SES_ML = 'ses-ml'; - public const LANGUAGE_SG = 'sg'; - public const LANGUAGE_SG_CF = 'sg-cf'; - public const LANGUAGE_SHI = 'shi'; - public const LANGUAGE_SHI_MA = 'shi-ma'; - public const LANGUAGE_SI = 'si'; - public const LANGUAGE_SI_LK = 'si-lk'; - public const LANGUAGE_SK = 'sk'; - public const LANGUAGE_SK_SK = 'sk-sk'; - public const LANGUAGE_SL = 'sl'; - public const LANGUAGE_SL_SI = 'sl-si'; - public const LANGUAGE_SMN = 'smn'; - public const LANGUAGE_SMN_FI = 'smn-fi'; - public const LANGUAGE_SN = 'sn'; - public const LANGUAGE_SN_ZW = 'sn-zw'; - public const LANGUAGE_SO = 'so'; - public const LANGUAGE_SO_DJ = 'so-dj'; - public const LANGUAGE_SO_ET = 'so-et'; - public const LANGUAGE_SO_KE = 'so-ke'; - public const LANGUAGE_SO_SO = 'so-so'; - public const LANGUAGE_SQ = 'sq'; - public const LANGUAGE_SQ_AL = 'sq-al'; - public const LANGUAGE_SQ_MK = 'sq-mk'; - public const LANGUAGE_SQ_XK = 'sq-xk'; - public const LANGUAGE_SR = 'sr'; - public const LANGUAGE_SR_BA = 'sr-ba'; - public const LANGUAGE_SR_CS = 'sr-cs'; - public const LANGUAGE_SR_ME = 'sr-me'; - public const LANGUAGE_SR_RS = 'sr-rs'; - public const LANGUAGE_SR_XK = 'sr-xk'; - public const LANGUAGE_SV = 'sv'; - public const LANGUAGE_SV_AX = 'sv-ax'; - public const LANGUAGE_SV_FI = 'sv-fi'; - public const LANGUAGE_SV_SE = 'sv-se'; - public const LANGUAGE_SW = 'sw'; - public const LANGUAGE_SW_CD = 'sw-cd'; - public const LANGUAGE_SW_KE = 'sw-ke'; - public const LANGUAGE_SW_TZ = 'sw-tz'; - public const LANGUAGE_SW_UG = 'sw-ug'; - public const LANGUAGE_SY = 'sy'; - public const LANGUAGE_TA = 'ta'; - public const LANGUAGE_TA_IN = 'ta-in'; - public const LANGUAGE_TA_LK = 'ta-lk'; - public const LANGUAGE_TA_MY = 'ta-my'; - public const LANGUAGE_TA_SG = 'ta-sg'; - public const LANGUAGE_TE = 'te'; - public const LANGUAGE_TE_IN = 'te-in'; - public const LANGUAGE_TEO = 'teo'; - public const LANGUAGE_TEO_KE = 'teo-ke'; - public const LANGUAGE_TEO_UG = 'teo-ug'; - public const LANGUAGE_TG = 'tg'; - public const LANGUAGE_TG_TJ = 'tg-tj'; - public const LANGUAGE_TH = 'th'; - public const LANGUAGE_TH_TH = 'th-th'; - public const LANGUAGE_TI = 'ti'; - public const LANGUAGE_TI_ER = 'ti-er'; - public const LANGUAGE_TI_ET = 'ti-et'; - public const LANGUAGE_TK = 'tk'; - public const LANGUAGE_TK_TM = 'tk-tm'; - public const LANGUAGE_TO = 'to'; - public const LANGUAGE_TO_TO = 'to-to'; - public const LANGUAGE_TR = 'tr'; - public const LANGUAGE_TR_CY = 'tr-cy'; - public const LANGUAGE_TR_TR = 'tr-tr'; - public const LANGUAGE_TT = 'tt'; - public const LANGUAGE_TT_RU = 'tt-ru'; - public const LANGUAGE_TWQ = 'twq'; - public const LANGUAGE_TWQ_NE = 'twq-ne'; - public const LANGUAGE_TZM = 'tzm'; - public const LANGUAGE_TZM_MA = 'tzm-ma'; - public const LANGUAGE_UG = 'ug'; - public const LANGUAGE_UG_CN = 'ug-cn'; - public const LANGUAGE_UK = 'uk'; - public const LANGUAGE_UK_UA = 'uk-ua'; - public const LANGUAGE_UR = 'ur'; - public const LANGUAGE_UR_IN = 'ur-in'; - public const LANGUAGE_UR_PK = 'ur-pk'; - public const LANGUAGE_UZ = 'uz'; - public const LANGUAGE_UZ_AF = 'uz-af'; - public const LANGUAGE_UZ_UZ = 'uz-uz'; - public const LANGUAGE_VAI = 'vai'; - public const LANGUAGE_VAI_LR = 'vai-lr'; - public const LANGUAGE_VI = 'vi'; - public const LANGUAGE_VI_VN = 'vi-vn'; - public const LANGUAGE_VO = 'vo'; - public const LANGUAGE_VO_001 = 'vo-001'; - public const LANGUAGE_VUN = 'vun'; - public const LANGUAGE_VUN_TZ = 'vun-tz'; - public const LANGUAGE_WAE = 'wae'; - public const LANGUAGE_WAE_CH = 'wae-ch'; - public const LANGUAGE_WO = 'wo'; - public const LANGUAGE_WO_SN = 'wo-sn'; - public const LANGUAGE_XOG = 'xog'; - public const LANGUAGE_XOG_UG = 'xog-ug'; - public const LANGUAGE_YAV = 'yav'; - public const LANGUAGE_YAV_CM = 'yav-cm'; - public const LANGUAGE_YO = 'yo'; - public const LANGUAGE_YO_BJ = 'yo-bj'; - public const LANGUAGE_YO_NG = 'yo-ng'; - public const LANGUAGE_YUE = 'yue'; - public const LANGUAGE_YUE_CN = 'yue-cn'; - public const LANGUAGE_YUE_HK = 'yue-hk'; - public const LANGUAGE_ZGH = 'zgh'; - public const LANGUAGE_ZGH_MA = 'zgh-ma'; - public const LANGUAGE_ZH = 'zh'; - public const LANGUAGE_ZH_CN = 'zh-cn'; - 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 PRIMARY_LANGUAGE_AF = 'af'; - public const PRIMARY_LANGUAGE_AF_NA = 'af-na'; - public const PRIMARY_LANGUAGE_AF_ZA = 'af-za'; - public const PRIMARY_LANGUAGE_AGQ = 'agq'; - public const PRIMARY_LANGUAGE_AGQ_CM = 'agq-cm'; - public const PRIMARY_LANGUAGE_AK = 'ak'; - public const PRIMARY_LANGUAGE_AK_GH = 'ak-gh'; - public const PRIMARY_LANGUAGE_AM = 'am'; - public const PRIMARY_LANGUAGE_AM_ET = 'am-et'; - public const PRIMARY_LANGUAGE_AR = 'ar'; - public const PRIMARY_LANGUAGE_AR_001 = 'ar-001'; - public const PRIMARY_LANGUAGE_AR_AE = 'ar-ae'; - public const PRIMARY_LANGUAGE_AR_BH = 'ar-bh'; - public const PRIMARY_LANGUAGE_AR_DJ = 'ar-dj'; - public const PRIMARY_LANGUAGE_AR_DZ = 'ar-dz'; - public const PRIMARY_LANGUAGE_AR_EG = 'ar-eg'; - public const PRIMARY_LANGUAGE_AR_EH = 'ar-eh'; - public const PRIMARY_LANGUAGE_AR_ER = 'ar-er'; - public const PRIMARY_LANGUAGE_AR_IL = 'ar-il'; - public const PRIMARY_LANGUAGE_AR_IQ = 'ar-iq'; - public const PRIMARY_LANGUAGE_AR_JO = 'ar-jo'; - public const PRIMARY_LANGUAGE_AR_KM = 'ar-km'; - public const PRIMARY_LANGUAGE_AR_KW = 'ar-kw'; - public const PRIMARY_LANGUAGE_AR_LB = 'ar-lb'; - public const PRIMARY_LANGUAGE_AR_LY = 'ar-ly'; - public const PRIMARY_LANGUAGE_AR_MA = 'ar-ma'; - public const PRIMARY_LANGUAGE_AR_MR = 'ar-mr'; - public const PRIMARY_LANGUAGE_AR_OM = 'ar-om'; - public const PRIMARY_LANGUAGE_AR_PS = 'ar-ps'; - public const PRIMARY_LANGUAGE_AR_QA = 'ar-qa'; - public const PRIMARY_LANGUAGE_AR_SA = 'ar-sa'; - public const PRIMARY_LANGUAGE_AR_SD = 'ar-sd'; - public const PRIMARY_LANGUAGE_AR_SO = 'ar-so'; - public const PRIMARY_LANGUAGE_AR_SS = 'ar-ss'; - public const PRIMARY_LANGUAGE_AR_SY = 'ar-sy'; - public const PRIMARY_LANGUAGE_AR_TD = 'ar-td'; - public const PRIMARY_LANGUAGE_AR_TN = 'ar-tn'; - public const PRIMARY_LANGUAGE_AR_YE = 'ar-ye'; - public const PRIMARY_LANGUAGE__AS = 'as'; - public const PRIMARY_LANGUAGE_AS_IN = 'as-in'; - public const PRIMARY_LANGUAGE_ASA = 'asa'; - public const PRIMARY_LANGUAGE_ASA_TZ = 'asa-tz'; - public const PRIMARY_LANGUAGE_AST = 'ast'; - public const PRIMARY_LANGUAGE_AST_ES = 'ast-es'; - public const PRIMARY_LANGUAGE_AZ = 'az'; - public const PRIMARY_LANGUAGE_AZ_AZ = 'az-az'; - public const PRIMARY_LANGUAGE_BAS = 'bas'; - public const PRIMARY_LANGUAGE_BAS_CM = 'bas-cm'; - public const PRIMARY_LANGUAGE_BE = 'be'; - public const PRIMARY_LANGUAGE_BE_BY = 'be-by'; - public const PRIMARY_LANGUAGE_BEM = 'bem'; - public const PRIMARY_LANGUAGE_BEM_ZM = 'bem-zm'; - public const PRIMARY_LANGUAGE_BEZ = 'bez'; - public const PRIMARY_LANGUAGE_BEZ_TZ = 'bez-tz'; - public const PRIMARY_LANGUAGE_BG = 'bg'; - public const PRIMARY_LANGUAGE_BG_BG = 'bg-bg'; - public const PRIMARY_LANGUAGE_BM = 'bm'; - public const PRIMARY_LANGUAGE_BM_ML = 'bm-ml'; - public const PRIMARY_LANGUAGE_BN = 'bn'; - public const PRIMARY_LANGUAGE_BN_BD = 'bn-bd'; - public const PRIMARY_LANGUAGE_BN_IN = 'bn-in'; - public const PRIMARY_LANGUAGE_BO = 'bo'; - public const PRIMARY_LANGUAGE_BO_CN = 'bo-cn'; - public const PRIMARY_LANGUAGE_BO_IN = 'bo-in'; - public const PRIMARY_LANGUAGE_BR = 'br'; - public const PRIMARY_LANGUAGE_BR_FR = 'br-fr'; - public const PRIMARY_LANGUAGE_BRX = 'brx'; - public const PRIMARY_LANGUAGE_BRX_IN = 'brx-in'; - public const PRIMARY_LANGUAGE_BS = 'bs'; - public const PRIMARY_LANGUAGE_BS_BA = 'bs-ba'; - public const PRIMARY_LANGUAGE_CA = 'ca'; - public const PRIMARY_LANGUAGE_CA_AD = 'ca-ad'; - public const PRIMARY_LANGUAGE_CA_ES = 'ca-es'; - public const PRIMARY_LANGUAGE_CA_FR = 'ca-fr'; - public const PRIMARY_LANGUAGE_CA_IT = 'ca-it'; - public const PRIMARY_LANGUAGE_CCP = 'ccp'; - public const PRIMARY_LANGUAGE_CCP_BD = 'ccp-bd'; - public const PRIMARY_LANGUAGE_CCP_IN = 'ccp-in'; - public const PRIMARY_LANGUAGE_CE = 'ce'; - public const PRIMARY_LANGUAGE_CE_RU = 'ce-ru'; - public const PRIMARY_LANGUAGE_CGG = 'cgg'; - public const PRIMARY_LANGUAGE_CGG_UG = 'cgg-ug'; - public const PRIMARY_LANGUAGE_CHR = 'chr'; - public const PRIMARY_LANGUAGE_CHR_US = 'chr-us'; - public const PRIMARY_LANGUAGE_CKB = 'ckb'; - public const PRIMARY_LANGUAGE_CKB_IQ = 'ckb-iq'; - public const PRIMARY_LANGUAGE_CKB_IR = 'ckb-ir'; - public const PRIMARY_LANGUAGE_CS = 'cs'; - public const PRIMARY_LANGUAGE_CS_CZ = 'cs-cz'; - public const PRIMARY_LANGUAGE_CU = 'cu'; - public const PRIMARY_LANGUAGE_CU_RU = 'cu-ru'; - public const PRIMARY_LANGUAGE_CY = 'cy'; - public const PRIMARY_LANGUAGE_CY_GB = 'cy-gb'; - public const PRIMARY_LANGUAGE_DA = 'da'; - public const PRIMARY_LANGUAGE_DA_DK = 'da-dk'; - public const PRIMARY_LANGUAGE_DA_GL = 'da-gl'; - public const PRIMARY_LANGUAGE_DAV = 'dav'; - public const PRIMARY_LANGUAGE_DAV_KE = 'dav-ke'; - public const PRIMARY_LANGUAGE_DE = 'de'; - public const PRIMARY_LANGUAGE_DE_AT = 'de-at'; - public const PRIMARY_LANGUAGE_DE_BE = 'de-be'; - public const PRIMARY_LANGUAGE_DE_CH = 'de-ch'; - public const PRIMARY_LANGUAGE_DE_DE = 'de-de'; - public const PRIMARY_LANGUAGE_DE_GR = 'de-gr'; - public const PRIMARY_LANGUAGE_DE_IT = 'de-it'; - public const PRIMARY_LANGUAGE_DE_LI = 'de-li'; - public const PRIMARY_LANGUAGE_DE_LU = 'de-lu'; - public const PRIMARY_LANGUAGE_DJE = 'dje'; - public const PRIMARY_LANGUAGE_DJE_NE = 'dje-ne'; - public const PRIMARY_LANGUAGE_DSB = 'dsb'; - public const PRIMARY_LANGUAGE_DSB_DE = 'dsb-de'; - public const PRIMARY_LANGUAGE_DUA = 'dua'; - public const PRIMARY_LANGUAGE_DUA_CM = 'dua-cm'; - public const PRIMARY_LANGUAGE_DYO = 'dyo'; - public const PRIMARY_LANGUAGE_DYO_SN = 'dyo-sn'; - public const PRIMARY_LANGUAGE_DZ = 'dz'; - public const PRIMARY_LANGUAGE_DZ_BT = 'dz-bt'; - public const PRIMARY_LANGUAGE_EBU = 'ebu'; - public const PRIMARY_LANGUAGE_EBU_KE = 'ebu-ke'; - public const PRIMARY_LANGUAGE_EE = 'ee'; - public const PRIMARY_LANGUAGE_EE_GH = 'ee-gh'; - public const PRIMARY_LANGUAGE_EE_TG = 'ee-tg'; - public const PRIMARY_LANGUAGE_EL = 'el'; - public const PRIMARY_LANGUAGE_EL_CY = 'el-cy'; - public const PRIMARY_LANGUAGE_EL_GR = 'el-gr'; - public const PRIMARY_LANGUAGE_EN = 'en'; - public const PRIMARY_LANGUAGE_EN_001 = 'en-001'; - public const PRIMARY_LANGUAGE_EN_150 = 'en-150'; - public const PRIMARY_LANGUAGE_EN_AE = 'en-ae'; - public const PRIMARY_LANGUAGE_EN_AG = 'en-ag'; - public const PRIMARY_LANGUAGE_EN_AI = 'en-ai'; - public const PRIMARY_LANGUAGE_EN_AS = 'en-as'; - public const PRIMARY_LANGUAGE_EN_AT = 'en-at'; - public const PRIMARY_LANGUAGE_EN_AU = 'en-au'; - public const PRIMARY_LANGUAGE_EN_BB = 'en-bb'; - public const PRIMARY_LANGUAGE_EN_BE = 'en-be'; - public const PRIMARY_LANGUAGE_EN_BI = 'en-bi'; - public const PRIMARY_LANGUAGE_EN_BM = 'en-bm'; - public const PRIMARY_LANGUAGE_EN_BS = 'en-bs'; - public const PRIMARY_LANGUAGE_EN_BW = 'en-bw'; - public const PRIMARY_LANGUAGE_EN_BZ = 'en-bz'; - public const PRIMARY_LANGUAGE_EN_CA = 'en-ca'; - public const PRIMARY_LANGUAGE_EN_CC = 'en-cc'; - public const PRIMARY_LANGUAGE_EN_CH = 'en-ch'; - public const PRIMARY_LANGUAGE_EN_CK = 'en-ck'; - public const PRIMARY_LANGUAGE_EN_CM = 'en-cm'; - public const PRIMARY_LANGUAGE_EN_CX = 'en-cx'; - public const PRIMARY_LANGUAGE_EN_CY = 'en-cy'; - public const PRIMARY_LANGUAGE_EN_DE = 'en-de'; - public const PRIMARY_LANGUAGE_EN_DG = 'en-dg'; - public const PRIMARY_LANGUAGE_EN_DK = 'en-dk'; - public const PRIMARY_LANGUAGE_EN_DM = 'en-dm'; - public const PRIMARY_LANGUAGE_EN_ER = 'en-er'; - public const PRIMARY_LANGUAGE_EN_FI = 'en-fi'; - public const PRIMARY_LANGUAGE_EN_FJ = 'en-fj'; - public const PRIMARY_LANGUAGE_EN_FK = 'en-fk'; - public const PRIMARY_LANGUAGE_EN_FM = 'en-fm'; - public const PRIMARY_LANGUAGE_EN_GB = 'en-gb'; - public const PRIMARY_LANGUAGE_EN_GD = 'en-gd'; - public const PRIMARY_LANGUAGE_EN_GG = 'en-gg'; - public const PRIMARY_LANGUAGE_EN_GH = 'en-gh'; - public const PRIMARY_LANGUAGE_EN_GI = 'en-gi'; - public const PRIMARY_LANGUAGE_EN_GM = 'en-gm'; - public const PRIMARY_LANGUAGE_EN_GU = 'en-gu'; - public const PRIMARY_LANGUAGE_EN_GY = 'en-gy'; - public const PRIMARY_LANGUAGE_EN_HK = 'en-hk'; - public const PRIMARY_LANGUAGE_EN_IE = 'en-ie'; - public const PRIMARY_LANGUAGE_EN_IL = 'en-il'; - public const PRIMARY_LANGUAGE_EN_IM = 'en-im'; - public const PRIMARY_LANGUAGE_EN_IN = 'en-in'; - public const PRIMARY_LANGUAGE_EN_IO = 'en-io'; - public const PRIMARY_LANGUAGE_EN_JE = 'en-je'; - public const PRIMARY_LANGUAGE_EN_JM = 'en-jm'; - public const PRIMARY_LANGUAGE_EN_KE = 'en-ke'; - public const PRIMARY_LANGUAGE_EN_KI = 'en-ki'; - public const PRIMARY_LANGUAGE_EN_KN = 'en-kn'; - public const PRIMARY_LANGUAGE_EN_KY = 'en-ky'; - public const PRIMARY_LANGUAGE_EN_LC = 'en-lc'; - public const PRIMARY_LANGUAGE_EN_LR = 'en-lr'; - public const PRIMARY_LANGUAGE_EN_LS = 'en-ls'; - public const PRIMARY_LANGUAGE_EN_LU = 'en-lu'; - public const PRIMARY_LANGUAGE_EN_MG = 'en-mg'; - public const PRIMARY_LANGUAGE_EN_MH = 'en-mh'; - public const PRIMARY_LANGUAGE_EN_MO = 'en-mo'; - public const PRIMARY_LANGUAGE_EN_MP = 'en-mp'; - public const PRIMARY_LANGUAGE_EN_MS = 'en-ms'; - public const PRIMARY_LANGUAGE_EN_MT = 'en-mt'; - public const PRIMARY_LANGUAGE_EN_MU = 'en-mu'; - public const PRIMARY_LANGUAGE_EN_MW = 'en-mw'; - public const PRIMARY_LANGUAGE_EN_MY = 'en-my'; - public const PRIMARY_LANGUAGE_EN_NA = 'en-na'; - public const PRIMARY_LANGUAGE_EN_NF = 'en-nf'; - public const PRIMARY_LANGUAGE_EN_NG = 'en-ng'; - public const PRIMARY_LANGUAGE_EN_NL = 'en-nl'; - public const PRIMARY_LANGUAGE_EN_NR = 'en-nr'; - public const PRIMARY_LANGUAGE_EN_NU = 'en-nu'; - public const PRIMARY_LANGUAGE_EN_NZ = 'en-nz'; - public const PRIMARY_LANGUAGE_EN_PG = 'en-pg'; - public const PRIMARY_LANGUAGE_EN_PH = 'en-ph'; - public const PRIMARY_LANGUAGE_EN_PK = 'en-pk'; - public const PRIMARY_LANGUAGE_EN_PN = 'en-pn'; - public const PRIMARY_LANGUAGE_EN_PR = 'en-pr'; - public const PRIMARY_LANGUAGE_EN_PW = 'en-pw'; - public const PRIMARY_LANGUAGE_EN_RW = 'en-rw'; - public const PRIMARY_LANGUAGE_EN_SB = 'en-sb'; - public const PRIMARY_LANGUAGE_EN_SC = 'en-sc'; - public const PRIMARY_LANGUAGE_EN_SD = 'en-sd'; - public const PRIMARY_LANGUAGE_EN_SE = 'en-se'; - public const PRIMARY_LANGUAGE_EN_SG = 'en-sg'; - public const PRIMARY_LANGUAGE_EN_SH = 'en-sh'; - public const PRIMARY_LANGUAGE_EN_SI = 'en-si'; - public const PRIMARY_LANGUAGE_EN_SL = 'en-sl'; - public const PRIMARY_LANGUAGE_EN_SS = 'en-ss'; - public const PRIMARY_LANGUAGE_EN_SX = 'en-sx'; - public const PRIMARY_LANGUAGE_EN_SZ = 'en-sz'; - public const PRIMARY_LANGUAGE_EN_TC = 'en-tc'; - public const PRIMARY_LANGUAGE_EN_TK = 'en-tk'; - public const PRIMARY_LANGUAGE_EN_TO = 'en-to'; - public const PRIMARY_LANGUAGE_EN_TT = 'en-tt'; - public const PRIMARY_LANGUAGE_EN_TV = 'en-tv'; - public const PRIMARY_LANGUAGE_EN_TZ = 'en-tz'; - public const PRIMARY_LANGUAGE_EN_UG = 'en-ug'; - public const PRIMARY_LANGUAGE_EN_UM = 'en-um'; - public const PRIMARY_LANGUAGE_EN_US = 'en-us'; - public const PRIMARY_LANGUAGE_EN_VC = 'en-vc'; - public const PRIMARY_LANGUAGE_EN_VG = 'en-vg'; - public const PRIMARY_LANGUAGE_EN_VI = 'en-vi'; - public const PRIMARY_LANGUAGE_EN_VU = 'en-vu'; - public const PRIMARY_LANGUAGE_EN_WS = 'en-ws'; - public const PRIMARY_LANGUAGE_EN_ZA = 'en-za'; - public const PRIMARY_LANGUAGE_EN_ZM = 'en-zm'; - public const PRIMARY_LANGUAGE_EN_ZW = 'en-zw'; - public const PRIMARY_LANGUAGE_EO = 'eo'; - public const PRIMARY_LANGUAGE_EO_001 = 'eo-001'; - public const PRIMARY_LANGUAGE_ES = 'es'; - public const PRIMARY_LANGUAGE_ES_419 = 'es-419'; - public const PRIMARY_LANGUAGE_ES_AR = 'es-ar'; - public const PRIMARY_LANGUAGE_ES_BO = 'es-bo'; - public const PRIMARY_LANGUAGE_ES_BR = 'es-br'; - public const PRIMARY_LANGUAGE_ES_BZ = 'es-bz'; - public const PRIMARY_LANGUAGE_ES_CL = 'es-cl'; - public const PRIMARY_LANGUAGE_ES_CO = 'es-co'; - public const PRIMARY_LANGUAGE_ES_CR = 'es-cr'; - public const PRIMARY_LANGUAGE_ES_CU = 'es-cu'; - public const PRIMARY_LANGUAGE_ES_DO = 'es-do'; - public const PRIMARY_LANGUAGE_ES_EA = 'es-ea'; - public const PRIMARY_LANGUAGE_ES_EC = 'es-ec'; - public const PRIMARY_LANGUAGE_ES_ES = 'es-es'; - public const PRIMARY_LANGUAGE_ES_GQ = 'es-gq'; - public const PRIMARY_LANGUAGE_ES_GT = 'es-gt'; - public const PRIMARY_LANGUAGE_ES_HN = 'es-hn'; - public const PRIMARY_LANGUAGE_ES_IC = 'es-ic'; - public const PRIMARY_LANGUAGE_ES_MX = 'es-mx'; - public const PRIMARY_LANGUAGE_ES_NI = 'es-ni'; - public const PRIMARY_LANGUAGE_ES_PA = 'es-pa'; - public const PRIMARY_LANGUAGE_ES_PE = 'es-pe'; - public const PRIMARY_LANGUAGE_ES_PH = 'es-ph'; - public const PRIMARY_LANGUAGE_ES_PR = 'es-pr'; - public const PRIMARY_LANGUAGE_ES_PY = 'es-py'; - public const PRIMARY_LANGUAGE_ES_SV = 'es-sv'; - public const PRIMARY_LANGUAGE_ES_US = 'es-us'; - public const PRIMARY_LANGUAGE_ES_UY = 'es-uy'; - public const PRIMARY_LANGUAGE_ES_VE = 'es-ve'; - public const PRIMARY_LANGUAGE_ET = 'et'; - public const PRIMARY_LANGUAGE_ET_EE = 'et-ee'; - public const PRIMARY_LANGUAGE_EU = 'eu'; - public const PRIMARY_LANGUAGE_EU_ES = 'eu-es'; - public const PRIMARY_LANGUAGE_EWO = 'ewo'; - public const PRIMARY_LANGUAGE_EWO_CM = 'ewo-cm'; - public const PRIMARY_LANGUAGE_FA = 'fa'; - public const PRIMARY_LANGUAGE_FA_AF = 'fa-af'; - public const PRIMARY_LANGUAGE_FA_IR = 'fa-ir'; - public const PRIMARY_LANGUAGE_FF = 'ff'; - public const PRIMARY_LANGUAGE_FF_CM = 'ff-cm'; - public const PRIMARY_LANGUAGE_FF_GN = 'ff-gn'; - public const PRIMARY_LANGUAGE_FF_MR = 'ff-mr'; - public const PRIMARY_LANGUAGE_FF_SN = 'ff-sn'; - public const PRIMARY_LANGUAGE_FI = 'fi'; - public const PRIMARY_LANGUAGE_FI_FI = 'fi-fi'; - public const PRIMARY_LANGUAGE_FIL = 'fil'; - public const PRIMARY_LANGUAGE_FIL_PH = 'fil-ph'; - public const PRIMARY_LANGUAGE_FO = 'fo'; - public const PRIMARY_LANGUAGE_FO_DK = 'fo-dk'; - public const PRIMARY_LANGUAGE_FO_FO = 'fo-fo'; - public const PRIMARY_LANGUAGE_FR = 'fr'; - public const PRIMARY_LANGUAGE_FR_BE = 'fr-be'; - public const PRIMARY_LANGUAGE_FR_BF = 'fr-bf'; - public const PRIMARY_LANGUAGE_FR_BI = 'fr-bi'; - public const PRIMARY_LANGUAGE_FR_BJ = 'fr-bj'; - public const PRIMARY_LANGUAGE_FR_BL = 'fr-bl'; - public const PRIMARY_LANGUAGE_FR_CA = 'fr-ca'; - public const PRIMARY_LANGUAGE_FR_CD = 'fr-cd'; - public const PRIMARY_LANGUAGE_FR_CF = 'fr-cf'; - public const PRIMARY_LANGUAGE_FR_CG = 'fr-cg'; - public const PRIMARY_LANGUAGE_FR_CH = 'fr-ch'; - public const PRIMARY_LANGUAGE_FR_CI = 'fr-ci'; - public const PRIMARY_LANGUAGE_FR_CM = 'fr-cm'; - public const PRIMARY_LANGUAGE_FR_DJ = 'fr-dj'; - public const PRIMARY_LANGUAGE_FR_DZ = 'fr-dz'; - public const PRIMARY_LANGUAGE_FR_FR = 'fr-fr'; - public const PRIMARY_LANGUAGE_FR_GA = 'fr-ga'; - public const PRIMARY_LANGUAGE_FR_GF = 'fr-gf'; - public const PRIMARY_LANGUAGE_FR_GN = 'fr-gn'; - public const PRIMARY_LANGUAGE_FR_GP = 'fr-gp'; - public const PRIMARY_LANGUAGE_FR_GQ = 'fr-gq'; - public const PRIMARY_LANGUAGE_FR_HT = 'fr-ht'; - public const PRIMARY_LANGUAGE_FR_KM = 'fr-km'; - public const PRIMARY_LANGUAGE_FR_LU = 'fr-lu'; - public const PRIMARY_LANGUAGE_FR_MA = 'fr-ma'; - public const PRIMARY_LANGUAGE_FR_MC = 'fr-mc'; - public const PRIMARY_LANGUAGE_FR_MF = 'fr-mf'; - public const PRIMARY_LANGUAGE_FR_MG = 'fr-mg'; - public const PRIMARY_LANGUAGE_FR_ML = 'fr-ml'; - public const PRIMARY_LANGUAGE_FR_MQ = 'fr-mq'; - public const PRIMARY_LANGUAGE_FR_MR = 'fr-mr'; - public const PRIMARY_LANGUAGE_FR_MU = 'fr-mu'; - public const PRIMARY_LANGUAGE_FR_NC = 'fr-nc'; - public const PRIMARY_LANGUAGE_FR_NE = 'fr-ne'; - public const PRIMARY_LANGUAGE_FR_PF = 'fr-pf'; - public const PRIMARY_LANGUAGE_FR_PM = 'fr-pm'; - public const PRIMARY_LANGUAGE_FR_RE = 'fr-re'; - public const PRIMARY_LANGUAGE_FR_RW = 'fr-rw'; - public const PRIMARY_LANGUAGE_FR_SC = 'fr-sc'; - public const PRIMARY_LANGUAGE_FR_SN = 'fr-sn'; - public const PRIMARY_LANGUAGE_FR_SY = 'fr-sy'; - public const PRIMARY_LANGUAGE_FR_TD = 'fr-td'; - public const PRIMARY_LANGUAGE_FR_TG = 'fr-tg'; - public const PRIMARY_LANGUAGE_FR_TN = 'fr-tn'; - public const PRIMARY_LANGUAGE_FR_VU = 'fr-vu'; - public const PRIMARY_LANGUAGE_FR_WF = 'fr-wf'; - public const PRIMARY_LANGUAGE_FR_YT = 'fr-yt'; - public const PRIMARY_LANGUAGE_FUR = 'fur'; - public const PRIMARY_LANGUAGE_FUR_IT = 'fur-it'; - public const PRIMARY_LANGUAGE_FY = 'fy'; - public const PRIMARY_LANGUAGE_FY_NL = 'fy-nl'; - public const PRIMARY_LANGUAGE_GA = 'ga'; - public const PRIMARY_LANGUAGE_GA_IE = 'ga-ie'; - public const PRIMARY_LANGUAGE_GD = 'gd'; - public const PRIMARY_LANGUAGE_GD_GB = 'gd-gb'; - public const PRIMARY_LANGUAGE_GL = 'gl'; - public const PRIMARY_LANGUAGE_GL_ES = 'gl-es'; - public const PRIMARY_LANGUAGE_GSW = 'gsw'; - public const PRIMARY_LANGUAGE_GSW_CH = 'gsw-ch'; - public const PRIMARY_LANGUAGE_GSW_FR = 'gsw-fr'; - public const PRIMARY_LANGUAGE_GSW_LI = 'gsw-li'; - public const PRIMARY_LANGUAGE_GU = 'gu'; - public const PRIMARY_LANGUAGE_GU_IN = 'gu-in'; - public const PRIMARY_LANGUAGE_GUZ = 'guz'; - public const PRIMARY_LANGUAGE_GUZ_KE = 'guz-ke'; - public const PRIMARY_LANGUAGE_GV = 'gv'; - public const PRIMARY_LANGUAGE_GV_IM = 'gv-im'; - public const PRIMARY_LANGUAGE_HA = 'ha'; - public const PRIMARY_LANGUAGE_HA_GH = 'ha-gh'; - public const PRIMARY_LANGUAGE_HA_NE = 'ha-ne'; - public const PRIMARY_LANGUAGE_HA_NG = 'ha-ng'; - public const PRIMARY_LANGUAGE_HAW = 'haw'; - public const PRIMARY_LANGUAGE_HAW_US = 'haw-us'; - public const PRIMARY_LANGUAGE_HE = 'he'; - public const PRIMARY_LANGUAGE_HI = 'hi'; - public const PRIMARY_LANGUAGE_HI_IN = 'hi-in'; - public const PRIMARY_LANGUAGE_HR = 'hr'; - public const PRIMARY_LANGUAGE_HR_BA = 'hr-ba'; - public const PRIMARY_LANGUAGE_HR_HR = 'hr-hr'; - public const PRIMARY_LANGUAGE_HSB = 'hsb'; - public const PRIMARY_LANGUAGE_HSB_DE = 'hsb-de'; - public const PRIMARY_LANGUAGE_HU = 'hu'; - public const PRIMARY_LANGUAGE_HU_HU = 'hu-hu'; - public const PRIMARY_LANGUAGE_HY = 'hy'; - public const PRIMARY_LANGUAGE_HY_AM = 'hy-am'; - public const PRIMARY_LANGUAGE_ID = 'id'; - public const PRIMARY_LANGUAGE_IG = 'ig'; - public const PRIMARY_LANGUAGE_IG_NG = 'ig-ng'; - public const PRIMARY_LANGUAGE_II = 'ii'; - public const PRIMARY_LANGUAGE_II_CN = 'ii-cn'; - public const PRIMARY_LANGUAGE_ID_ID = 'id-id'; - public const PRIMARY_LANGUAGE_IS = 'is'; - public const PRIMARY_LANGUAGE_IS_IS = 'is-is'; - public const PRIMARY_LANGUAGE_IT = 'it'; - public const PRIMARY_LANGUAGE_IT_CH = 'it-ch'; - public const PRIMARY_LANGUAGE_IT_IT = 'it-it'; - public const PRIMARY_LANGUAGE_IT_SM = 'it-sm'; - public const PRIMARY_LANGUAGE_IT_VA = 'it-va'; - public const PRIMARY_LANGUAGE_HE_IL = 'he-il'; - public const PRIMARY_LANGUAGE_JA = 'ja'; - public const PRIMARY_LANGUAGE_JA_JP = 'ja-jp'; - public const PRIMARY_LANGUAGE_JGO = 'jgo'; - public const PRIMARY_LANGUAGE_JGO_CM = 'jgo-cm'; - public const PRIMARY_LANGUAGE_YI = 'yi'; - public const PRIMARY_LANGUAGE_YI_001 = 'yi-001'; - public const PRIMARY_LANGUAGE_JMC = 'jmc'; - public const PRIMARY_LANGUAGE_JMC_TZ = 'jmc-tz'; - public const PRIMARY_LANGUAGE_KA = 'ka'; - public const PRIMARY_LANGUAGE_KA_GE = 'ka-ge'; - public const PRIMARY_LANGUAGE_KAB = 'kab'; - public const PRIMARY_LANGUAGE_KAB_DZ = 'kab-dz'; - public const PRIMARY_LANGUAGE_KAM = 'kam'; - public const PRIMARY_LANGUAGE_KAM_KE = 'kam-ke'; - public const PRIMARY_LANGUAGE_KDE = 'kde'; - public const PRIMARY_LANGUAGE_KDE_TZ = 'kde-tz'; - public const PRIMARY_LANGUAGE_KEA = 'kea'; - public const PRIMARY_LANGUAGE_KEA_CV = 'kea-cv'; - public const PRIMARY_LANGUAGE_KHQ = 'khq'; - public const PRIMARY_LANGUAGE_KHQ_ML = 'khq-ml'; - public const PRIMARY_LANGUAGE_KI = 'ki'; - public const PRIMARY_LANGUAGE_KI_KE = 'ki-ke'; - public const PRIMARY_LANGUAGE_KK = 'kk'; - public const PRIMARY_LANGUAGE_KK_KZ = 'kk-kz'; - public const PRIMARY_LANGUAGE_KKJ = 'kkj'; - public const PRIMARY_LANGUAGE_KKJ_CM = 'kkj-cm'; - public const PRIMARY_LANGUAGE_KL = 'kl'; - public const PRIMARY_LANGUAGE_KL_GL = 'kl-gl'; - public const PRIMARY_LANGUAGE_KLN = 'kln'; - public const PRIMARY_LANGUAGE_KLN_KE = 'kln-ke'; - public const PRIMARY_LANGUAGE_KM = 'km'; - public const PRIMARY_LANGUAGE_KM_KH = 'km-kh'; - public const PRIMARY_LANGUAGE_KN = 'kn'; - public const PRIMARY_LANGUAGE_KN_IN = 'kn-in'; - public const PRIMARY_LANGUAGE_KO = 'ko'; - public const PRIMARY_LANGUAGE_KO_KP = 'ko-kp'; - public const PRIMARY_LANGUAGE_KO_KR = 'ko-kr'; - public const PRIMARY_LANGUAGE_KOK = 'kok'; - public const PRIMARY_LANGUAGE_KOK_IN = 'kok-in'; - public const PRIMARY_LANGUAGE_KS = 'ks'; - public const PRIMARY_LANGUAGE_KS_IN = 'ks-in'; - public const PRIMARY_LANGUAGE_KSB = 'ksb'; - public const PRIMARY_LANGUAGE_KSB_TZ = 'ksb-tz'; - public const PRIMARY_LANGUAGE_KSF = 'ksf'; - public const PRIMARY_LANGUAGE_KSF_CM = 'ksf-cm'; - public const PRIMARY_LANGUAGE_KSH = 'ksh'; - public const PRIMARY_LANGUAGE_KSH_DE = 'ksh-de'; - public const PRIMARY_LANGUAGE_KW = 'kw'; - public const PRIMARY_LANGUAGE_KW_GB = 'kw-gb'; - public const PRIMARY_LANGUAGE_KY = 'ky'; - public const PRIMARY_LANGUAGE_KY_KG = 'ky-kg'; - public const PRIMARY_LANGUAGE_LAG = 'lag'; - public const PRIMARY_LANGUAGE_LAG_TZ = 'lag-tz'; - public const PRIMARY_LANGUAGE_LB = 'lb'; - public const PRIMARY_LANGUAGE_LB_LU = 'lb-lu'; - public const PRIMARY_LANGUAGE_LG = 'lg'; - public const PRIMARY_LANGUAGE_LG_UG = 'lg-ug'; - public const PRIMARY_LANGUAGE_LKT = 'lkt'; - public const PRIMARY_LANGUAGE_LKT_US = 'lkt-us'; - public const PRIMARY_LANGUAGE_LN = 'ln'; - public const PRIMARY_LANGUAGE_LN_AO = 'ln-ao'; - public const PRIMARY_LANGUAGE_LN_CD = 'ln-cd'; - public const PRIMARY_LANGUAGE_LN_CF = 'ln-cf'; - public const PRIMARY_LANGUAGE_LN_CG = 'ln-cg'; - public const PRIMARY_LANGUAGE_LO = 'lo'; - public const PRIMARY_LANGUAGE_LO_LA = 'lo-la'; - public const PRIMARY_LANGUAGE_LRC = 'lrc'; - public const PRIMARY_LANGUAGE_LRC_IQ = 'lrc-iq'; - public const PRIMARY_LANGUAGE_LRC_IR = 'lrc-ir'; - public const PRIMARY_LANGUAGE_LT = 'lt'; - public const PRIMARY_LANGUAGE_LT_LT = 'lt-lt'; - public const PRIMARY_LANGUAGE_LU = 'lu'; - public const PRIMARY_LANGUAGE_LU_CD = 'lu-cd'; - public const PRIMARY_LANGUAGE_LUO = 'luo'; - public const PRIMARY_LANGUAGE_LUO_KE = 'luo-ke'; - public const PRIMARY_LANGUAGE_LUY = 'luy'; - public const PRIMARY_LANGUAGE_LUY_KE = 'luy-ke'; - public const PRIMARY_LANGUAGE_LV = 'lv'; - public const PRIMARY_LANGUAGE_LV_LV = 'lv-lv'; - public const PRIMARY_LANGUAGE_MAS = 'mas'; - public const PRIMARY_LANGUAGE_MAS_KE = 'mas-ke'; - public const PRIMARY_LANGUAGE_MAS_TZ = 'mas-tz'; - public const PRIMARY_LANGUAGE_MER = 'mer'; - public const PRIMARY_LANGUAGE_MER_KE = 'mer-ke'; - public const PRIMARY_LANGUAGE_MFE = 'mfe'; - public const PRIMARY_LANGUAGE_MFE_MU = 'mfe-mu'; - public const PRIMARY_LANGUAGE_MG = 'mg'; - public const PRIMARY_LANGUAGE_MG_MG = 'mg-mg'; - public const PRIMARY_LANGUAGE_MGH = 'mgh'; - public const PRIMARY_LANGUAGE_MGH_MZ = 'mgh-mz'; - public const PRIMARY_LANGUAGE_MGO = 'mgo'; - public const PRIMARY_LANGUAGE_MGO_CM = 'mgo-cm'; - public const PRIMARY_LANGUAGE_MK = 'mk'; - public const PRIMARY_LANGUAGE_MK_MK = 'mk-mk'; - public const PRIMARY_LANGUAGE_ML = 'ml'; - public const PRIMARY_LANGUAGE_ML_IN = 'ml-in'; - public const PRIMARY_LANGUAGE_MN = 'mn'; - public const PRIMARY_LANGUAGE_MN_MN = 'mn-mn'; - public const PRIMARY_LANGUAGE_MR = 'mr'; - public const PRIMARY_LANGUAGE_MR_IN = 'mr-in'; - public const PRIMARY_LANGUAGE_MS = 'ms'; - public const PRIMARY_LANGUAGE_MS_BN = 'ms-bn'; - public const PRIMARY_LANGUAGE_MS_MY = 'ms-my'; - public const PRIMARY_LANGUAGE_MS_SG = 'ms-sg'; - public const PRIMARY_LANGUAGE_MT = 'mt'; - public const PRIMARY_LANGUAGE_MT_MT = 'mt-mt'; - public const PRIMARY_LANGUAGE_MUA = 'mua'; - public const PRIMARY_LANGUAGE_MUA_CM = 'mua-cm'; - public const PRIMARY_LANGUAGE_MY = 'my'; - public const PRIMARY_LANGUAGE_MY_MM = 'my-mm'; - public const PRIMARY_LANGUAGE_MZN = 'mzn'; - public const PRIMARY_LANGUAGE_MZN_IR = 'mzn-ir'; - public const PRIMARY_LANGUAGE_NAQ = 'naq'; - public const PRIMARY_LANGUAGE_NAQ_NA = 'naq-na'; - public const PRIMARY_LANGUAGE_NB = 'nb'; - public const PRIMARY_LANGUAGE_NB_NO = 'nb-no'; - public const PRIMARY_LANGUAGE_NB_SJ = 'nb-sj'; - public const PRIMARY_LANGUAGE_ND = 'nd'; - public const PRIMARY_LANGUAGE_ND_ZW = 'nd-zw'; - public const PRIMARY_LANGUAGE_NDS = 'nds'; - public const PRIMARY_LANGUAGE_NDS_DE = 'nds-de'; - public const PRIMARY_LANGUAGE_NDS_NL = 'nds-nl'; - public const PRIMARY_LANGUAGE_NE = 'ne'; - public const PRIMARY_LANGUAGE_NE_IN = 'ne-in'; - public const PRIMARY_LANGUAGE_NE_NP = 'ne-np'; - public const PRIMARY_LANGUAGE_NL = 'nl'; - public const PRIMARY_LANGUAGE_NL_AW = 'nl-aw'; - public const PRIMARY_LANGUAGE_NL_BE = 'nl-be'; - public const PRIMARY_LANGUAGE_NL_CH = 'nl-ch'; - public const PRIMARY_LANGUAGE_NL_BQ = 'nl-bq'; - public const PRIMARY_LANGUAGE_NL_CW = 'nl-cw'; - public const PRIMARY_LANGUAGE_NL_LU = 'nl-lu'; - public const PRIMARY_LANGUAGE_NL_NL = 'nl-nl'; - public const PRIMARY_LANGUAGE_NL_SR = 'nl-sr'; - public const PRIMARY_LANGUAGE_NL_SX = 'nl-sx'; - public const PRIMARY_LANGUAGE_NMG = 'nmg'; - public const PRIMARY_LANGUAGE_NMG_CM = 'nmg-cm'; - public const PRIMARY_LANGUAGE_NN = 'nn'; - public const PRIMARY_LANGUAGE_NN_NO = 'nn-no'; - public const PRIMARY_LANGUAGE_NNH = 'nnh'; - public const PRIMARY_LANGUAGE_NNH_CM = 'nnh-cm'; - public const PRIMARY_LANGUAGE_NO = 'no'; - public const PRIMARY_LANGUAGE_NO_NO = 'no-no'; - public const PRIMARY_LANGUAGE_NUS = 'nus'; - public const PRIMARY_LANGUAGE_NUS_SS = 'nus-ss'; - public const PRIMARY_LANGUAGE_NYN = 'nyn'; - public const PRIMARY_LANGUAGE_NYN_UG = 'nyn-ug'; - public const PRIMARY_LANGUAGE_OM = 'om'; - public const PRIMARY_LANGUAGE_OM_ET = 'om-et'; - public const PRIMARY_LANGUAGE_OM_KE = 'om-ke'; - public const PRIMARY_LANGUAGE__OR = 'or'; - public const PRIMARY_LANGUAGE_OR_IN = 'or-in'; - public const PRIMARY_LANGUAGE_OS = 'os'; - public const PRIMARY_LANGUAGE_OS_GE = 'os-ge'; - public const PRIMARY_LANGUAGE_OS_RU = 'os-ru'; - public const PRIMARY_LANGUAGE_PA = 'pa'; - public const PRIMARY_LANGUAGE_PA_IN = 'pa-in'; - public const PRIMARY_LANGUAGE_PA_PK = 'pa-pk'; - public const PRIMARY_LANGUAGE_PL = 'pl'; - public const PRIMARY_LANGUAGE_PL_PL = 'pl-pl'; - public const PRIMARY_LANGUAGE_PRG = 'prg'; - public const PRIMARY_LANGUAGE_PRG_001 = 'prg-001'; - public const PRIMARY_LANGUAGE_PS = 'ps'; - public const PRIMARY_LANGUAGE_PS_AF = 'ps-af'; - public const PRIMARY_LANGUAGE_PT = 'pt'; - public const PRIMARY_LANGUAGE_PT_AO = 'pt-ao'; - public const PRIMARY_LANGUAGE_PT_BR = 'pt-br'; - public const PRIMARY_LANGUAGE_PT_CH = 'pt-ch'; - public const PRIMARY_LANGUAGE_PT_CV = 'pt-cv'; - public const PRIMARY_LANGUAGE_PT_GQ = 'pt-gq'; - public const PRIMARY_LANGUAGE_PT_GW = 'pt-gw'; - public const PRIMARY_LANGUAGE_PT_LU = 'pt-lu'; - public const PRIMARY_LANGUAGE_PT_MO = 'pt-mo'; - public const PRIMARY_LANGUAGE_PT_MZ = 'pt-mz'; - public const PRIMARY_LANGUAGE_PT_PT = 'pt-pt'; - public const PRIMARY_LANGUAGE_PT_ST = 'pt-st'; - public const PRIMARY_LANGUAGE_PT_TL = 'pt-tl'; - public const PRIMARY_LANGUAGE_QU = 'qu'; - public const PRIMARY_LANGUAGE_QU_BO = 'qu-bo'; - public const PRIMARY_LANGUAGE_QU_EC = 'qu-ec'; - public const PRIMARY_LANGUAGE_QU_PE = 'qu-pe'; - public const PRIMARY_LANGUAGE_RM = 'rm'; - public const PRIMARY_LANGUAGE_RM_CH = 'rm-ch'; - public const PRIMARY_LANGUAGE_RN = 'rn'; - public const PRIMARY_LANGUAGE_RN_BI = 'rn-bi'; - public const PRIMARY_LANGUAGE_RO = 'ro'; - public const PRIMARY_LANGUAGE_RO_MD = 'ro-md'; - public const PRIMARY_LANGUAGE_RO_RO = 'ro-ro'; - public const PRIMARY_LANGUAGE_ROF = 'rof'; - public const PRIMARY_LANGUAGE_ROF_TZ = 'rof-tz'; - public const PRIMARY_LANGUAGE_RU = 'ru'; - public const PRIMARY_LANGUAGE_RU_BY = 'ru-by'; - public const PRIMARY_LANGUAGE_RU_KG = 'ru-kg'; - public const PRIMARY_LANGUAGE_RU_KZ = 'ru-kz'; - public const PRIMARY_LANGUAGE_RU_MD = 'ru-md'; - public const PRIMARY_LANGUAGE_RU_RU = 'ru-ru'; - public const PRIMARY_LANGUAGE_RU_UA = 'ru-ua'; - public const PRIMARY_LANGUAGE_RW = 'rw'; - public const PRIMARY_LANGUAGE_RW_RW = 'rw-rw'; - public const PRIMARY_LANGUAGE_RWK = 'rwk'; - public const PRIMARY_LANGUAGE_RWK_TZ = 'rwk-tz'; - public const PRIMARY_LANGUAGE_SA = 'sa'; - public const PRIMARY_LANGUAGE_SAH = 'sah'; - public const PRIMARY_LANGUAGE_SAH_RU = 'sah-ru'; - public const PRIMARY_LANGUAGE_SAQ = 'saq'; - public const PRIMARY_LANGUAGE_SAQ_KE = 'saq-ke'; - public const PRIMARY_LANGUAGE_SBP = 'sbp'; - public const PRIMARY_LANGUAGE_SBP_TZ = 'sbp-tz'; - public const PRIMARY_LANGUAGE_SD = 'sd'; - public const PRIMARY_LANGUAGE_SD_PK = 'sd-pk'; - public const PRIMARY_LANGUAGE_SE = 'se'; - public const PRIMARY_LANGUAGE_SE_FI = 'se-fi'; - public const PRIMARY_LANGUAGE_SE_NO = 'se-no'; - public const PRIMARY_LANGUAGE_SE_SE = 'se-se'; - public const PRIMARY_LANGUAGE_SEH = 'seh'; - public const PRIMARY_LANGUAGE_SEH_MZ = 'seh-mz'; - public const PRIMARY_LANGUAGE_SES = 'ses'; - public const PRIMARY_LANGUAGE_SES_ML = 'ses-ml'; - public const PRIMARY_LANGUAGE_SG = 'sg'; - public const PRIMARY_LANGUAGE_SG_CF = 'sg-cf'; - public const PRIMARY_LANGUAGE_SHI = 'shi'; - public const PRIMARY_LANGUAGE_SHI_MA = 'shi-ma'; - public const PRIMARY_LANGUAGE_SI = 'si'; - public const PRIMARY_LANGUAGE_SI_LK = 'si-lk'; - public const PRIMARY_LANGUAGE_SK = 'sk'; - public const PRIMARY_LANGUAGE_SK_SK = 'sk-sk'; - public const PRIMARY_LANGUAGE_SL = 'sl'; - public const PRIMARY_LANGUAGE_SL_SI = 'sl-si'; - public const PRIMARY_LANGUAGE_SMN = 'smn'; - public const PRIMARY_LANGUAGE_SMN_FI = 'smn-fi'; - public const PRIMARY_LANGUAGE_SN = 'sn'; - public const PRIMARY_LANGUAGE_SN_ZW = 'sn-zw'; - public const PRIMARY_LANGUAGE_SO = 'so'; - public const PRIMARY_LANGUAGE_SO_DJ = 'so-dj'; - public const PRIMARY_LANGUAGE_SO_ET = 'so-et'; - public const PRIMARY_LANGUAGE_SO_KE = 'so-ke'; - public const PRIMARY_LANGUAGE_SO_SO = 'so-so'; - public const PRIMARY_LANGUAGE_SQ = 'sq'; - public const PRIMARY_LANGUAGE_SQ_AL = 'sq-al'; - public const PRIMARY_LANGUAGE_SQ_MK = 'sq-mk'; - public const PRIMARY_LANGUAGE_SQ_XK = 'sq-xk'; - public const PRIMARY_LANGUAGE_SR = 'sr'; - public const PRIMARY_LANGUAGE_SR_BA = 'sr-ba'; - public const PRIMARY_LANGUAGE_SR_CS = 'sr-cs'; - public const PRIMARY_LANGUAGE_SR_ME = 'sr-me'; - public const PRIMARY_LANGUAGE_SR_RS = 'sr-rs'; - public const PRIMARY_LANGUAGE_SR_XK = 'sr-xk'; - public const PRIMARY_LANGUAGE_SV = 'sv'; - public const PRIMARY_LANGUAGE_SV_AX = 'sv-ax'; - public const PRIMARY_LANGUAGE_SV_FI = 'sv-fi'; - public const PRIMARY_LANGUAGE_SV_SE = 'sv-se'; - public const PRIMARY_LANGUAGE_SW = 'sw'; - public const PRIMARY_LANGUAGE_SW_CD = 'sw-cd'; - public const PRIMARY_LANGUAGE_SW_KE = 'sw-ke'; - public const PRIMARY_LANGUAGE_SW_TZ = 'sw-tz'; - public const PRIMARY_LANGUAGE_SW_UG = 'sw-ug'; - public const PRIMARY_LANGUAGE_SY = 'sy'; - public const PRIMARY_LANGUAGE_TA = 'ta'; - public const PRIMARY_LANGUAGE_TA_IN = 'ta-in'; - public const PRIMARY_LANGUAGE_TA_LK = 'ta-lk'; - public const PRIMARY_LANGUAGE_TA_MY = 'ta-my'; - public const PRIMARY_LANGUAGE_TA_SG = 'ta-sg'; - public const PRIMARY_LANGUAGE_TE = 'te'; - public const PRIMARY_LANGUAGE_TE_IN = 'te-in'; - public const PRIMARY_LANGUAGE_TEO = 'teo'; - public const PRIMARY_LANGUAGE_TEO_KE = 'teo-ke'; - public const PRIMARY_LANGUAGE_TEO_UG = 'teo-ug'; - public const PRIMARY_LANGUAGE_TG = 'tg'; - public const PRIMARY_LANGUAGE_TG_TJ = 'tg-tj'; - public const PRIMARY_LANGUAGE_TH = 'th'; - public const PRIMARY_LANGUAGE_TH_TH = 'th-th'; - public const PRIMARY_LANGUAGE_TI = 'ti'; - public const PRIMARY_LANGUAGE_TI_ER = 'ti-er'; - public const PRIMARY_LANGUAGE_TI_ET = 'ti-et'; - public const PRIMARY_LANGUAGE_TK = 'tk'; - public const PRIMARY_LANGUAGE_TK_TM = 'tk-tm'; - public const PRIMARY_LANGUAGE_TO = 'to'; - public const PRIMARY_LANGUAGE_TO_TO = 'to-to'; - public const PRIMARY_LANGUAGE_TR = 'tr'; - public const PRIMARY_LANGUAGE_TR_CY = 'tr-cy'; - public const PRIMARY_LANGUAGE_TR_TR = 'tr-tr'; - public const PRIMARY_LANGUAGE_TT = 'tt'; - public const PRIMARY_LANGUAGE_TT_RU = 'tt-ru'; - public const PRIMARY_LANGUAGE_TWQ = 'twq'; - public const PRIMARY_LANGUAGE_TWQ_NE = 'twq-ne'; - public const PRIMARY_LANGUAGE_TZM = 'tzm'; - public const PRIMARY_LANGUAGE_TZM_MA = 'tzm-ma'; - public const PRIMARY_LANGUAGE_UG = 'ug'; - public const PRIMARY_LANGUAGE_UG_CN = 'ug-cn'; - public const PRIMARY_LANGUAGE_UK = 'uk'; - public const PRIMARY_LANGUAGE_UK_UA = 'uk-ua'; - public const PRIMARY_LANGUAGE_UR = 'ur'; - public const PRIMARY_LANGUAGE_UR_IN = 'ur-in'; - public const PRIMARY_LANGUAGE_UR_PK = 'ur-pk'; - public const PRIMARY_LANGUAGE_UZ = 'uz'; - public const PRIMARY_LANGUAGE_UZ_AF = 'uz-af'; - public const PRIMARY_LANGUAGE_UZ_UZ = 'uz-uz'; - public const PRIMARY_LANGUAGE_VAI = 'vai'; - public const PRIMARY_LANGUAGE_VAI_LR = 'vai-lr'; - public const PRIMARY_LANGUAGE_VI = 'vi'; - public const PRIMARY_LANGUAGE_VI_VN = 'vi-vn'; - public const PRIMARY_LANGUAGE_VO = 'vo'; - public const PRIMARY_LANGUAGE_VO_001 = 'vo-001'; - public const PRIMARY_LANGUAGE_VUN = 'vun'; - public const PRIMARY_LANGUAGE_VUN_TZ = 'vun-tz'; - public const PRIMARY_LANGUAGE_WAE = 'wae'; - public const PRIMARY_LANGUAGE_WAE_CH = 'wae-ch'; - public const PRIMARY_LANGUAGE_WO = 'wo'; - public const PRIMARY_LANGUAGE_WO_SN = 'wo-sn'; - public const PRIMARY_LANGUAGE_XOG = 'xog'; - public const PRIMARY_LANGUAGE_XOG_UG = 'xog-ug'; - public const PRIMARY_LANGUAGE_YAV = 'yav'; - public const PRIMARY_LANGUAGE_YAV_CM = 'yav-cm'; - public const PRIMARY_LANGUAGE_YO = 'yo'; - public const PRIMARY_LANGUAGE_YO_BJ = 'yo-bj'; - public const PRIMARY_LANGUAGE_YO_NG = 'yo-ng'; - public const PRIMARY_LANGUAGE_YUE = 'yue'; - public const PRIMARY_LANGUAGE_YUE_CN = 'yue-cn'; - public const PRIMARY_LANGUAGE_YUE_HK = 'yue-hk'; - public const PRIMARY_LANGUAGE_ZGH = 'zgh'; - public const PRIMARY_LANGUAGE_ZGH_MA = 'zgh-ma'; - public const PRIMARY_LANGUAGE_ZH = 'zh'; - public const PRIMARY_LANGUAGE_ZH_CN = 'zh-cn'; - public const PRIMARY_LANGUAGE_ZH_HK = 'zh-hk'; - public const PRIMARY_LANGUAGE_ZH_MO = 'zh-mo'; - public const PRIMARY_LANGUAGE_ZH_SG = 'zh-sg'; - public const PRIMARY_LANGUAGE_ZH_TW = 'zh-tw'; - public const PRIMARY_LANGUAGE_ZH_HANS = 'zh-hans'; - public const PRIMARY_LANGUAGE_ZH_HANT = 'zh-hant'; - public const PRIMARY_LANGUAGE_ZU = 'zu'; - public const PRIMARY_LANGUAGE_ZU_ZA = 'zu-za'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getLanguageAllowableValues() - { - return [ - self::LANGUAGE_AF, - self::LANGUAGE_AF_NA, - self::LANGUAGE_AF_ZA, - self::LANGUAGE_AGQ, - self::LANGUAGE_AGQ_CM, - self::LANGUAGE_AK, - self::LANGUAGE_AK_GH, - self::LANGUAGE_AM, - self::LANGUAGE_AM_ET, - self::LANGUAGE_AR, - self::LANGUAGE_AR_001, - self::LANGUAGE_AR_AE, - self::LANGUAGE_AR_BH, - self::LANGUAGE_AR_DJ, - self::LANGUAGE_AR_DZ, - self::LANGUAGE_AR_EG, - self::LANGUAGE_AR_EH, - self::LANGUAGE_AR_ER, - self::LANGUAGE_AR_IL, - self::LANGUAGE_AR_IQ, - self::LANGUAGE_AR_JO, - self::LANGUAGE_AR_KM, - self::LANGUAGE_AR_KW, - self::LANGUAGE_AR_LB, - self::LANGUAGE_AR_LY, - self::LANGUAGE_AR_MA, - self::LANGUAGE_AR_MR, - self::LANGUAGE_AR_OM, - self::LANGUAGE_AR_PS, - self::LANGUAGE_AR_QA, - self::LANGUAGE_AR_SA, - self::LANGUAGE_AR_SD, - self::LANGUAGE_AR_SO, - self::LANGUAGE_AR_SS, - self::LANGUAGE_AR_SY, - self::LANGUAGE_AR_TD, - self::LANGUAGE_AR_TN, - self::LANGUAGE_AR_YE, - self::LANGUAGE__AS, - self::LANGUAGE_AS_IN, - self::LANGUAGE_ASA, - self::LANGUAGE_ASA_TZ, - self::LANGUAGE_AST, - self::LANGUAGE_AST_ES, - self::LANGUAGE_AZ, - self::LANGUAGE_AZ_AZ, - self::LANGUAGE_BAS, - self::LANGUAGE_BAS_CM, - self::LANGUAGE_BE, - self::LANGUAGE_BE_BY, - self::LANGUAGE_BEM, - self::LANGUAGE_BEM_ZM, - self::LANGUAGE_BEZ, - self::LANGUAGE_BEZ_TZ, - self::LANGUAGE_BG, - self::LANGUAGE_BG_BG, - self::LANGUAGE_BM, - self::LANGUAGE_BM_ML, - self::LANGUAGE_BN, - self::LANGUAGE_BN_BD, - self::LANGUAGE_BN_IN, - self::LANGUAGE_BO, - self::LANGUAGE_BO_CN, - self::LANGUAGE_BO_IN, - self::LANGUAGE_BR, - self::LANGUAGE_BR_FR, - self::LANGUAGE_BRX, - self::LANGUAGE_BRX_IN, - self::LANGUAGE_BS, - self::LANGUAGE_BS_BA, - self::LANGUAGE_CA, - self::LANGUAGE_CA_AD, - self::LANGUAGE_CA_ES, - self::LANGUAGE_CA_FR, - self::LANGUAGE_CA_IT, - self::LANGUAGE_CCP, - self::LANGUAGE_CCP_BD, - self::LANGUAGE_CCP_IN, - self::LANGUAGE_CE, - self::LANGUAGE_CE_RU, - self::LANGUAGE_CGG, - self::LANGUAGE_CGG_UG, - self::LANGUAGE_CHR, - self::LANGUAGE_CHR_US, - self::LANGUAGE_CKB, - self::LANGUAGE_CKB_IQ, - self::LANGUAGE_CKB_IR, - self::LANGUAGE_CS, - self::LANGUAGE_CS_CZ, - self::LANGUAGE_CU, - self::LANGUAGE_CU_RU, - self::LANGUAGE_CY, - self::LANGUAGE_CY_GB, - self::LANGUAGE_DA, - self::LANGUAGE_DA_DK, - self::LANGUAGE_DA_GL, - self::LANGUAGE_DAV, - self::LANGUAGE_DAV_KE, - self::LANGUAGE_DE, - self::LANGUAGE_DE_AT, - self::LANGUAGE_DE_BE, - self::LANGUAGE_DE_CH, - self::LANGUAGE_DE_DE, - self::LANGUAGE_DE_GR, - self::LANGUAGE_DE_IT, - self::LANGUAGE_DE_LI, - self::LANGUAGE_DE_LU, - self::LANGUAGE_DJE, - self::LANGUAGE_DJE_NE, - self::LANGUAGE_DSB, - self::LANGUAGE_DSB_DE, - self::LANGUAGE_DUA, - self::LANGUAGE_DUA_CM, - self::LANGUAGE_DYO, - self::LANGUAGE_DYO_SN, - self::LANGUAGE_DZ, - self::LANGUAGE_DZ_BT, - self::LANGUAGE_EBU, - self::LANGUAGE_EBU_KE, - self::LANGUAGE_EE, - self::LANGUAGE_EE_GH, - self::LANGUAGE_EE_TG, - self::LANGUAGE_EL, - self::LANGUAGE_EL_CY, - self::LANGUAGE_EL_GR, - self::LANGUAGE_EN, - self::LANGUAGE_EN_001, - self::LANGUAGE_EN_150, - self::LANGUAGE_EN_AE, - self::LANGUAGE_EN_AG, - self::LANGUAGE_EN_AI, - self::LANGUAGE_EN_AS, - self::LANGUAGE_EN_AT, - self::LANGUAGE_EN_AU, - self::LANGUAGE_EN_BB, - self::LANGUAGE_EN_BE, - self::LANGUAGE_EN_BI, - self::LANGUAGE_EN_BM, - self::LANGUAGE_EN_BS, - self::LANGUAGE_EN_BW, - self::LANGUAGE_EN_BZ, - self::LANGUAGE_EN_CA, - self::LANGUAGE_EN_CC, - self::LANGUAGE_EN_CH, - self::LANGUAGE_EN_CK, - self::LANGUAGE_EN_CM, - self::LANGUAGE_EN_CX, - self::LANGUAGE_EN_CY, - self::LANGUAGE_EN_DE, - self::LANGUAGE_EN_DG, - self::LANGUAGE_EN_DK, - self::LANGUAGE_EN_DM, - self::LANGUAGE_EN_ER, - self::LANGUAGE_EN_FI, - self::LANGUAGE_EN_FJ, - self::LANGUAGE_EN_FK, - self::LANGUAGE_EN_FM, - self::LANGUAGE_EN_GB, - self::LANGUAGE_EN_GD, - self::LANGUAGE_EN_GG, - self::LANGUAGE_EN_GH, - self::LANGUAGE_EN_GI, - self::LANGUAGE_EN_GM, - self::LANGUAGE_EN_GU, - self::LANGUAGE_EN_GY, - self::LANGUAGE_EN_HK, - self::LANGUAGE_EN_IE, - self::LANGUAGE_EN_IL, - self::LANGUAGE_EN_IM, - self::LANGUAGE_EN_IN, - self::LANGUAGE_EN_IO, - self::LANGUAGE_EN_JE, - self::LANGUAGE_EN_JM, - self::LANGUAGE_EN_KE, - self::LANGUAGE_EN_KI, - self::LANGUAGE_EN_KN, - self::LANGUAGE_EN_KY, - self::LANGUAGE_EN_LC, - self::LANGUAGE_EN_LR, - self::LANGUAGE_EN_LS, - self::LANGUAGE_EN_LU, - self::LANGUAGE_EN_MG, - self::LANGUAGE_EN_MH, - self::LANGUAGE_EN_MO, - self::LANGUAGE_EN_MP, - self::LANGUAGE_EN_MS, - self::LANGUAGE_EN_MT, - self::LANGUAGE_EN_MU, - self::LANGUAGE_EN_MW, - self::LANGUAGE_EN_MY, - self::LANGUAGE_EN_NA, - self::LANGUAGE_EN_NF, - self::LANGUAGE_EN_NG, - self::LANGUAGE_EN_NL, - self::LANGUAGE_EN_NR, - self::LANGUAGE_EN_NU, - self::LANGUAGE_EN_NZ, - self::LANGUAGE_EN_PG, - self::LANGUAGE_EN_PH, - self::LANGUAGE_EN_PK, - self::LANGUAGE_EN_PN, - self::LANGUAGE_EN_PR, - self::LANGUAGE_EN_PW, - self::LANGUAGE_EN_RW, - self::LANGUAGE_EN_SB, - self::LANGUAGE_EN_SC, - self::LANGUAGE_EN_SD, - self::LANGUAGE_EN_SE, - self::LANGUAGE_EN_SG, - self::LANGUAGE_EN_SH, - self::LANGUAGE_EN_SI, - self::LANGUAGE_EN_SL, - self::LANGUAGE_EN_SS, - self::LANGUAGE_EN_SX, - self::LANGUAGE_EN_SZ, - self::LANGUAGE_EN_TC, - self::LANGUAGE_EN_TK, - self::LANGUAGE_EN_TO, - self::LANGUAGE_EN_TT, - self::LANGUAGE_EN_TV, - self::LANGUAGE_EN_TZ, - self::LANGUAGE_EN_UG, - self::LANGUAGE_EN_UM, - self::LANGUAGE_EN_US, - self::LANGUAGE_EN_VC, - self::LANGUAGE_EN_VG, - self::LANGUAGE_EN_VI, - self::LANGUAGE_EN_VU, - self::LANGUAGE_EN_WS, - self::LANGUAGE_EN_ZA, - self::LANGUAGE_EN_ZM, - self::LANGUAGE_EN_ZW, - self::LANGUAGE_EO, - self::LANGUAGE_EO_001, - self::LANGUAGE_ES, - self::LANGUAGE_ES_419, - self::LANGUAGE_ES_AR, - self::LANGUAGE_ES_BO, - self::LANGUAGE_ES_BR, - self::LANGUAGE_ES_BZ, - self::LANGUAGE_ES_CL, - self::LANGUAGE_ES_CO, - self::LANGUAGE_ES_CR, - self::LANGUAGE_ES_CU, - self::LANGUAGE_ES_DO, - self::LANGUAGE_ES_EA, - self::LANGUAGE_ES_EC, - self::LANGUAGE_ES_ES, - self::LANGUAGE_ES_GQ, - self::LANGUAGE_ES_GT, - self::LANGUAGE_ES_HN, - self::LANGUAGE_ES_IC, - self::LANGUAGE_ES_MX, - self::LANGUAGE_ES_NI, - self::LANGUAGE_ES_PA, - self::LANGUAGE_ES_PE, - self::LANGUAGE_ES_PH, - self::LANGUAGE_ES_PR, - self::LANGUAGE_ES_PY, - self::LANGUAGE_ES_SV, - self::LANGUAGE_ES_US, - self::LANGUAGE_ES_UY, - self::LANGUAGE_ES_VE, - self::LANGUAGE_ET, - self::LANGUAGE_ET_EE, - self::LANGUAGE_EU, - self::LANGUAGE_EU_ES, - self::LANGUAGE_EWO, - self::LANGUAGE_EWO_CM, - self::LANGUAGE_FA, - self::LANGUAGE_FA_AF, - self::LANGUAGE_FA_IR, - self::LANGUAGE_FF, - self::LANGUAGE_FF_CM, - self::LANGUAGE_FF_GN, - self::LANGUAGE_FF_MR, - self::LANGUAGE_FF_SN, - self::LANGUAGE_FI, - self::LANGUAGE_FI_FI, - self::LANGUAGE_FIL, - self::LANGUAGE_FIL_PH, - self::LANGUAGE_FO, - self::LANGUAGE_FO_DK, - self::LANGUAGE_FO_FO, - self::LANGUAGE_FR, - self::LANGUAGE_FR_BE, - self::LANGUAGE_FR_BF, - self::LANGUAGE_FR_BI, - self::LANGUAGE_FR_BJ, - self::LANGUAGE_FR_BL, - self::LANGUAGE_FR_CA, - self::LANGUAGE_FR_CD, - self::LANGUAGE_FR_CF, - self::LANGUAGE_FR_CG, - self::LANGUAGE_FR_CH, - self::LANGUAGE_FR_CI, - self::LANGUAGE_FR_CM, - self::LANGUAGE_FR_DJ, - self::LANGUAGE_FR_DZ, - self::LANGUAGE_FR_FR, - self::LANGUAGE_FR_GA, - self::LANGUAGE_FR_GF, - self::LANGUAGE_FR_GN, - self::LANGUAGE_FR_GP, - self::LANGUAGE_FR_GQ, - self::LANGUAGE_FR_HT, - self::LANGUAGE_FR_KM, - self::LANGUAGE_FR_LU, - self::LANGUAGE_FR_MA, - self::LANGUAGE_FR_MC, - self::LANGUAGE_FR_MF, - self::LANGUAGE_FR_MG, - self::LANGUAGE_FR_ML, - self::LANGUAGE_FR_MQ, - self::LANGUAGE_FR_MR, - self::LANGUAGE_FR_MU, - self::LANGUAGE_FR_NC, - self::LANGUAGE_FR_NE, - self::LANGUAGE_FR_PF, - self::LANGUAGE_FR_PM, - self::LANGUAGE_FR_RE, - self::LANGUAGE_FR_RW, - self::LANGUAGE_FR_SC, - self::LANGUAGE_FR_SN, - self::LANGUAGE_FR_SY, - self::LANGUAGE_FR_TD, - self::LANGUAGE_FR_TG, - self::LANGUAGE_FR_TN, - self::LANGUAGE_FR_VU, - self::LANGUAGE_FR_WF, - self::LANGUAGE_FR_YT, - self::LANGUAGE_FUR, - self::LANGUAGE_FUR_IT, - self::LANGUAGE_FY, - self::LANGUAGE_FY_NL, - self::LANGUAGE_GA, - self::LANGUAGE_GA_IE, - self::LANGUAGE_GD, - self::LANGUAGE_GD_GB, - self::LANGUAGE_GL, - self::LANGUAGE_GL_ES, - self::LANGUAGE_GSW, - self::LANGUAGE_GSW_CH, - self::LANGUAGE_GSW_FR, - self::LANGUAGE_GSW_LI, - self::LANGUAGE_GU, - self::LANGUAGE_GU_IN, - self::LANGUAGE_GUZ, - self::LANGUAGE_GUZ_KE, - self::LANGUAGE_GV, - self::LANGUAGE_GV_IM, - self::LANGUAGE_HA, - self::LANGUAGE_HA_GH, - self::LANGUAGE_HA_NE, - self::LANGUAGE_HA_NG, - self::LANGUAGE_HAW, - self::LANGUAGE_HAW_US, - self::LANGUAGE_HE, - self::LANGUAGE_HI, - self::LANGUAGE_HI_IN, - self::LANGUAGE_HR, - self::LANGUAGE_HR_BA, - self::LANGUAGE_HR_HR, - self::LANGUAGE_HSB, - self::LANGUAGE_HSB_DE, - self::LANGUAGE_HU, - self::LANGUAGE_HU_HU, - self::LANGUAGE_HY, - self::LANGUAGE_HY_AM, - self::LANGUAGE_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, - self::LANGUAGE_IT_CH, - 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_KA, - self::LANGUAGE_KA_GE, - self::LANGUAGE_KAB, - self::LANGUAGE_KAB_DZ, - self::LANGUAGE_KAM, - self::LANGUAGE_KAM_KE, - self::LANGUAGE_KDE, - self::LANGUAGE_KDE_TZ, - self::LANGUAGE_KEA, - self::LANGUAGE_KEA_CV, - self::LANGUAGE_KHQ, - self::LANGUAGE_KHQ_ML, - self::LANGUAGE_KI, - self::LANGUAGE_KI_KE, - self::LANGUAGE_KK, - self::LANGUAGE_KK_KZ, - self::LANGUAGE_KKJ, - self::LANGUAGE_KKJ_CM, - self::LANGUAGE_KL, - self::LANGUAGE_KL_GL, - self::LANGUAGE_KLN, - self::LANGUAGE_KLN_KE, - self::LANGUAGE_KM, - self::LANGUAGE_KM_KH, - self::LANGUAGE_KN, - self::LANGUAGE_KN_IN, - self::LANGUAGE_KO, - self::LANGUAGE_KO_KP, - self::LANGUAGE_KO_KR, - self::LANGUAGE_KOK, - self::LANGUAGE_KOK_IN, - self::LANGUAGE_KS, - self::LANGUAGE_KS_IN, - self::LANGUAGE_KSB, - self::LANGUAGE_KSB_TZ, - self::LANGUAGE_KSF, - self::LANGUAGE_KSF_CM, - self::LANGUAGE_KSH, - self::LANGUAGE_KSH_DE, - self::LANGUAGE_KW, - self::LANGUAGE_KW_GB, - self::LANGUAGE_KY, - self::LANGUAGE_KY_KG, - self::LANGUAGE_LAG, - self::LANGUAGE_LAG_TZ, - self::LANGUAGE_LB, - self::LANGUAGE_LB_LU, - self::LANGUAGE_LG, - self::LANGUAGE_LG_UG, - self::LANGUAGE_LKT, - self::LANGUAGE_LKT_US, - self::LANGUAGE_LN, - self::LANGUAGE_LN_AO, - self::LANGUAGE_LN_CD, - self::LANGUAGE_LN_CF, - self::LANGUAGE_LN_CG, - self::LANGUAGE_LO, - self::LANGUAGE_LO_LA, - self::LANGUAGE_LRC, - self::LANGUAGE_LRC_IQ, - self::LANGUAGE_LRC_IR, - self::LANGUAGE_LT, - self::LANGUAGE_LT_LT, - self::LANGUAGE_LU, - self::LANGUAGE_LU_CD, - self::LANGUAGE_LUO, - self::LANGUAGE_LUO_KE, - self::LANGUAGE_LUY, - self::LANGUAGE_LUY_KE, - self::LANGUAGE_LV, - self::LANGUAGE_LV_LV, - self::LANGUAGE_MAS, - self::LANGUAGE_MAS_KE, - self::LANGUAGE_MAS_TZ, - self::LANGUAGE_MER, - self::LANGUAGE_MER_KE, - self::LANGUAGE_MFE, - self::LANGUAGE_MFE_MU, - self::LANGUAGE_MG, - self::LANGUAGE_MG_MG, - self::LANGUAGE_MGH, - self::LANGUAGE_MGH_MZ, - self::LANGUAGE_MGO, - self::LANGUAGE_MGO_CM, - self::LANGUAGE_MK, - self::LANGUAGE_MK_MK, - self::LANGUAGE_ML, - self::LANGUAGE_ML_IN, - self::LANGUAGE_MN, - self::LANGUAGE_MN_MN, - self::LANGUAGE_MR, - self::LANGUAGE_MR_IN, - self::LANGUAGE_MS, - self::LANGUAGE_MS_BN, - self::LANGUAGE_MS_MY, - self::LANGUAGE_MS_SG, - self::LANGUAGE_MT, - self::LANGUAGE_MT_MT, - self::LANGUAGE_MUA, - self::LANGUAGE_MUA_CM, - self::LANGUAGE_MY, - self::LANGUAGE_MY_MM, - self::LANGUAGE_MZN, - self::LANGUAGE_MZN_IR, - self::LANGUAGE_NAQ, - self::LANGUAGE_NAQ_NA, - self::LANGUAGE_NB, - self::LANGUAGE_NB_NO, - self::LANGUAGE_NB_SJ, - self::LANGUAGE_ND, - self::LANGUAGE_ND_ZW, - self::LANGUAGE_NDS, - self::LANGUAGE_NDS_DE, - self::LANGUAGE_NDS_NL, - self::LANGUAGE_NE, - self::LANGUAGE_NE_IN, - self::LANGUAGE_NE_NP, - self::LANGUAGE_NL, - self::LANGUAGE_NL_AW, - self::LANGUAGE_NL_BE, - self::LANGUAGE_NL_CH, - self::LANGUAGE_NL_BQ, - self::LANGUAGE_NL_CW, - self::LANGUAGE_NL_LU, - self::LANGUAGE_NL_NL, - self::LANGUAGE_NL_SR, - self::LANGUAGE_NL_SX, - self::LANGUAGE_NMG, - self::LANGUAGE_NMG_CM, - self::LANGUAGE_NN, - self::LANGUAGE_NN_NO, - self::LANGUAGE_NNH, - self::LANGUAGE_NNH_CM, - self::LANGUAGE_NO, - self::LANGUAGE_NO_NO, - self::LANGUAGE_NUS, - self::LANGUAGE_NUS_SS, - self::LANGUAGE_NYN, - self::LANGUAGE_NYN_UG, - self::LANGUAGE_OM, - self::LANGUAGE_OM_ET, - self::LANGUAGE_OM_KE, - self::LANGUAGE__OR, - self::LANGUAGE_OR_IN, - self::LANGUAGE_OS, - self::LANGUAGE_OS_GE, - self::LANGUAGE_OS_RU, - self::LANGUAGE_PA, - self::LANGUAGE_PA_IN, - self::LANGUAGE_PA_PK, - self::LANGUAGE_PL, - self::LANGUAGE_PL_PL, - self::LANGUAGE_PRG, - self::LANGUAGE_PRG_001, - self::LANGUAGE_PS, - self::LANGUAGE_PS_AF, - self::LANGUAGE_PT, - self::LANGUAGE_PT_AO, - self::LANGUAGE_PT_BR, - self::LANGUAGE_PT_CH, - self::LANGUAGE_PT_CV, - self::LANGUAGE_PT_GQ, - self::LANGUAGE_PT_GW, - self::LANGUAGE_PT_LU, - self::LANGUAGE_PT_MO, - self::LANGUAGE_PT_MZ, - self::LANGUAGE_PT_PT, - self::LANGUAGE_PT_ST, - self::LANGUAGE_PT_TL, - self::LANGUAGE_QU, - self::LANGUAGE_QU_BO, - self::LANGUAGE_QU_EC, - self::LANGUAGE_QU_PE, - self::LANGUAGE_RM, - self::LANGUAGE_RM_CH, - self::LANGUAGE_RN, - self::LANGUAGE_RN_BI, - self::LANGUAGE_RO, - self::LANGUAGE_RO_MD, - self::LANGUAGE_RO_RO, - self::LANGUAGE_ROF, - self::LANGUAGE_ROF_TZ, - self::LANGUAGE_RU, - self::LANGUAGE_RU_BY, - self::LANGUAGE_RU_KG, - self::LANGUAGE_RU_KZ, - self::LANGUAGE_RU_MD, - self::LANGUAGE_RU_RU, - self::LANGUAGE_RU_UA, - self::LANGUAGE_RW, - self::LANGUAGE_RW_RW, - self::LANGUAGE_RWK, - self::LANGUAGE_RWK_TZ, - self::LANGUAGE_SA, - self::LANGUAGE_SAH, - self::LANGUAGE_SAH_RU, - self::LANGUAGE_SAQ, - self::LANGUAGE_SAQ_KE, - self::LANGUAGE_SBP, - self::LANGUAGE_SBP_TZ, - self::LANGUAGE_SD, - self::LANGUAGE_SD_PK, - self::LANGUAGE_SE, - self::LANGUAGE_SE_FI, - self::LANGUAGE_SE_NO, - self::LANGUAGE_SE_SE, - self::LANGUAGE_SEH, - self::LANGUAGE_SEH_MZ, - self::LANGUAGE_SES, - self::LANGUAGE_SES_ML, - self::LANGUAGE_SG, - self::LANGUAGE_SG_CF, - self::LANGUAGE_SHI, - self::LANGUAGE_SHI_MA, - self::LANGUAGE_SI, - self::LANGUAGE_SI_LK, - self::LANGUAGE_SK, - self::LANGUAGE_SK_SK, - self::LANGUAGE_SL, - self::LANGUAGE_SL_SI, - self::LANGUAGE_SMN, - self::LANGUAGE_SMN_FI, - self::LANGUAGE_SN, - self::LANGUAGE_SN_ZW, - self::LANGUAGE_SO, - self::LANGUAGE_SO_DJ, - self::LANGUAGE_SO_ET, - self::LANGUAGE_SO_KE, - self::LANGUAGE_SO_SO, - self::LANGUAGE_SQ, - self::LANGUAGE_SQ_AL, - self::LANGUAGE_SQ_MK, - self::LANGUAGE_SQ_XK, - self::LANGUAGE_SR, - self::LANGUAGE_SR_BA, - self::LANGUAGE_SR_CS, - self::LANGUAGE_SR_ME, - self::LANGUAGE_SR_RS, - self::LANGUAGE_SR_XK, - self::LANGUAGE_SV, - self::LANGUAGE_SV_AX, - self::LANGUAGE_SV_FI, - self::LANGUAGE_SV_SE, - self::LANGUAGE_SW, - self::LANGUAGE_SW_CD, - self::LANGUAGE_SW_KE, - self::LANGUAGE_SW_TZ, - self::LANGUAGE_SW_UG, - self::LANGUAGE_SY, - self::LANGUAGE_TA, - self::LANGUAGE_TA_IN, - self::LANGUAGE_TA_LK, - self::LANGUAGE_TA_MY, - self::LANGUAGE_TA_SG, - self::LANGUAGE_TE, - self::LANGUAGE_TE_IN, - self::LANGUAGE_TEO, - self::LANGUAGE_TEO_KE, - self::LANGUAGE_TEO_UG, - self::LANGUAGE_TG, - self::LANGUAGE_TG_TJ, - self::LANGUAGE_TH, - self::LANGUAGE_TH_TH, - self::LANGUAGE_TI, - self::LANGUAGE_TI_ER, - self::LANGUAGE_TI_ET, - self::LANGUAGE_TK, - self::LANGUAGE_TK_TM, - self::LANGUAGE_TO, - self::LANGUAGE_TO_TO, - self::LANGUAGE_TR, - self::LANGUAGE_TR_CY, - self::LANGUAGE_TR_TR, - self::LANGUAGE_TT, - self::LANGUAGE_TT_RU, - self::LANGUAGE_TWQ, - self::LANGUAGE_TWQ_NE, - self::LANGUAGE_TZM, - self::LANGUAGE_TZM_MA, - self::LANGUAGE_UG, - self::LANGUAGE_UG_CN, - self::LANGUAGE_UK, - self::LANGUAGE_UK_UA, - self::LANGUAGE_UR, - self::LANGUAGE_UR_IN, - self::LANGUAGE_UR_PK, - self::LANGUAGE_UZ, - self::LANGUAGE_UZ_AF, - self::LANGUAGE_UZ_UZ, - self::LANGUAGE_VAI, - self::LANGUAGE_VAI_LR, - self::LANGUAGE_VI, - self::LANGUAGE_VI_VN, - self::LANGUAGE_VO, - self::LANGUAGE_VO_001, - self::LANGUAGE_VUN, - self::LANGUAGE_VUN_TZ, - self::LANGUAGE_WAE, - self::LANGUAGE_WAE_CH, - self::LANGUAGE_WO, - self::LANGUAGE_WO_SN, - self::LANGUAGE_XOG, - self::LANGUAGE_XOG_UG, - self::LANGUAGE_YAV, - self::LANGUAGE_YAV_CM, - self::LANGUAGE_YO, - self::LANGUAGE_YO_BJ, - self::LANGUAGE_YO_NG, - self::LANGUAGE_YUE, - self::LANGUAGE_YUE_CN, - self::LANGUAGE_YUE_HK, - self::LANGUAGE_ZGH, - self::LANGUAGE_ZGH_MA, - self::LANGUAGE_ZH, - self::LANGUAGE_ZH_CN, - 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 getPrimaryLanguageAllowableValues() - { - return [ - self::PRIMARY_LANGUAGE_AF, - self::PRIMARY_LANGUAGE_AF_NA, - self::PRIMARY_LANGUAGE_AF_ZA, - self::PRIMARY_LANGUAGE_AGQ, - self::PRIMARY_LANGUAGE_AGQ_CM, - self::PRIMARY_LANGUAGE_AK, - self::PRIMARY_LANGUAGE_AK_GH, - self::PRIMARY_LANGUAGE_AM, - self::PRIMARY_LANGUAGE_AM_ET, - self::PRIMARY_LANGUAGE_AR, - self::PRIMARY_LANGUAGE_AR_001, - self::PRIMARY_LANGUAGE_AR_AE, - self::PRIMARY_LANGUAGE_AR_BH, - self::PRIMARY_LANGUAGE_AR_DJ, - self::PRIMARY_LANGUAGE_AR_DZ, - self::PRIMARY_LANGUAGE_AR_EG, - self::PRIMARY_LANGUAGE_AR_EH, - self::PRIMARY_LANGUAGE_AR_ER, - self::PRIMARY_LANGUAGE_AR_IL, - self::PRIMARY_LANGUAGE_AR_IQ, - self::PRIMARY_LANGUAGE_AR_JO, - self::PRIMARY_LANGUAGE_AR_KM, - self::PRIMARY_LANGUAGE_AR_KW, - self::PRIMARY_LANGUAGE_AR_LB, - self::PRIMARY_LANGUAGE_AR_LY, - self::PRIMARY_LANGUAGE_AR_MA, - self::PRIMARY_LANGUAGE_AR_MR, - self::PRIMARY_LANGUAGE_AR_OM, - self::PRIMARY_LANGUAGE_AR_PS, - self::PRIMARY_LANGUAGE_AR_QA, - self::PRIMARY_LANGUAGE_AR_SA, - self::PRIMARY_LANGUAGE_AR_SD, - self::PRIMARY_LANGUAGE_AR_SO, - self::PRIMARY_LANGUAGE_AR_SS, - self::PRIMARY_LANGUAGE_AR_SY, - self::PRIMARY_LANGUAGE_AR_TD, - self::PRIMARY_LANGUAGE_AR_TN, - self::PRIMARY_LANGUAGE_AR_YE, - self::PRIMARY_LANGUAGE__AS, - self::PRIMARY_LANGUAGE_AS_IN, - self::PRIMARY_LANGUAGE_ASA, - self::PRIMARY_LANGUAGE_ASA_TZ, - self::PRIMARY_LANGUAGE_AST, - self::PRIMARY_LANGUAGE_AST_ES, - self::PRIMARY_LANGUAGE_AZ, - self::PRIMARY_LANGUAGE_AZ_AZ, - self::PRIMARY_LANGUAGE_BAS, - self::PRIMARY_LANGUAGE_BAS_CM, - self::PRIMARY_LANGUAGE_BE, - self::PRIMARY_LANGUAGE_BE_BY, - self::PRIMARY_LANGUAGE_BEM, - self::PRIMARY_LANGUAGE_BEM_ZM, - self::PRIMARY_LANGUAGE_BEZ, - self::PRIMARY_LANGUAGE_BEZ_TZ, - self::PRIMARY_LANGUAGE_BG, - self::PRIMARY_LANGUAGE_BG_BG, - self::PRIMARY_LANGUAGE_BM, - self::PRIMARY_LANGUAGE_BM_ML, - self::PRIMARY_LANGUAGE_BN, - self::PRIMARY_LANGUAGE_BN_BD, - self::PRIMARY_LANGUAGE_BN_IN, - self::PRIMARY_LANGUAGE_BO, - self::PRIMARY_LANGUAGE_BO_CN, - self::PRIMARY_LANGUAGE_BO_IN, - self::PRIMARY_LANGUAGE_BR, - self::PRIMARY_LANGUAGE_BR_FR, - self::PRIMARY_LANGUAGE_BRX, - self::PRIMARY_LANGUAGE_BRX_IN, - self::PRIMARY_LANGUAGE_BS, - self::PRIMARY_LANGUAGE_BS_BA, - self::PRIMARY_LANGUAGE_CA, - self::PRIMARY_LANGUAGE_CA_AD, - self::PRIMARY_LANGUAGE_CA_ES, - self::PRIMARY_LANGUAGE_CA_FR, - self::PRIMARY_LANGUAGE_CA_IT, - self::PRIMARY_LANGUAGE_CCP, - self::PRIMARY_LANGUAGE_CCP_BD, - self::PRIMARY_LANGUAGE_CCP_IN, - self::PRIMARY_LANGUAGE_CE, - self::PRIMARY_LANGUAGE_CE_RU, - self::PRIMARY_LANGUAGE_CGG, - self::PRIMARY_LANGUAGE_CGG_UG, - self::PRIMARY_LANGUAGE_CHR, - self::PRIMARY_LANGUAGE_CHR_US, - self::PRIMARY_LANGUAGE_CKB, - self::PRIMARY_LANGUAGE_CKB_IQ, - self::PRIMARY_LANGUAGE_CKB_IR, - self::PRIMARY_LANGUAGE_CS, - self::PRIMARY_LANGUAGE_CS_CZ, - self::PRIMARY_LANGUAGE_CU, - self::PRIMARY_LANGUAGE_CU_RU, - self::PRIMARY_LANGUAGE_CY, - self::PRIMARY_LANGUAGE_CY_GB, - self::PRIMARY_LANGUAGE_DA, - self::PRIMARY_LANGUAGE_DA_DK, - self::PRIMARY_LANGUAGE_DA_GL, - self::PRIMARY_LANGUAGE_DAV, - self::PRIMARY_LANGUAGE_DAV_KE, - self::PRIMARY_LANGUAGE_DE, - self::PRIMARY_LANGUAGE_DE_AT, - self::PRIMARY_LANGUAGE_DE_BE, - self::PRIMARY_LANGUAGE_DE_CH, - self::PRIMARY_LANGUAGE_DE_DE, - self::PRIMARY_LANGUAGE_DE_GR, - self::PRIMARY_LANGUAGE_DE_IT, - self::PRIMARY_LANGUAGE_DE_LI, - self::PRIMARY_LANGUAGE_DE_LU, - self::PRIMARY_LANGUAGE_DJE, - self::PRIMARY_LANGUAGE_DJE_NE, - self::PRIMARY_LANGUAGE_DSB, - self::PRIMARY_LANGUAGE_DSB_DE, - self::PRIMARY_LANGUAGE_DUA, - self::PRIMARY_LANGUAGE_DUA_CM, - self::PRIMARY_LANGUAGE_DYO, - self::PRIMARY_LANGUAGE_DYO_SN, - self::PRIMARY_LANGUAGE_DZ, - self::PRIMARY_LANGUAGE_DZ_BT, - self::PRIMARY_LANGUAGE_EBU, - self::PRIMARY_LANGUAGE_EBU_KE, - self::PRIMARY_LANGUAGE_EE, - self::PRIMARY_LANGUAGE_EE_GH, - self::PRIMARY_LANGUAGE_EE_TG, - self::PRIMARY_LANGUAGE_EL, - self::PRIMARY_LANGUAGE_EL_CY, - self::PRIMARY_LANGUAGE_EL_GR, - self::PRIMARY_LANGUAGE_EN, - self::PRIMARY_LANGUAGE_EN_001, - self::PRIMARY_LANGUAGE_EN_150, - self::PRIMARY_LANGUAGE_EN_AE, - self::PRIMARY_LANGUAGE_EN_AG, - self::PRIMARY_LANGUAGE_EN_AI, - self::PRIMARY_LANGUAGE_EN_AS, - self::PRIMARY_LANGUAGE_EN_AT, - self::PRIMARY_LANGUAGE_EN_AU, - self::PRIMARY_LANGUAGE_EN_BB, - self::PRIMARY_LANGUAGE_EN_BE, - self::PRIMARY_LANGUAGE_EN_BI, - self::PRIMARY_LANGUAGE_EN_BM, - self::PRIMARY_LANGUAGE_EN_BS, - self::PRIMARY_LANGUAGE_EN_BW, - self::PRIMARY_LANGUAGE_EN_BZ, - self::PRIMARY_LANGUAGE_EN_CA, - self::PRIMARY_LANGUAGE_EN_CC, - self::PRIMARY_LANGUAGE_EN_CH, - self::PRIMARY_LANGUAGE_EN_CK, - self::PRIMARY_LANGUAGE_EN_CM, - self::PRIMARY_LANGUAGE_EN_CX, - self::PRIMARY_LANGUAGE_EN_CY, - self::PRIMARY_LANGUAGE_EN_DE, - self::PRIMARY_LANGUAGE_EN_DG, - self::PRIMARY_LANGUAGE_EN_DK, - self::PRIMARY_LANGUAGE_EN_DM, - self::PRIMARY_LANGUAGE_EN_ER, - self::PRIMARY_LANGUAGE_EN_FI, - self::PRIMARY_LANGUAGE_EN_FJ, - self::PRIMARY_LANGUAGE_EN_FK, - self::PRIMARY_LANGUAGE_EN_FM, - self::PRIMARY_LANGUAGE_EN_GB, - self::PRIMARY_LANGUAGE_EN_GD, - self::PRIMARY_LANGUAGE_EN_GG, - self::PRIMARY_LANGUAGE_EN_GH, - self::PRIMARY_LANGUAGE_EN_GI, - self::PRIMARY_LANGUAGE_EN_GM, - self::PRIMARY_LANGUAGE_EN_GU, - self::PRIMARY_LANGUAGE_EN_GY, - self::PRIMARY_LANGUAGE_EN_HK, - self::PRIMARY_LANGUAGE_EN_IE, - self::PRIMARY_LANGUAGE_EN_IL, - self::PRIMARY_LANGUAGE_EN_IM, - self::PRIMARY_LANGUAGE_EN_IN, - self::PRIMARY_LANGUAGE_EN_IO, - self::PRIMARY_LANGUAGE_EN_JE, - self::PRIMARY_LANGUAGE_EN_JM, - self::PRIMARY_LANGUAGE_EN_KE, - self::PRIMARY_LANGUAGE_EN_KI, - self::PRIMARY_LANGUAGE_EN_KN, - self::PRIMARY_LANGUAGE_EN_KY, - self::PRIMARY_LANGUAGE_EN_LC, - self::PRIMARY_LANGUAGE_EN_LR, - self::PRIMARY_LANGUAGE_EN_LS, - self::PRIMARY_LANGUAGE_EN_LU, - self::PRIMARY_LANGUAGE_EN_MG, - self::PRIMARY_LANGUAGE_EN_MH, - self::PRIMARY_LANGUAGE_EN_MO, - self::PRIMARY_LANGUAGE_EN_MP, - self::PRIMARY_LANGUAGE_EN_MS, - self::PRIMARY_LANGUAGE_EN_MT, - self::PRIMARY_LANGUAGE_EN_MU, - self::PRIMARY_LANGUAGE_EN_MW, - self::PRIMARY_LANGUAGE_EN_MY, - self::PRIMARY_LANGUAGE_EN_NA, - self::PRIMARY_LANGUAGE_EN_NF, - self::PRIMARY_LANGUAGE_EN_NG, - self::PRIMARY_LANGUAGE_EN_NL, - self::PRIMARY_LANGUAGE_EN_NR, - self::PRIMARY_LANGUAGE_EN_NU, - self::PRIMARY_LANGUAGE_EN_NZ, - self::PRIMARY_LANGUAGE_EN_PG, - self::PRIMARY_LANGUAGE_EN_PH, - self::PRIMARY_LANGUAGE_EN_PK, - self::PRIMARY_LANGUAGE_EN_PN, - self::PRIMARY_LANGUAGE_EN_PR, - self::PRIMARY_LANGUAGE_EN_PW, - self::PRIMARY_LANGUAGE_EN_RW, - self::PRIMARY_LANGUAGE_EN_SB, - self::PRIMARY_LANGUAGE_EN_SC, - self::PRIMARY_LANGUAGE_EN_SD, - self::PRIMARY_LANGUAGE_EN_SE, - self::PRIMARY_LANGUAGE_EN_SG, - self::PRIMARY_LANGUAGE_EN_SH, - self::PRIMARY_LANGUAGE_EN_SI, - self::PRIMARY_LANGUAGE_EN_SL, - self::PRIMARY_LANGUAGE_EN_SS, - self::PRIMARY_LANGUAGE_EN_SX, - self::PRIMARY_LANGUAGE_EN_SZ, - self::PRIMARY_LANGUAGE_EN_TC, - self::PRIMARY_LANGUAGE_EN_TK, - self::PRIMARY_LANGUAGE_EN_TO, - self::PRIMARY_LANGUAGE_EN_TT, - self::PRIMARY_LANGUAGE_EN_TV, - self::PRIMARY_LANGUAGE_EN_TZ, - self::PRIMARY_LANGUAGE_EN_UG, - self::PRIMARY_LANGUAGE_EN_UM, - self::PRIMARY_LANGUAGE_EN_US, - self::PRIMARY_LANGUAGE_EN_VC, - self::PRIMARY_LANGUAGE_EN_VG, - self::PRIMARY_LANGUAGE_EN_VI, - self::PRIMARY_LANGUAGE_EN_VU, - self::PRIMARY_LANGUAGE_EN_WS, - self::PRIMARY_LANGUAGE_EN_ZA, - self::PRIMARY_LANGUAGE_EN_ZM, - self::PRIMARY_LANGUAGE_EN_ZW, - self::PRIMARY_LANGUAGE_EO, - self::PRIMARY_LANGUAGE_EO_001, - self::PRIMARY_LANGUAGE_ES, - self::PRIMARY_LANGUAGE_ES_419, - self::PRIMARY_LANGUAGE_ES_AR, - self::PRIMARY_LANGUAGE_ES_BO, - self::PRIMARY_LANGUAGE_ES_BR, - self::PRIMARY_LANGUAGE_ES_BZ, - self::PRIMARY_LANGUAGE_ES_CL, - self::PRIMARY_LANGUAGE_ES_CO, - self::PRIMARY_LANGUAGE_ES_CR, - self::PRIMARY_LANGUAGE_ES_CU, - self::PRIMARY_LANGUAGE_ES_DO, - self::PRIMARY_LANGUAGE_ES_EA, - self::PRIMARY_LANGUAGE_ES_EC, - self::PRIMARY_LANGUAGE_ES_ES, - self::PRIMARY_LANGUAGE_ES_GQ, - self::PRIMARY_LANGUAGE_ES_GT, - self::PRIMARY_LANGUAGE_ES_HN, - self::PRIMARY_LANGUAGE_ES_IC, - self::PRIMARY_LANGUAGE_ES_MX, - self::PRIMARY_LANGUAGE_ES_NI, - self::PRIMARY_LANGUAGE_ES_PA, - self::PRIMARY_LANGUAGE_ES_PE, - self::PRIMARY_LANGUAGE_ES_PH, - self::PRIMARY_LANGUAGE_ES_PR, - self::PRIMARY_LANGUAGE_ES_PY, - self::PRIMARY_LANGUAGE_ES_SV, - self::PRIMARY_LANGUAGE_ES_US, - self::PRIMARY_LANGUAGE_ES_UY, - self::PRIMARY_LANGUAGE_ES_VE, - self::PRIMARY_LANGUAGE_ET, - self::PRIMARY_LANGUAGE_ET_EE, - self::PRIMARY_LANGUAGE_EU, - self::PRIMARY_LANGUAGE_EU_ES, - self::PRIMARY_LANGUAGE_EWO, - self::PRIMARY_LANGUAGE_EWO_CM, - self::PRIMARY_LANGUAGE_FA, - self::PRIMARY_LANGUAGE_FA_AF, - self::PRIMARY_LANGUAGE_FA_IR, - self::PRIMARY_LANGUAGE_FF, - self::PRIMARY_LANGUAGE_FF_CM, - self::PRIMARY_LANGUAGE_FF_GN, - self::PRIMARY_LANGUAGE_FF_MR, - self::PRIMARY_LANGUAGE_FF_SN, - self::PRIMARY_LANGUAGE_FI, - self::PRIMARY_LANGUAGE_FI_FI, - self::PRIMARY_LANGUAGE_FIL, - self::PRIMARY_LANGUAGE_FIL_PH, - self::PRIMARY_LANGUAGE_FO, - self::PRIMARY_LANGUAGE_FO_DK, - self::PRIMARY_LANGUAGE_FO_FO, - self::PRIMARY_LANGUAGE_FR, - self::PRIMARY_LANGUAGE_FR_BE, - self::PRIMARY_LANGUAGE_FR_BF, - self::PRIMARY_LANGUAGE_FR_BI, - self::PRIMARY_LANGUAGE_FR_BJ, - self::PRIMARY_LANGUAGE_FR_BL, - self::PRIMARY_LANGUAGE_FR_CA, - self::PRIMARY_LANGUAGE_FR_CD, - self::PRIMARY_LANGUAGE_FR_CF, - self::PRIMARY_LANGUAGE_FR_CG, - self::PRIMARY_LANGUAGE_FR_CH, - self::PRIMARY_LANGUAGE_FR_CI, - self::PRIMARY_LANGUAGE_FR_CM, - self::PRIMARY_LANGUAGE_FR_DJ, - self::PRIMARY_LANGUAGE_FR_DZ, - self::PRIMARY_LANGUAGE_FR_FR, - self::PRIMARY_LANGUAGE_FR_GA, - self::PRIMARY_LANGUAGE_FR_GF, - self::PRIMARY_LANGUAGE_FR_GN, - self::PRIMARY_LANGUAGE_FR_GP, - self::PRIMARY_LANGUAGE_FR_GQ, - self::PRIMARY_LANGUAGE_FR_HT, - self::PRIMARY_LANGUAGE_FR_KM, - self::PRIMARY_LANGUAGE_FR_LU, - self::PRIMARY_LANGUAGE_FR_MA, - self::PRIMARY_LANGUAGE_FR_MC, - self::PRIMARY_LANGUAGE_FR_MF, - self::PRIMARY_LANGUAGE_FR_MG, - self::PRIMARY_LANGUAGE_FR_ML, - self::PRIMARY_LANGUAGE_FR_MQ, - self::PRIMARY_LANGUAGE_FR_MR, - self::PRIMARY_LANGUAGE_FR_MU, - self::PRIMARY_LANGUAGE_FR_NC, - self::PRIMARY_LANGUAGE_FR_NE, - self::PRIMARY_LANGUAGE_FR_PF, - self::PRIMARY_LANGUAGE_FR_PM, - self::PRIMARY_LANGUAGE_FR_RE, - self::PRIMARY_LANGUAGE_FR_RW, - self::PRIMARY_LANGUAGE_FR_SC, - self::PRIMARY_LANGUAGE_FR_SN, - self::PRIMARY_LANGUAGE_FR_SY, - self::PRIMARY_LANGUAGE_FR_TD, - self::PRIMARY_LANGUAGE_FR_TG, - self::PRIMARY_LANGUAGE_FR_TN, - self::PRIMARY_LANGUAGE_FR_VU, - self::PRIMARY_LANGUAGE_FR_WF, - self::PRIMARY_LANGUAGE_FR_YT, - self::PRIMARY_LANGUAGE_FUR, - self::PRIMARY_LANGUAGE_FUR_IT, - self::PRIMARY_LANGUAGE_FY, - self::PRIMARY_LANGUAGE_FY_NL, - self::PRIMARY_LANGUAGE_GA, - self::PRIMARY_LANGUAGE_GA_IE, - self::PRIMARY_LANGUAGE_GD, - self::PRIMARY_LANGUAGE_GD_GB, - self::PRIMARY_LANGUAGE_GL, - self::PRIMARY_LANGUAGE_GL_ES, - self::PRIMARY_LANGUAGE_GSW, - self::PRIMARY_LANGUAGE_GSW_CH, - self::PRIMARY_LANGUAGE_GSW_FR, - self::PRIMARY_LANGUAGE_GSW_LI, - self::PRIMARY_LANGUAGE_GU, - self::PRIMARY_LANGUAGE_GU_IN, - self::PRIMARY_LANGUAGE_GUZ, - self::PRIMARY_LANGUAGE_GUZ_KE, - self::PRIMARY_LANGUAGE_GV, - self::PRIMARY_LANGUAGE_GV_IM, - self::PRIMARY_LANGUAGE_HA, - self::PRIMARY_LANGUAGE_HA_GH, - self::PRIMARY_LANGUAGE_HA_NE, - self::PRIMARY_LANGUAGE_HA_NG, - self::PRIMARY_LANGUAGE_HAW, - self::PRIMARY_LANGUAGE_HAW_US, - self::PRIMARY_LANGUAGE_HE, - self::PRIMARY_LANGUAGE_HI, - self::PRIMARY_LANGUAGE_HI_IN, - self::PRIMARY_LANGUAGE_HR, - self::PRIMARY_LANGUAGE_HR_BA, - self::PRIMARY_LANGUAGE_HR_HR, - self::PRIMARY_LANGUAGE_HSB, - self::PRIMARY_LANGUAGE_HSB_DE, - self::PRIMARY_LANGUAGE_HU, - self::PRIMARY_LANGUAGE_HU_HU, - self::PRIMARY_LANGUAGE_HY, - self::PRIMARY_LANGUAGE_HY_AM, - self::PRIMARY_LANGUAGE_ID, - self::PRIMARY_LANGUAGE_IG, - self::PRIMARY_LANGUAGE_IG_NG, - self::PRIMARY_LANGUAGE_II, - self::PRIMARY_LANGUAGE_II_CN, - self::PRIMARY_LANGUAGE_ID_ID, - self::PRIMARY_LANGUAGE_IS, - self::PRIMARY_LANGUAGE_IS_IS, - self::PRIMARY_LANGUAGE_IT, - self::PRIMARY_LANGUAGE_IT_CH, - self::PRIMARY_LANGUAGE_IT_IT, - self::PRIMARY_LANGUAGE_IT_SM, - self::PRIMARY_LANGUAGE_IT_VA, - self::PRIMARY_LANGUAGE_HE_IL, - self::PRIMARY_LANGUAGE_JA, - self::PRIMARY_LANGUAGE_JA_JP, - self::PRIMARY_LANGUAGE_JGO, - self::PRIMARY_LANGUAGE_JGO_CM, - self::PRIMARY_LANGUAGE_YI, - self::PRIMARY_LANGUAGE_YI_001, - self::PRIMARY_LANGUAGE_JMC, - self::PRIMARY_LANGUAGE_JMC_TZ, - self::PRIMARY_LANGUAGE_KA, - self::PRIMARY_LANGUAGE_KA_GE, - self::PRIMARY_LANGUAGE_KAB, - self::PRIMARY_LANGUAGE_KAB_DZ, - self::PRIMARY_LANGUAGE_KAM, - self::PRIMARY_LANGUAGE_KAM_KE, - self::PRIMARY_LANGUAGE_KDE, - self::PRIMARY_LANGUAGE_KDE_TZ, - self::PRIMARY_LANGUAGE_KEA, - self::PRIMARY_LANGUAGE_KEA_CV, - self::PRIMARY_LANGUAGE_KHQ, - self::PRIMARY_LANGUAGE_KHQ_ML, - self::PRIMARY_LANGUAGE_KI, - self::PRIMARY_LANGUAGE_KI_KE, - self::PRIMARY_LANGUAGE_KK, - self::PRIMARY_LANGUAGE_KK_KZ, - self::PRIMARY_LANGUAGE_KKJ, - self::PRIMARY_LANGUAGE_KKJ_CM, - self::PRIMARY_LANGUAGE_KL, - self::PRIMARY_LANGUAGE_KL_GL, - self::PRIMARY_LANGUAGE_KLN, - self::PRIMARY_LANGUAGE_KLN_KE, - self::PRIMARY_LANGUAGE_KM, - self::PRIMARY_LANGUAGE_KM_KH, - self::PRIMARY_LANGUAGE_KN, - self::PRIMARY_LANGUAGE_KN_IN, - self::PRIMARY_LANGUAGE_KO, - self::PRIMARY_LANGUAGE_KO_KP, - self::PRIMARY_LANGUAGE_KO_KR, - self::PRIMARY_LANGUAGE_KOK, - self::PRIMARY_LANGUAGE_KOK_IN, - self::PRIMARY_LANGUAGE_KS, - self::PRIMARY_LANGUAGE_KS_IN, - self::PRIMARY_LANGUAGE_KSB, - self::PRIMARY_LANGUAGE_KSB_TZ, - self::PRIMARY_LANGUAGE_KSF, - self::PRIMARY_LANGUAGE_KSF_CM, - self::PRIMARY_LANGUAGE_KSH, - self::PRIMARY_LANGUAGE_KSH_DE, - self::PRIMARY_LANGUAGE_KW, - self::PRIMARY_LANGUAGE_KW_GB, - self::PRIMARY_LANGUAGE_KY, - self::PRIMARY_LANGUAGE_KY_KG, - self::PRIMARY_LANGUAGE_LAG, - self::PRIMARY_LANGUAGE_LAG_TZ, - self::PRIMARY_LANGUAGE_LB, - self::PRIMARY_LANGUAGE_LB_LU, - self::PRIMARY_LANGUAGE_LG, - self::PRIMARY_LANGUAGE_LG_UG, - self::PRIMARY_LANGUAGE_LKT, - self::PRIMARY_LANGUAGE_LKT_US, - self::PRIMARY_LANGUAGE_LN, - self::PRIMARY_LANGUAGE_LN_AO, - self::PRIMARY_LANGUAGE_LN_CD, - self::PRIMARY_LANGUAGE_LN_CF, - self::PRIMARY_LANGUAGE_LN_CG, - self::PRIMARY_LANGUAGE_LO, - self::PRIMARY_LANGUAGE_LO_LA, - self::PRIMARY_LANGUAGE_LRC, - self::PRIMARY_LANGUAGE_LRC_IQ, - self::PRIMARY_LANGUAGE_LRC_IR, - self::PRIMARY_LANGUAGE_LT, - self::PRIMARY_LANGUAGE_LT_LT, - self::PRIMARY_LANGUAGE_LU, - self::PRIMARY_LANGUAGE_LU_CD, - self::PRIMARY_LANGUAGE_LUO, - self::PRIMARY_LANGUAGE_LUO_KE, - self::PRIMARY_LANGUAGE_LUY, - self::PRIMARY_LANGUAGE_LUY_KE, - self::PRIMARY_LANGUAGE_LV, - self::PRIMARY_LANGUAGE_LV_LV, - self::PRIMARY_LANGUAGE_MAS, - self::PRIMARY_LANGUAGE_MAS_KE, - self::PRIMARY_LANGUAGE_MAS_TZ, - self::PRIMARY_LANGUAGE_MER, - self::PRIMARY_LANGUAGE_MER_KE, - self::PRIMARY_LANGUAGE_MFE, - self::PRIMARY_LANGUAGE_MFE_MU, - self::PRIMARY_LANGUAGE_MG, - self::PRIMARY_LANGUAGE_MG_MG, - self::PRIMARY_LANGUAGE_MGH, - self::PRIMARY_LANGUAGE_MGH_MZ, - self::PRIMARY_LANGUAGE_MGO, - self::PRIMARY_LANGUAGE_MGO_CM, - self::PRIMARY_LANGUAGE_MK, - self::PRIMARY_LANGUAGE_MK_MK, - self::PRIMARY_LANGUAGE_ML, - self::PRIMARY_LANGUAGE_ML_IN, - self::PRIMARY_LANGUAGE_MN, - self::PRIMARY_LANGUAGE_MN_MN, - self::PRIMARY_LANGUAGE_MR, - self::PRIMARY_LANGUAGE_MR_IN, - self::PRIMARY_LANGUAGE_MS, - self::PRIMARY_LANGUAGE_MS_BN, - self::PRIMARY_LANGUAGE_MS_MY, - self::PRIMARY_LANGUAGE_MS_SG, - self::PRIMARY_LANGUAGE_MT, - self::PRIMARY_LANGUAGE_MT_MT, - self::PRIMARY_LANGUAGE_MUA, - self::PRIMARY_LANGUAGE_MUA_CM, - self::PRIMARY_LANGUAGE_MY, - self::PRIMARY_LANGUAGE_MY_MM, - self::PRIMARY_LANGUAGE_MZN, - self::PRIMARY_LANGUAGE_MZN_IR, - self::PRIMARY_LANGUAGE_NAQ, - self::PRIMARY_LANGUAGE_NAQ_NA, - self::PRIMARY_LANGUAGE_NB, - self::PRIMARY_LANGUAGE_NB_NO, - self::PRIMARY_LANGUAGE_NB_SJ, - self::PRIMARY_LANGUAGE_ND, - self::PRIMARY_LANGUAGE_ND_ZW, - self::PRIMARY_LANGUAGE_NDS, - self::PRIMARY_LANGUAGE_NDS_DE, - self::PRIMARY_LANGUAGE_NDS_NL, - self::PRIMARY_LANGUAGE_NE, - self::PRIMARY_LANGUAGE_NE_IN, - self::PRIMARY_LANGUAGE_NE_NP, - self::PRIMARY_LANGUAGE_NL, - self::PRIMARY_LANGUAGE_NL_AW, - self::PRIMARY_LANGUAGE_NL_BE, - self::PRIMARY_LANGUAGE_NL_CH, - self::PRIMARY_LANGUAGE_NL_BQ, - self::PRIMARY_LANGUAGE_NL_CW, - self::PRIMARY_LANGUAGE_NL_LU, - self::PRIMARY_LANGUAGE_NL_NL, - self::PRIMARY_LANGUAGE_NL_SR, - self::PRIMARY_LANGUAGE_NL_SX, - self::PRIMARY_LANGUAGE_NMG, - self::PRIMARY_LANGUAGE_NMG_CM, - self::PRIMARY_LANGUAGE_NN, - self::PRIMARY_LANGUAGE_NN_NO, - self::PRIMARY_LANGUAGE_NNH, - self::PRIMARY_LANGUAGE_NNH_CM, - self::PRIMARY_LANGUAGE_NO, - self::PRIMARY_LANGUAGE_NO_NO, - self::PRIMARY_LANGUAGE_NUS, - self::PRIMARY_LANGUAGE_NUS_SS, - self::PRIMARY_LANGUAGE_NYN, - self::PRIMARY_LANGUAGE_NYN_UG, - self::PRIMARY_LANGUAGE_OM, - self::PRIMARY_LANGUAGE_OM_ET, - self::PRIMARY_LANGUAGE_OM_KE, - self::PRIMARY_LANGUAGE__OR, - self::PRIMARY_LANGUAGE_OR_IN, - self::PRIMARY_LANGUAGE_OS, - self::PRIMARY_LANGUAGE_OS_GE, - self::PRIMARY_LANGUAGE_OS_RU, - self::PRIMARY_LANGUAGE_PA, - self::PRIMARY_LANGUAGE_PA_IN, - self::PRIMARY_LANGUAGE_PA_PK, - self::PRIMARY_LANGUAGE_PL, - self::PRIMARY_LANGUAGE_PL_PL, - self::PRIMARY_LANGUAGE_PRG, - self::PRIMARY_LANGUAGE_PRG_001, - self::PRIMARY_LANGUAGE_PS, - self::PRIMARY_LANGUAGE_PS_AF, - self::PRIMARY_LANGUAGE_PT, - self::PRIMARY_LANGUAGE_PT_AO, - self::PRIMARY_LANGUAGE_PT_BR, - self::PRIMARY_LANGUAGE_PT_CH, - self::PRIMARY_LANGUAGE_PT_CV, - self::PRIMARY_LANGUAGE_PT_GQ, - self::PRIMARY_LANGUAGE_PT_GW, - self::PRIMARY_LANGUAGE_PT_LU, - self::PRIMARY_LANGUAGE_PT_MO, - self::PRIMARY_LANGUAGE_PT_MZ, - self::PRIMARY_LANGUAGE_PT_PT, - self::PRIMARY_LANGUAGE_PT_ST, - self::PRIMARY_LANGUAGE_PT_TL, - self::PRIMARY_LANGUAGE_QU, - self::PRIMARY_LANGUAGE_QU_BO, - self::PRIMARY_LANGUAGE_QU_EC, - self::PRIMARY_LANGUAGE_QU_PE, - self::PRIMARY_LANGUAGE_RM, - self::PRIMARY_LANGUAGE_RM_CH, - self::PRIMARY_LANGUAGE_RN, - self::PRIMARY_LANGUAGE_RN_BI, - self::PRIMARY_LANGUAGE_RO, - self::PRIMARY_LANGUAGE_RO_MD, - self::PRIMARY_LANGUAGE_RO_RO, - self::PRIMARY_LANGUAGE_ROF, - self::PRIMARY_LANGUAGE_ROF_TZ, - self::PRIMARY_LANGUAGE_RU, - self::PRIMARY_LANGUAGE_RU_BY, - self::PRIMARY_LANGUAGE_RU_KG, - self::PRIMARY_LANGUAGE_RU_KZ, - self::PRIMARY_LANGUAGE_RU_MD, - self::PRIMARY_LANGUAGE_RU_RU, - self::PRIMARY_LANGUAGE_RU_UA, - self::PRIMARY_LANGUAGE_RW, - self::PRIMARY_LANGUAGE_RW_RW, - self::PRIMARY_LANGUAGE_RWK, - self::PRIMARY_LANGUAGE_RWK_TZ, - self::PRIMARY_LANGUAGE_SA, - self::PRIMARY_LANGUAGE_SAH, - self::PRIMARY_LANGUAGE_SAH_RU, - self::PRIMARY_LANGUAGE_SAQ, - self::PRIMARY_LANGUAGE_SAQ_KE, - self::PRIMARY_LANGUAGE_SBP, - self::PRIMARY_LANGUAGE_SBP_TZ, - self::PRIMARY_LANGUAGE_SD, - self::PRIMARY_LANGUAGE_SD_PK, - self::PRIMARY_LANGUAGE_SE, - self::PRIMARY_LANGUAGE_SE_FI, - self::PRIMARY_LANGUAGE_SE_NO, - self::PRIMARY_LANGUAGE_SE_SE, - self::PRIMARY_LANGUAGE_SEH, - self::PRIMARY_LANGUAGE_SEH_MZ, - self::PRIMARY_LANGUAGE_SES, - self::PRIMARY_LANGUAGE_SES_ML, - self::PRIMARY_LANGUAGE_SG, - self::PRIMARY_LANGUAGE_SG_CF, - self::PRIMARY_LANGUAGE_SHI, - self::PRIMARY_LANGUAGE_SHI_MA, - self::PRIMARY_LANGUAGE_SI, - self::PRIMARY_LANGUAGE_SI_LK, - self::PRIMARY_LANGUAGE_SK, - self::PRIMARY_LANGUAGE_SK_SK, - self::PRIMARY_LANGUAGE_SL, - self::PRIMARY_LANGUAGE_SL_SI, - self::PRIMARY_LANGUAGE_SMN, - self::PRIMARY_LANGUAGE_SMN_FI, - self::PRIMARY_LANGUAGE_SN, - self::PRIMARY_LANGUAGE_SN_ZW, - self::PRIMARY_LANGUAGE_SO, - self::PRIMARY_LANGUAGE_SO_DJ, - self::PRIMARY_LANGUAGE_SO_ET, - self::PRIMARY_LANGUAGE_SO_KE, - self::PRIMARY_LANGUAGE_SO_SO, - self::PRIMARY_LANGUAGE_SQ, - self::PRIMARY_LANGUAGE_SQ_AL, - self::PRIMARY_LANGUAGE_SQ_MK, - self::PRIMARY_LANGUAGE_SQ_XK, - self::PRIMARY_LANGUAGE_SR, - self::PRIMARY_LANGUAGE_SR_BA, - self::PRIMARY_LANGUAGE_SR_CS, - self::PRIMARY_LANGUAGE_SR_ME, - self::PRIMARY_LANGUAGE_SR_RS, - self::PRIMARY_LANGUAGE_SR_XK, - self::PRIMARY_LANGUAGE_SV, - self::PRIMARY_LANGUAGE_SV_AX, - self::PRIMARY_LANGUAGE_SV_FI, - self::PRIMARY_LANGUAGE_SV_SE, - self::PRIMARY_LANGUAGE_SW, - self::PRIMARY_LANGUAGE_SW_CD, - self::PRIMARY_LANGUAGE_SW_KE, - self::PRIMARY_LANGUAGE_SW_TZ, - self::PRIMARY_LANGUAGE_SW_UG, - self::PRIMARY_LANGUAGE_SY, - self::PRIMARY_LANGUAGE_TA, - self::PRIMARY_LANGUAGE_TA_IN, - self::PRIMARY_LANGUAGE_TA_LK, - self::PRIMARY_LANGUAGE_TA_MY, - self::PRIMARY_LANGUAGE_TA_SG, - self::PRIMARY_LANGUAGE_TE, - self::PRIMARY_LANGUAGE_TE_IN, - self::PRIMARY_LANGUAGE_TEO, - self::PRIMARY_LANGUAGE_TEO_KE, - self::PRIMARY_LANGUAGE_TEO_UG, - self::PRIMARY_LANGUAGE_TG, - self::PRIMARY_LANGUAGE_TG_TJ, - self::PRIMARY_LANGUAGE_TH, - self::PRIMARY_LANGUAGE_TH_TH, - self::PRIMARY_LANGUAGE_TI, - self::PRIMARY_LANGUAGE_TI_ER, - self::PRIMARY_LANGUAGE_TI_ET, - self::PRIMARY_LANGUAGE_TK, - self::PRIMARY_LANGUAGE_TK_TM, - self::PRIMARY_LANGUAGE_TO, - self::PRIMARY_LANGUAGE_TO_TO, - self::PRIMARY_LANGUAGE_TR, - self::PRIMARY_LANGUAGE_TR_CY, - self::PRIMARY_LANGUAGE_TR_TR, - self::PRIMARY_LANGUAGE_TT, - self::PRIMARY_LANGUAGE_TT_RU, - self::PRIMARY_LANGUAGE_TWQ, - self::PRIMARY_LANGUAGE_TWQ_NE, - self::PRIMARY_LANGUAGE_TZM, - self::PRIMARY_LANGUAGE_TZM_MA, - self::PRIMARY_LANGUAGE_UG, - self::PRIMARY_LANGUAGE_UG_CN, - self::PRIMARY_LANGUAGE_UK, - self::PRIMARY_LANGUAGE_UK_UA, - self::PRIMARY_LANGUAGE_UR, - self::PRIMARY_LANGUAGE_UR_IN, - self::PRIMARY_LANGUAGE_UR_PK, - self::PRIMARY_LANGUAGE_UZ, - self::PRIMARY_LANGUAGE_UZ_AF, - self::PRIMARY_LANGUAGE_UZ_UZ, - self::PRIMARY_LANGUAGE_VAI, - self::PRIMARY_LANGUAGE_VAI_LR, - self::PRIMARY_LANGUAGE_VI, - self::PRIMARY_LANGUAGE_VI_VN, - self::PRIMARY_LANGUAGE_VO, - self::PRIMARY_LANGUAGE_VO_001, - self::PRIMARY_LANGUAGE_VUN, - self::PRIMARY_LANGUAGE_VUN_TZ, - self::PRIMARY_LANGUAGE_WAE, - self::PRIMARY_LANGUAGE_WAE_CH, - self::PRIMARY_LANGUAGE_WO, - self::PRIMARY_LANGUAGE_WO_SN, - self::PRIMARY_LANGUAGE_XOG, - self::PRIMARY_LANGUAGE_XOG_UG, - self::PRIMARY_LANGUAGE_YAV, - self::PRIMARY_LANGUAGE_YAV_CM, - self::PRIMARY_LANGUAGE_YO, - self::PRIMARY_LANGUAGE_YO_BJ, - self::PRIMARY_LANGUAGE_YO_NG, - self::PRIMARY_LANGUAGE_YUE, - self::PRIMARY_LANGUAGE_YUE_CN, - self::PRIMARY_LANGUAGE_YUE_HK, - self::PRIMARY_LANGUAGE_ZGH, - self::PRIMARY_LANGUAGE_ZGH_MA, - self::PRIMARY_LANGUAGE_ZH, - self::PRIMARY_LANGUAGE_ZH_CN, - self::PRIMARY_LANGUAGE_ZH_HK, - self::PRIMARY_LANGUAGE_ZH_MO, - self::PRIMARY_LANGUAGE_ZH_SG, - self::PRIMARY_LANGUAGE_ZH_TW, - self::PRIMARY_LANGUAGE_ZH_HANS, - self::PRIMARY_LANGUAGE_ZH_HANT, - self::PRIMARY_LANGUAGE_ZU, - self::PRIMARY_LANGUAGE_ZU_ZA, - ]; - } /** * Associative array for storing property values @@ -3070,8 +192,8 @@ public function getPrimaryLanguageAllowableValues() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; $this->container['language'] = $data['language'] ?? null; + $this->container['id'] = $data['id'] ?? null; $this->container['primary_id'] = $data['primary_id'] ?? null; $this->container['primary_language'] = $data['primary_language'] ?? null; } @@ -3085,33 +207,15 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' 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['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } - if ($this->container['primary_id'] === null) { $invalidProperties[] = "'primary_id' can't be null"; } - $allowedValues = $this->getPrimaryLanguageAllowableValues(); - if (!is_null($this->container['primary_language']) && !in_array($this->container['primary_language'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'primary_language', must be one of '%s'", - $this->container['primary_language'], - implode("', '", $allowedValues) - ); - } - return $invalidProperties; } @@ -3128,59 +232,49 @@ public function valid() /** - * 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) { - $this->container['id'] = $id; + $this->container['language'] = $language; return $this; } /** - * 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) { - $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; + $this->container['id'] = $id; return $this; } @@ -3228,16 +322,6 @@ public function getPrimaryLanguage() */ public function setPrimaryLanguage($primary_language) { - $allowedValues = $this->getPrimaryLanguageAllowableValues(); - if (!is_null($primary_language) && !in_array($primary_language, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'primary_language', must be one of '%s'", - $primary_language, - implode("', '", $allowedValues) - ) - ); - } $this->container['primary_language'] = $primary_language; return $this; diff --git a/codegen/Cms/Blogs/Tags/Model/BatchInputJsonNode.php b/codegen/Cms/Blogs/Tags/Model/BatchInputJsonNode.php index e845ece1..ab62dc91 100644 --- a/codegen/Cms/Blogs/Tags/Model/BatchInputJsonNode.php +++ b/codegen/Cms/Blogs/Tags/Model/BatchInputJsonNode.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Tags/Model/BatchInputString.php b/codegen/Cms/Blogs/Tags/Model/BatchInputString.php index da17a08a..cb7ce62d 100644 --- a/codegen/Cms/Blogs/Tags/Model/BatchInputString.php +++ b/codegen/Cms/Blogs/Tags/Model/BatchInputString.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Tags/Model/BatchInputTag.php b/codegen/Cms/Blogs/Tags/Model/BatchInputTag.php index 876008e0..d3f5adcf 100644 --- a/codegen/Cms/Blogs/Tags/Model/BatchInputTag.php +++ b/codegen/Cms/Blogs/Tags/Model/BatchInputTag.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Tags/Model/BatchResponseTag.php b/codegen/Cms/Blogs/Tags/Model/BatchResponseTag.php index c975bfac..17f852fb 100644 --- a/codegen/Cms/Blogs/Tags/Model/BatchResponseTag.php +++ b/codegen/Cms/Blogs/Tags/Model/BatchResponseTag.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,12 +58,12 @@ class BatchResponseTag implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', - 'results' => '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag[]', + 'completed_at' => '\DateTime', 'requested_at' => '\DateTime', 'started_at' => '\DateTime', - 'completed_at' => '\DateTime', - 'links' => 'array' + 'links' => 'array', + 'results' => '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag[]', + 'status' => 'string' ]; /** @@ -74,12 +74,12 @@ class BatchResponseTag implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'status' => null, - 'results' => null, + 'completed_at' => 'date-time', 'requested_at' => 'date-time', 'started_at' => 'date-time', - 'completed_at' => 'date-time', - 'links' => null + 'links' => null, + 'results' => null, + 'status' => null ]; /** @@ -109,12 +109,12 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'status' => 'status', - 'results' => 'results', + 'completed_at' => 'completedAt', 'requested_at' => 'requestedAt', 'started_at' => 'startedAt', - 'completed_at' => 'completedAt', - 'links' => 'links' + 'links' => 'links', + 'results' => 'results', + 'status' => 'status' ]; /** @@ -123,12 +123,12 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'status' => 'setStatus', - 'results' => 'setResults', + 'completed_at' => 'setCompletedAt', 'requested_at' => 'setRequestedAt', 'started_at' => 'setStartedAt', - 'completed_at' => 'setCompletedAt', - 'links' => 'setLinks' + 'links' => 'setLinks', + 'results' => 'setResults', + 'status' => 'setStatus' ]; /** @@ -137,12 +137,12 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'status' => 'getStatus', - 'results' => 'getResults', + 'completed_at' => 'getCompletedAt', 'requested_at' => 'getRequestedAt', 'started_at' => 'getStartedAt', - 'completed_at' => 'getCompletedAt', - 'links' => 'getLinks' + 'links' => 'getLinks', + 'results' => 'getResults', + 'status' => 'getStatus' ]; /** @@ -221,12 +221,12 @@ public function getStatusAllowableValues() */ public function __construct(array $data = null) { - $this->container['status'] = $data['status'] ?? null; - $this->container['results'] = $data['results'] ?? null; + $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['requested_at'] = $data['requested_at'] ?? null; $this->container['started_at'] = $data['started_at'] ?? null; - $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['results'] = $data['results'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -238,6 +238,15 @@ public function listInvalidProperties() { $invalidProperties = []; + 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['status'] === null) { $invalidProperties[] = "'status' can't be null"; } @@ -250,15 +259,6 @@ public function listInvalidProperties() ); } - 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['completed_at'] === null) { - $invalidProperties[] = "'completed_at' can't be null"; - } return $invalidProperties; } @@ -275,59 +275,25 @@ public function valid() /** - * Gets status - * - * @return string - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string $status Status of batch operation. - * - * @return self - */ - public function setStatus($status) - { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; - - return $this; - } - - /** - * Gets results + * Gets completed_at * - * @return \HubSpot\Client\Cms\Blogs\Tags\Model\Tag[] + * @return \DateTime */ - public function getResults() + public function getCompletedAt() { - return $this->container['results']; + return $this->container['completed_at']; } /** - * Sets results + * Sets completed_at * - * @param \HubSpot\Client\Cms\Blogs\Tags\Model\Tag[] $results Results of batch operation. + * @param \DateTime $completed_at Time of batch operation completion. * * @return self */ - public function setResults($results) + public function setCompletedAt($completed_at) { - $this->container['results'] = $results; + $this->container['completed_at'] = $completed_at; return $this; } @@ -381,49 +347,83 @@ public function setStartedAt($started_at) } /** - * Gets completed_at + * Gets links * - * @return \DateTime + * @return array|null */ - public function getCompletedAt() + public function getLinks() { - return $this->container['completed_at']; + return $this->container['links']; } /** - * Sets completed_at + * Sets links * - * @param \DateTime $completed_at Time of batch operation completion. + * @param array|null $links Links associated with batch operation. * * @return self */ - public function setCompletedAt($completed_at) + public function setLinks($links) { - $this->container['completed_at'] = $completed_at; + $this->container['links'] = $links; return $this; } /** - * Gets links + * Gets results * - * @return array|null + * @return \HubSpot\Client\Cms\Blogs\Tags\Model\Tag[] */ - public function getLinks() + public function getResults() { - return $this->container['links']; + return $this->container['results']; } /** - * Sets links + * Sets results * - * @param array|null $links Links associated with batch operation. + * @param \HubSpot\Client\Cms\Blogs\Tags\Model\Tag[] $results Results of batch operation. * * @return self */ - public function setLinks($links) + public function setResults($results) { - $this->container['links'] = $links; + $this->container['results'] = $results; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status Status of batch operation. + * + * @return self + */ + public function setStatus($status) + { + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; return $this; } diff --git a/codegen/Cms/Blogs/Tags/Model/BatchResponseTagWithErrors.php b/codegen/Cms/Blogs/Tags/Model/BatchResponseTagWithErrors.php index a77505b9..ae9da3cf 100644 --- a/codegen/Cms/Blogs/Tags/Model/BatchResponseTagWithErrors.php +++ b/codegen/Cms/Blogs/Tags/Model/BatchResponseTagWithErrors.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,14 +58,14 @@ class BatchResponseTagWithErrors implements ModelInterface, ArrayAccess, \JsonSe * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', - 'results' => '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag[]', + 'completed_at' => '\DateTime', 'num_errors' => 'int', - 'errors' => '\HubSpot\Client\Cms\Blogs\Tags\Model\StandardError[]', 'requested_at' => '\DateTime', 'started_at' => '\DateTime', - 'completed_at' => '\DateTime', - 'links' => 'array' + 'links' => 'array', + 'results' => '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag[]', + 'errors' => '\HubSpot\Client\Cms\Blogs\Tags\Model\StandardError[]', + 'status' => 'string' ]; /** @@ -76,14 +76,14 @@ class BatchResponseTagWithErrors implements ModelInterface, ArrayAccess, \JsonSe * @psalm-var array */ protected static $openAPIFormats = [ - 'status' => null, - 'results' => null, + 'completed_at' => 'date-time', 'num_errors' => 'int32', - 'errors' => null, 'requested_at' => 'date-time', 'started_at' => 'date-time', - 'completed_at' => 'date-time', - 'links' => null + 'links' => null, + 'results' => null, + 'errors' => null, + 'status' => null ]; /** @@ -113,14 +113,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'status' => 'status', - 'results' => 'results', + 'completed_at' => 'completedAt', 'num_errors' => 'numErrors', - 'errors' => 'errors', 'requested_at' => 'requestedAt', 'started_at' => 'startedAt', - 'completed_at' => 'completedAt', - 'links' => 'links' + 'links' => 'links', + 'results' => 'results', + 'errors' => 'errors', + 'status' => 'status' ]; /** @@ -129,14 +129,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'status' => 'setStatus', - 'results' => 'setResults', + 'completed_at' => 'setCompletedAt', 'num_errors' => 'setNumErrors', - 'errors' => 'setErrors', 'requested_at' => 'setRequestedAt', 'started_at' => 'setStartedAt', - 'completed_at' => 'setCompletedAt', - 'links' => 'setLinks' + 'links' => 'setLinks', + 'results' => 'setResults', + 'errors' => 'setErrors', + 'status' => 'setStatus' ]; /** @@ -145,14 +145,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'status' => 'getStatus', - 'results' => 'getResults', + 'completed_at' => 'getCompletedAt', 'num_errors' => 'getNumErrors', - 'errors' => 'getErrors', 'requested_at' => 'getRequestedAt', 'started_at' => 'getStartedAt', - 'completed_at' => 'getCompletedAt', - 'links' => 'getLinks' + 'links' => 'getLinks', + 'results' => 'getResults', + 'errors' => 'getErrors', + 'status' => 'getStatus' ]; /** @@ -231,14 +231,14 @@ public function getStatusAllowableValues() */ public function __construct(array $data = null) { - $this->container['status'] = $data['status'] ?? null; - $this->container['results'] = $data['results'] ?? null; + $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['num_errors'] = $data['num_errors'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['requested_at'] = $data['requested_at'] ?? null; $this->container['started_at'] = $data['started_at'] ?? null; - $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['results'] = $data['results'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -250,6 +250,15 @@ public function listInvalidProperties() { $invalidProperties = []; + 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['status'] === null) { $invalidProperties[] = "'status' can't be null"; } @@ -262,15 +271,6 @@ public function listInvalidProperties() ); } - 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['completed_at'] === null) { - $invalidProperties[] = "'completed_at' can't be null"; - } return $invalidProperties; } @@ -287,203 +287,203 @@ public function valid() /** - * Gets status + * Gets completed_at * - * @return string + * @return \DateTime */ - public function getStatus() + public function getCompletedAt() { - return $this->container['status']; + return $this->container['completed_at']; } /** - * Sets status + * Sets completed_at * - * @param string $status Status of batch operation. + * @param \DateTime $completed_at Time of batch operation completion. * * @return self */ - public function setStatus($status) + public function setCompletedAt($completed_at) { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; + $this->container['completed_at'] = $completed_at; return $this; } /** - * Gets results + * Gets num_errors * - * @return \HubSpot\Client\Cms\Blogs\Tags\Model\Tag[] + * @return int|null */ - public function getResults() + public function getNumErrors() { - return $this->container['results']; + return $this->container['num_errors']; } /** - * Sets results + * Sets num_errors * - * @param \HubSpot\Client\Cms\Blogs\Tags\Model\Tag[] $results Results of batch operation. + * @param int|null $num_errors Number of errors. * * @return self */ - public function setResults($results) + public function setNumErrors($num_errors) { - $this->container['results'] = $results; + $this->container['num_errors'] = $num_errors; return $this; } /** - * Gets num_errors + * Gets requested_at * - * @return int|null + * @return \DateTime|null */ - public function getNumErrors() + public function getRequestedAt() { - return $this->container['num_errors']; + return $this->container['requested_at']; } /** - * Sets num_errors + * Sets requested_at * - * @param int|null $num_errors Number of errors. + * @param \DateTime|null $requested_at Time of batch operation request. * * @return self */ - public function setNumErrors($num_errors) + public function setRequestedAt($requested_at) { - $this->container['num_errors'] = $num_errors; + $this->container['requested_at'] = $requested_at; return $this; } /** - * Gets errors + * Gets started_at * - * @return \HubSpot\Client\Cms\Blogs\Tags\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\Blogs\Tags\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) { - $this->container['errors'] = $errors; + $this->container['started_at'] = $started_at; 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) { - $this->container['requested_at'] = $requested_at; + $this->container['links'] = $links; return $this; } /** - * Gets started_at + * Gets results * - * @return \DateTime + * @return \HubSpot\Client\Cms\Blogs\Tags\Model\Tag[] */ - public function getStartedAt() + public function getResults() { - return $this->container['started_at']; + return $this->container['results']; } /** - * Sets started_at + * Sets results * - * @param \DateTime $started_at Time of batch operation start. + * @param \HubSpot\Client\Cms\Blogs\Tags\Model\Tag[] $results Results of batch operation. * * @return self */ - public function setStartedAt($started_at) + public function setResults($results) { - $this->container['started_at'] = $started_at; + $this->container['results'] = $results; return $this; } /** - * Gets completed_at + * Gets errors * - * @return \DateTime + * @return \HubSpot\Client\Cms\Blogs\Tags\Model\StandardError[]|null */ - public function getCompletedAt() + public function getErrors() { - return $this->container['completed_at']; + return $this->container['errors']; } /** - * Sets completed_at + * Sets errors * - * @param \DateTime $completed_at Time of batch operation completion. + * @param \HubSpot\Client\Cms\Blogs\Tags\Model\StandardError[]|null $errors Errors in batch operation. * * @return self */ - public function setCompletedAt($completed_at) + public function setErrors($errors) { - $this->container['completed_at'] = $completed_at; + $this->container['errors'] = $errors; return $this; } /** - * Gets links + * Gets status * - * @return array|null + * @return string */ - public function getLinks() + public function getStatus() { - return $this->container['links']; + return $this->container['status']; } /** - * Sets links + * Sets status * - * @param array|null $links Links associated with batch operation. + * @param string $status Status of batch operation. * * @return self */ - public function setLinks($links) + public function setStatus($status) { - $this->container['links'] = $links; + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; return $this; } diff --git a/codegen/Cms/Blogs/Tags/Model/CollectionResponseWithTotalTagForwardPaging.php b/codegen/Cms/Blogs/Tags/Model/CollectionResponseWithTotalTagForwardPaging.php index 99774c98..eae14599 100644 --- a/codegen/Cms/Blogs/Tags/Model/CollectionResponseWithTotalTagForwardPaging.php +++ b/codegen/Cms/Blogs/Tags/Model/CollectionResponseWithTotalTagForwardPaging.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -59,8 +59,8 @@ class CollectionResponseWithTotalTagForwardPaging implements ModelInterface, Arr */ protected static $openAPITypes = [ 'total' => 'int', - 'results' => '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag[]', - 'paging' => '\HubSpot\Client\Cms\Blogs\Tags\Model\ForwardPaging' + 'paging' => '\HubSpot\Client\Cms\Blogs\Tags\Model\ForwardPaging', + 'results' => '\HubSpot\Client\Cms\Blogs\Tags\Model\Tag[]' ]; /** @@ -72,8 +72,8 @@ class CollectionResponseWithTotalTagForwardPaging implements ModelInterface, Arr */ protected static $openAPIFormats = [ 'total' => 'int32', - 'results' => null, - 'paging' => null + 'paging' => null, + 'results' => null ]; /** @@ -104,8 +104,8 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'total' => 'total', - 'results' => 'results', - 'paging' => 'paging' + 'paging' => 'paging', + 'results' => 'results' ]; /** @@ -115,8 +115,8 @@ public static function openAPIFormats() */ protected static $setters = [ 'total' => 'setTotal', - 'results' => 'setResults', - 'paging' => 'setPaging' + 'paging' => 'setPaging', + 'results' => 'setResults' ]; /** @@ -126,8 +126,8 @@ public static function openAPIFormats() */ protected static $getters = [ 'total' => 'getTotal', - 'results' => 'getResults', - 'paging' => 'getPaging' + 'paging' => 'getPaging', + 'results' => 'getResults' ]; /** @@ -188,8 +188,8 @@ public function getModelName() public function __construct(array $data = null) { $this->container['total'] = $data['total'] ?? null; - $this->container['results'] = $data['results'] ?? null; $this->container['paging'] = $data['paging'] ?? null; + $this->container['results'] = $data['results'] ?? null; } /** @@ -247,49 +247,49 @@ public function setTotal($total) } /** - * Gets results + * Gets paging * - * @return \HubSpot\Client\Cms\Blogs\Tags\Model\Tag[] + * @return \HubSpot\Client\Cms\Blogs\Tags\Model\ForwardPaging|null */ - public function getResults() + public function getPaging() { - return $this->container['results']; + return $this->container['paging']; } /** - * Sets results + * Sets paging * - * @param \HubSpot\Client\Cms\Blogs\Tags\Model\Tag[] $results Collection of blog tags. + * @param \HubSpot\Client\Cms\Blogs\Tags\Model\ForwardPaging|null $paging paging * * @return self */ - public function setResults($results) + public function setPaging($paging) { - $this->container['results'] = $results; + $this->container['paging'] = $paging; return $this; } /** - * Gets paging + * Gets results * - * @return \HubSpot\Client\Cms\Blogs\Tags\Model\ForwardPaging|null + * @return \HubSpot\Client\Cms\Blogs\Tags\Model\Tag[] */ - public function getPaging() + public function getResults() { - return $this->container['paging']; + return $this->container['results']; } /** - * Sets paging + * Sets results * - * @param \HubSpot\Client\Cms\Blogs\Tags\Model\ForwardPaging|null $paging paging + * @param \HubSpot\Client\Cms\Blogs\Tags\Model\Tag[] $results Collection of blog tags. * * @return self */ - public function setPaging($paging) + public function setResults($results) { - $this->container['paging'] = $paging; + $this->container['results'] = $results; return $this; } diff --git a/codegen/Cms/Blogs/Tags/Model/DetachFromLangGroupRequestVNext.php b/codegen/Cms/Blogs/Tags/Model/DetachFromLangGroupRequestVNext.php index 90e1a042..c5757456 100644 --- a/codegen/Cms/Blogs/Tags/Model/DetachFromLangGroupRequestVNext.php +++ b/codegen/Cms/Blogs/Tags/Model/DetachFromLangGroupRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Tags/Model/Error.php b/codegen/Cms/Blogs/Tags/Model/Error.php index 342a28d9..20f5a51c 100644 --- a/codegen/Cms/Blogs/Tags/Model/Error.php +++ b/codegen/Cms/Blogs/Tags/Model/Error.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'correlation_id' => 'string', - 'category' => 'string', 'sub_category' => 'string', - 'errors' => '\HubSpot\Client\Cms\Blogs\Tags\Model\ErrorDetail[]', 'context' => 'array', - 'links' => 'array' + 'correlation_id' => 'string', + 'links' => 'array', + 'message' => 'string', + 'category' => 'string', + 'errors' => '\HubSpot\Client\Cms\Blogs\Tags\Model\ErrorDetail[]' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'correlation_id' => 'uuid', - 'category' => null, 'sub_category' => null, - 'errors' => null, 'context' => null, - 'links' => null + 'correlation_id' => 'uuid', + 'links' => null, + 'message' => null, + 'category' => null, + 'errors' => null ]; /** @@ -110,13 +110,13 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'correlation_id' => 'correlationId', - 'category' => 'category', 'sub_category' => 'subCategory', - 'errors' => 'errors', 'context' => 'context', - 'links' => 'links' + 'correlation_id' => 'correlationId', + 'links' => 'links', + 'message' => 'message', + 'category' => 'category', + 'errors' => 'errors' ]; /** @@ -125,13 +125,13 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'correlation_id' => 'setCorrelationId', - 'category' => 'setCategory', 'sub_category' => 'setSubCategory', - 'errors' => 'setErrors', 'context' => 'setContext', - 'links' => 'setLinks' + 'correlation_id' => 'setCorrelationId', + 'links' => 'setLinks', + 'message' => 'setMessage', + 'category' => 'setCategory', + 'errors' => 'setErrors' ]; /** @@ -140,13 +140,13 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'correlation_id' => 'getCorrelationId', - 'category' => 'getCategory', 'sub_category' => 'getSubCategory', - 'errors' => 'getErrors', 'context' => 'getContext', - 'links' => 'getLinks' + 'correlation_id' => 'getCorrelationId', + 'links' => 'getLinks', + 'message' => 'getMessage', + 'category' => 'getCategory', + 'errors' => 'getErrors' ]; /** @@ -206,13 +206,13 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['correlation_id'] = $data['correlation_id'] ?? null; - $this->container['category'] = $data['category'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['correlation_id'] = $data['correlation_id'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['message'] = $data['message'] ?? null; + $this->container['category'] = $data['category'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; } /** @@ -224,12 +224,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' 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"; } @@ -249,169 +249,169 @@ public function valid() /** - * 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) { - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets correlation_id + * Gets context * - * @return string + * @return array|null */ - public function getCorrelationId() + public function getContext() { - return $this->container['correlation_id']; + return $this->container['context']; } /** - * Sets correlation_id + * Sets context * - * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets + * @param array|null $context Context about the error condition * * @return self */ - public function setCorrelationId($correlation_id) + public function setContext($context) { - $this->container['correlation_id'] = $correlation_id; + $this->container['context'] = $context; return $this; } /** - * Gets category + * Gets correlation_id * * @return string */ - public function getCategory() + public function getCorrelationId() { - return $this->container['category']; + return $this->container['correlation_id']; } /** - * Sets category + * Sets correlation_id * - * @param string $category The error category + * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets * * @return self */ - public function setCategory($category) + public function setCorrelationId($correlation_id) { - $this->container['category'] = $category; + $this->container['correlation_id'] = $correlation_id; return $this; } /** - * Gets sub_category + * Gets links * - * @return string|null + * @return array|null */ - public function getSubCategory() + public function getLinks() { - return $this->container['sub_category']; + return $this->container['links']; } /** - * Sets sub_category + * Sets links * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps * * @return self */ - public function setSubCategory($sub_category) + public function setLinks($links) { - $this->container['sub_category'] = $sub_category; + $this->container['links'] = $links; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\Blogs\Tags\Model\ErrorDetail[]|null + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\Blogs\Tags\Model\ErrorDetail[]|null $errors further information about the error + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets category * - * @return array|null + * @return string */ - public function getContext() + public function getCategory() { - return $this->container['context']; + return $this->container['category']; } /** - * Sets context + * Sets category * - * @param array|null $context Context about the error condition + * @param string $category The error category * * @return self */ - public function setContext($context) + public function setCategory($category) { - $this->container['context'] = $context; + $this->container['category'] = $category; return $this; } /** - * Gets links + * Gets errors * - * @return array|null + * @return \HubSpot\Client\Cms\Blogs\Tags\Model\ErrorDetail[]|null */ - public function getLinks() + public function getErrors() { - return $this->container['links']; + return $this->container['errors']; } /** - * Sets links + * Sets errors * - * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps + * @param \HubSpot\Client\Cms\Blogs\Tags\Model\ErrorDetail[]|null $errors further information about the error * * @return self */ - public function setLinks($links) + public function setErrors($errors) { - $this->container['links'] = $links; + $this->container['errors'] = $errors; return $this; } diff --git a/codegen/Cms/Blogs/Tags/Model/ErrorDetail.php b/codegen/Cms/Blogs/Tags/Model/ErrorDetail.php index ba748a74..8a38dfc5 100644 --- a/codegen/Cms/Blogs/Tags/Model/ErrorDetail.php +++ b/codegen/Cms/Blogs/Tags/Model/ErrorDetail.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'in' => 'string', - 'code' => 'string', 'sub_category' => 'string', - 'context' => 'array' + 'code' => 'string', + 'in' => 'string', + 'context' => 'array', + 'message' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'in' => null, - 'code' => null, 'sub_category' => null, - 'context' => null + 'code' => null, + 'in' => null, + 'context' => null, + 'message' => null ]; /** @@ -106,11 +106,11 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'in' => 'in', - 'code' => 'code', 'sub_category' => 'subCategory', - 'context' => 'context' + 'code' => 'code', + 'in' => 'in', + 'context' => 'context', + 'message' => 'message' ]; /** @@ -119,11 +119,11 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'in' => 'setIn', - 'code' => 'setCode', 'sub_category' => 'setSubCategory', - 'context' => 'setContext' + 'code' => 'setCode', + 'in' => 'setIn', + 'context' => 'setContext', + 'message' => 'setMessage' ]; /** @@ -132,11 +132,11 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'in' => 'getIn', - 'code' => 'getCode', 'sub_category' => 'getSubCategory', - 'context' => 'getContext' + 'code' => 'getCode', + 'in' => 'getIn', + 'context' => 'getContext', + 'message' => 'getMessage' ]; /** @@ -196,11 +196,11 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['in'] = $data['in'] ?? null; - $this->container['code'] = $data['code'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['code'] = $data['code'] ?? null; + $this->container['in'] = $data['in'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['message'] = $data['message'] ?? null; } /** @@ -231,49 +231,25 @@ public function valid() /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A human readable message describing the error along with remediation steps where appropriate - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - - /** - * Gets in + * Gets sub_category * * @return string|null */ - public function getIn() + public function getSubCategory() { - return $this->container['in']; + return $this->container['sub_category']; } /** - * Sets in + * Sets sub_category * - * @param string|null $in The name of the field or parameter in which the error was found. + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setIn($in) + public function setSubCategory($sub_category) { - $this->container['in'] = $in; + $this->container['sub_category'] = $sub_category; return $this; } @@ -303,25 +279,25 @@ public function setCode($code) } /** - * Gets sub_category + * Gets in * * @return string|null */ - public function getSubCategory() + public function getIn() { - return $this->container['sub_category']; + return $this->container['in']; } /** - * Sets sub_category + * Sets in * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $in The name of the field or parameter in which the error was found. * * @return self */ - public function setSubCategory($sub_category) + public function setIn($in) { - $this->container['sub_category'] = $sub_category; + $this->container['in'] = $in; return $this; } @@ -349,6 +325,30 @@ public function setContext($context) return $this; } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message A human readable message describing the error along with remediation steps where appropriate + * + * @return self + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Blogs/Tags/Model/ForwardPaging.php b/codegen/Cms/Blogs/Tags/Model/ForwardPaging.php index 15f3de65..2093809c 100644 --- a/codegen/Cms/Blogs/Tags/Model/ForwardPaging.php +++ b/codegen/Cms/Blogs/Tags/Model/ForwardPaging.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Tags/Model/ModelInterface.php b/codegen/Cms/Blogs/Tags/Model/ModelInterface.php index 4b07e32e..bb1300a5 100644 --- a/codegen/Cms/Blogs/Tags/Model/ModelInterface.php +++ b/codegen/Cms/Blogs/Tags/Model/ModelInterface.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Tags/Model/NextPage.php b/codegen/Cms/Blogs/Tags/Model/NextPage.php index fc04ea71..d853923c 100644 --- a/codegen/Cms/Blogs/Tags/Model/NextPage.php +++ b/codegen/Cms/Blogs/Tags/Model/NextPage.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,8 +58,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'after' => 'string', - 'link' => 'string' + 'link' => 'string', + 'after' => 'string' ]; /** @@ -70,8 +70,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'after' => null, - 'link' => null + 'link' => null, + 'after' => null ]; /** @@ -101,8 +101,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'after' => 'after', - 'link' => 'link' + 'link' => 'link', + 'after' => 'after' ]; /** @@ -111,8 +111,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'after' => 'setAfter', - 'link' => 'setLink' + 'link' => 'setLink', + 'after' => 'setAfter' ]; /** @@ -121,8 +121,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'after' => 'getAfter', - 'link' => 'getLink' + 'link' => 'getLink', + 'after' => 'getAfter' ]; /** @@ -182,8 +182,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['after'] = $data['after'] ?? null; $this->container['link'] = $data['link'] ?? null; + $this->container['after'] = $data['after'] ?? null; } /** @@ -214,49 +214,49 @@ public function valid() /** - * 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 after + * @param string|null $link * * @return self */ - public function setAfter($after) + public function setLink($link) { - $this->container['after'] = $after; + $this->container['link'] = $link; return $this; } /** - * 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 link + * @param string $after * * @return self */ - public function setLink($link) + public function setAfter($after) { - $this->container['link'] = $link; + $this->container['after'] = $after; return $this; } diff --git a/codegen/Cms/Blogs/Tags/Model/SetNewLanguagePrimaryRequestVNext.php b/codegen/Cms/Blogs/Tags/Model/SetNewLanguagePrimaryRequestVNext.php index f82bf299..a24bcefe 100644 --- a/codegen/Cms/Blogs/Tags/Model/SetNewLanguagePrimaryRequestVNext.php +++ b/codegen/Cms/Blogs/Tags/Model/SetNewLanguagePrimaryRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Blogs/Tags/Model/StandardError.php b/codegen/Cms/Blogs/Tags/Model/StandardError.php index 92cf884f..dd61bd80 100644 --- a/codegen/Cms/Blogs/Tags/Model/StandardError.php +++ b/codegen/Cms/Blogs/Tags/Model/StandardError.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,14 +58,14 @@ class StandardError implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', - 'id' => 'string', - 'category' => 'object', 'sub_category' => 'object', + 'context' => 'array', + 'links' => 'array', + 'id' => 'string', + 'category' => 'string', 'message' => 'string', 'errors' => '\HubSpot\Client\Cms\Blogs\Tags\Model\ErrorDetail[]', - 'context' => 'array', - 'links' => 'array' + 'status' => 'string' ]; /** @@ -76,14 +76,14 @@ class StandardError implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'status' => null, + 'sub_category' => null, + 'context' => null, + 'links' => null, 'id' => null, 'category' => null, - 'sub_category' => null, 'message' => null, 'errors' => null, - 'context' => null, - 'links' => null + 'status' => null ]; /** @@ -113,14 +113,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'status' => 'status', + 'sub_category' => 'subCategory', + 'context' => 'context', + 'links' => 'links', 'id' => 'id', 'category' => 'category', - 'sub_category' => 'subCategory', 'message' => 'message', 'errors' => 'errors', - 'context' => 'context', - 'links' => 'links' + 'status' => 'status' ]; /** @@ -129,14 +129,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'status' => 'setStatus', + 'sub_category' => 'setSubCategory', + 'context' => 'setContext', + 'links' => 'setLinks', 'id' => 'setId', 'category' => 'setCategory', - 'sub_category' => 'setSubCategory', 'message' => 'setMessage', 'errors' => 'setErrors', - 'context' => 'setContext', - 'links' => 'setLinks' + 'status' => 'setStatus' ]; /** @@ -145,14 +145,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'status' => 'getStatus', + 'sub_category' => 'getSubCategory', + 'context' => 'getContext', + 'links' => 'getLinks', 'id' => 'getId', 'category' => 'getCategory', - 'sub_category' => 'getSubCategory', 'message' => 'getMessage', 'errors' => 'getErrors', - 'context' => 'getContext', - 'links' => 'getLinks' + 'status' => 'getStatus' ]; /** @@ -212,14 +212,14 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['status'] = $data['status'] ?? null; + $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['context'] = $data['context'] ?? null; + $this->container['links'] = $data['links'] ?? null; $this->container['id'] = $data['id'] ?? null; $this->container['category'] = $data['category'] ?? null; - $this->container['sub_category'] = $data['sub_category'] ?? null; $this->container['message'] = $data['message'] ?? null; $this->container['errors'] = $data['errors'] ?? null; - $this->container['context'] = $data['context'] ?? null; - $this->container['links'] = $data['links'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -231,8 +231,11 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; + if ($this->container['context'] === null) { + $invalidProperties[] = "'context' 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"; @@ -243,11 +246,8 @@ public function listInvalidProperties() if ($this->container['errors'] === null) { $invalidProperties[] = "'errors' can't be null"; } - if ($this->container['context'] === null) { - $invalidProperties[] = "'context' can't be null"; - } - if ($this->container['links'] === null) { - $invalidProperties[] = "'links' can't be null"; + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; } return $invalidProperties; } @@ -265,193 +265,193 @@ public function valid() /** - * 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) { - $this->container['status'] = $status; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets id + * Gets context * - * @return string|null + * @return array */ - public function getId() + public function getContext() { - return $this->container['id']; + return $this->container['context']; } /** - * Sets id + * Sets context * - * @param string|null $id Error ID. + * @param array $context Error context. * * @return self */ - public function setId($id) + public function setContext($context) { - $this->container['id'] = $id; + $this->container['context'] = $context; return $this; } /** - * Gets category + * Gets links * - * @return object + * @return array */ - public function getCategory() + public function getLinks() { - return $this->container['category']; + return $this->container['links']; } /** - * Sets category + * Sets links * - * @param object $category Model definition for an error category. + * @param array $links Error links. * * @return self */ - public function setCategory($category) + public function setLinks($links) { - $this->container['category'] = $category; + $this->container['links'] = $links; return $this; } /** - * Gets sub_category + * Gets id * - * @return object|null + * @return string|null */ - public function getSubCategory() + public function getId() { - return $this->container['sub_category']; + return $this->container['id']; } /** - * Sets sub_category + * Sets id * - * @param object|null $sub_category Error subcategory. + * @param string|null $id Error ID. * * @return self */ - public function setSubCategory($sub_category) + public function setId($id) { - $this->container['sub_category'] = $sub_category; + $this->container['id'] = $id; return $this; } /** - * Gets message + * Gets category * * @return string */ - public function getMessage() + public function getCategory() { - return $this->container['message']; + return $this->container['category']; } /** - * Sets message + * Sets category * - * @param string $message Error message. + * @param string $category Error category. * * @return self */ - public function setMessage($message) + public function setCategory($category) { - $this->container['message'] = $message; + $this->container['category'] = $category; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\Blogs\Tags\Model\ErrorDetail[] + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\Blogs\Tags\Model\ErrorDetail[] $errors List of error details. + * @param string $message Error message. * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets errors * - * @return array + * @return \HubSpot\Client\Cms\Blogs\Tags\Model\ErrorDetail[] */ - public function getContext() + public function getErrors() { - return $this->container['context']; + return $this->container['errors']; } /** - * Sets context + * Sets errors * - * @param array $context Error context. + * @param \HubSpot\Client\Cms\Blogs\Tags\Model\ErrorDetail[] $errors List of error details. * * @return self */ - public function setContext($context) + public function setErrors($errors) { - $this->container['context'] = $context; + $this->container['errors'] = $errors; return $this; } /** - * Gets links + * Gets status * - * @return array + * @return string */ - public function getLinks() + public function getStatus() { - return $this->container['links']; + return $this->container['status']; } /** - * Sets links + * Sets status * - * @param array $links Error links. + * @param string $status Error status. * * @return self */ - public function setLinks($links) + public function setStatus($status) { - $this->container['links'] = $links; + $this->container['status'] = $status; return $this; } diff --git a/codegen/Cms/Blogs/Tags/Model/Tag.php b/codegen/Cms/Blogs/Tags/Model/Tag.php index d035c174..4d791105 100644 --- a/codegen/Cms/Blogs/Tags/Model/Tag.php +++ b/codegen/Cms/Blogs/Tags/Model/Tag.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,13 +58,13 @@ class Tag implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', + 'deleted_at' => '\DateTime', + 'created' => '\DateTime', 'name' => 'string', 'language' => 'string', + 'id' => 'string', 'translated_from_id' => 'int', - 'created' => '\DateTime', - 'updated' => '\DateTime', - 'deleted_at' => '\DateTime' + 'updated' => '\DateTime' ]; /** @@ -75,13 +75,13 @@ class Tag implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, + 'deleted_at' => 'date-time', + 'created' => 'date-time', 'name' => null, 'language' => null, + 'id' => null, 'translated_from_id' => 'int64', - 'created' => 'date-time', - 'updated' => 'date-time', - 'deleted_at' => 'date-time' + 'updated' => 'date-time' ]; /** @@ -111,13 +111,13 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', + 'deleted_at' => 'deletedAt', + 'created' => 'created', 'name' => 'name', 'language' => 'language', + 'id' => 'id', 'translated_from_id' => 'translatedFromId', - 'created' => 'created', - 'updated' => 'updated', - 'deleted_at' => 'deletedAt' + 'updated' => 'updated' ]; /** @@ -126,13 +126,13 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', + 'deleted_at' => 'setDeletedAt', + 'created' => 'setCreated', 'name' => 'setName', 'language' => 'setLanguage', + 'id' => 'setId', 'translated_from_id' => 'setTranslatedFromId', - 'created' => 'setCreated', - 'updated' => 'setUpdated', - 'deleted_at' => 'setDeletedAt' + 'updated' => 'setUpdated' ]; /** @@ -141,13 +141,13 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', + 'deleted_at' => 'getDeletedAt', + 'created' => 'getCreated', 'name' => 'getName', 'language' => 'getLanguage', + 'id' => 'getId', 'translated_from_id' => 'getTranslatedFromId', - 'created' => 'getCreated', - 'updated' => 'getUpdated', - 'deleted_at' => 'getDeletedAt' + 'updated' => 'getUpdated' ]; /** @@ -271,6 +271,8 @@ public function getModelName() public const LANGUAGE_CCP_IN = 'ccp-in'; public const LANGUAGE_CE = 'ce'; public const LANGUAGE_CE_RU = 'ce-ru'; + public const LANGUAGE_CEB = 'ceb'; + public const LANGUAGE_CEB_PH = 'ceb-ph'; public const LANGUAGE_CGG = 'cgg'; public const LANGUAGE_CGG_UG = 'cgg-ug'; public const LANGUAGE_CHR = 'chr'; @@ -300,6 +302,8 @@ public function getModelName() public const LANGUAGE_DE_LU = 'de-lu'; public const LANGUAGE_DJE = 'dje'; public const LANGUAGE_DJE_NE = 'dje-ne'; + public const LANGUAGE_DOI = 'doi'; + public const LANGUAGE_DOI_IN = 'doi-in'; public const LANGUAGE_DSB = 'dsb'; public const LANGUAGE_DSB_DE = 'dsb-de'; public const LANGUAGE_DUA = 'dua'; @@ -337,6 +341,7 @@ public function getModelName() public const LANGUAGE_EN_CH = 'en-ch'; public const LANGUAGE_EN_CK = 'en-ck'; public const LANGUAGE_EN_CM = 'en-cm'; + public const LANGUAGE_EN_CN = 'en-cn'; public const LANGUAGE_EN_CX = 'en-cx'; public const LANGUAGE_EN_CY = 'en-cy'; public const LANGUAGE_EN_DE = 'en-de'; @@ -380,6 +385,7 @@ public function getModelName() public const LANGUAGE_EN_MT = 'en-mt'; public const LANGUAGE_EN_MU = 'en-mu'; public const LANGUAGE_EN_MW = 'en-mw'; + public const LANGUAGE_EN_MX = 'en-mx'; public const LANGUAGE_EN_MY = 'en-my'; public const LANGUAGE_EN_NA = 'en-na'; public const LANGUAGE_EN_NF = 'en-nf'; @@ -464,9 +470,17 @@ public function getModelName() public const LANGUAGE_FA_AF = 'fa-af'; public const LANGUAGE_FA_IR = 'fa-ir'; public const LANGUAGE_FF = 'ff'; + public const LANGUAGE_FF_BF = 'ff-bf'; public const LANGUAGE_FF_CM = 'ff-cm'; + public const LANGUAGE_FF_GH = 'ff-gh'; + public const LANGUAGE_FF_GM = 'ff-gm'; public const LANGUAGE_FF_GN = 'ff-gn'; + public const LANGUAGE_FF_GW = 'ff-gw'; + public const LANGUAGE_FF_LR = 'ff-lr'; public const LANGUAGE_FF_MR = 'ff-mr'; + public const LANGUAGE_FF_NE = 'ff-ne'; + public const LANGUAGE_FF_NG = 'ff-ng'; + public const LANGUAGE_FF_SL = 'ff-sl'; public const LANGUAGE_FF_SN = 'ff-sn'; public const LANGUAGE_FI = 'fi'; public const LANGUAGE_FI_FI = 'fi-fi'; @@ -527,6 +541,7 @@ public function getModelName() public const LANGUAGE_FY = 'fy'; public const LANGUAGE_FY_NL = 'fy-nl'; public const LANGUAGE_GA = 'ga'; + public const LANGUAGE_GA_GB = 'ga-gb'; public const LANGUAGE_GA_IE = 'ga-ie'; public const LANGUAGE_GD = 'gd'; public const LANGUAGE_GD_GB = 'gd-gb'; @@ -560,6 +575,8 @@ public function getModelName() public const LANGUAGE_HU_HU = 'hu-hu'; public const LANGUAGE_HY = 'hy'; public const LANGUAGE_HY_AM = 'hy-am'; + public const LANGUAGE_IA = 'ia'; + public const LANGUAGE_IA_001 = 'ia-001'; public const LANGUAGE_ID = 'id'; public const LANGUAGE_IG = 'ig'; public const LANGUAGE_IG_NG = 'ig-ng'; @@ -582,6 +599,8 @@ public function getModelName() public const LANGUAGE_YI_001 = 'yi-001'; public const LANGUAGE_JMC = 'jmc'; public const LANGUAGE_JMC_TZ = 'jmc-tz'; + public const LANGUAGE_JV = 'jv'; + public const LANGUAGE_JV_ID = 'jv-id'; public const LANGUAGE_KA = 'ka'; public const LANGUAGE_KA_GE = 'ka-ge'; public const LANGUAGE_KAB = 'kab'; @@ -623,6 +642,8 @@ public function getModelName() 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_KY = 'ky'; public const LANGUAGE_KY_KG = 'ky-kg'; public const LANGUAGE_LAG = 'lag'; @@ -653,6 +674,8 @@ public function getModelName() public const LANGUAGE_LUY_KE = 'luy-ke'; public const LANGUAGE_LV = 'lv'; public const LANGUAGE_LV_LV = 'lv-lv'; + public const LANGUAGE_MAI = 'mai'; + public const LANGUAGE_MAI_IN = 'mai-in'; public const LANGUAGE_MAS = 'mas'; public const LANGUAGE_MAS_KE = 'mas-ke'; public const LANGUAGE_MAS_TZ = 'mas-tz'; @@ -666,16 +689,21 @@ public function getModelName() public const LANGUAGE_MGH_MZ = 'mgh-mz'; public const LANGUAGE_MGO = 'mgo'; public const LANGUAGE_MGO_CM = 'mgo-cm'; + public const LANGUAGE_MI = 'mi'; + public const LANGUAGE_MI_NZ = 'mi-nz'; public const LANGUAGE_MK = 'mk'; public const LANGUAGE_MK_MK = 'mk-mk'; public const LANGUAGE_ML = 'ml'; public const LANGUAGE_ML_IN = 'ml-in'; public const LANGUAGE_MN = 'mn'; public const LANGUAGE_MN_MN = 'mn-mn'; + public const LANGUAGE_MNI = 'mni'; + public const LANGUAGE_MNI_IN = 'mni-in'; public const LANGUAGE_MR = 'mr'; public const LANGUAGE_MR_IN = 'mr-in'; public const LANGUAGE_MS = 'ms'; public const LANGUAGE_MS_BN = 'ms-bn'; + public const LANGUAGE_MS_ID = 'ms-id'; public const LANGUAGE_MS_MY = 'ms-my'; public const LANGUAGE_MS_SG = 'ms-sg'; public const LANGUAGE_MT = 'mt'; @@ -732,12 +760,15 @@ public function getModelName() public const LANGUAGE_PA = 'pa'; public const LANGUAGE_PA_IN = 'pa-in'; public const LANGUAGE_PA_PK = 'pa-pk'; + public const LANGUAGE_PCM = 'pcm'; + public const LANGUAGE_PCM_NG = 'pcm-ng'; public const LANGUAGE_PL = 'pl'; public const LANGUAGE_PL_PL = 'pl-pl'; public const LANGUAGE_PRG = 'prg'; public const LANGUAGE_PRG_001 = 'prg-001'; public const LANGUAGE_PS = 'ps'; public const LANGUAGE_PS_AF = 'ps-af'; + public const LANGUAGE_PS_PK = 'ps-pk'; public const LANGUAGE_PT = 'pt'; public const LANGUAGE_PT_AO = 'pt-ao'; public const LANGUAGE_PT_BR = 'pt-br'; @@ -776,13 +807,17 @@ public function getModelName() public const LANGUAGE_RWK = 'rwk'; public const LANGUAGE_RWK_TZ = 'rwk-tz'; public const LANGUAGE_SA = 'sa'; + public const LANGUAGE_SA_IN = 'sa-in'; public const LANGUAGE_SAH = 'sah'; public const LANGUAGE_SAH_RU = 'sah-ru'; public const LANGUAGE_SAQ = 'saq'; public const LANGUAGE_SAQ_KE = 'saq-ke'; + public const LANGUAGE_SAT = 'sat'; + public const LANGUAGE_SAT_IN = 'sat-in'; public const LANGUAGE_SBP = 'sbp'; public const LANGUAGE_SBP_TZ = 'sbp-tz'; public const LANGUAGE_SD = 'sd'; + public const LANGUAGE_SD_IN = 'sd-in'; public const LANGUAGE_SD_PK = 'sd-pk'; public const LANGUAGE_SE = 'se'; public const LANGUAGE_SE_FI = 'se-fi'; @@ -821,6 +856,8 @@ public function getModelName() public const LANGUAGE_SR_ME = 'sr-me'; public const LANGUAGE_SR_RS = 'sr-rs'; public const LANGUAGE_SR_XK = 'sr-xk'; + public const LANGUAGE_SU = 'su'; + public const LANGUAGE_SU_ID = 'su-id'; public const LANGUAGE_SV = 'sv'; public const LANGUAGE_SV_AX = 'sv-ax'; public const LANGUAGE_SV_FI = 'sv-fi'; @@ -850,6 +887,7 @@ public function getModelName() public const LANGUAGE_TI_ET = 'ti-et'; public const LANGUAGE_TK = 'tk'; public const LANGUAGE_TK_TM = 'tk-tm'; + public const LANGUAGE_TL = 'tl'; public const LANGUAGE_TO = 'to'; public const LANGUAGE_TO_TO = 'to-to'; public const LANGUAGE_TR = 'tr'; @@ -883,6 +921,8 @@ public function getModelName() public const LANGUAGE_WAE_CH = 'wae-ch'; public const LANGUAGE_WO = 'wo'; public const LANGUAGE_WO_SN = 'wo-sn'; + public const LANGUAGE_XH = 'xh'; + public const LANGUAGE_XH_ZA = 'xh-za'; public const LANGUAGE_XOG = 'xog'; public const LANGUAGE_XOG_UG = 'xog-ug'; public const LANGUAGE_YAV = 'yav'; @@ -994,6 +1034,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_CCP_IN, self::LANGUAGE_CE, self::LANGUAGE_CE_RU, + self::LANGUAGE_CEB, + self::LANGUAGE_CEB_PH, self::LANGUAGE_CGG, self::LANGUAGE_CGG_UG, self::LANGUAGE_CHR, @@ -1023,6 +1065,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_DE_LU, self::LANGUAGE_DJE, self::LANGUAGE_DJE_NE, + self::LANGUAGE_DOI, + self::LANGUAGE_DOI_IN, self::LANGUAGE_DSB, self::LANGUAGE_DSB_DE, self::LANGUAGE_DUA, @@ -1060,6 +1104,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_EN_CH, self::LANGUAGE_EN_CK, self::LANGUAGE_EN_CM, + self::LANGUAGE_EN_CN, self::LANGUAGE_EN_CX, self::LANGUAGE_EN_CY, self::LANGUAGE_EN_DE, @@ -1103,6 +1148,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_EN_MT, self::LANGUAGE_EN_MU, self::LANGUAGE_EN_MW, + self::LANGUAGE_EN_MX, self::LANGUAGE_EN_MY, self::LANGUAGE_EN_NA, self::LANGUAGE_EN_NF, @@ -1187,9 +1233,17 @@ public function getLanguageAllowableValues() self::LANGUAGE_FA_AF, self::LANGUAGE_FA_IR, self::LANGUAGE_FF, + self::LANGUAGE_FF_BF, self::LANGUAGE_FF_CM, + self::LANGUAGE_FF_GH, + self::LANGUAGE_FF_GM, self::LANGUAGE_FF_GN, + self::LANGUAGE_FF_GW, + self::LANGUAGE_FF_LR, self::LANGUAGE_FF_MR, + self::LANGUAGE_FF_NE, + self::LANGUAGE_FF_NG, + self::LANGUAGE_FF_SL, self::LANGUAGE_FF_SN, self::LANGUAGE_FI, self::LANGUAGE_FI_FI, @@ -1250,6 +1304,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_FY, self::LANGUAGE_FY_NL, self::LANGUAGE_GA, + self::LANGUAGE_GA_GB, self::LANGUAGE_GA_IE, self::LANGUAGE_GD, self::LANGUAGE_GD_GB, @@ -1283,6 +1338,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_HU_HU, self::LANGUAGE_HY, self::LANGUAGE_HY_AM, + self::LANGUAGE_IA, + self::LANGUAGE_IA_001, self::LANGUAGE_ID, self::LANGUAGE_IG, self::LANGUAGE_IG_NG, @@ -1305,6 +1362,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_YI_001, self::LANGUAGE_JMC, self::LANGUAGE_JMC_TZ, + self::LANGUAGE_JV, + self::LANGUAGE_JV_ID, self::LANGUAGE_KA, self::LANGUAGE_KA_GE, self::LANGUAGE_KAB, @@ -1346,6 +1405,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_KSH_DE, self::LANGUAGE_KW, self::LANGUAGE_KW_GB, + self::LANGUAGE_KU, + self::LANGUAGE_KU_TR, self::LANGUAGE_KY, self::LANGUAGE_KY_KG, self::LANGUAGE_LAG, @@ -1376,6 +1437,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_LUY_KE, self::LANGUAGE_LV, self::LANGUAGE_LV_LV, + self::LANGUAGE_MAI, + self::LANGUAGE_MAI_IN, self::LANGUAGE_MAS, self::LANGUAGE_MAS_KE, self::LANGUAGE_MAS_TZ, @@ -1389,16 +1452,21 @@ public function getLanguageAllowableValues() self::LANGUAGE_MGH_MZ, self::LANGUAGE_MGO, self::LANGUAGE_MGO_CM, + self::LANGUAGE_MI, + self::LANGUAGE_MI_NZ, self::LANGUAGE_MK, self::LANGUAGE_MK_MK, self::LANGUAGE_ML, self::LANGUAGE_ML_IN, self::LANGUAGE_MN, self::LANGUAGE_MN_MN, + self::LANGUAGE_MNI, + self::LANGUAGE_MNI_IN, self::LANGUAGE_MR, self::LANGUAGE_MR_IN, self::LANGUAGE_MS, self::LANGUAGE_MS_BN, + self::LANGUAGE_MS_ID, self::LANGUAGE_MS_MY, self::LANGUAGE_MS_SG, self::LANGUAGE_MT, @@ -1455,12 +1523,15 @@ public function getLanguageAllowableValues() self::LANGUAGE_PA, self::LANGUAGE_PA_IN, self::LANGUAGE_PA_PK, + self::LANGUAGE_PCM, + self::LANGUAGE_PCM_NG, self::LANGUAGE_PL, self::LANGUAGE_PL_PL, self::LANGUAGE_PRG, self::LANGUAGE_PRG_001, self::LANGUAGE_PS, self::LANGUAGE_PS_AF, + self::LANGUAGE_PS_PK, self::LANGUAGE_PT, self::LANGUAGE_PT_AO, self::LANGUAGE_PT_BR, @@ -1499,13 +1570,17 @@ public function getLanguageAllowableValues() self::LANGUAGE_RWK, self::LANGUAGE_RWK_TZ, self::LANGUAGE_SA, + self::LANGUAGE_SA_IN, self::LANGUAGE_SAH, self::LANGUAGE_SAH_RU, self::LANGUAGE_SAQ, self::LANGUAGE_SAQ_KE, + self::LANGUAGE_SAT, + self::LANGUAGE_SAT_IN, self::LANGUAGE_SBP, self::LANGUAGE_SBP_TZ, self::LANGUAGE_SD, + self::LANGUAGE_SD_IN, self::LANGUAGE_SD_PK, self::LANGUAGE_SE, self::LANGUAGE_SE_FI, @@ -1544,6 +1619,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_SR_ME, self::LANGUAGE_SR_RS, self::LANGUAGE_SR_XK, + self::LANGUAGE_SU, + self::LANGUAGE_SU_ID, self::LANGUAGE_SV, self::LANGUAGE_SV_AX, self::LANGUAGE_SV_FI, @@ -1573,6 +1650,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_TI_ET, self::LANGUAGE_TK, self::LANGUAGE_TK_TM, + self::LANGUAGE_TL, self::LANGUAGE_TO, self::LANGUAGE_TO_TO, self::LANGUAGE_TR, @@ -1606,6 +1684,8 @@ public function getLanguageAllowableValues() self::LANGUAGE_WAE_CH, self::LANGUAGE_WO, self::LANGUAGE_WO_SN, + self::LANGUAGE_XH, + self::LANGUAGE_XH_ZA, self::LANGUAGE_XOG, self::LANGUAGE_XOG_UG, self::LANGUAGE_YAV, @@ -1646,13 +1726,13 @@ public function getLanguageAllowableValues() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; + $this->container['deleted_at'] = $data['deleted_at'] ?? null; + $this->container['created'] = $data['created'] ?? null; $this->container['name'] = $data['name'] ?? null; $this->container['language'] = $data['language'] ?? null; + $this->container['id'] = $data['id'] ?? null; $this->container['translated_from_id'] = $data['translated_from_id'] ?? null; - $this->container['created'] = $data['created'] ?? null; $this->container['updated'] = $data['updated'] ?? null; - $this->container['deleted_at'] = $data['deleted_at'] ?? null; } /** @@ -1664,8 +1744,11 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; + if ($this->container['deleted_at'] === null) { + $invalidProperties[] = "'deleted_at' 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"; @@ -1682,18 +1765,15 @@ public function listInvalidProperties() ); } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } if ($this->container['translated_from_id'] === null) { $invalidProperties[] = "'translated_from_id' can't be null"; } - if ($this->container['created'] === null) { - $invalidProperties[] = "'created' can't be null"; - } if ($this->container['updated'] === null) { $invalidProperties[] = "'updated' can't be null"; } - if ($this->container['deleted_at'] === null) { - $invalidProperties[] = "'deleted_at' can't be null"; - } return $invalidProperties; } @@ -1710,25 +1790,49 @@ public function valid() /** - * Gets id + * Gets deleted_at * - * @return string + * @return \DateTime */ - public function getId() + public function getDeletedAt() { - return $this->container['id']; + return $this->container['deleted_at']; } /** - * Sets id + * Sets deleted_at * - * @param string $id The unique ID of the Blog Tag. + * @param \DateTime $deleted_at The timestamp (ISO8601 format) when this Blog Tag was deleted. * * @return self */ - public function setId($id) + public function setDeletedAt($deleted_at) { - $this->container['id'] = $id; + $this->container['deleted_at'] = $deleted_at; + + return $this; + } + + /** + * Gets created + * + * @return \DateTime + */ + public function getCreated() + { + return $this->container['created']; + } + + /** + * Sets created + * + * @param \DateTime $created created + * + * @return self + */ + public function setCreated($created) + { + $this->container['created'] = $created; return $this; } @@ -1792,49 +1896,49 @@ public function setLanguage($language) } /** - * Gets translated_from_id + * Gets id * - * @return int + * @return string */ - public function getTranslatedFromId() + public function getId() { - return $this->container['translated_from_id']; + return $this->container['id']; } /** - * Sets translated_from_id + * Sets id * - * @param int $translated_from_id ID of the primary tag this object was translated from. + * @param string $id The unique ID of the Blog Tag. * * @return self */ - public function setTranslatedFromId($translated_from_id) + public function setId($id) { - $this->container['translated_from_id'] = $translated_from_id; + $this->container['id'] = $id; return $this; } /** - * Gets created + * Gets translated_from_id * - * @return \DateTime + * @return int */ - public function getCreated() + public function getTranslatedFromId() { - return $this->container['created']; + return $this->container['translated_from_id']; } /** - * Sets created + * Sets translated_from_id * - * @param \DateTime $created created + * @param int $translated_from_id ID of the primary tag this object was translated from. * * @return self */ - public function setCreated($created) + public function setTranslatedFromId($translated_from_id) { - $this->container['created'] = $created; + $this->container['translated_from_id'] = $translated_from_id; return $this; } @@ -1862,30 +1966,6 @@ public function setUpdated($updated) return $this; } - - /** - * 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 Blog Tag was deleted. - * - * @return self - */ - public function setDeletedAt($deleted_at) - { - $this->container['deleted_at'] = $deleted_at; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Blogs/Tags/Model/TagCloneRequestVNext.php b/codegen/Cms/Blogs/Tags/Model/TagCloneRequestVNext.php index 6c64af6c..2051ccdd 100644 --- a/codegen/Cms/Blogs/Tags/Model/TagCloneRequestVNext.php +++ b/codegen/Cms/Blogs/Tags/Model/TagCloneRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,10 +58,10 @@ class TagCloneRequestVNext implements ModelInterface, ArrayAccess, \JsonSerializ * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', + 'name' => 'string', 'language' => 'string', - 'primary_language' => 'string', - 'name' => 'string' + 'id' => 'string', + 'primary_language' => 'string' ]; /** @@ -72,10 +72,10 @@ class TagCloneRequestVNext implements ModelInterface, ArrayAccess, \JsonSerializ * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, + 'name' => null, 'language' => null, - 'primary_language' => null, - 'name' => null + 'id' => null, + 'primary_language' => null ]; /** @@ -105,10 +105,10 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', + 'name' => 'name', 'language' => 'language', - 'primary_language' => 'primaryLanguage', - 'name' => 'name' + 'id' => 'id', + 'primary_language' => 'primaryLanguage' ]; /** @@ -117,10 +117,10 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', + 'name' => 'setName', 'language' => 'setLanguage', - 'primary_language' => 'setPrimaryLanguage', - 'name' => 'setName' + 'id' => 'setId', + 'primary_language' => 'setPrimaryLanguage' ]; /** @@ -129,10 +129,10 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', + 'name' => 'getName', 'language' => 'getLanguage', - 'primary_language' => 'getPrimaryLanguage', - 'name' => 'getName' + 'id' => 'getId', + 'primary_language' => 'getPrimaryLanguage' ]; /** @@ -192,10 +192,10 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; + $this->container['name'] = $data['name'] ?? null; $this->container['language'] = $data['language'] ?? null; + $this->container['id'] = $data['id'] ?? null; $this->container['primary_language'] = $data['primary_language'] ?? null; - $this->container['name'] = $data['name'] ?? null; } /** @@ -207,12 +207,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } return $invalidProperties; } @@ -229,25 +229,25 @@ public function valid() /** - * Gets id + * Gets name * * @return string */ - public function getId() + public function getName() { - return $this->container['id']; + return $this->container['name']; } /** - * Sets id + * Sets name * - * @param string $id ID of the object to be cloned. + * @param string $name Name of newly cloned blog tag. * * @return self */ - public function setId($id) + public function setName($name) { - $this->container['id'] = $id; + $this->container['name'] = $name; return $this; } @@ -277,49 +277,49 @@ public function setLanguage($language) } /** - * Gets primary_language + * Gets id * - * @return string|null + * @return string */ - public function getPrimaryLanguage() + public function getId() { - return $this->container['primary_language']; + return $this->container['id']; } /** - * Sets primary_language + * Sets id * - * @param string|null $primary_language Language of primary blog tag to clone. + * @param string $id ID of the object to be cloned. * * @return self */ - public function setPrimaryLanguage($primary_language) + public function setId($id) { - $this->container['primary_language'] = $primary_language; + $this->container['id'] = $id; return $this; } /** - * Gets name + * Gets primary_language * - * @return string + * @return string|null */ - public function getName() + public function getPrimaryLanguage() { - return $this->container['name']; + return $this->container['primary_language']; } /** - * Sets name + * Sets primary_language * - * @param string $name Name of newly cloned blog tag. + * @param string|null $primary_language Language of primary blog tag to clone. * * @return self */ - public function setName($name) + public function setPrimaryLanguage($primary_language) { - $this->container['name'] = $name; + $this->container['primary_language'] = $primary_language; return $this; } diff --git a/codegen/Cms/Blogs/Tags/Model/UpdateLanguagesRequestVNext.php b/codegen/Cms/Blogs/Tags/Model/UpdateLanguagesRequestVNext.php index e9d2507f..c89828c9 100644 --- a/codegen/Cms/Blogs/Tags/Model/UpdateLanguagesRequestVNext.php +++ b/codegen/Cms/Blogs/Tags/Model/UpdateLanguagesRequestVNext.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * @@ -58,8 +58,8 @@ class UpdateLanguagesRequestVNext implements ModelInterface, ArrayAccess, \JsonS * @var string[] */ protected static $openAPITypes = [ - 'primary_id' => 'string', - 'languages' => 'array' + 'languages' => 'array', + 'primary_id' => 'string' ]; /** @@ -70,8 +70,8 @@ class UpdateLanguagesRequestVNext implements ModelInterface, ArrayAccess, \JsonS * @psalm-var array */ protected static $openAPIFormats = [ - 'primary_id' => null, - 'languages' => null + 'languages' => null, + 'primary_id' => null ]; /** @@ -101,8 +101,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'primary_id' => 'primaryId', - 'languages' => 'languages' + 'languages' => 'languages', + 'primary_id' => 'primaryId' ]; /** @@ -111,8 +111,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'primary_id' => 'setPrimaryId', - 'languages' => 'setLanguages' + 'languages' => 'setLanguages', + 'primary_id' => 'setPrimaryId' ]; /** @@ -121,8 +121,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'primary_id' => 'getPrimaryId', - 'languages' => 'getLanguages' + 'languages' => 'getLanguages', + 'primary_id' => 'getPrimaryId' ]; /** @@ -166,1445 +166,6 @@ public function getModelName() return self::$openAPIModelName; } - public const LANGUAGES_AF = 'af'; - public const LANGUAGES_AF_NA = 'af-na'; - public const LANGUAGES_AF_ZA = 'af-za'; - public const LANGUAGES_AGQ = 'agq'; - public const LANGUAGES_AGQ_CM = 'agq-cm'; - public const LANGUAGES_AK = 'ak'; - public const LANGUAGES_AK_GH = 'ak-gh'; - public const LANGUAGES_AM = 'am'; - public const LANGUAGES_AM_ET = 'am-et'; - public const LANGUAGES_AR = 'ar'; - public const LANGUAGES_AR_001 = 'ar-001'; - public const LANGUAGES_AR_AE = 'ar-ae'; - public const LANGUAGES_AR_BH = 'ar-bh'; - public const LANGUAGES_AR_DJ = 'ar-dj'; - public const LANGUAGES_AR_DZ = 'ar-dz'; - public const LANGUAGES_AR_EG = 'ar-eg'; - public const LANGUAGES_AR_EH = 'ar-eh'; - public const LANGUAGES_AR_ER = 'ar-er'; - public const LANGUAGES_AR_IL = 'ar-il'; - public const LANGUAGES_AR_IQ = 'ar-iq'; - public const LANGUAGES_AR_JO = 'ar-jo'; - public const LANGUAGES_AR_KM = 'ar-km'; - public const LANGUAGES_AR_KW = 'ar-kw'; - public const LANGUAGES_AR_LB = 'ar-lb'; - public const LANGUAGES_AR_LY = 'ar-ly'; - public const LANGUAGES_AR_MA = 'ar-ma'; - public const LANGUAGES_AR_MR = 'ar-mr'; - public const LANGUAGES_AR_OM = 'ar-om'; - public const LANGUAGES_AR_PS = 'ar-ps'; - public const LANGUAGES_AR_QA = 'ar-qa'; - public const LANGUAGES_AR_SA = 'ar-sa'; - public const LANGUAGES_AR_SD = 'ar-sd'; - public const LANGUAGES_AR_SO = 'ar-so'; - public const LANGUAGES_AR_SS = 'ar-ss'; - public const LANGUAGES_AR_SY = 'ar-sy'; - public const LANGUAGES_AR_TD = 'ar-td'; - public const LANGUAGES_AR_TN = 'ar-tn'; - public const LANGUAGES_AR_YE = 'ar-ye'; - public const LANGUAGES__AS = 'as'; - public const LANGUAGES_AS_IN = 'as-in'; - public const LANGUAGES_ASA = 'asa'; - public const LANGUAGES_ASA_TZ = 'asa-tz'; - public const LANGUAGES_AST = 'ast'; - public const LANGUAGES_AST_ES = 'ast-es'; - public const LANGUAGES_AZ = 'az'; - public const LANGUAGES_AZ_AZ = 'az-az'; - public const LANGUAGES_BAS = 'bas'; - public const LANGUAGES_BAS_CM = 'bas-cm'; - public const LANGUAGES_BE = 'be'; - public const LANGUAGES_BE_BY = 'be-by'; - public const LANGUAGES_BEM = 'bem'; - public const LANGUAGES_BEM_ZM = 'bem-zm'; - public const LANGUAGES_BEZ = 'bez'; - public const LANGUAGES_BEZ_TZ = 'bez-tz'; - public const LANGUAGES_BG = 'bg'; - public const LANGUAGES_BG_BG = 'bg-bg'; - public const LANGUAGES_BM = 'bm'; - public const LANGUAGES_BM_ML = 'bm-ml'; - public const LANGUAGES_BN = 'bn'; - public const LANGUAGES_BN_BD = 'bn-bd'; - public const LANGUAGES_BN_IN = 'bn-in'; - public const LANGUAGES_BO = 'bo'; - public const LANGUAGES_BO_CN = 'bo-cn'; - public const LANGUAGES_BO_IN = 'bo-in'; - public const LANGUAGES_BR = 'br'; - public const LANGUAGES_BR_FR = 'br-fr'; - public const LANGUAGES_BRX = 'brx'; - public const LANGUAGES_BRX_IN = 'brx-in'; - public const LANGUAGES_BS = 'bs'; - public const LANGUAGES_BS_BA = 'bs-ba'; - public const LANGUAGES_CA = 'ca'; - public const LANGUAGES_CA_AD = 'ca-ad'; - public const LANGUAGES_CA_ES = 'ca-es'; - public const LANGUAGES_CA_FR = 'ca-fr'; - public const LANGUAGES_CA_IT = 'ca-it'; - public const LANGUAGES_CCP = 'ccp'; - public const LANGUAGES_CCP_BD = 'ccp-bd'; - public const LANGUAGES_CCP_IN = 'ccp-in'; - public const LANGUAGES_CE = 'ce'; - public const LANGUAGES_CE_RU = 'ce-ru'; - public const LANGUAGES_CGG = 'cgg'; - public const LANGUAGES_CGG_UG = 'cgg-ug'; - public const LANGUAGES_CHR = 'chr'; - public const LANGUAGES_CHR_US = 'chr-us'; - public const LANGUAGES_CKB = 'ckb'; - public const LANGUAGES_CKB_IQ = 'ckb-iq'; - public const LANGUAGES_CKB_IR = 'ckb-ir'; - public const LANGUAGES_CS = 'cs'; - public const LANGUAGES_CS_CZ = 'cs-cz'; - public const LANGUAGES_CU = 'cu'; - public const LANGUAGES_CU_RU = 'cu-ru'; - public const LANGUAGES_CY = 'cy'; - public const LANGUAGES_CY_GB = 'cy-gb'; - public const LANGUAGES_DA = 'da'; - public const LANGUAGES_DA_DK = 'da-dk'; - public const LANGUAGES_DA_GL = 'da-gl'; - public const LANGUAGES_DAV = 'dav'; - public const LANGUAGES_DAV_KE = 'dav-ke'; - public const LANGUAGES_DE = 'de'; - public const LANGUAGES_DE_AT = 'de-at'; - public const LANGUAGES_DE_BE = 'de-be'; - public const LANGUAGES_DE_CH = 'de-ch'; - public const LANGUAGES_DE_DE = 'de-de'; - public const LANGUAGES_DE_GR = 'de-gr'; - public const LANGUAGES_DE_IT = 'de-it'; - public const LANGUAGES_DE_LI = 'de-li'; - public const LANGUAGES_DE_LU = 'de-lu'; - public const LANGUAGES_DJE = 'dje'; - public const LANGUAGES_DJE_NE = 'dje-ne'; - public const LANGUAGES_DSB = 'dsb'; - public const LANGUAGES_DSB_DE = 'dsb-de'; - public const LANGUAGES_DUA = 'dua'; - public const LANGUAGES_DUA_CM = 'dua-cm'; - public const LANGUAGES_DYO = 'dyo'; - public const LANGUAGES_DYO_SN = 'dyo-sn'; - public const LANGUAGES_DZ = 'dz'; - public const LANGUAGES_DZ_BT = 'dz-bt'; - public const LANGUAGES_EBU = 'ebu'; - public const LANGUAGES_EBU_KE = 'ebu-ke'; - public const LANGUAGES_EE = 'ee'; - public const LANGUAGES_EE_GH = 'ee-gh'; - public const LANGUAGES_EE_TG = 'ee-tg'; - public const LANGUAGES_EL = 'el'; - public const LANGUAGES_EL_CY = 'el-cy'; - public const LANGUAGES_EL_GR = 'el-gr'; - public const LANGUAGES_EN = 'en'; - public const LANGUAGES_EN_001 = 'en-001'; - public const LANGUAGES_EN_150 = 'en-150'; - public const LANGUAGES_EN_AE = 'en-ae'; - public const LANGUAGES_EN_AG = 'en-ag'; - public const LANGUAGES_EN_AI = 'en-ai'; - public const LANGUAGES_EN_AS = 'en-as'; - public const LANGUAGES_EN_AT = 'en-at'; - public const LANGUAGES_EN_AU = 'en-au'; - public const LANGUAGES_EN_BB = 'en-bb'; - public const LANGUAGES_EN_BE = 'en-be'; - public const LANGUAGES_EN_BI = 'en-bi'; - public const LANGUAGES_EN_BM = 'en-bm'; - public const LANGUAGES_EN_BS = 'en-bs'; - public const LANGUAGES_EN_BW = 'en-bw'; - public const LANGUAGES_EN_BZ = 'en-bz'; - public const LANGUAGES_EN_CA = 'en-ca'; - public const LANGUAGES_EN_CC = 'en-cc'; - public const LANGUAGES_EN_CH = 'en-ch'; - public const LANGUAGES_EN_CK = 'en-ck'; - public const LANGUAGES_EN_CM = 'en-cm'; - public const LANGUAGES_EN_CX = 'en-cx'; - public const LANGUAGES_EN_CY = 'en-cy'; - public const LANGUAGES_EN_DE = 'en-de'; - public const LANGUAGES_EN_DG = 'en-dg'; - public const LANGUAGES_EN_DK = 'en-dk'; - public const LANGUAGES_EN_DM = 'en-dm'; - public const LANGUAGES_EN_ER = 'en-er'; - public const LANGUAGES_EN_FI = 'en-fi'; - public const LANGUAGES_EN_FJ = 'en-fj'; - public const LANGUAGES_EN_FK = 'en-fk'; - public const LANGUAGES_EN_FM = 'en-fm'; - public const LANGUAGES_EN_GB = 'en-gb'; - public const LANGUAGES_EN_GD = 'en-gd'; - public const LANGUAGES_EN_GG = 'en-gg'; - public const LANGUAGES_EN_GH = 'en-gh'; - public const LANGUAGES_EN_GI = 'en-gi'; - public const LANGUAGES_EN_GM = 'en-gm'; - public const LANGUAGES_EN_GU = 'en-gu'; - public const LANGUAGES_EN_GY = 'en-gy'; - public const LANGUAGES_EN_HK = 'en-hk'; - public const LANGUAGES_EN_IE = 'en-ie'; - public const LANGUAGES_EN_IL = 'en-il'; - public const LANGUAGES_EN_IM = 'en-im'; - public const LANGUAGES_EN_IN = 'en-in'; - public const LANGUAGES_EN_IO = 'en-io'; - public const LANGUAGES_EN_JE = 'en-je'; - public const LANGUAGES_EN_JM = 'en-jm'; - public const LANGUAGES_EN_KE = 'en-ke'; - public const LANGUAGES_EN_KI = 'en-ki'; - public const LANGUAGES_EN_KN = 'en-kn'; - public const LANGUAGES_EN_KY = 'en-ky'; - public const LANGUAGES_EN_LC = 'en-lc'; - public const LANGUAGES_EN_LR = 'en-lr'; - public const LANGUAGES_EN_LS = 'en-ls'; - public const LANGUAGES_EN_LU = 'en-lu'; - public const LANGUAGES_EN_MG = 'en-mg'; - public const LANGUAGES_EN_MH = 'en-mh'; - public const LANGUAGES_EN_MO = 'en-mo'; - public const LANGUAGES_EN_MP = 'en-mp'; - public const LANGUAGES_EN_MS = 'en-ms'; - public const LANGUAGES_EN_MT = 'en-mt'; - public const LANGUAGES_EN_MU = 'en-mu'; - public const LANGUAGES_EN_MW = 'en-mw'; - public const LANGUAGES_EN_MY = 'en-my'; - public const LANGUAGES_EN_NA = 'en-na'; - public const LANGUAGES_EN_NF = 'en-nf'; - public const LANGUAGES_EN_NG = 'en-ng'; - public const LANGUAGES_EN_NL = 'en-nl'; - public const LANGUAGES_EN_NR = 'en-nr'; - public const LANGUAGES_EN_NU = 'en-nu'; - public const LANGUAGES_EN_NZ = 'en-nz'; - public const LANGUAGES_EN_PG = 'en-pg'; - public const LANGUAGES_EN_PH = 'en-ph'; - public const LANGUAGES_EN_PK = 'en-pk'; - public const LANGUAGES_EN_PN = 'en-pn'; - public const LANGUAGES_EN_PR = 'en-pr'; - public const LANGUAGES_EN_PW = 'en-pw'; - public const LANGUAGES_EN_RW = 'en-rw'; - public const LANGUAGES_EN_SB = 'en-sb'; - public const LANGUAGES_EN_SC = 'en-sc'; - public const LANGUAGES_EN_SD = 'en-sd'; - public const LANGUAGES_EN_SE = 'en-se'; - public const LANGUAGES_EN_SG = 'en-sg'; - public const LANGUAGES_EN_SH = 'en-sh'; - public const LANGUAGES_EN_SI = 'en-si'; - public const LANGUAGES_EN_SL = 'en-sl'; - public const LANGUAGES_EN_SS = 'en-ss'; - public const LANGUAGES_EN_SX = 'en-sx'; - public const LANGUAGES_EN_SZ = 'en-sz'; - public const LANGUAGES_EN_TC = 'en-tc'; - public const LANGUAGES_EN_TK = 'en-tk'; - public const LANGUAGES_EN_TO = 'en-to'; - public const LANGUAGES_EN_TT = 'en-tt'; - public const LANGUAGES_EN_TV = 'en-tv'; - public const LANGUAGES_EN_TZ = 'en-tz'; - public const LANGUAGES_EN_UG = 'en-ug'; - public const LANGUAGES_EN_UM = 'en-um'; - public const LANGUAGES_EN_US = 'en-us'; - public const LANGUAGES_EN_VC = 'en-vc'; - public const LANGUAGES_EN_VG = 'en-vg'; - public const LANGUAGES_EN_VI = 'en-vi'; - public const LANGUAGES_EN_VU = 'en-vu'; - public const LANGUAGES_EN_WS = 'en-ws'; - public const LANGUAGES_EN_ZA = 'en-za'; - public const LANGUAGES_EN_ZM = 'en-zm'; - public const LANGUAGES_EN_ZW = 'en-zw'; - public const LANGUAGES_EO = 'eo'; - public const LANGUAGES_EO_001 = 'eo-001'; - public const LANGUAGES_ES = 'es'; - public const LANGUAGES_ES_419 = 'es-419'; - public const LANGUAGES_ES_AR = 'es-ar'; - public const LANGUAGES_ES_BO = 'es-bo'; - public const LANGUAGES_ES_BR = 'es-br'; - public const LANGUAGES_ES_BZ = 'es-bz'; - public const LANGUAGES_ES_CL = 'es-cl'; - public const LANGUAGES_ES_CO = 'es-co'; - public const LANGUAGES_ES_CR = 'es-cr'; - public const LANGUAGES_ES_CU = 'es-cu'; - public const LANGUAGES_ES_DO = 'es-do'; - public const LANGUAGES_ES_EA = 'es-ea'; - public const LANGUAGES_ES_EC = 'es-ec'; - public const LANGUAGES_ES_ES = 'es-es'; - public const LANGUAGES_ES_GQ = 'es-gq'; - public const LANGUAGES_ES_GT = 'es-gt'; - public const LANGUAGES_ES_HN = 'es-hn'; - public const LANGUAGES_ES_IC = 'es-ic'; - public const LANGUAGES_ES_MX = 'es-mx'; - public const LANGUAGES_ES_NI = 'es-ni'; - public const LANGUAGES_ES_PA = 'es-pa'; - public const LANGUAGES_ES_PE = 'es-pe'; - public const LANGUAGES_ES_PH = 'es-ph'; - public const LANGUAGES_ES_PR = 'es-pr'; - public const LANGUAGES_ES_PY = 'es-py'; - public const LANGUAGES_ES_SV = 'es-sv'; - public const LANGUAGES_ES_US = 'es-us'; - public const LANGUAGES_ES_UY = 'es-uy'; - public const LANGUAGES_ES_VE = 'es-ve'; - public const LANGUAGES_ET = 'et'; - public const LANGUAGES_ET_EE = 'et-ee'; - public const LANGUAGES_EU = 'eu'; - public const LANGUAGES_EU_ES = 'eu-es'; - public const LANGUAGES_EWO = 'ewo'; - public const LANGUAGES_EWO_CM = 'ewo-cm'; - public const LANGUAGES_FA = 'fa'; - public const LANGUAGES_FA_AF = 'fa-af'; - public const LANGUAGES_FA_IR = 'fa-ir'; - public const LANGUAGES_FF = 'ff'; - public const LANGUAGES_FF_CM = 'ff-cm'; - public const LANGUAGES_FF_GN = 'ff-gn'; - public const LANGUAGES_FF_MR = 'ff-mr'; - public const LANGUAGES_FF_SN = 'ff-sn'; - public const LANGUAGES_FI = 'fi'; - public const LANGUAGES_FI_FI = 'fi-fi'; - public const LANGUAGES_FIL = 'fil'; - public const LANGUAGES_FIL_PH = 'fil-ph'; - public const LANGUAGES_FO = 'fo'; - public const LANGUAGES_FO_DK = 'fo-dk'; - public const LANGUAGES_FO_FO = 'fo-fo'; - public const LANGUAGES_FR = 'fr'; - public const LANGUAGES_FR_BE = 'fr-be'; - public const LANGUAGES_FR_BF = 'fr-bf'; - public const LANGUAGES_FR_BI = 'fr-bi'; - public const LANGUAGES_FR_BJ = 'fr-bj'; - public const LANGUAGES_FR_BL = 'fr-bl'; - public const LANGUAGES_FR_CA = 'fr-ca'; - public const LANGUAGES_FR_CD = 'fr-cd'; - public const LANGUAGES_FR_CF = 'fr-cf'; - public const LANGUAGES_FR_CG = 'fr-cg'; - public const LANGUAGES_FR_CH = 'fr-ch'; - public const LANGUAGES_FR_CI = 'fr-ci'; - public const LANGUAGES_FR_CM = 'fr-cm'; - public const LANGUAGES_FR_DJ = 'fr-dj'; - public const LANGUAGES_FR_DZ = 'fr-dz'; - public const LANGUAGES_FR_FR = 'fr-fr'; - public const LANGUAGES_FR_GA = 'fr-ga'; - public const LANGUAGES_FR_GF = 'fr-gf'; - public const LANGUAGES_FR_GN = 'fr-gn'; - public const LANGUAGES_FR_GP = 'fr-gp'; - public const LANGUAGES_FR_GQ = 'fr-gq'; - public const LANGUAGES_FR_HT = 'fr-ht'; - public const LANGUAGES_FR_KM = 'fr-km'; - public const LANGUAGES_FR_LU = 'fr-lu'; - public const LANGUAGES_FR_MA = 'fr-ma'; - public const LANGUAGES_FR_MC = 'fr-mc'; - public const LANGUAGES_FR_MF = 'fr-mf'; - public const LANGUAGES_FR_MG = 'fr-mg'; - public const LANGUAGES_FR_ML = 'fr-ml'; - public const LANGUAGES_FR_MQ = 'fr-mq'; - public const LANGUAGES_FR_MR = 'fr-mr'; - public const LANGUAGES_FR_MU = 'fr-mu'; - public const LANGUAGES_FR_NC = 'fr-nc'; - public const LANGUAGES_FR_NE = 'fr-ne'; - public const LANGUAGES_FR_PF = 'fr-pf'; - public const LANGUAGES_FR_PM = 'fr-pm'; - public const LANGUAGES_FR_RE = 'fr-re'; - public const LANGUAGES_FR_RW = 'fr-rw'; - public const LANGUAGES_FR_SC = 'fr-sc'; - public const LANGUAGES_FR_SN = 'fr-sn'; - public const LANGUAGES_FR_SY = 'fr-sy'; - public const LANGUAGES_FR_TD = 'fr-td'; - public const LANGUAGES_FR_TG = 'fr-tg'; - public const LANGUAGES_FR_TN = 'fr-tn'; - public const LANGUAGES_FR_VU = 'fr-vu'; - public const LANGUAGES_FR_WF = 'fr-wf'; - public const LANGUAGES_FR_YT = 'fr-yt'; - public const LANGUAGES_FUR = 'fur'; - public const LANGUAGES_FUR_IT = 'fur-it'; - public const LANGUAGES_FY = 'fy'; - public const LANGUAGES_FY_NL = 'fy-nl'; - public const LANGUAGES_GA = 'ga'; - public const LANGUAGES_GA_IE = 'ga-ie'; - public const LANGUAGES_GD = 'gd'; - public const LANGUAGES_GD_GB = 'gd-gb'; - public const LANGUAGES_GL = 'gl'; - public const LANGUAGES_GL_ES = 'gl-es'; - public const LANGUAGES_GSW = 'gsw'; - public const LANGUAGES_GSW_CH = 'gsw-ch'; - public const LANGUAGES_GSW_FR = 'gsw-fr'; - public const LANGUAGES_GSW_LI = 'gsw-li'; - public const LANGUAGES_GU = 'gu'; - public const LANGUAGES_GU_IN = 'gu-in'; - public const LANGUAGES_GUZ = 'guz'; - public const LANGUAGES_GUZ_KE = 'guz-ke'; - public const LANGUAGES_GV = 'gv'; - public const LANGUAGES_GV_IM = 'gv-im'; - public const LANGUAGES_HA = 'ha'; - public const LANGUAGES_HA_GH = 'ha-gh'; - public const LANGUAGES_HA_NE = 'ha-ne'; - public const LANGUAGES_HA_NG = 'ha-ng'; - public const LANGUAGES_HAW = 'haw'; - public const LANGUAGES_HAW_US = 'haw-us'; - public const LANGUAGES_HE = 'he'; - public const LANGUAGES_HI = 'hi'; - public const LANGUAGES_HI_IN = 'hi-in'; - public const LANGUAGES_HR = 'hr'; - public const LANGUAGES_HR_BA = 'hr-ba'; - public const LANGUAGES_HR_HR = 'hr-hr'; - public const LANGUAGES_HSB = 'hsb'; - public const LANGUAGES_HSB_DE = 'hsb-de'; - public const LANGUAGES_HU = 'hu'; - public const LANGUAGES_HU_HU = 'hu-hu'; - public const LANGUAGES_HY = 'hy'; - public const LANGUAGES_HY_AM = 'hy-am'; - public const LANGUAGES_ID = 'id'; - public const LANGUAGES_IG = 'ig'; - public const LANGUAGES_IG_NG = 'ig-ng'; - public const LANGUAGES_II = 'ii'; - public const LANGUAGES_II_CN = 'ii-cn'; - public const LANGUAGES_ID_ID = 'id-id'; - public const LANGUAGES_IS = 'is'; - public const LANGUAGES_IS_IS = 'is-is'; - public const LANGUAGES_IT = 'it'; - public const LANGUAGES_IT_CH = 'it-ch'; - public const LANGUAGES_IT_IT = 'it-it'; - public const LANGUAGES_IT_SM = 'it-sm'; - public const LANGUAGES_IT_VA = 'it-va'; - public const LANGUAGES_HE_IL = 'he-il'; - public const LANGUAGES_JA = 'ja'; - public const LANGUAGES_JA_JP = 'ja-jp'; - public const LANGUAGES_JGO = 'jgo'; - public const LANGUAGES_JGO_CM = 'jgo-cm'; - public const LANGUAGES_YI = 'yi'; - public const LANGUAGES_YI_001 = 'yi-001'; - public const LANGUAGES_JMC = 'jmc'; - public const LANGUAGES_JMC_TZ = 'jmc-tz'; - public const LANGUAGES_KA = 'ka'; - public const LANGUAGES_KA_GE = 'ka-ge'; - public const LANGUAGES_KAB = 'kab'; - public const LANGUAGES_KAB_DZ = 'kab-dz'; - public const LANGUAGES_KAM = 'kam'; - public const LANGUAGES_KAM_KE = 'kam-ke'; - public const LANGUAGES_KDE = 'kde'; - public const LANGUAGES_KDE_TZ = 'kde-tz'; - public const LANGUAGES_KEA = 'kea'; - public const LANGUAGES_KEA_CV = 'kea-cv'; - public const LANGUAGES_KHQ = 'khq'; - public const LANGUAGES_KHQ_ML = 'khq-ml'; - public const LANGUAGES_KI = 'ki'; - public const LANGUAGES_KI_KE = 'ki-ke'; - public const LANGUAGES_KK = 'kk'; - public const LANGUAGES_KK_KZ = 'kk-kz'; - public const LANGUAGES_KKJ = 'kkj'; - public const LANGUAGES_KKJ_CM = 'kkj-cm'; - public const LANGUAGES_KL = 'kl'; - public const LANGUAGES_KL_GL = 'kl-gl'; - public const LANGUAGES_KLN = 'kln'; - public const LANGUAGES_KLN_KE = 'kln-ke'; - public const LANGUAGES_KM = 'km'; - public const LANGUAGES_KM_KH = 'km-kh'; - public const LANGUAGES_KN = 'kn'; - public const LANGUAGES_KN_IN = 'kn-in'; - public const LANGUAGES_KO = 'ko'; - public const LANGUAGES_KO_KP = 'ko-kp'; - public const LANGUAGES_KO_KR = 'ko-kr'; - public const LANGUAGES_KOK = 'kok'; - public const LANGUAGES_KOK_IN = 'kok-in'; - public const LANGUAGES_KS = 'ks'; - public const LANGUAGES_KS_IN = 'ks-in'; - public const LANGUAGES_KSB = 'ksb'; - public const LANGUAGES_KSB_TZ = 'ksb-tz'; - public const LANGUAGES_KSF = 'ksf'; - public const LANGUAGES_KSF_CM = 'ksf-cm'; - public const LANGUAGES_KSH = 'ksh'; - public const LANGUAGES_KSH_DE = 'ksh-de'; - public const LANGUAGES_KW = 'kw'; - public const LANGUAGES_KW_GB = 'kw-gb'; - public const LANGUAGES_KY = 'ky'; - public const LANGUAGES_KY_KG = 'ky-kg'; - public const LANGUAGES_LAG = 'lag'; - public const LANGUAGES_LAG_TZ = 'lag-tz'; - public const LANGUAGES_LB = 'lb'; - public const LANGUAGES_LB_LU = 'lb-lu'; - public const LANGUAGES_LG = 'lg'; - public const LANGUAGES_LG_UG = 'lg-ug'; - public const LANGUAGES_LKT = 'lkt'; - public const LANGUAGES_LKT_US = 'lkt-us'; - public const LANGUAGES_LN = 'ln'; - public const LANGUAGES_LN_AO = 'ln-ao'; - public const LANGUAGES_LN_CD = 'ln-cd'; - public const LANGUAGES_LN_CF = 'ln-cf'; - public const LANGUAGES_LN_CG = 'ln-cg'; - public const LANGUAGES_LO = 'lo'; - public const LANGUAGES_LO_LA = 'lo-la'; - public const LANGUAGES_LRC = 'lrc'; - public const LANGUAGES_LRC_IQ = 'lrc-iq'; - public const LANGUAGES_LRC_IR = 'lrc-ir'; - public const LANGUAGES_LT = 'lt'; - public const LANGUAGES_LT_LT = 'lt-lt'; - public const LANGUAGES_LU = 'lu'; - public const LANGUAGES_LU_CD = 'lu-cd'; - public const LANGUAGES_LUO = 'luo'; - public const LANGUAGES_LUO_KE = 'luo-ke'; - public const LANGUAGES_LUY = 'luy'; - public const LANGUAGES_LUY_KE = 'luy-ke'; - public const LANGUAGES_LV = 'lv'; - public const LANGUAGES_LV_LV = 'lv-lv'; - public const LANGUAGES_MAS = 'mas'; - public const LANGUAGES_MAS_KE = 'mas-ke'; - public const LANGUAGES_MAS_TZ = 'mas-tz'; - public const LANGUAGES_MER = 'mer'; - public const LANGUAGES_MER_KE = 'mer-ke'; - public const LANGUAGES_MFE = 'mfe'; - public const LANGUAGES_MFE_MU = 'mfe-mu'; - public const LANGUAGES_MG = 'mg'; - public const LANGUAGES_MG_MG = 'mg-mg'; - public const LANGUAGES_MGH = 'mgh'; - public const LANGUAGES_MGH_MZ = 'mgh-mz'; - public const LANGUAGES_MGO = 'mgo'; - public const LANGUAGES_MGO_CM = 'mgo-cm'; - public const LANGUAGES_MK = 'mk'; - public const LANGUAGES_MK_MK = 'mk-mk'; - public const LANGUAGES_ML = 'ml'; - public const LANGUAGES_ML_IN = 'ml-in'; - public const LANGUAGES_MN = 'mn'; - public const LANGUAGES_MN_MN = 'mn-mn'; - public const LANGUAGES_MR = 'mr'; - public const LANGUAGES_MR_IN = 'mr-in'; - public const LANGUAGES_MS = 'ms'; - public const LANGUAGES_MS_BN = 'ms-bn'; - public const LANGUAGES_MS_MY = 'ms-my'; - public const LANGUAGES_MS_SG = 'ms-sg'; - public const LANGUAGES_MT = 'mt'; - public const LANGUAGES_MT_MT = 'mt-mt'; - public const LANGUAGES_MUA = 'mua'; - public const LANGUAGES_MUA_CM = 'mua-cm'; - public const LANGUAGES_MY = 'my'; - public const LANGUAGES_MY_MM = 'my-mm'; - public const LANGUAGES_MZN = 'mzn'; - public const LANGUAGES_MZN_IR = 'mzn-ir'; - public const LANGUAGES_NAQ = 'naq'; - public const LANGUAGES_NAQ_NA = 'naq-na'; - public const LANGUAGES_NB = 'nb'; - public const LANGUAGES_NB_NO = 'nb-no'; - public const LANGUAGES_NB_SJ = 'nb-sj'; - public const LANGUAGES_ND = 'nd'; - public const LANGUAGES_ND_ZW = 'nd-zw'; - public const LANGUAGES_NDS = 'nds'; - public const LANGUAGES_NDS_DE = 'nds-de'; - public const LANGUAGES_NDS_NL = 'nds-nl'; - public const LANGUAGES_NE = 'ne'; - public const LANGUAGES_NE_IN = 'ne-in'; - public const LANGUAGES_NE_NP = 'ne-np'; - public const LANGUAGES_NL = 'nl'; - public const LANGUAGES_NL_AW = 'nl-aw'; - public const LANGUAGES_NL_BE = 'nl-be'; - public const LANGUAGES_NL_CH = 'nl-ch'; - public const LANGUAGES_NL_BQ = 'nl-bq'; - public const LANGUAGES_NL_CW = 'nl-cw'; - public const LANGUAGES_NL_LU = 'nl-lu'; - public const LANGUAGES_NL_NL = 'nl-nl'; - public const LANGUAGES_NL_SR = 'nl-sr'; - public const LANGUAGES_NL_SX = 'nl-sx'; - public const LANGUAGES_NMG = 'nmg'; - public const LANGUAGES_NMG_CM = 'nmg-cm'; - public const LANGUAGES_NN = 'nn'; - public const LANGUAGES_NN_NO = 'nn-no'; - public const LANGUAGES_NNH = 'nnh'; - public const LANGUAGES_NNH_CM = 'nnh-cm'; - public const LANGUAGES_NO = 'no'; - public const LANGUAGES_NO_NO = 'no-no'; - public const LANGUAGES_NUS = 'nus'; - public const LANGUAGES_NUS_SS = 'nus-ss'; - public const LANGUAGES_NYN = 'nyn'; - public const LANGUAGES_NYN_UG = 'nyn-ug'; - public const LANGUAGES_OM = 'om'; - public const LANGUAGES_OM_ET = 'om-et'; - public const LANGUAGES_OM_KE = 'om-ke'; - public const LANGUAGES__OR = 'or'; - public const LANGUAGES_OR_IN = 'or-in'; - public const LANGUAGES_OS = 'os'; - public const LANGUAGES_OS_GE = 'os-ge'; - public const LANGUAGES_OS_RU = 'os-ru'; - public const LANGUAGES_PA = 'pa'; - public const LANGUAGES_PA_IN = 'pa-in'; - public const LANGUAGES_PA_PK = 'pa-pk'; - public const LANGUAGES_PL = 'pl'; - public const LANGUAGES_PL_PL = 'pl-pl'; - public const LANGUAGES_PRG = 'prg'; - public const LANGUAGES_PRG_001 = 'prg-001'; - public const LANGUAGES_PS = 'ps'; - public const LANGUAGES_PS_AF = 'ps-af'; - public const LANGUAGES_PT = 'pt'; - public const LANGUAGES_PT_AO = 'pt-ao'; - public const LANGUAGES_PT_BR = 'pt-br'; - public const LANGUAGES_PT_CH = 'pt-ch'; - public const LANGUAGES_PT_CV = 'pt-cv'; - public const LANGUAGES_PT_GQ = 'pt-gq'; - public const LANGUAGES_PT_GW = 'pt-gw'; - public const LANGUAGES_PT_LU = 'pt-lu'; - public const LANGUAGES_PT_MO = 'pt-mo'; - public const LANGUAGES_PT_MZ = 'pt-mz'; - public const LANGUAGES_PT_PT = 'pt-pt'; - public const LANGUAGES_PT_ST = 'pt-st'; - public const LANGUAGES_PT_TL = 'pt-tl'; - public const LANGUAGES_QU = 'qu'; - public const LANGUAGES_QU_BO = 'qu-bo'; - public const LANGUAGES_QU_EC = 'qu-ec'; - public const LANGUAGES_QU_PE = 'qu-pe'; - public const LANGUAGES_RM = 'rm'; - public const LANGUAGES_RM_CH = 'rm-ch'; - public const LANGUAGES_RN = 'rn'; - public const LANGUAGES_RN_BI = 'rn-bi'; - public const LANGUAGES_RO = 'ro'; - public const LANGUAGES_RO_MD = 'ro-md'; - public const LANGUAGES_RO_RO = 'ro-ro'; - public const LANGUAGES_ROF = 'rof'; - public const LANGUAGES_ROF_TZ = 'rof-tz'; - public const LANGUAGES_RU = 'ru'; - public const LANGUAGES_RU_BY = 'ru-by'; - public const LANGUAGES_RU_KG = 'ru-kg'; - public const LANGUAGES_RU_KZ = 'ru-kz'; - public const LANGUAGES_RU_MD = 'ru-md'; - public const LANGUAGES_RU_RU = 'ru-ru'; - public const LANGUAGES_RU_UA = 'ru-ua'; - public const LANGUAGES_RW = 'rw'; - public const LANGUAGES_RW_RW = 'rw-rw'; - public const LANGUAGES_RWK = 'rwk'; - public const LANGUAGES_RWK_TZ = 'rwk-tz'; - public const LANGUAGES_SA = 'sa'; - public const LANGUAGES_SAH = 'sah'; - public const LANGUAGES_SAH_RU = 'sah-ru'; - public const LANGUAGES_SAQ = 'saq'; - public const LANGUAGES_SAQ_KE = 'saq-ke'; - public const LANGUAGES_SBP = 'sbp'; - public const LANGUAGES_SBP_TZ = 'sbp-tz'; - public const LANGUAGES_SD = 'sd'; - public const LANGUAGES_SD_PK = 'sd-pk'; - public const LANGUAGES_SE = 'se'; - public const LANGUAGES_SE_FI = 'se-fi'; - public const LANGUAGES_SE_NO = 'se-no'; - public const LANGUAGES_SE_SE = 'se-se'; - public const LANGUAGES_SEH = 'seh'; - public const LANGUAGES_SEH_MZ = 'seh-mz'; - public const LANGUAGES_SES = 'ses'; - public const LANGUAGES_SES_ML = 'ses-ml'; - public const LANGUAGES_SG = 'sg'; - public const LANGUAGES_SG_CF = 'sg-cf'; - public const LANGUAGES_SHI = 'shi'; - public const LANGUAGES_SHI_MA = 'shi-ma'; - public const LANGUAGES_SI = 'si'; - public const LANGUAGES_SI_LK = 'si-lk'; - public const LANGUAGES_SK = 'sk'; - public const LANGUAGES_SK_SK = 'sk-sk'; - public const LANGUAGES_SL = 'sl'; - public const LANGUAGES_SL_SI = 'sl-si'; - public const LANGUAGES_SMN = 'smn'; - public const LANGUAGES_SMN_FI = 'smn-fi'; - public const LANGUAGES_SN = 'sn'; - public const LANGUAGES_SN_ZW = 'sn-zw'; - public const LANGUAGES_SO = 'so'; - public const LANGUAGES_SO_DJ = 'so-dj'; - public const LANGUAGES_SO_ET = 'so-et'; - public const LANGUAGES_SO_KE = 'so-ke'; - public const LANGUAGES_SO_SO = 'so-so'; - public const LANGUAGES_SQ = 'sq'; - public const LANGUAGES_SQ_AL = 'sq-al'; - public const LANGUAGES_SQ_MK = 'sq-mk'; - public const LANGUAGES_SQ_XK = 'sq-xk'; - public const LANGUAGES_SR = 'sr'; - public const LANGUAGES_SR_BA = 'sr-ba'; - public const LANGUAGES_SR_CS = 'sr-cs'; - public const LANGUAGES_SR_ME = 'sr-me'; - public const LANGUAGES_SR_RS = 'sr-rs'; - public const LANGUAGES_SR_XK = 'sr-xk'; - public const LANGUAGES_SV = 'sv'; - public const LANGUAGES_SV_AX = 'sv-ax'; - public const LANGUAGES_SV_FI = 'sv-fi'; - public const LANGUAGES_SV_SE = 'sv-se'; - public const LANGUAGES_SW = 'sw'; - public const LANGUAGES_SW_CD = 'sw-cd'; - public const LANGUAGES_SW_KE = 'sw-ke'; - public const LANGUAGES_SW_TZ = 'sw-tz'; - public const LANGUAGES_SW_UG = 'sw-ug'; - public const LANGUAGES_SY = 'sy'; - public const LANGUAGES_TA = 'ta'; - public const LANGUAGES_TA_IN = 'ta-in'; - public const LANGUAGES_TA_LK = 'ta-lk'; - public const LANGUAGES_TA_MY = 'ta-my'; - public const LANGUAGES_TA_SG = 'ta-sg'; - public const LANGUAGES_TE = 'te'; - public const LANGUAGES_TE_IN = 'te-in'; - public const LANGUAGES_TEO = 'teo'; - public const LANGUAGES_TEO_KE = 'teo-ke'; - public const LANGUAGES_TEO_UG = 'teo-ug'; - public const LANGUAGES_TG = 'tg'; - public const LANGUAGES_TG_TJ = 'tg-tj'; - public const LANGUAGES_TH = 'th'; - public const LANGUAGES_TH_TH = 'th-th'; - public const LANGUAGES_TI = 'ti'; - public const LANGUAGES_TI_ER = 'ti-er'; - public const LANGUAGES_TI_ET = 'ti-et'; - public const LANGUAGES_TK = 'tk'; - public const LANGUAGES_TK_TM = 'tk-tm'; - public const LANGUAGES_TO = 'to'; - public const LANGUAGES_TO_TO = 'to-to'; - public const LANGUAGES_TR = 'tr'; - public const LANGUAGES_TR_CY = 'tr-cy'; - public const LANGUAGES_TR_TR = 'tr-tr'; - public const LANGUAGES_TT = 'tt'; - public const LANGUAGES_TT_RU = 'tt-ru'; - public const LANGUAGES_TWQ = 'twq'; - public const LANGUAGES_TWQ_NE = 'twq-ne'; - public const LANGUAGES_TZM = 'tzm'; - public const LANGUAGES_TZM_MA = 'tzm-ma'; - public const LANGUAGES_UG = 'ug'; - public const LANGUAGES_UG_CN = 'ug-cn'; - public const LANGUAGES_UK = 'uk'; - public const LANGUAGES_UK_UA = 'uk-ua'; - public const LANGUAGES_UR = 'ur'; - public const LANGUAGES_UR_IN = 'ur-in'; - public const LANGUAGES_UR_PK = 'ur-pk'; - public const LANGUAGES_UZ = 'uz'; - public const LANGUAGES_UZ_AF = 'uz-af'; - public const LANGUAGES_UZ_UZ = 'uz-uz'; - public const LANGUAGES_VAI = 'vai'; - public const LANGUAGES_VAI_LR = 'vai-lr'; - public const LANGUAGES_VI = 'vi'; - public const LANGUAGES_VI_VN = 'vi-vn'; - public const LANGUAGES_VO = 'vo'; - public const LANGUAGES_VO_001 = 'vo-001'; - public const LANGUAGES_VUN = 'vun'; - public const LANGUAGES_VUN_TZ = 'vun-tz'; - public const LANGUAGES_WAE = 'wae'; - public const LANGUAGES_WAE_CH = 'wae-ch'; - public const LANGUAGES_WO = 'wo'; - public const LANGUAGES_WO_SN = 'wo-sn'; - public const LANGUAGES_XOG = 'xog'; - public const LANGUAGES_XOG_UG = 'xog-ug'; - public const LANGUAGES_YAV = 'yav'; - public const LANGUAGES_YAV_CM = 'yav-cm'; - public const LANGUAGES_YO = 'yo'; - public const LANGUAGES_YO_BJ = 'yo-bj'; - public const LANGUAGES_YO_NG = 'yo-ng'; - public const LANGUAGES_YUE = 'yue'; - public const LANGUAGES_YUE_CN = 'yue-cn'; - public const LANGUAGES_YUE_HK = 'yue-hk'; - public const LANGUAGES_ZGH = 'zgh'; - public const LANGUAGES_ZGH_MA = 'zgh-ma'; - public const LANGUAGES_ZH = 'zh'; - public const LANGUAGES_ZH_CN = 'zh-cn'; - public const LANGUAGES_ZH_HK = 'zh-hk'; - public const LANGUAGES_ZH_MO = 'zh-mo'; - public const LANGUAGES_ZH_SG = 'zh-sg'; - public const LANGUAGES_ZH_TW = 'zh-tw'; - public const LANGUAGES_ZH_HANS = 'zh-hans'; - public const LANGUAGES_ZH_HANT = 'zh-hant'; - public const LANGUAGES_ZU = 'zu'; - public const LANGUAGES_ZU_ZA = 'zu-za'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getLanguagesAllowableValues() - { - return [ - self::LANGUAGES_AF, - self::LANGUAGES_AF_NA, - self::LANGUAGES_AF_ZA, - self::LANGUAGES_AGQ, - self::LANGUAGES_AGQ_CM, - self::LANGUAGES_AK, - self::LANGUAGES_AK_GH, - self::LANGUAGES_AM, - self::LANGUAGES_AM_ET, - self::LANGUAGES_AR, - self::LANGUAGES_AR_001, - self::LANGUAGES_AR_AE, - self::LANGUAGES_AR_BH, - self::LANGUAGES_AR_DJ, - self::LANGUAGES_AR_DZ, - self::LANGUAGES_AR_EG, - self::LANGUAGES_AR_EH, - self::LANGUAGES_AR_ER, - self::LANGUAGES_AR_IL, - self::LANGUAGES_AR_IQ, - self::LANGUAGES_AR_JO, - self::LANGUAGES_AR_KM, - self::LANGUAGES_AR_KW, - self::LANGUAGES_AR_LB, - self::LANGUAGES_AR_LY, - self::LANGUAGES_AR_MA, - self::LANGUAGES_AR_MR, - self::LANGUAGES_AR_OM, - self::LANGUAGES_AR_PS, - self::LANGUAGES_AR_QA, - self::LANGUAGES_AR_SA, - self::LANGUAGES_AR_SD, - self::LANGUAGES_AR_SO, - self::LANGUAGES_AR_SS, - self::LANGUAGES_AR_SY, - self::LANGUAGES_AR_TD, - self::LANGUAGES_AR_TN, - self::LANGUAGES_AR_YE, - self::LANGUAGES__AS, - self::LANGUAGES_AS_IN, - self::LANGUAGES_ASA, - self::LANGUAGES_ASA_TZ, - self::LANGUAGES_AST, - self::LANGUAGES_AST_ES, - self::LANGUAGES_AZ, - self::LANGUAGES_AZ_AZ, - self::LANGUAGES_BAS, - self::LANGUAGES_BAS_CM, - self::LANGUAGES_BE, - self::LANGUAGES_BE_BY, - self::LANGUAGES_BEM, - self::LANGUAGES_BEM_ZM, - self::LANGUAGES_BEZ, - self::LANGUAGES_BEZ_TZ, - self::LANGUAGES_BG, - self::LANGUAGES_BG_BG, - self::LANGUAGES_BM, - self::LANGUAGES_BM_ML, - self::LANGUAGES_BN, - self::LANGUAGES_BN_BD, - self::LANGUAGES_BN_IN, - self::LANGUAGES_BO, - self::LANGUAGES_BO_CN, - self::LANGUAGES_BO_IN, - self::LANGUAGES_BR, - self::LANGUAGES_BR_FR, - self::LANGUAGES_BRX, - self::LANGUAGES_BRX_IN, - self::LANGUAGES_BS, - self::LANGUAGES_BS_BA, - self::LANGUAGES_CA, - self::LANGUAGES_CA_AD, - self::LANGUAGES_CA_ES, - self::LANGUAGES_CA_FR, - self::LANGUAGES_CA_IT, - self::LANGUAGES_CCP, - self::LANGUAGES_CCP_BD, - self::LANGUAGES_CCP_IN, - self::LANGUAGES_CE, - self::LANGUAGES_CE_RU, - self::LANGUAGES_CGG, - self::LANGUAGES_CGG_UG, - self::LANGUAGES_CHR, - self::LANGUAGES_CHR_US, - self::LANGUAGES_CKB, - self::LANGUAGES_CKB_IQ, - self::LANGUAGES_CKB_IR, - self::LANGUAGES_CS, - self::LANGUAGES_CS_CZ, - self::LANGUAGES_CU, - self::LANGUAGES_CU_RU, - self::LANGUAGES_CY, - self::LANGUAGES_CY_GB, - self::LANGUAGES_DA, - self::LANGUAGES_DA_DK, - self::LANGUAGES_DA_GL, - self::LANGUAGES_DAV, - self::LANGUAGES_DAV_KE, - self::LANGUAGES_DE, - self::LANGUAGES_DE_AT, - self::LANGUAGES_DE_BE, - self::LANGUAGES_DE_CH, - self::LANGUAGES_DE_DE, - self::LANGUAGES_DE_GR, - self::LANGUAGES_DE_IT, - self::LANGUAGES_DE_LI, - self::LANGUAGES_DE_LU, - self::LANGUAGES_DJE, - self::LANGUAGES_DJE_NE, - self::LANGUAGES_DSB, - self::LANGUAGES_DSB_DE, - self::LANGUAGES_DUA, - self::LANGUAGES_DUA_CM, - self::LANGUAGES_DYO, - self::LANGUAGES_DYO_SN, - self::LANGUAGES_DZ, - self::LANGUAGES_DZ_BT, - self::LANGUAGES_EBU, - self::LANGUAGES_EBU_KE, - self::LANGUAGES_EE, - self::LANGUAGES_EE_GH, - self::LANGUAGES_EE_TG, - self::LANGUAGES_EL, - self::LANGUAGES_EL_CY, - self::LANGUAGES_EL_GR, - self::LANGUAGES_EN, - self::LANGUAGES_EN_001, - self::LANGUAGES_EN_150, - self::LANGUAGES_EN_AE, - self::LANGUAGES_EN_AG, - self::LANGUAGES_EN_AI, - self::LANGUAGES_EN_AS, - self::LANGUAGES_EN_AT, - self::LANGUAGES_EN_AU, - self::LANGUAGES_EN_BB, - self::LANGUAGES_EN_BE, - self::LANGUAGES_EN_BI, - self::LANGUAGES_EN_BM, - self::LANGUAGES_EN_BS, - self::LANGUAGES_EN_BW, - self::LANGUAGES_EN_BZ, - self::LANGUAGES_EN_CA, - self::LANGUAGES_EN_CC, - self::LANGUAGES_EN_CH, - self::LANGUAGES_EN_CK, - self::LANGUAGES_EN_CM, - self::LANGUAGES_EN_CX, - self::LANGUAGES_EN_CY, - self::LANGUAGES_EN_DE, - self::LANGUAGES_EN_DG, - self::LANGUAGES_EN_DK, - self::LANGUAGES_EN_DM, - self::LANGUAGES_EN_ER, - self::LANGUAGES_EN_FI, - self::LANGUAGES_EN_FJ, - self::LANGUAGES_EN_FK, - self::LANGUAGES_EN_FM, - self::LANGUAGES_EN_GB, - self::LANGUAGES_EN_GD, - self::LANGUAGES_EN_GG, - self::LANGUAGES_EN_GH, - self::LANGUAGES_EN_GI, - self::LANGUAGES_EN_GM, - self::LANGUAGES_EN_GU, - self::LANGUAGES_EN_GY, - self::LANGUAGES_EN_HK, - self::LANGUAGES_EN_IE, - self::LANGUAGES_EN_IL, - self::LANGUAGES_EN_IM, - self::LANGUAGES_EN_IN, - self::LANGUAGES_EN_IO, - self::LANGUAGES_EN_JE, - self::LANGUAGES_EN_JM, - self::LANGUAGES_EN_KE, - self::LANGUAGES_EN_KI, - self::LANGUAGES_EN_KN, - self::LANGUAGES_EN_KY, - self::LANGUAGES_EN_LC, - self::LANGUAGES_EN_LR, - self::LANGUAGES_EN_LS, - self::LANGUAGES_EN_LU, - self::LANGUAGES_EN_MG, - self::LANGUAGES_EN_MH, - self::LANGUAGES_EN_MO, - self::LANGUAGES_EN_MP, - self::LANGUAGES_EN_MS, - self::LANGUAGES_EN_MT, - self::LANGUAGES_EN_MU, - self::LANGUAGES_EN_MW, - self::LANGUAGES_EN_MY, - self::LANGUAGES_EN_NA, - self::LANGUAGES_EN_NF, - self::LANGUAGES_EN_NG, - self::LANGUAGES_EN_NL, - self::LANGUAGES_EN_NR, - self::LANGUAGES_EN_NU, - self::LANGUAGES_EN_NZ, - self::LANGUAGES_EN_PG, - self::LANGUAGES_EN_PH, - self::LANGUAGES_EN_PK, - self::LANGUAGES_EN_PN, - self::LANGUAGES_EN_PR, - self::LANGUAGES_EN_PW, - self::LANGUAGES_EN_RW, - self::LANGUAGES_EN_SB, - self::LANGUAGES_EN_SC, - self::LANGUAGES_EN_SD, - self::LANGUAGES_EN_SE, - self::LANGUAGES_EN_SG, - self::LANGUAGES_EN_SH, - self::LANGUAGES_EN_SI, - self::LANGUAGES_EN_SL, - self::LANGUAGES_EN_SS, - self::LANGUAGES_EN_SX, - self::LANGUAGES_EN_SZ, - self::LANGUAGES_EN_TC, - self::LANGUAGES_EN_TK, - self::LANGUAGES_EN_TO, - self::LANGUAGES_EN_TT, - self::LANGUAGES_EN_TV, - self::LANGUAGES_EN_TZ, - self::LANGUAGES_EN_UG, - self::LANGUAGES_EN_UM, - self::LANGUAGES_EN_US, - self::LANGUAGES_EN_VC, - self::LANGUAGES_EN_VG, - self::LANGUAGES_EN_VI, - self::LANGUAGES_EN_VU, - self::LANGUAGES_EN_WS, - self::LANGUAGES_EN_ZA, - self::LANGUAGES_EN_ZM, - self::LANGUAGES_EN_ZW, - self::LANGUAGES_EO, - self::LANGUAGES_EO_001, - self::LANGUAGES_ES, - self::LANGUAGES_ES_419, - self::LANGUAGES_ES_AR, - self::LANGUAGES_ES_BO, - self::LANGUAGES_ES_BR, - self::LANGUAGES_ES_BZ, - self::LANGUAGES_ES_CL, - self::LANGUAGES_ES_CO, - self::LANGUAGES_ES_CR, - self::LANGUAGES_ES_CU, - self::LANGUAGES_ES_DO, - self::LANGUAGES_ES_EA, - self::LANGUAGES_ES_EC, - self::LANGUAGES_ES_ES, - self::LANGUAGES_ES_GQ, - self::LANGUAGES_ES_GT, - self::LANGUAGES_ES_HN, - self::LANGUAGES_ES_IC, - self::LANGUAGES_ES_MX, - self::LANGUAGES_ES_NI, - self::LANGUAGES_ES_PA, - self::LANGUAGES_ES_PE, - self::LANGUAGES_ES_PH, - self::LANGUAGES_ES_PR, - self::LANGUAGES_ES_PY, - self::LANGUAGES_ES_SV, - self::LANGUAGES_ES_US, - self::LANGUAGES_ES_UY, - self::LANGUAGES_ES_VE, - self::LANGUAGES_ET, - self::LANGUAGES_ET_EE, - self::LANGUAGES_EU, - self::LANGUAGES_EU_ES, - self::LANGUAGES_EWO, - self::LANGUAGES_EWO_CM, - self::LANGUAGES_FA, - self::LANGUAGES_FA_AF, - self::LANGUAGES_FA_IR, - self::LANGUAGES_FF, - self::LANGUAGES_FF_CM, - self::LANGUAGES_FF_GN, - self::LANGUAGES_FF_MR, - self::LANGUAGES_FF_SN, - self::LANGUAGES_FI, - self::LANGUAGES_FI_FI, - self::LANGUAGES_FIL, - self::LANGUAGES_FIL_PH, - self::LANGUAGES_FO, - self::LANGUAGES_FO_DK, - self::LANGUAGES_FO_FO, - self::LANGUAGES_FR, - self::LANGUAGES_FR_BE, - self::LANGUAGES_FR_BF, - self::LANGUAGES_FR_BI, - self::LANGUAGES_FR_BJ, - self::LANGUAGES_FR_BL, - self::LANGUAGES_FR_CA, - self::LANGUAGES_FR_CD, - self::LANGUAGES_FR_CF, - self::LANGUAGES_FR_CG, - self::LANGUAGES_FR_CH, - self::LANGUAGES_FR_CI, - self::LANGUAGES_FR_CM, - self::LANGUAGES_FR_DJ, - self::LANGUAGES_FR_DZ, - self::LANGUAGES_FR_FR, - self::LANGUAGES_FR_GA, - self::LANGUAGES_FR_GF, - self::LANGUAGES_FR_GN, - self::LANGUAGES_FR_GP, - self::LANGUAGES_FR_GQ, - self::LANGUAGES_FR_HT, - self::LANGUAGES_FR_KM, - self::LANGUAGES_FR_LU, - self::LANGUAGES_FR_MA, - self::LANGUAGES_FR_MC, - self::LANGUAGES_FR_MF, - self::LANGUAGES_FR_MG, - self::LANGUAGES_FR_ML, - self::LANGUAGES_FR_MQ, - self::LANGUAGES_FR_MR, - self::LANGUAGES_FR_MU, - self::LANGUAGES_FR_NC, - self::LANGUAGES_FR_NE, - self::LANGUAGES_FR_PF, - self::LANGUAGES_FR_PM, - self::LANGUAGES_FR_RE, - self::LANGUAGES_FR_RW, - self::LANGUAGES_FR_SC, - self::LANGUAGES_FR_SN, - self::LANGUAGES_FR_SY, - self::LANGUAGES_FR_TD, - self::LANGUAGES_FR_TG, - self::LANGUAGES_FR_TN, - self::LANGUAGES_FR_VU, - self::LANGUAGES_FR_WF, - self::LANGUAGES_FR_YT, - self::LANGUAGES_FUR, - self::LANGUAGES_FUR_IT, - self::LANGUAGES_FY, - self::LANGUAGES_FY_NL, - self::LANGUAGES_GA, - self::LANGUAGES_GA_IE, - self::LANGUAGES_GD, - self::LANGUAGES_GD_GB, - self::LANGUAGES_GL, - self::LANGUAGES_GL_ES, - self::LANGUAGES_GSW, - self::LANGUAGES_GSW_CH, - self::LANGUAGES_GSW_FR, - self::LANGUAGES_GSW_LI, - self::LANGUAGES_GU, - self::LANGUAGES_GU_IN, - self::LANGUAGES_GUZ, - self::LANGUAGES_GUZ_KE, - self::LANGUAGES_GV, - self::LANGUAGES_GV_IM, - self::LANGUAGES_HA, - self::LANGUAGES_HA_GH, - self::LANGUAGES_HA_NE, - self::LANGUAGES_HA_NG, - self::LANGUAGES_HAW, - self::LANGUAGES_HAW_US, - self::LANGUAGES_HE, - self::LANGUAGES_HI, - self::LANGUAGES_HI_IN, - self::LANGUAGES_HR, - self::LANGUAGES_HR_BA, - self::LANGUAGES_HR_HR, - self::LANGUAGES_HSB, - self::LANGUAGES_HSB_DE, - self::LANGUAGES_HU, - self::LANGUAGES_HU_HU, - self::LANGUAGES_HY, - self::LANGUAGES_HY_AM, - self::LANGUAGES_ID, - self::LANGUAGES_IG, - self::LANGUAGES_IG_NG, - self::LANGUAGES_II, - self::LANGUAGES_II_CN, - self::LANGUAGES_ID_ID, - self::LANGUAGES_IS, - self::LANGUAGES_IS_IS, - self::LANGUAGES_IT, - self::LANGUAGES_IT_CH, - self::LANGUAGES_IT_IT, - self::LANGUAGES_IT_SM, - self::LANGUAGES_IT_VA, - self::LANGUAGES_HE_IL, - self::LANGUAGES_JA, - self::LANGUAGES_JA_JP, - self::LANGUAGES_JGO, - self::LANGUAGES_JGO_CM, - self::LANGUAGES_YI, - self::LANGUAGES_YI_001, - self::LANGUAGES_JMC, - self::LANGUAGES_JMC_TZ, - self::LANGUAGES_KA, - self::LANGUAGES_KA_GE, - self::LANGUAGES_KAB, - self::LANGUAGES_KAB_DZ, - self::LANGUAGES_KAM, - self::LANGUAGES_KAM_KE, - self::LANGUAGES_KDE, - self::LANGUAGES_KDE_TZ, - self::LANGUAGES_KEA, - self::LANGUAGES_KEA_CV, - self::LANGUAGES_KHQ, - self::LANGUAGES_KHQ_ML, - self::LANGUAGES_KI, - self::LANGUAGES_KI_KE, - self::LANGUAGES_KK, - self::LANGUAGES_KK_KZ, - self::LANGUAGES_KKJ, - self::LANGUAGES_KKJ_CM, - self::LANGUAGES_KL, - self::LANGUAGES_KL_GL, - self::LANGUAGES_KLN, - self::LANGUAGES_KLN_KE, - self::LANGUAGES_KM, - self::LANGUAGES_KM_KH, - self::LANGUAGES_KN, - self::LANGUAGES_KN_IN, - self::LANGUAGES_KO, - self::LANGUAGES_KO_KP, - self::LANGUAGES_KO_KR, - self::LANGUAGES_KOK, - self::LANGUAGES_KOK_IN, - self::LANGUAGES_KS, - self::LANGUAGES_KS_IN, - self::LANGUAGES_KSB, - self::LANGUAGES_KSB_TZ, - self::LANGUAGES_KSF, - self::LANGUAGES_KSF_CM, - self::LANGUAGES_KSH, - self::LANGUAGES_KSH_DE, - self::LANGUAGES_KW, - self::LANGUAGES_KW_GB, - self::LANGUAGES_KY, - self::LANGUAGES_KY_KG, - self::LANGUAGES_LAG, - self::LANGUAGES_LAG_TZ, - self::LANGUAGES_LB, - self::LANGUAGES_LB_LU, - self::LANGUAGES_LG, - self::LANGUAGES_LG_UG, - self::LANGUAGES_LKT, - self::LANGUAGES_LKT_US, - self::LANGUAGES_LN, - self::LANGUAGES_LN_AO, - self::LANGUAGES_LN_CD, - self::LANGUAGES_LN_CF, - self::LANGUAGES_LN_CG, - self::LANGUAGES_LO, - self::LANGUAGES_LO_LA, - self::LANGUAGES_LRC, - self::LANGUAGES_LRC_IQ, - self::LANGUAGES_LRC_IR, - self::LANGUAGES_LT, - self::LANGUAGES_LT_LT, - self::LANGUAGES_LU, - self::LANGUAGES_LU_CD, - self::LANGUAGES_LUO, - self::LANGUAGES_LUO_KE, - self::LANGUAGES_LUY, - self::LANGUAGES_LUY_KE, - self::LANGUAGES_LV, - self::LANGUAGES_LV_LV, - self::LANGUAGES_MAS, - self::LANGUAGES_MAS_KE, - self::LANGUAGES_MAS_TZ, - self::LANGUAGES_MER, - self::LANGUAGES_MER_KE, - self::LANGUAGES_MFE, - self::LANGUAGES_MFE_MU, - self::LANGUAGES_MG, - self::LANGUAGES_MG_MG, - self::LANGUAGES_MGH, - self::LANGUAGES_MGH_MZ, - self::LANGUAGES_MGO, - self::LANGUAGES_MGO_CM, - self::LANGUAGES_MK, - self::LANGUAGES_MK_MK, - self::LANGUAGES_ML, - self::LANGUAGES_ML_IN, - self::LANGUAGES_MN, - self::LANGUAGES_MN_MN, - self::LANGUAGES_MR, - self::LANGUAGES_MR_IN, - self::LANGUAGES_MS, - self::LANGUAGES_MS_BN, - self::LANGUAGES_MS_MY, - self::LANGUAGES_MS_SG, - self::LANGUAGES_MT, - self::LANGUAGES_MT_MT, - self::LANGUAGES_MUA, - self::LANGUAGES_MUA_CM, - self::LANGUAGES_MY, - self::LANGUAGES_MY_MM, - self::LANGUAGES_MZN, - self::LANGUAGES_MZN_IR, - self::LANGUAGES_NAQ, - self::LANGUAGES_NAQ_NA, - self::LANGUAGES_NB, - self::LANGUAGES_NB_NO, - self::LANGUAGES_NB_SJ, - self::LANGUAGES_ND, - self::LANGUAGES_ND_ZW, - self::LANGUAGES_NDS, - self::LANGUAGES_NDS_DE, - self::LANGUAGES_NDS_NL, - self::LANGUAGES_NE, - self::LANGUAGES_NE_IN, - self::LANGUAGES_NE_NP, - self::LANGUAGES_NL, - self::LANGUAGES_NL_AW, - self::LANGUAGES_NL_BE, - self::LANGUAGES_NL_CH, - self::LANGUAGES_NL_BQ, - self::LANGUAGES_NL_CW, - self::LANGUAGES_NL_LU, - self::LANGUAGES_NL_NL, - self::LANGUAGES_NL_SR, - self::LANGUAGES_NL_SX, - self::LANGUAGES_NMG, - self::LANGUAGES_NMG_CM, - self::LANGUAGES_NN, - self::LANGUAGES_NN_NO, - self::LANGUAGES_NNH, - self::LANGUAGES_NNH_CM, - self::LANGUAGES_NO, - self::LANGUAGES_NO_NO, - self::LANGUAGES_NUS, - self::LANGUAGES_NUS_SS, - self::LANGUAGES_NYN, - self::LANGUAGES_NYN_UG, - self::LANGUAGES_OM, - self::LANGUAGES_OM_ET, - self::LANGUAGES_OM_KE, - self::LANGUAGES__OR, - self::LANGUAGES_OR_IN, - self::LANGUAGES_OS, - self::LANGUAGES_OS_GE, - self::LANGUAGES_OS_RU, - self::LANGUAGES_PA, - self::LANGUAGES_PA_IN, - self::LANGUAGES_PA_PK, - self::LANGUAGES_PL, - self::LANGUAGES_PL_PL, - self::LANGUAGES_PRG, - self::LANGUAGES_PRG_001, - self::LANGUAGES_PS, - self::LANGUAGES_PS_AF, - self::LANGUAGES_PT, - self::LANGUAGES_PT_AO, - self::LANGUAGES_PT_BR, - self::LANGUAGES_PT_CH, - self::LANGUAGES_PT_CV, - self::LANGUAGES_PT_GQ, - self::LANGUAGES_PT_GW, - self::LANGUAGES_PT_LU, - self::LANGUAGES_PT_MO, - self::LANGUAGES_PT_MZ, - self::LANGUAGES_PT_PT, - self::LANGUAGES_PT_ST, - self::LANGUAGES_PT_TL, - self::LANGUAGES_QU, - self::LANGUAGES_QU_BO, - self::LANGUAGES_QU_EC, - self::LANGUAGES_QU_PE, - self::LANGUAGES_RM, - self::LANGUAGES_RM_CH, - self::LANGUAGES_RN, - self::LANGUAGES_RN_BI, - self::LANGUAGES_RO, - self::LANGUAGES_RO_MD, - self::LANGUAGES_RO_RO, - self::LANGUAGES_ROF, - self::LANGUAGES_ROF_TZ, - self::LANGUAGES_RU, - self::LANGUAGES_RU_BY, - self::LANGUAGES_RU_KG, - self::LANGUAGES_RU_KZ, - self::LANGUAGES_RU_MD, - self::LANGUAGES_RU_RU, - self::LANGUAGES_RU_UA, - self::LANGUAGES_RW, - self::LANGUAGES_RW_RW, - self::LANGUAGES_RWK, - self::LANGUAGES_RWK_TZ, - self::LANGUAGES_SA, - self::LANGUAGES_SAH, - self::LANGUAGES_SAH_RU, - self::LANGUAGES_SAQ, - self::LANGUAGES_SAQ_KE, - self::LANGUAGES_SBP, - self::LANGUAGES_SBP_TZ, - self::LANGUAGES_SD, - self::LANGUAGES_SD_PK, - self::LANGUAGES_SE, - self::LANGUAGES_SE_FI, - self::LANGUAGES_SE_NO, - self::LANGUAGES_SE_SE, - self::LANGUAGES_SEH, - self::LANGUAGES_SEH_MZ, - self::LANGUAGES_SES, - self::LANGUAGES_SES_ML, - self::LANGUAGES_SG, - self::LANGUAGES_SG_CF, - self::LANGUAGES_SHI, - self::LANGUAGES_SHI_MA, - self::LANGUAGES_SI, - self::LANGUAGES_SI_LK, - self::LANGUAGES_SK, - self::LANGUAGES_SK_SK, - self::LANGUAGES_SL, - self::LANGUAGES_SL_SI, - self::LANGUAGES_SMN, - self::LANGUAGES_SMN_FI, - self::LANGUAGES_SN, - self::LANGUAGES_SN_ZW, - self::LANGUAGES_SO, - self::LANGUAGES_SO_DJ, - self::LANGUAGES_SO_ET, - self::LANGUAGES_SO_KE, - self::LANGUAGES_SO_SO, - self::LANGUAGES_SQ, - self::LANGUAGES_SQ_AL, - self::LANGUAGES_SQ_MK, - self::LANGUAGES_SQ_XK, - self::LANGUAGES_SR, - self::LANGUAGES_SR_BA, - self::LANGUAGES_SR_CS, - self::LANGUAGES_SR_ME, - self::LANGUAGES_SR_RS, - self::LANGUAGES_SR_XK, - self::LANGUAGES_SV, - self::LANGUAGES_SV_AX, - self::LANGUAGES_SV_FI, - self::LANGUAGES_SV_SE, - self::LANGUAGES_SW, - self::LANGUAGES_SW_CD, - self::LANGUAGES_SW_KE, - self::LANGUAGES_SW_TZ, - self::LANGUAGES_SW_UG, - self::LANGUAGES_SY, - self::LANGUAGES_TA, - self::LANGUAGES_TA_IN, - self::LANGUAGES_TA_LK, - self::LANGUAGES_TA_MY, - self::LANGUAGES_TA_SG, - self::LANGUAGES_TE, - self::LANGUAGES_TE_IN, - self::LANGUAGES_TEO, - self::LANGUAGES_TEO_KE, - self::LANGUAGES_TEO_UG, - self::LANGUAGES_TG, - self::LANGUAGES_TG_TJ, - self::LANGUAGES_TH, - self::LANGUAGES_TH_TH, - self::LANGUAGES_TI, - self::LANGUAGES_TI_ER, - self::LANGUAGES_TI_ET, - self::LANGUAGES_TK, - self::LANGUAGES_TK_TM, - self::LANGUAGES_TO, - self::LANGUAGES_TO_TO, - self::LANGUAGES_TR, - self::LANGUAGES_TR_CY, - self::LANGUAGES_TR_TR, - self::LANGUAGES_TT, - self::LANGUAGES_TT_RU, - self::LANGUAGES_TWQ, - self::LANGUAGES_TWQ_NE, - self::LANGUAGES_TZM, - self::LANGUAGES_TZM_MA, - self::LANGUAGES_UG, - self::LANGUAGES_UG_CN, - self::LANGUAGES_UK, - self::LANGUAGES_UK_UA, - self::LANGUAGES_UR, - self::LANGUAGES_UR_IN, - self::LANGUAGES_UR_PK, - self::LANGUAGES_UZ, - self::LANGUAGES_UZ_AF, - self::LANGUAGES_UZ_UZ, - self::LANGUAGES_VAI, - self::LANGUAGES_VAI_LR, - self::LANGUAGES_VI, - self::LANGUAGES_VI_VN, - self::LANGUAGES_VO, - self::LANGUAGES_VO_001, - self::LANGUAGES_VUN, - self::LANGUAGES_VUN_TZ, - self::LANGUAGES_WAE, - self::LANGUAGES_WAE_CH, - self::LANGUAGES_WO, - self::LANGUAGES_WO_SN, - self::LANGUAGES_XOG, - self::LANGUAGES_XOG_UG, - self::LANGUAGES_YAV, - self::LANGUAGES_YAV_CM, - self::LANGUAGES_YO, - self::LANGUAGES_YO_BJ, - self::LANGUAGES_YO_NG, - self::LANGUAGES_YUE, - self::LANGUAGES_YUE_CN, - self::LANGUAGES_YUE_HK, - self::LANGUAGES_ZGH, - self::LANGUAGES_ZGH_MA, - self::LANGUAGES_ZH, - self::LANGUAGES_ZH_CN, - self::LANGUAGES_ZH_HK, - self::LANGUAGES_ZH_MO, - self::LANGUAGES_ZH_SG, - self::LANGUAGES_ZH_TW, - self::LANGUAGES_ZH_HANS, - self::LANGUAGES_ZH_HANT, - self::LANGUAGES_ZU, - self::LANGUAGES_ZU_ZA, - ]; - } /** * Associative array for storing property values @@ -1621,8 +182,8 @@ public function getLanguagesAllowableValues() */ public function __construct(array $data = null) { - $this->container['primary_id'] = $data['primary_id'] ?? null; $this->container['languages'] = $data['languages'] ?? null; + $this->container['primary_id'] = $data['primary_id'] ?? null; } /** @@ -1634,12 +195,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['primary_id'] === null) { - $invalidProperties[] = "'primary_id' can't be null"; - } if ($this->container['languages'] === null) { $invalidProperties[] = "'languages' can't be null"; } + if ($this->container['primary_id'] === null) { + $invalidProperties[] = "'primary_id' can't be null"; + } return $invalidProperties; } @@ -1656,58 +217,49 @@ public function valid() /** - * Gets primary_id + * Gets languages * - * @return string + * @return array */ - public function getPrimaryId() + public function getLanguages() { - return $this->container['primary_id']; + return $this->container['languages']; } /** - * Sets primary_id + * Sets languages * - * @param string $primary_id ID of the primary object in the multi-language group. + * @param array $languages Map of object IDs to associated languages of object in the multi-language group. * * @return self */ - public function setPrimaryId($primary_id) + public function setLanguages($languages) { - $this->container['primary_id'] = $primary_id; + $this->container['languages'] = $languages; return $this; } /** - * Gets languages + * Gets primary_id * - * @return array + * @return string */ - public function getLanguages() + public function getPrimaryId() { - return $this->container['languages']; + return $this->container['primary_id']; } /** - * Sets languages + * Sets primary_id * - * @param array $languages Map of object IDs to associated languages of object in the multi-language group. + * @param string $primary_id ID of the primary object in the multi-language group. * * @return self */ - public function setLanguages($languages) + public function setPrimaryId($primary_id) { - $allowedValues = $this->getLanguagesAllowableValues(); - if (array_diff($languages, $allowedValues)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'languages', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); - } - $this->container['languages'] = $languages; + $this->container['primary_id'] = $primary_id; return $this; } diff --git a/codegen/Cms/Blogs/Tags/ObjectSerializer.php b/codegen/Cms/Blogs/Tags/ObjectSerializer.php index 17b6aa83..e2492099 100644 --- a/codegen/Cms/Blogs/Tags/ObjectSerializer.php +++ b/codegen/Cms/Blogs/Tags/ObjectSerializer.php @@ -11,7 +11,7 @@ */ /** - * Blog Post endpoints + * Tags * * Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags * diff --git a/codegen/Cms/Domains/Api/DomainsApi.php b/codegen/Cms/Domains/Api/DomainsApi.php index 8082f1a9..cb67e5ab 100644 --- a/codegen/Cms/Domains/Api/DomainsApi.php +++ b/codegen/Cms/Domains/Api/DomainsApi.php @@ -10,7 +10,7 @@ */ /** - * Domains + * CMS Domains * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * diff --git a/codegen/Cms/Domains/ApiException.php b/codegen/Cms/Domains/ApiException.php index 47986e16..f897bc03 100644 --- a/codegen/Cms/Domains/ApiException.php +++ b/codegen/Cms/Domains/ApiException.php @@ -10,7 +10,7 @@ */ /** - * Domains + * CMS Domains * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * diff --git a/codegen/Cms/Domains/Configuration.php b/codegen/Cms/Domains/Configuration.php index 094a3ad5..3a9ebe6c 100644 --- a/codegen/Cms/Domains/Configuration.php +++ b/codegen/Cms/Domains/Configuration.php @@ -10,7 +10,7 @@ */ /** - * Domains + * CMS Domains * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * diff --git a/codegen/Cms/Domains/HeaderSelector.php b/codegen/Cms/Domains/HeaderSelector.php index 9067a41a..8b6ed702 100644 --- a/codegen/Cms/Domains/HeaderSelector.php +++ b/codegen/Cms/Domains/HeaderSelector.php @@ -10,7 +10,7 @@ */ /** - * Domains + * CMS Domains * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * diff --git a/codegen/Cms/Domains/Model/CollectionResponseWithTotalDomainForwardPaging.php b/codegen/Cms/Domains/Model/CollectionResponseWithTotalDomainForwardPaging.php index c2a9ed9b..e3f51de0 100644 --- a/codegen/Cms/Domains/Model/CollectionResponseWithTotalDomainForwardPaging.php +++ b/codegen/Cms/Domains/Model/CollectionResponseWithTotalDomainForwardPaging.php @@ -11,7 +11,7 @@ */ /** - * Domains + * CMS Domains * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * @@ -58,8 +58,8 @@ class CollectionResponseWithTotalDomainForwardPaging implements ModelInterface, */ protected static $openAPITypes = [ 'total' => 'int', - 'results' => '\HubSpot\Client\Cms\Domains\Model\Domain[]', - 'paging' => '\HubSpot\Client\Cms\Domains\Model\ForwardPaging' + 'paging' => '\HubSpot\Client\Cms\Domains\Model\ForwardPaging', + 'results' => '\HubSpot\Client\Cms\Domains\Model\Domain[]' ]; /** @@ -71,8 +71,8 @@ class CollectionResponseWithTotalDomainForwardPaging implements ModelInterface, */ protected static $openAPIFormats = [ 'total' => 'int32', - 'results' => null, - 'paging' => null + 'paging' => null, + 'results' => null ]; /** @@ -103,8 +103,8 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'total' => 'total', - 'results' => 'results', - 'paging' => 'paging' + 'paging' => 'paging', + 'results' => 'results' ]; /** @@ -114,8 +114,8 @@ public static function openAPIFormats() */ protected static $setters = [ 'total' => 'setTotal', - 'results' => 'setResults', - 'paging' => 'setPaging' + 'paging' => 'setPaging', + 'results' => 'setResults' ]; /** @@ -125,8 +125,8 @@ public static function openAPIFormats() */ protected static $getters = [ 'total' => 'getTotal', - 'results' => 'getResults', - 'paging' => 'getPaging' + 'paging' => 'getPaging', + 'results' => 'getResults' ]; /** @@ -187,8 +187,8 @@ public function getModelName() public function __construct(array $data = null) { $this->container['total'] = $data['total'] ?? null; - $this->container['results'] = $data['results'] ?? null; $this->container['paging'] = $data['paging'] ?? null; + $this->container['results'] = $data['results'] ?? null; } /** @@ -246,49 +246,49 @@ public function setTotal($total) } /** - * Gets results + * Gets paging * - * @return \HubSpot\Client\Cms\Domains\Model\Domain[] + * @return \HubSpot\Client\Cms\Domains\Model\ForwardPaging|null */ - public function getResults() + public function getPaging() { - return $this->container['results']; + return $this->container['paging']; } /** - * Sets results + * Sets paging * - * @param \HubSpot\Client\Cms\Domains\Model\Domain[] $results results + * @param \HubSpot\Client\Cms\Domains\Model\ForwardPaging|null $paging paging * * @return self */ - public function setResults($results) + public function setPaging($paging) { - $this->container['results'] = $results; + $this->container['paging'] = $paging; return $this; } /** - * Gets paging + * Gets results * - * @return \HubSpot\Client\Cms\Domains\Model\ForwardPaging|null + * @return \HubSpot\Client\Cms\Domains\Model\Domain[] */ - public function getPaging() + public function getResults() { - return $this->container['paging']; + return $this->container['results']; } /** - * Sets paging + * Sets results * - * @param \HubSpot\Client\Cms\Domains\Model\ForwardPaging|null $paging paging + * @param \HubSpot\Client\Cms\Domains\Model\Domain[] $results results * * @return self */ - public function setPaging($paging) + public function setResults($results) { - $this->container['paging'] = $paging; + $this->container['results'] = $results; return $this; } diff --git a/codegen/Cms/Domains/Model/Domain.php b/codegen/Cms/Domains/Model/Domain.php index 543d4e83..2c5c76ff 100644 --- a/codegen/Cms/Domains/Model/Domain.php +++ b/codegen/Cms/Domains/Model/Domain.php @@ -11,7 +11,7 @@ */ /** - * Domains + * CMS Domains * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * @@ -57,26 +57,26 @@ class Domain implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', - 'domain' => 'string', - 'primary_landing_page' => 'bool', - 'primary_email' => 'bool', + 'is_used_for_landing_page' => 'bool', 'primary_blog_post' => 'bool', - 'primary_site_page' => 'bool', 'primary_knowledge' => 'bool', + 'created' => '\DateTime', 'secondary_to_domain' => 'string', - 'is_resolving' => 'bool', 'manually_marked_as_resolving' => 'bool', - 'is_ssl_enabled' => 'bool', - 'is_ssl_only' => 'bool', + 'is_used_for_knowledge' => 'bool', 'is_used_for_blog_post' => 'bool', 'is_used_for_site_page' => 'bool', - 'is_used_for_landing_page' => 'bool', + 'is_resolving' => 'bool', + 'is_ssl_enabled' => 'bool', 'is_used_for_email' => 'bool', - 'is_used_for_knowledge' => 'bool', + 'domain' => 'string', + 'primary_site_page' => 'bool', + 'primary_landing_page' => 'bool', + 'id' => 'string', 'correct_cname' => 'string', - 'created' => '\DateTime', - 'updated' => '\DateTime' + 'is_ssl_only' => 'bool', + 'updated' => '\DateTime', + 'primary_email' => 'bool' ]; /** @@ -87,26 +87,26 @@ class Domain implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, - 'domain' => null, - 'primary_landing_page' => null, - 'primary_email' => null, + 'is_used_for_landing_page' => null, 'primary_blog_post' => null, - 'primary_site_page' => null, 'primary_knowledge' => null, + 'created' => 'date-time', 'secondary_to_domain' => null, - 'is_resolving' => null, 'manually_marked_as_resolving' => null, - 'is_ssl_enabled' => null, - 'is_ssl_only' => null, + 'is_used_for_knowledge' => null, 'is_used_for_blog_post' => null, 'is_used_for_site_page' => null, - 'is_used_for_landing_page' => null, + 'is_resolving' => null, + 'is_ssl_enabled' => null, 'is_used_for_email' => null, - 'is_used_for_knowledge' => null, + 'domain' => null, + 'primary_site_page' => null, + 'primary_landing_page' => null, + 'id' => null, 'correct_cname' => null, - 'created' => 'date-time', - 'updated' => 'date-time' + 'is_ssl_only' => null, + 'updated' => 'date-time', + 'primary_email' => null ]; /** @@ -136,26 +136,26 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', - 'domain' => 'domain', - 'primary_landing_page' => 'primaryLandingPage', - 'primary_email' => 'primaryEmail', + 'is_used_for_landing_page' => 'isUsedForLandingPage', 'primary_blog_post' => 'primaryBlogPost', - 'primary_site_page' => 'primarySitePage', 'primary_knowledge' => 'primaryKnowledge', + 'created' => 'created', 'secondary_to_domain' => 'secondaryToDomain', - 'is_resolving' => 'isResolving', 'manually_marked_as_resolving' => 'manuallyMarkedAsResolving', - 'is_ssl_enabled' => 'isSslEnabled', - 'is_ssl_only' => 'isSslOnly', + 'is_used_for_knowledge' => 'isUsedForKnowledge', 'is_used_for_blog_post' => 'isUsedForBlogPost', 'is_used_for_site_page' => 'isUsedForSitePage', - 'is_used_for_landing_page' => 'isUsedForLandingPage', + 'is_resolving' => 'isResolving', + 'is_ssl_enabled' => 'isSslEnabled', 'is_used_for_email' => 'isUsedForEmail', - 'is_used_for_knowledge' => 'isUsedForKnowledge', + 'domain' => 'domain', + 'primary_site_page' => 'primarySitePage', + 'primary_landing_page' => 'primaryLandingPage', + 'id' => 'id', 'correct_cname' => 'correctCname', - 'created' => 'created', - 'updated' => 'updated' + 'is_ssl_only' => 'isSslOnly', + 'updated' => 'updated', + 'primary_email' => 'primaryEmail' ]; /** @@ -164,26 +164,26 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', - 'domain' => 'setDomain', - 'primary_landing_page' => 'setPrimaryLandingPage', - 'primary_email' => 'setPrimaryEmail', + 'is_used_for_landing_page' => 'setIsUsedForLandingPage', 'primary_blog_post' => 'setPrimaryBlogPost', - 'primary_site_page' => 'setPrimarySitePage', 'primary_knowledge' => 'setPrimaryKnowledge', + 'created' => 'setCreated', 'secondary_to_domain' => 'setSecondaryToDomain', - 'is_resolving' => 'setIsResolving', 'manually_marked_as_resolving' => 'setManuallyMarkedAsResolving', - 'is_ssl_enabled' => 'setIsSslEnabled', - 'is_ssl_only' => 'setIsSslOnly', + 'is_used_for_knowledge' => 'setIsUsedForKnowledge', 'is_used_for_blog_post' => 'setIsUsedForBlogPost', 'is_used_for_site_page' => 'setIsUsedForSitePage', - 'is_used_for_landing_page' => 'setIsUsedForLandingPage', + 'is_resolving' => 'setIsResolving', + 'is_ssl_enabled' => 'setIsSslEnabled', 'is_used_for_email' => 'setIsUsedForEmail', - 'is_used_for_knowledge' => 'setIsUsedForKnowledge', + 'domain' => 'setDomain', + 'primary_site_page' => 'setPrimarySitePage', + 'primary_landing_page' => 'setPrimaryLandingPage', + 'id' => 'setId', 'correct_cname' => 'setCorrectCname', - 'created' => 'setCreated', - 'updated' => 'setUpdated' + 'is_ssl_only' => 'setIsSslOnly', + 'updated' => 'setUpdated', + 'primary_email' => 'setPrimaryEmail' ]; /** @@ -192,26 +192,26 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', - 'domain' => 'getDomain', - 'primary_landing_page' => 'getPrimaryLandingPage', - 'primary_email' => 'getPrimaryEmail', + 'is_used_for_landing_page' => 'getIsUsedForLandingPage', 'primary_blog_post' => 'getPrimaryBlogPost', - 'primary_site_page' => 'getPrimarySitePage', 'primary_knowledge' => 'getPrimaryKnowledge', + 'created' => 'getCreated', 'secondary_to_domain' => 'getSecondaryToDomain', - 'is_resolving' => 'getIsResolving', 'manually_marked_as_resolving' => 'getManuallyMarkedAsResolving', - 'is_ssl_enabled' => 'getIsSslEnabled', - 'is_ssl_only' => 'getIsSslOnly', + 'is_used_for_knowledge' => 'getIsUsedForKnowledge', 'is_used_for_blog_post' => 'getIsUsedForBlogPost', 'is_used_for_site_page' => 'getIsUsedForSitePage', - 'is_used_for_landing_page' => 'getIsUsedForLandingPage', + 'is_resolving' => 'getIsResolving', + 'is_ssl_enabled' => 'getIsSslEnabled', 'is_used_for_email' => 'getIsUsedForEmail', - 'is_used_for_knowledge' => 'getIsUsedForKnowledge', + 'domain' => 'getDomain', + 'primary_site_page' => 'getPrimarySitePage', + 'primary_landing_page' => 'getPrimaryLandingPage', + 'id' => 'getId', 'correct_cname' => 'getCorrectCname', - 'created' => 'getCreated', - 'updated' => 'getUpdated' + 'is_ssl_only' => 'getIsSslOnly', + 'updated' => 'getUpdated', + 'primary_email' => 'getPrimaryEmail' ]; /** @@ -271,26 +271,26 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; - $this->container['domain'] = $data['domain'] ?? null; - $this->container['primary_landing_page'] = $data['primary_landing_page'] ?? null; - $this->container['primary_email'] = $data['primary_email'] ?? null; + $this->container['is_used_for_landing_page'] = $data['is_used_for_landing_page'] ?? null; $this->container['primary_blog_post'] = $data['primary_blog_post'] ?? null; - $this->container['primary_site_page'] = $data['primary_site_page'] ?? null; $this->container['primary_knowledge'] = $data['primary_knowledge'] ?? null; + $this->container['created'] = $data['created'] ?? null; $this->container['secondary_to_domain'] = $data['secondary_to_domain'] ?? null; - $this->container['is_resolving'] = $data['is_resolving'] ?? null; $this->container['manually_marked_as_resolving'] = $data['manually_marked_as_resolving'] ?? null; - $this->container['is_ssl_enabled'] = $data['is_ssl_enabled'] ?? null; - $this->container['is_ssl_only'] = $data['is_ssl_only'] ?? null; + $this->container['is_used_for_knowledge'] = $data['is_used_for_knowledge'] ?? null; $this->container['is_used_for_blog_post'] = $data['is_used_for_blog_post'] ?? null; $this->container['is_used_for_site_page'] = $data['is_used_for_site_page'] ?? null; - $this->container['is_used_for_landing_page'] = $data['is_used_for_landing_page'] ?? null; + $this->container['is_resolving'] = $data['is_resolving'] ?? null; + $this->container['is_ssl_enabled'] = $data['is_ssl_enabled'] ?? null; $this->container['is_used_for_email'] = $data['is_used_for_email'] ?? null; - $this->container['is_used_for_knowledge'] = $data['is_used_for_knowledge'] ?? null; + $this->container['domain'] = $data['domain'] ?? null; + $this->container['primary_site_page'] = $data['primary_site_page'] ?? null; + $this->container['primary_landing_page'] = $data['primary_landing_page'] ?? null; + $this->container['id'] = $data['id'] ?? null; $this->container['correct_cname'] = $data['correct_cname'] ?? null; - $this->container['created'] = $data['created'] ?? null; + $this->container['is_ssl_only'] = $data['is_ssl_only'] ?? null; $this->container['updated'] = $data['updated'] ?? null; + $this->container['primary_email'] = $data['primary_email'] ?? null; } /** @@ -302,14 +302,11 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['domain'] === null) { - $invalidProperties[] = "'domain' 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_resolving'] === null) { - $invalidProperties[] = "'is_resolving' 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"; @@ -317,14 +314,17 @@ public function listInvalidProperties() if ($this->container['is_used_for_site_page'] === null) { $invalidProperties[] = "'is_used_for_site_page' 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_resolving'] === null) { + $invalidProperties[] = "'is_resolving' can't be null"; } if ($this->container['is_used_for_email'] === null) { $invalidProperties[] = "'is_used_for_email' can't be null"; } - if ($this->container['is_used_for_knowledge'] === null) { - $invalidProperties[] = "'is_used_for_knowledge' 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; } @@ -342,241 +342,241 @@ public function valid() /** - * Gets id + * Gets is_used_for_landing_page * - * @return string + * @return bool */ - public function getId() + public function getIsUsedForLandingPage() { - return $this->container['id']; + return $this->container['is_used_for_landing_page']; } /** - * Sets id + * Sets is_used_for_landing_page * - * @param string $id The unique ID of this domain. + * @param bool $is_used_for_landing_page Whether the domain is used for CMS landing pages. * * @return self */ - public function setId($id) + public function setIsUsedForLandingPage($is_used_for_landing_page) { - $this->container['id'] = $id; + $this->container['is_used_for_landing_page'] = $is_used_for_landing_page; return $this; } /** - * Gets domain + * Gets primary_blog_post * - * @return string + * @return bool|null */ - public function getDomain() + public function getPrimaryBlogPost() { - return $this->container['domain']; + return $this->container['primary_blog_post']; } /** - * Sets domain + * Sets primary_blog_post * - * @param string $domain The actual domain or sub-domain. e.g. www.hubspot.com + * @param bool|null $primary_blog_post primary_blog_post * * @return self */ - public function setDomain($domain) + public function setPrimaryBlogPost($primary_blog_post) { - $this->container['domain'] = $domain; + $this->container['primary_blog_post'] = $primary_blog_post; return $this; } /** - * Gets primary_landing_page + * Gets primary_knowledge * * @return bool|null */ - public function getPrimaryLandingPage() + public function getPrimaryKnowledge() { - return $this->container['primary_landing_page']; + return $this->container['primary_knowledge']; } /** - * Sets primary_landing_page + * Sets primary_knowledge * - * @param bool|null $primary_landing_page primary_landing_page + * @param bool|null $primary_knowledge primary_knowledge * * @return self */ - public function setPrimaryLandingPage($primary_landing_page) + public function setPrimaryKnowledge($primary_knowledge) { - $this->container['primary_landing_page'] = $primary_landing_page; + $this->container['primary_knowledge'] = $primary_knowledge; return $this; } /** - * Gets primary_email + * Gets created * - * @return bool|null + * @return \DateTime|null */ - public function getPrimaryEmail() + public function getCreated() { - return $this->container['primary_email']; + return $this->container['created']; } /** - * Sets primary_email + * Sets created * - * @param bool|null $primary_email primary_email + * @param \DateTime|null $created created * * @return self */ - public function setPrimaryEmail($primary_email) + public function setCreated($created) { - $this->container['primary_email'] = $primary_email; + $this->container['created'] = $created; return $this; } /** - * Gets primary_blog_post + * Gets secondary_to_domain * - * @return bool|null + * @return string|null */ - public function getPrimaryBlogPost() + public function getSecondaryToDomain() { - return $this->container['primary_blog_post']; + return $this->container['secondary_to_domain']; } /** - * Sets primary_blog_post + * Sets secondary_to_domain * - * @param bool|null $primary_blog_post primary_blog_post + * @param string|null $secondary_to_domain secondary_to_domain * * @return self */ - public function setPrimaryBlogPost($primary_blog_post) + public function setSecondaryToDomain($secondary_to_domain) { - $this->container['primary_blog_post'] = $primary_blog_post; + $this->container['secondary_to_domain'] = $secondary_to_domain; return $this; } /** - * Gets primary_site_page + * Gets manually_marked_as_resolving * * @return bool|null */ - public function getPrimarySitePage() + public function getManuallyMarkedAsResolving() { - return $this->container['primary_site_page']; + return $this->container['manually_marked_as_resolving']; } /** - * Sets primary_site_page + * Sets manually_marked_as_resolving * - * @param bool|null $primary_site_page primary_site_page + * @param bool|null $manually_marked_as_resolving manually_marked_as_resolving * * @return self */ - public function setPrimarySitePage($primary_site_page) + public function setManuallyMarkedAsResolving($manually_marked_as_resolving) { - $this->container['primary_site_page'] = $primary_site_page; + $this->container['manually_marked_as_resolving'] = $manually_marked_as_resolving; return $this; } /** - * Gets primary_knowledge + * Gets is_used_for_knowledge * - * @return bool|null + * @return bool */ - public function getPrimaryKnowledge() + public function getIsUsedForKnowledge() { - return $this->container['primary_knowledge']; + return $this->container['is_used_for_knowledge']; } /** - * Sets primary_knowledge + * Sets is_used_for_knowledge * - * @param bool|null $primary_knowledge primary_knowledge + * @param bool $is_used_for_knowledge Whether the domain is used for CMS knowledge pages. * * @return self */ - public function setPrimaryKnowledge($primary_knowledge) + public function setIsUsedForKnowledge($is_used_for_knowledge) { - $this->container['primary_knowledge'] = $primary_knowledge; + $this->container['is_used_for_knowledge'] = $is_used_for_knowledge; return $this; } /** - * Gets secondary_to_domain + * Gets is_used_for_blog_post * - * @return string|null + * @return bool */ - public function getSecondaryToDomain() + public function getIsUsedForBlogPost() { - return $this->container['secondary_to_domain']; + return $this->container['is_used_for_blog_post']; } /** - * Sets secondary_to_domain + * Sets is_used_for_blog_post * - * @param string|null $secondary_to_domain secondary_to_domain + * @param bool $is_used_for_blog_post Whether the domain is used for CMS blog posts. * * @return self */ - public function setSecondaryToDomain($secondary_to_domain) + public function setIsUsedForBlogPost($is_used_for_blog_post) { - $this->container['secondary_to_domain'] = $secondary_to_domain; + $this->container['is_used_for_blog_post'] = $is_used_for_blog_post; return $this; } /** - * Gets is_resolving + * Gets is_used_for_site_page * * @return bool */ - public function getIsResolving() + public function getIsUsedForSitePage() { - return $this->container['is_resolving']; + return $this->container['is_used_for_site_page']; } /** - * Sets is_resolving + * Sets is_used_for_site_page * - * @param bool $is_resolving Whether the DNS for this domain is optimally configured for use with HubSpot. + * @param bool $is_used_for_site_page Whether the domain is used for CMS site pages. * * @return self */ - public function setIsResolving($is_resolving) + public function setIsUsedForSitePage($is_used_for_site_page) { - $this->container['is_resolving'] = $is_resolving; + $this->container['is_used_for_site_page'] = $is_used_for_site_page; return $this; } /** - * Gets manually_marked_as_resolving + * Gets is_resolving * - * @return bool|null + * @return bool */ - public function getManuallyMarkedAsResolving() + public function getIsResolving() { - return $this->container['manually_marked_as_resolving']; + return $this->container['is_resolving']; } /** - * Sets manually_marked_as_resolving + * Sets is_resolving * - * @param bool|null $manually_marked_as_resolving manually_marked_as_resolving + * @param bool $is_resolving Whether the DNS for this domain is optimally configured for use with HubSpot. * * @return self */ - public function setManuallyMarkedAsResolving($manually_marked_as_resolving) + public function setIsResolving($is_resolving) { - $this->container['manually_marked_as_resolving'] = $manually_marked_as_resolving; + $this->container['is_resolving'] = $is_resolving; return $this; } @@ -606,145 +606,121 @@ public function setIsSslEnabled($is_ssl_enabled) } /** - * Gets is_ssl_only - * - * @return bool|null - */ - public function getIsSslOnly() - { - return $this->container['is_ssl_only']; - } - - /** - * Sets is_ssl_only - * - * @param bool|null $is_ssl_only is_ssl_only - * - * @return self - */ - public function setIsSslOnly($is_ssl_only) - { - $this->container['is_ssl_only'] = $is_ssl_only; - - return $this; - } - - /** - * Gets is_used_for_blog_post + * Gets is_used_for_email * * @return bool */ - public function getIsUsedForBlogPost() + public function getIsUsedForEmail() { - return $this->container['is_used_for_blog_post']; + return $this->container['is_used_for_email']; } /** - * Sets is_used_for_blog_post + * Sets is_used_for_email * - * @param bool $is_used_for_blog_post Whether the domain is used for CMS blog posts. + * @param bool $is_used_for_email Whether the domain is used for CMS email web pages. * * @return self */ - public function setIsUsedForBlogPost($is_used_for_blog_post) + public function setIsUsedForEmail($is_used_for_email) { - $this->container['is_used_for_blog_post'] = $is_used_for_blog_post; + $this->container['is_used_for_email'] = $is_used_for_email; return $this; } /** - * Gets is_used_for_site_page + * Gets domain * - * @return bool + * @return string */ - public function getIsUsedForSitePage() + public function getDomain() { - return $this->container['is_used_for_site_page']; + return $this->container['domain']; } /** - * Sets is_used_for_site_page + * Sets domain * - * @param bool $is_used_for_site_page Whether the domain is used for CMS site pages. + * @param string $domain The actual domain or sub-domain. e.g. www.hubspot.com * * @return self */ - public function setIsUsedForSitePage($is_used_for_site_page) + public function setDomain($domain) { - $this->container['is_used_for_site_page'] = $is_used_for_site_page; + $this->container['domain'] = $domain; return $this; } /** - * Gets is_used_for_landing_page + * Gets primary_site_page * - * @return bool + * @return bool|null */ - public function getIsUsedForLandingPage() + public function getPrimarySitePage() { - return $this->container['is_used_for_landing_page']; + return $this->container['primary_site_page']; } /** - * Sets is_used_for_landing_page + * Sets primary_site_page * - * @param bool $is_used_for_landing_page Whether the domain is used for CMS landing pages. + * @param bool|null $primary_site_page primary_site_page * * @return self */ - public function setIsUsedForLandingPage($is_used_for_landing_page) + public function setPrimarySitePage($primary_site_page) { - $this->container['is_used_for_landing_page'] = $is_used_for_landing_page; + $this->container['primary_site_page'] = $primary_site_page; return $this; } /** - * Gets is_used_for_email + * Gets primary_landing_page * - * @return bool + * @return bool|null */ - public function getIsUsedForEmail() + public function getPrimaryLandingPage() { - return $this->container['is_used_for_email']; + return $this->container['primary_landing_page']; } /** - * Sets is_used_for_email + * Sets primary_landing_page * - * @param bool $is_used_for_email Whether the domain is used for CMS email web pages. + * @param bool|null $primary_landing_page primary_landing_page * * @return self */ - public function setIsUsedForEmail($is_used_for_email) + public function setPrimaryLandingPage($primary_landing_page) { - $this->container['is_used_for_email'] = $is_used_for_email; + $this->container['primary_landing_page'] = $primary_landing_page; return $this; } /** - * Gets is_used_for_knowledge + * Gets id * - * @return bool + * @return string */ - public function getIsUsedForKnowledge() + public function getId() { - return $this->container['is_used_for_knowledge']; + return $this->container['id']; } /** - * Sets is_used_for_knowledge + * Sets id * - * @param bool $is_used_for_knowledge Whether the domain is used for CMS knowledge pages. + * @param string $id The unique ID of this domain. * * @return self */ - public function setIsUsedForKnowledge($is_used_for_knowledge) + public function setId($id) { - $this->container['is_used_for_knowledge'] = $is_used_for_knowledge; + $this->container['id'] = $id; return $this; } @@ -774,25 +750,25 @@ public function setCorrectCname($correct_cname) } /** - * Gets created + * Gets is_ssl_only * - * @return \DateTime|null + * @return bool|null */ - public function getCreated() + public function getIsSslOnly() { - return $this->container['created']; + return $this->container['is_ssl_only']; } /** - * Sets created + * Sets is_ssl_only * - * @param \DateTime|null $created created + * @param bool|null $is_ssl_only is_ssl_only * * @return self */ - public function setCreated($created) + public function setIsSslOnly($is_ssl_only) { - $this->container['created'] = $created; + $this->container['is_ssl_only'] = $is_ssl_only; return $this; } @@ -820,6 +796,30 @@ public function setUpdated($updated) return $this; } + + /** + * Gets primary_email + * + * @return bool|null + */ + public function getPrimaryEmail() + { + return $this->container['primary_email']; + } + + /** + * Sets primary_email + * + * @param bool|null $primary_email primary_email + * + * @return self + */ + public function setPrimaryEmail($primary_email) + { + $this->container['primary_email'] = $primary_email; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Domains/Model/Error.php b/codegen/Cms/Domains/Model/Error.php index 591dde99..3b6f31e5 100644 --- a/codegen/Cms/Domains/Model/Error.php +++ b/codegen/Cms/Domains/Model/Error.php @@ -11,7 +11,7 @@ */ /** - * Domains + * CMS Domains * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'correlation_id' => 'string', - 'category' => 'string', 'sub_category' => 'string', - 'errors' => '\HubSpot\Client\Cms\Domains\Model\ErrorDetail[]', 'context' => 'array', - 'links' => 'array' + 'correlation_id' => 'string', + 'links' => 'array', + 'message' => 'string', + 'category' => 'string', + 'errors' => '\HubSpot\Client\Cms\Domains\Model\ErrorDetail[]' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'correlation_id' => 'uuid', - 'category' => null, 'sub_category' => null, - 'errors' => null, 'context' => null, - 'links' => null + 'correlation_id' => 'uuid', + 'links' => null, + 'message' => null, + 'category' => null, + 'errors' => null ]; /** @@ -110,13 +110,13 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'correlation_id' => 'correlationId', - 'category' => 'category', 'sub_category' => 'subCategory', - 'errors' => 'errors', 'context' => 'context', - 'links' => 'links' + 'correlation_id' => 'correlationId', + 'links' => 'links', + 'message' => 'message', + 'category' => 'category', + 'errors' => 'errors' ]; /** @@ -125,13 +125,13 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'correlation_id' => 'setCorrelationId', - 'category' => 'setCategory', 'sub_category' => 'setSubCategory', - 'errors' => 'setErrors', 'context' => 'setContext', - 'links' => 'setLinks' + 'correlation_id' => 'setCorrelationId', + 'links' => 'setLinks', + 'message' => 'setMessage', + 'category' => 'setCategory', + 'errors' => 'setErrors' ]; /** @@ -140,13 +140,13 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'correlation_id' => 'getCorrelationId', - 'category' => 'getCategory', 'sub_category' => 'getSubCategory', - 'errors' => 'getErrors', 'context' => 'getContext', - 'links' => 'getLinks' + 'correlation_id' => 'getCorrelationId', + 'links' => 'getLinks', + 'message' => 'getMessage', + 'category' => 'getCategory', + 'errors' => 'getErrors' ]; /** @@ -206,13 +206,13 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['correlation_id'] = $data['correlation_id'] ?? null; - $this->container['category'] = $data['category'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['correlation_id'] = $data['correlation_id'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['message'] = $data['message'] ?? null; + $this->container['category'] = $data['category'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; } /** @@ -224,12 +224,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' 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"; } @@ -249,169 +249,169 @@ public function valid() /** - * 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) { - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets correlation_id + * Gets context * - * @return string + * @return array|null */ - public function getCorrelationId() + public function getContext() { - return $this->container['correlation_id']; + return $this->container['context']; } /** - * Sets correlation_id + * Sets context * - * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets + * @param array|null $context Context about the error condition * * @return self */ - public function setCorrelationId($correlation_id) + public function setContext($context) { - $this->container['correlation_id'] = $correlation_id; + $this->container['context'] = $context; return $this; } /** - * Gets category + * Gets correlation_id * * @return string */ - public function getCategory() + public function getCorrelationId() { - return $this->container['category']; + return $this->container['correlation_id']; } /** - * Sets category + * Sets correlation_id * - * @param string $category The error category + * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets * * @return self */ - public function setCategory($category) + public function setCorrelationId($correlation_id) { - $this->container['category'] = $category; + $this->container['correlation_id'] = $correlation_id; return $this; } /** - * Gets sub_category + * Gets links * - * @return string|null + * @return array|null */ - public function getSubCategory() + public function getLinks() { - return $this->container['sub_category']; + return $this->container['links']; } /** - * Sets sub_category + * Sets links * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps * * @return self */ - public function setSubCategory($sub_category) + public function setLinks($links) { - $this->container['sub_category'] = $sub_category; + $this->container['links'] = $links; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\Domains\Model\ErrorDetail[]|null + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\Domains\Model\ErrorDetail[]|null $errors further information about the error + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets category * - * @return array|null + * @return string */ - public function getContext() + public function getCategory() { - return $this->container['context']; + return $this->container['category']; } /** - * Sets context + * Sets category * - * @param array|null $context Context about the error condition + * @param string $category The error category * * @return self */ - public function setContext($context) + public function setCategory($category) { - $this->container['context'] = $context; + $this->container['category'] = $category; return $this; } /** - * Gets links + * Gets errors * - * @return array|null + * @return \HubSpot\Client\Cms\Domains\Model\ErrorDetail[]|null */ - public function getLinks() + public function getErrors() { - return $this->container['links']; + return $this->container['errors']; } /** - * Sets links + * Sets errors * - * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps + * @param \HubSpot\Client\Cms\Domains\Model\ErrorDetail[]|null $errors further information about the error * * @return self */ - public function setLinks($links) + public function setErrors($errors) { - $this->container['links'] = $links; + $this->container['errors'] = $errors; return $this; } diff --git a/codegen/Cms/Domains/Model/ErrorDetail.php b/codegen/Cms/Domains/Model/ErrorDetail.php index e0952993..f75a7a13 100644 --- a/codegen/Cms/Domains/Model/ErrorDetail.php +++ b/codegen/Cms/Domains/Model/ErrorDetail.php @@ -11,7 +11,7 @@ */ /** - * Domains + * CMS Domains * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'in' => 'string', - 'code' => 'string', 'sub_category' => 'string', - 'context' => 'array' + 'code' => 'string', + 'in' => 'string', + 'context' => 'array', + 'message' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'in' => null, - 'code' => null, 'sub_category' => null, - 'context' => null + 'code' => null, + 'in' => null, + 'context' => null, + 'message' => null ]; /** @@ -106,11 +106,11 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'in' => 'in', - 'code' => 'code', 'sub_category' => 'subCategory', - 'context' => 'context' + 'code' => 'code', + 'in' => 'in', + 'context' => 'context', + 'message' => 'message' ]; /** @@ -119,11 +119,11 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'in' => 'setIn', - 'code' => 'setCode', 'sub_category' => 'setSubCategory', - 'context' => 'setContext' + 'code' => 'setCode', + 'in' => 'setIn', + 'context' => 'setContext', + 'message' => 'setMessage' ]; /** @@ -132,11 +132,11 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'in' => 'getIn', - 'code' => 'getCode', 'sub_category' => 'getSubCategory', - 'context' => 'getContext' + 'code' => 'getCode', + 'in' => 'getIn', + 'context' => 'getContext', + 'message' => 'getMessage' ]; /** @@ -196,11 +196,11 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['in'] = $data['in'] ?? null; - $this->container['code'] = $data['code'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['code'] = $data['code'] ?? null; + $this->container['in'] = $data['in'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['message'] = $data['message'] ?? null; } /** @@ -231,49 +231,25 @@ public function valid() /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A human readable message describing the error along with remediation steps where appropriate - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - - /** - * Gets in + * Gets sub_category * * @return string|null */ - public function getIn() + public function getSubCategory() { - return $this->container['in']; + return $this->container['sub_category']; } /** - * Sets in + * Sets sub_category * - * @param string|null $in The name of the field or parameter in which the error was found. + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setIn($in) + public function setSubCategory($sub_category) { - $this->container['in'] = $in; + $this->container['sub_category'] = $sub_category; return $this; } @@ -303,25 +279,25 @@ public function setCode($code) } /** - * Gets sub_category + * Gets in * * @return string|null */ - public function getSubCategory() + public function getIn() { - return $this->container['sub_category']; + return $this->container['in']; } /** - * Sets sub_category + * Sets in * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $in The name of the field or parameter in which the error was found. * * @return self */ - public function setSubCategory($sub_category) + public function setIn($in) { - $this->container['sub_category'] = $sub_category; + $this->container['in'] = $in; return $this; } @@ -349,6 +325,30 @@ public function setContext($context) return $this; } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message A human readable message describing the error along with remediation steps where appropriate + * + * @return self + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Domains/Model/ForwardPaging.php b/codegen/Cms/Domains/Model/ForwardPaging.php index 167760b1..904d9e12 100644 --- a/codegen/Cms/Domains/Model/ForwardPaging.php +++ b/codegen/Cms/Domains/Model/ForwardPaging.php @@ -11,7 +11,7 @@ */ /** - * Domains + * CMS Domains * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * diff --git a/codegen/Cms/Domains/Model/ModelInterface.php b/codegen/Cms/Domains/Model/ModelInterface.php index f55281fe..88035b2f 100644 --- a/codegen/Cms/Domains/Model/ModelInterface.php +++ b/codegen/Cms/Domains/Model/ModelInterface.php @@ -11,7 +11,7 @@ */ /** - * Domains + * CMS Domains * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * diff --git a/codegen/Cms/Domains/Model/NextPage.php b/codegen/Cms/Domains/Model/NextPage.php index 4e07661d..c0c54d82 100644 --- a/codegen/Cms/Domains/Model/NextPage.php +++ b/codegen/Cms/Domains/Model/NextPage.php @@ -11,7 +11,7 @@ */ /** - * Domains + * CMS Domains * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * @@ -57,8 +57,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'after' => 'string', - 'link' => 'string' + 'link' => 'string', + 'after' => 'string' ]; /** @@ -69,8 +69,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'after' => null, - 'link' => null + 'link' => null, + 'after' => null ]; /** @@ -100,8 +100,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'after' => 'after', - 'link' => 'link' + 'link' => 'link', + 'after' => 'after' ]; /** @@ -110,8 +110,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'after' => 'setAfter', - 'link' => 'setLink' + 'link' => 'setLink', + 'after' => 'setAfter' ]; /** @@ -120,8 +120,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'after' => 'getAfter', - 'link' => 'getLink' + 'link' => 'getLink', + 'after' => 'getAfter' ]; /** @@ -181,8 +181,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['after'] = $data['after'] ?? null; $this->container['link'] = $data['link'] ?? null; + $this->container['after'] = $data['after'] ?? null; } /** @@ -213,49 +213,49 @@ public function valid() /** - * 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 after + * @param string|null $link link * * @return self */ - public function setAfter($after) + public function setLink($link) { - $this->container['after'] = $after; + $this->container['link'] = $link; return $this; } /** - * 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 link + * @param string $after after * * @return self */ - public function setLink($link) + public function setAfter($after) { - $this->container['link'] = $link; + $this->container['after'] = $after; return $this; } diff --git a/codegen/Cms/Domains/ObjectSerializer.php b/codegen/Cms/Domains/ObjectSerializer.php index 2f9ff409..a7c74f15 100644 --- a/codegen/Cms/Domains/ObjectSerializer.php +++ b/codegen/Cms/Domains/ObjectSerializer.php @@ -11,7 +11,7 @@ */ /** - * Domains + * CMS Domains * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * diff --git a/codegen/Cms/Hubdb/Api/RowsApi.php b/codegen/Cms/Hubdb/Api/RowsApi.php index f5f98cb8..bb3046e1 100644 --- a/codegen/Cms/Hubdb/Api/RowsApi.php +++ b/codegen/Cms/Hubdb/Api/RowsApi.php @@ -10,7 +10,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * diff --git a/codegen/Cms/Hubdb/Api/RowsBatchApi.php b/codegen/Cms/Hubdb/Api/RowsBatchApi.php index 62f421f6..28d8b457 100644 --- a/codegen/Cms/Hubdb/Api/RowsBatchApi.php +++ b/codegen/Cms/Hubdb/Api/RowsBatchApi.php @@ -10,7 +10,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * diff --git a/codegen/Cms/Hubdb/Api/TablesApi.php b/codegen/Cms/Hubdb/Api/TablesApi.php index 6445f638..b631af21 100644 --- a/codegen/Cms/Hubdb/Api/TablesApi.php +++ b/codegen/Cms/Hubdb/Api/TablesApi.php @@ -10,7 +10,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * diff --git a/codegen/Cms/Hubdb/ApiException.php b/codegen/Cms/Hubdb/ApiException.php index 346400e1..16bc3668 100644 --- a/codegen/Cms/Hubdb/ApiException.php +++ b/codegen/Cms/Hubdb/ApiException.php @@ -10,7 +10,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * diff --git a/codegen/Cms/Hubdb/Configuration.php b/codegen/Cms/Hubdb/Configuration.php index 76b2baee..7ec3a7ce 100644 --- a/codegen/Cms/Hubdb/Configuration.php +++ b/codegen/Cms/Hubdb/Configuration.php @@ -10,7 +10,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * diff --git a/codegen/Cms/Hubdb/HeaderSelector.php b/codegen/Cms/Hubdb/HeaderSelector.php index 953012b3..b24ddbc7 100644 --- a/codegen/Cms/Hubdb/HeaderSelector.php +++ b/codegen/Cms/Hubdb/HeaderSelector.php @@ -10,7 +10,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * diff --git a/codegen/Cms/Hubdb/Model/BatchInputHubDbTableRowV3BatchUpdateRequest.php b/codegen/Cms/Hubdb/Model/BatchInputHubDbTableRowV3BatchUpdateRequest.php index 557e19a0..4a31b710 100644 --- a/codegen/Cms/Hubdb/Model/BatchInputHubDbTableRowV3BatchUpdateRequest.php +++ b/codegen/Cms/Hubdb/Model/BatchInputHubDbTableRowV3BatchUpdateRequest.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * diff --git a/codegen/Cms/Hubdb/Model/BatchInputHubDbTableRowV3Request.php b/codegen/Cms/Hubdb/Model/BatchInputHubDbTableRowV3Request.php index dadfb87c..39afd971 100644 --- a/codegen/Cms/Hubdb/Model/BatchInputHubDbTableRowV3Request.php +++ b/codegen/Cms/Hubdb/Model/BatchInputHubDbTableRowV3Request.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -219,7 +219,7 @@ public function getInputs() /** * Sets inputs * - * @param \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3Request[] $inputs inputs + * @param \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3Request[] $inputs * * @return self */ diff --git a/codegen/Cms/Hubdb/Model/BatchInputString.php b/codegen/Cms/Hubdb/Model/BatchInputString.php index 8538b917..e07865cb 100644 --- a/codegen/Cms/Hubdb/Model/BatchInputString.php +++ b/codegen/Cms/Hubdb/Model/BatchInputString.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -219,7 +219,7 @@ public function getInputs() /** * Sets inputs * - * @param string[] $inputs inputs + * @param string[] $inputs * * @return self */ diff --git a/codegen/Cms/Hubdb/Model/BatchResponseHubDbTableRowV3.php b/codegen/Cms/Hubdb/Model/BatchResponseHubDbTableRowV3.php index 14ba63bd..a6946897 100644 --- a/codegen/Cms/Hubdb/Model/BatchResponseHubDbTableRowV3.php +++ b/codegen/Cms/Hubdb/Model/BatchResponseHubDbTableRowV3.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -57,12 +57,12 @@ class BatchResponseHubDbTableRowV3 implements ModelInterface, ArrayAccess, \Json * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', - 'results' => '\HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[]', + 'completed_at' => '\DateTime', 'requested_at' => '\DateTime', 'started_at' => '\DateTime', - 'completed_at' => '\DateTime', - 'links' => 'array' + 'links' => 'array', + 'results' => '\HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[]', + 'status' => 'string' ]; /** @@ -73,12 +73,12 @@ class BatchResponseHubDbTableRowV3 implements ModelInterface, ArrayAccess, \Json * @psalm-var array */ protected static $openAPIFormats = [ - 'status' => null, - 'results' => null, + 'completed_at' => 'date-time', 'requested_at' => 'date-time', 'started_at' => 'date-time', - 'completed_at' => 'date-time', - 'links' => null + 'links' => null, + 'results' => null, + 'status' => null ]; /** @@ -108,12 +108,12 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'status' => 'status', - 'results' => 'results', + 'completed_at' => 'completedAt', 'requested_at' => 'requestedAt', 'started_at' => 'startedAt', - 'completed_at' => 'completedAt', - 'links' => 'links' + 'links' => 'links', + 'results' => 'results', + 'status' => 'status' ]; /** @@ -122,12 +122,12 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'status' => 'setStatus', - 'results' => 'setResults', + 'completed_at' => 'setCompletedAt', 'requested_at' => 'setRequestedAt', 'started_at' => 'setStartedAt', - 'completed_at' => 'setCompletedAt', - 'links' => 'setLinks' + 'links' => 'setLinks', + 'results' => 'setResults', + 'status' => 'setStatus' ]; /** @@ -136,12 +136,12 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'status' => 'getStatus', - 'results' => 'getResults', + 'completed_at' => 'getCompletedAt', 'requested_at' => 'getRequestedAt', 'started_at' => 'getStartedAt', - 'completed_at' => 'getCompletedAt', - 'links' => 'getLinks' + 'links' => 'getLinks', + 'results' => 'getResults', + 'status' => 'getStatus' ]; /** @@ -220,12 +220,12 @@ public function getStatusAllowableValues() */ public function __construct(array $data = null) { - $this->container['status'] = $data['status'] ?? null; - $this->container['results'] = $data['results'] ?? null; + $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['requested_at'] = $data['requested_at'] ?? null; $this->container['started_at'] = $data['started_at'] ?? null; - $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['results'] = $data['results'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -262,155 +262,155 @@ public function valid() /** - * Gets status + * Gets completed_at * - * @return string|null + * @return \DateTime|null */ - public function getStatus() + public function getCompletedAt() { - return $this->container['status']; + return $this->container['completed_at']; } /** - * Sets status + * Sets completed_at * - * @param string|null $status status + * @param \DateTime|null $completed_at completed_at * * @return self */ - public function setStatus($status) + public function setCompletedAt($completed_at) { - $allowedValues = $this->getStatusAllowableValues(); - if (!is_null($status) && !in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; + $this->container['completed_at'] = $completed_at; return $this; } /** - * Gets results + * Gets requested_at * - * @return \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[]|null + * @return \DateTime|null */ - public function getResults() + public function getRequestedAt() { - return $this->container['results']; + return $this->container['requested_at']; } /** - * Sets results + * Sets requested_at * - * @param \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[]|null $results results + * @param \DateTime|null $requested_at requested_at * * @return self */ - public function setResults($results) + public function setRequestedAt($requested_at) { - $this->container['results'] = $results; + $this->container['requested_at'] = $requested_at; return $this; } /** - * Gets requested_at + * Gets started_at * * @return \DateTime|null */ - public function getRequestedAt() + public function getStartedAt() { - return $this->container['requested_at']; + return $this->container['started_at']; } /** - * Sets requested_at + * Sets started_at * - * @param \DateTime|null $requested_at requested_at + * @param \DateTime|null $started_at started_at * * @return self */ - public function setRequestedAt($requested_at) + public function setStartedAt($started_at) { - $this->container['requested_at'] = $requested_at; + $this->container['started_at'] = $started_at; return $this; } /** - * Gets started_at + * Gets links * - * @return \DateTime|null + * @return array|null */ - public function getStartedAt() + public function getLinks() { - return $this->container['started_at']; + return $this->container['links']; } /** - * Sets started_at + * Sets links * - * @param \DateTime|null $started_at started_at + * @param array|null $links links * * @return self */ - public function setStartedAt($started_at) + public function setLinks($links) { - $this->container['started_at'] = $started_at; + $this->container['links'] = $links; return $this; } /** - * Gets completed_at + * Gets results * - * @return \DateTime|null + * @return \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[]|null */ - public function getCompletedAt() + public function getResults() { - return $this->container['completed_at']; + return $this->container['results']; } /** - * Sets completed_at + * Sets results * - * @param \DateTime|null $completed_at completed_at + * @param \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[]|null $results results * * @return self */ - public function setCompletedAt($completed_at) + public function setResults($results) { - $this->container['completed_at'] = $completed_at; + $this->container['results'] = $results; return $this; } /** - * Gets links + * Gets status * - * @return array|null + * @return string|null */ - public function getLinks() + public function getStatus() { - return $this->container['links']; + return $this->container['status']; } /** - * Sets links + * Sets status * - * @param array|null $links links + * @param string|null $status status * * @return self */ - public function setLinks($links) + public function setStatus($status) { - $this->container['links'] = $links; + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($status) && !in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; return $this; } diff --git a/codegen/Cms/Hubdb/Model/BatchResponseHubDbTableRowV3WithErrors.php b/codegen/Cms/Hubdb/Model/BatchResponseHubDbTableRowV3WithErrors.php index cdfcbfb3..3cee3b59 100644 --- a/codegen/Cms/Hubdb/Model/BatchResponseHubDbTableRowV3WithErrors.php +++ b/codegen/Cms/Hubdb/Model/BatchResponseHubDbTableRowV3WithErrors.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -57,14 +57,14 @@ class BatchResponseHubDbTableRowV3WithErrors implements ModelInterface, ArrayAcc * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', - 'results' => '\HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[]', + 'completed_at' => '\DateTime', 'num_errors' => 'int', - 'errors' => '\HubSpot\Client\Cms\Hubdb\Model\StandardError[]', 'requested_at' => '\DateTime', 'started_at' => '\DateTime', - 'completed_at' => '\DateTime', - 'links' => 'array' + 'links' => 'array', + 'results' => '\HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[]', + 'errors' => '\HubSpot\Client\Cms\Hubdb\Model\StandardError[]', + 'status' => 'string' ]; /** @@ -75,14 +75,14 @@ class BatchResponseHubDbTableRowV3WithErrors implements ModelInterface, ArrayAcc * @psalm-var array */ protected static $openAPIFormats = [ - 'status' => null, - 'results' => null, + 'completed_at' => 'date-time', 'num_errors' => 'int32', - 'errors' => null, 'requested_at' => 'date-time', 'started_at' => 'date-time', - 'completed_at' => 'date-time', - 'links' => null + 'links' => null, + 'results' => null, + 'errors' => null, + 'status' => null ]; /** @@ -112,14 +112,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'status' => 'status', - 'results' => 'results', + 'completed_at' => 'completedAt', 'num_errors' => 'numErrors', - 'errors' => 'errors', 'requested_at' => 'requestedAt', 'started_at' => 'startedAt', - 'completed_at' => 'completedAt', - 'links' => 'links' + 'links' => 'links', + 'results' => 'results', + 'errors' => 'errors', + 'status' => 'status' ]; /** @@ -128,14 +128,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'status' => 'setStatus', - 'results' => 'setResults', + 'completed_at' => 'setCompletedAt', 'num_errors' => 'setNumErrors', - 'errors' => 'setErrors', 'requested_at' => 'setRequestedAt', 'started_at' => 'setStartedAt', - 'completed_at' => 'setCompletedAt', - 'links' => 'setLinks' + 'links' => 'setLinks', + 'results' => 'setResults', + 'errors' => 'setErrors', + 'status' => 'setStatus' ]; /** @@ -144,14 +144,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'status' => 'getStatus', - 'results' => 'getResults', + 'completed_at' => 'getCompletedAt', 'num_errors' => 'getNumErrors', - 'errors' => 'getErrors', 'requested_at' => 'getRequestedAt', 'started_at' => 'getStartedAt', - 'completed_at' => 'getCompletedAt', - 'links' => 'getLinks' + 'links' => 'getLinks', + 'results' => 'getResults', + 'errors' => 'getErrors', + 'status' => 'getStatus' ]; /** @@ -230,14 +230,14 @@ public function getStatusAllowableValues() */ public function __construct(array $data = null) { - $this->container['status'] = $data['status'] ?? null; - $this->container['results'] = $data['results'] ?? null; + $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['num_errors'] = $data['num_errors'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['requested_at'] = $data['requested_at'] ?? null; $this->container['started_at'] = $data['started_at'] ?? null; - $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['results'] = $data['results'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -249,6 +249,15 @@ public function listInvalidProperties() { $invalidProperties = []; + 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['status'] === null) { $invalidProperties[] = "'status' can't be null"; } @@ -261,15 +270,6 @@ public function listInvalidProperties() ); } - 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['completed_at'] === null) { - $invalidProperties[] = "'completed_at' can't be null"; - } return $invalidProperties; } @@ -286,203 +286,203 @@ public function valid() /** - * Gets status + * Gets completed_at * - * @return string + * @return \DateTime */ - public function getStatus() + public function getCompletedAt() { - return $this->container['status']; + return $this->container['completed_at']; } /** - * Sets status + * Sets completed_at * - * @param string $status status + * @param \DateTime $completed_at * * @return self */ - public function setStatus($status) + public function setCompletedAt($completed_at) { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; + $this->container['completed_at'] = $completed_at; return $this; } /** - * Gets results + * Gets num_errors * - * @return \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[] + * @return int|null */ - public function getResults() + public function getNumErrors() { - return $this->container['results']; + return $this->container['num_errors']; } /** - * Sets results + * Sets num_errors * - * @param \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[] $results results + * @param int|null $num_errors * * @return self */ - public function setResults($results) + public function setNumErrors($num_errors) { - $this->container['results'] = $results; + $this->container['num_errors'] = $num_errors; return $this; } /** - * Gets num_errors + * Gets requested_at * - * @return int|null + * @return \DateTime|null */ - public function getNumErrors() + public function getRequestedAt() { - return $this->container['num_errors']; + return $this->container['requested_at']; } /** - * Sets num_errors + * Sets requested_at * - * @param int|null $num_errors num_errors + * @param \DateTime|null $requested_at * * @return self */ - public function setNumErrors($num_errors) + public function setRequestedAt($requested_at) { - $this->container['num_errors'] = $num_errors; + $this->container['requested_at'] = $requested_at; return $this; } /** - * Gets errors + * Gets started_at * - * @return \HubSpot\Client\Cms\Hubdb\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\Hubdb\Model\StandardError[]|null $errors errors + * @param \DateTime $started_at * * @return self */ - public function setErrors($errors) + public function setStartedAt($started_at) { - $this->container['errors'] = $errors; + $this->container['started_at'] = $started_at; 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 requested_at + * @param array|null $links * * @return self */ - public function setRequestedAt($requested_at) + public function setLinks($links) { - $this->container['requested_at'] = $requested_at; + $this->container['links'] = $links; return $this; } /** - * Gets started_at + * Gets results * - * @return \DateTime + * @return \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[] */ - public function getStartedAt() + public function getResults() { - return $this->container['started_at']; + return $this->container['results']; } /** - * Sets started_at + * Sets results * - * @param \DateTime $started_at started_at + * @param \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[] $results * * @return self */ - public function setStartedAt($started_at) + public function setResults($results) { - $this->container['started_at'] = $started_at; + $this->container['results'] = $results; return $this; } /** - * Gets completed_at + * Gets errors * - * @return \DateTime + * @return \HubSpot\Client\Cms\Hubdb\Model\StandardError[]|null */ - public function getCompletedAt() + public function getErrors() { - return $this->container['completed_at']; + return $this->container['errors']; } /** - * Sets completed_at + * Sets errors * - * @param \DateTime $completed_at completed_at + * @param \HubSpot\Client\Cms\Hubdb\Model\StandardError[]|null $errors * * @return self */ - public function setCompletedAt($completed_at) + public function setErrors($errors) { - $this->container['completed_at'] = $completed_at; + $this->container['errors'] = $errors; return $this; } /** - * Gets links + * Gets status * - * @return array|null + * @return string */ - public function getLinks() + public function getStatus() { - return $this->container['links']; + return $this->container['status']; } /** - * Sets links + * Sets status * - * @param array|null $links links + * @param string $status * * @return self */ - public function setLinks($links) + public function setStatus($status) { - $this->container['links'] = $links; + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; return $this; } diff --git a/codegen/Cms/Hubdb/Model/CollectionResponseWithTotalHubDbTableRowV3ForwardPaging.php b/codegen/Cms/Hubdb/Model/CollectionResponseWithTotalHubDbTableRowV3ForwardPaging.php index 2d7c7fea..078e81e3 100644 --- a/codegen/Cms/Hubdb/Model/CollectionResponseWithTotalHubDbTableRowV3ForwardPaging.php +++ b/codegen/Cms/Hubdb/Model/CollectionResponseWithTotalHubDbTableRowV3ForwardPaging.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -58,8 +58,8 @@ class CollectionResponseWithTotalHubDbTableRowV3ForwardPaging implements ModelIn */ protected static $openAPITypes = [ 'total' => 'int', - 'results' => '\HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[]', - 'paging' => '\HubSpot\Client\Cms\Hubdb\Model\ForwardPaging' + 'paging' => '\HubSpot\Client\Cms\Hubdb\Model\ForwardPaging', + 'results' => '\HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[]' ]; /** @@ -71,8 +71,8 @@ class CollectionResponseWithTotalHubDbTableRowV3ForwardPaging implements ModelIn */ protected static $openAPIFormats = [ 'total' => 'int32', - 'results' => null, - 'paging' => null + 'paging' => null, + 'results' => null ]; /** @@ -103,8 +103,8 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'total' => 'total', - 'results' => 'results', - 'paging' => 'paging' + 'paging' => 'paging', + 'results' => 'results' ]; /** @@ -114,8 +114,8 @@ public static function openAPIFormats() */ protected static $setters = [ 'total' => 'setTotal', - 'results' => 'setResults', - 'paging' => 'setPaging' + 'paging' => 'setPaging', + 'results' => 'setResults' ]; /** @@ -125,8 +125,8 @@ public static function openAPIFormats() */ protected static $getters = [ 'total' => 'getTotal', - 'results' => 'getResults', - 'paging' => 'getPaging' + 'paging' => 'getPaging', + 'results' => 'getResults' ]; /** @@ -187,8 +187,8 @@ public function getModelName() public function __construct(array $data = null) { $this->container['total'] = $data['total'] ?? null; - $this->container['results'] = $data['results'] ?? null; $this->container['paging'] = $data['paging'] ?? null; + $this->container['results'] = $data['results'] ?? null; } /** @@ -234,7 +234,7 @@ public function getTotal() /** * Sets total * - * @param int $total total + * @param int $total * * @return self */ @@ -246,49 +246,49 @@ public function setTotal($total) } /** - * Gets results + * Gets paging * - * @return \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[] + * @return \HubSpot\Client\Cms\Hubdb\Model\ForwardPaging|null */ - public function getResults() + public function getPaging() { - return $this->container['results']; + return $this->container['paging']; } /** - * Sets results + * Sets paging * - * @param \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[] $results results + * @param \HubSpot\Client\Cms\Hubdb\Model\ForwardPaging|null $paging paging * * @return self */ - public function setResults($results) + public function setPaging($paging) { - $this->container['results'] = $results; + $this->container['paging'] = $paging; return $this; } /** - * Gets paging + * Gets results * - * @return \HubSpot\Client\Cms\Hubdb\Model\ForwardPaging|null + * @return \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[] */ - public function getPaging() + public function getResults() { - return $this->container['paging']; + return $this->container['results']; } /** - * Sets paging + * Sets results * - * @param \HubSpot\Client\Cms\Hubdb\Model\ForwardPaging|null $paging paging + * @param \HubSpot\Client\Cms\Hubdb\Model\HubDbTableRowV3[] $results * * @return self */ - public function setPaging($paging) + public function setResults($results) { - $this->container['paging'] = $paging; + $this->container['results'] = $results; return $this; } diff --git a/codegen/Cms/Hubdb/Model/CollectionResponseWithTotalHubDbTableV3ForwardPaging.php b/codegen/Cms/Hubdb/Model/CollectionResponseWithTotalHubDbTableV3ForwardPaging.php index 4f960f6b..5a684609 100644 --- a/codegen/Cms/Hubdb/Model/CollectionResponseWithTotalHubDbTableV3ForwardPaging.php +++ b/codegen/Cms/Hubdb/Model/CollectionResponseWithTotalHubDbTableV3ForwardPaging.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -58,8 +58,8 @@ class CollectionResponseWithTotalHubDbTableV3ForwardPaging implements ModelInter */ protected static $openAPITypes = [ 'total' => 'int', - 'results' => '\HubSpot\Client\Cms\Hubdb\Model\HubDbTableV3[]', - 'paging' => '\HubSpot\Client\Cms\Hubdb\Model\ForwardPaging' + 'paging' => '\HubSpot\Client\Cms\Hubdb\Model\ForwardPaging', + 'results' => '\HubSpot\Client\Cms\Hubdb\Model\HubDbTableV3[]' ]; /** @@ -71,8 +71,8 @@ class CollectionResponseWithTotalHubDbTableV3ForwardPaging implements ModelInter */ protected static $openAPIFormats = [ 'total' => 'int32', - 'results' => null, - 'paging' => null + 'paging' => null, + 'results' => null ]; /** @@ -103,8 +103,8 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'total' => 'total', - 'results' => 'results', - 'paging' => 'paging' + 'paging' => 'paging', + 'results' => 'results' ]; /** @@ -114,8 +114,8 @@ public static function openAPIFormats() */ protected static $setters = [ 'total' => 'setTotal', - 'results' => 'setResults', - 'paging' => 'setPaging' + 'paging' => 'setPaging', + 'results' => 'setResults' ]; /** @@ -125,8 +125,8 @@ public static function openAPIFormats() */ protected static $getters = [ 'total' => 'getTotal', - 'results' => 'getResults', - 'paging' => 'getPaging' + 'paging' => 'getPaging', + 'results' => 'getResults' ]; /** @@ -187,8 +187,8 @@ public function getModelName() public function __construct(array $data = null) { $this->container['total'] = $data['total'] ?? null; - $this->container['results'] = $data['results'] ?? null; $this->container['paging'] = $data['paging'] ?? null; + $this->container['results'] = $data['results'] ?? null; } /** @@ -234,7 +234,7 @@ public function getTotal() /** * Sets total * - * @param int $total total + * @param int $total * * @return self */ @@ -246,49 +246,49 @@ public function setTotal($total) } /** - * Gets results + * Gets paging * - * @return \HubSpot\Client\Cms\Hubdb\Model\HubDbTableV3[] + * @return \HubSpot\Client\Cms\Hubdb\Model\ForwardPaging|null */ - public function getResults() + public function getPaging() { - return $this->container['results']; + return $this->container['paging']; } /** - * Sets results + * Sets paging * - * @param \HubSpot\Client\Cms\Hubdb\Model\HubDbTableV3[] $results results + * @param \HubSpot\Client\Cms\Hubdb\Model\ForwardPaging|null $paging paging * * @return self */ - public function setResults($results) + public function setPaging($paging) { - $this->container['results'] = $results; + $this->container['paging'] = $paging; return $this; } /** - * Gets paging + * Gets results * - * @return \HubSpot\Client\Cms\Hubdb\Model\ForwardPaging|null + * @return \HubSpot\Client\Cms\Hubdb\Model\HubDbTableV3[] */ - public function getPaging() + public function getResults() { - return $this->container['paging']; + return $this->container['results']; } /** - * Sets paging + * Sets results * - * @param \HubSpot\Client\Cms\Hubdb\Model\ForwardPaging|null $paging paging + * @param \HubSpot\Client\Cms\Hubdb\Model\HubDbTableV3[] $results * * @return self */ - public function setPaging($paging) + public function setResults($results) { - $this->container['paging'] = $paging; + $this->container['results'] = $results; return $this; } diff --git a/codegen/Cms/Hubdb/Model/Column.php b/codegen/Cms/Hubdb/Model/Column.php index f1d65511..4ef2c817 100644 --- a/codegen/Cms/Hubdb/Model/Column.php +++ b/codegen/Cms/Hubdb/Model/Column.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -57,20 +57,20 @@ class Column implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'name' => 'string', + 'foreign_table_id' => 'int', + 'description' => 'string', 'label' => 'string', - 'id' => 'string', + 'type' => 'string', + 'option_count' => 'int', + 'foreign_ids' => '\HubSpot\Client\Cms\Hubdb\Model\ForeignId[]', 'deleted' => 'bool', + 'name' => 'string', 'options' => '\HubSpot\Client\Cms\Hubdb\Model\Option[]', 'width' => 'int', - 'foreign_table_id' => 'int', - 'foreign_column_id' => 'int', - 'description' => 'string', - 'foreign_ids' => '\HubSpot\Client\Cms\Hubdb\Model\ForeignId[]', - 'type' => 'string', - 'foreign_ids_by_name' => 'array', + 'id' => 'string', 'foreign_ids_by_id' => 'array', - 'option_count' => 'int' + 'foreign_column_id' => 'int', + 'foreign_ids_by_name' => 'array' ]; /** @@ -81,20 +81,20 @@ class Column implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'name' => null, + 'foreign_table_id' => 'int64', + 'description' => null, 'label' => null, - 'id' => null, + 'type' => null, + 'option_count' => 'int32', + 'foreign_ids' => null, 'deleted' => null, + 'name' => null, 'options' => null, 'width' => 'int32', - 'foreign_table_id' => 'int64', - 'foreign_column_id' => 'int32', - 'description' => null, - 'foreign_ids' => null, - 'type' => null, - 'foreign_ids_by_name' => null, + 'id' => null, 'foreign_ids_by_id' => null, - 'option_count' => 'int32' + 'foreign_column_id' => 'int32', + 'foreign_ids_by_name' => null ]; /** @@ -124,20 +124,20 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'name' => 'name', + 'foreign_table_id' => 'foreignTableId', + 'description' => 'description', 'label' => 'label', - 'id' => 'id', + 'type' => 'type', + 'option_count' => 'optionCount', + 'foreign_ids' => 'foreignIds', 'deleted' => 'deleted', + 'name' => 'name', 'options' => 'options', 'width' => 'width', - 'foreign_table_id' => 'foreignTableId', - 'foreign_column_id' => 'foreignColumnId', - 'description' => 'description', - 'foreign_ids' => 'foreignIds', - 'type' => 'type', - 'foreign_ids_by_name' => 'foreignIdsByName', + 'id' => 'id', 'foreign_ids_by_id' => 'foreignIdsById', - 'option_count' => 'optionCount' + 'foreign_column_id' => 'foreignColumnId', + 'foreign_ids_by_name' => 'foreignIdsByName' ]; /** @@ -146,20 +146,20 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'name' => 'setName', + 'foreign_table_id' => 'setForeignTableId', + 'description' => 'setDescription', 'label' => 'setLabel', - 'id' => 'setId', + 'type' => 'setType', + 'option_count' => 'setOptionCount', + 'foreign_ids' => 'setForeignIds', 'deleted' => 'setDeleted', + 'name' => 'setName', 'options' => 'setOptions', 'width' => 'setWidth', - 'foreign_table_id' => 'setForeignTableId', - 'foreign_column_id' => 'setForeignColumnId', - 'description' => 'setDescription', - 'foreign_ids' => 'setForeignIds', - 'type' => 'setType', - 'foreign_ids_by_name' => 'setForeignIdsByName', + 'id' => 'setId', 'foreign_ids_by_id' => 'setForeignIdsById', - 'option_count' => 'setOptionCount' + 'foreign_column_id' => 'setForeignColumnId', + 'foreign_ids_by_name' => 'setForeignIdsByName' ]; /** @@ -168,20 +168,20 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'name' => 'getName', + 'foreign_table_id' => 'getForeignTableId', + 'description' => 'getDescription', 'label' => 'getLabel', - 'id' => 'getId', + 'type' => 'getType', + 'option_count' => 'getOptionCount', + 'foreign_ids' => 'getForeignIds', 'deleted' => 'getDeleted', + 'name' => 'getName', 'options' => 'getOptions', 'width' => 'getWidth', - 'foreign_table_id' => 'getForeignTableId', - 'foreign_column_id' => 'getForeignColumnId', - 'description' => 'getDescription', - 'foreign_ids' => 'getForeignIds', - 'type' => 'getType', - 'foreign_ids_by_name' => 'getForeignIdsByName', + 'id' => 'getId', 'foreign_ids_by_id' => 'getForeignIdsById', - 'option_count' => 'getOptionCount' + 'foreign_column_id' => 'getForeignColumnId', + 'foreign_ids_by_name' => 'getForeignIdsByName' ]; /** @@ -286,20 +286,20 @@ public function getTypeAllowableValues() */ public function __construct(array $data = null) { - $this->container['name'] = $data['name'] ?? null; + $this->container['foreign_table_id'] = $data['foreign_table_id'] ?? null; + $this->container['description'] = $data['description'] ?? null; $this->container['label'] = $data['label'] ?? null; - $this->container['id'] = $data['id'] ?? null; + $this->container['type'] = $data['type'] ?? null; + $this->container['option_count'] = $data['option_count'] ?? null; + $this->container['foreign_ids'] = $data['foreign_ids'] ?? null; $this->container['deleted'] = $data['deleted'] ?? null; + $this->container['name'] = $data['name'] ?? null; $this->container['options'] = $data['options'] ?? null; $this->container['width'] = $data['width'] ?? null; - $this->container['foreign_table_id'] = $data['foreign_table_id'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['foreign_ids_by_id'] = $data['foreign_ids_by_id'] ?? null; $this->container['foreign_column_id'] = $data['foreign_column_id'] ?? null; - $this->container['description'] = $data['description'] ?? null; - $this->container['foreign_ids'] = $data['foreign_ids'] ?? null; - $this->container['type'] = $data['type'] ?? null; $this->container['foreign_ids_by_name'] = $data['foreign_ids_by_name'] ?? null; - $this->container['foreign_ids_by_id'] = $data['foreign_ids_by_id'] ?? null; - $this->container['option_count'] = $data['option_count'] ?? null; } /** @@ -311,9 +311,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } if ($this->container['label'] === null) { $invalidProperties[] = "'label' can't be null"; } @@ -329,6 +326,9 @@ public function listInvalidProperties() ); } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } return $invalidProperties; } @@ -345,347 +345,347 @@ public function valid() /** - * Gets name + * Gets foreign_table_id * - * @return string + * @return int|null */ - public function getName() + public function getForeignTableId() { - return $this->container['name']; + return $this->container['foreign_table_id']; } /** - * Sets name + * Sets foreign_table_id * - * @param string $name Name of the column + * @param int|null $foreign_table_id Foreign table id referenced * * @return self */ - public function setName($name) + public function setForeignTableId($foreign_table_id) { - $this->container['name'] = $name; + $this->container['foreign_table_id'] = $foreign_table_id; return $this; } /** - * Gets label + * Gets description * - * @return string + * @return string|null */ - public function getLabel() + public function getDescription() { - return $this->container['label']; + return $this->container['description']; } /** - * Sets label + * Sets description * - * @param string $label Label of the column + * @param string|null $description description * * @return self */ - public function setLabel($label) + public function setDescription($description) { - $this->container['label'] = $label; + $this->container['description'] = $description; return $this; } /** - * Gets id + * Gets label * - * @return string|null + * @return string */ - public function getId() + public function getLabel() { - return $this->container['id']; + return $this->container['label']; } /** - * Sets id + * Sets label * - * @param string|null $id Column Id + * @param string $label Label of the column * * @return self */ - public function setId($id) + public function setLabel($label) { - $this->container['id'] = $id; + $this->container['label'] = $label; return $this; } /** - * Gets deleted + * Gets type * - * @return bool|null + * @return string */ - public function getDeleted() + public function getType() { - return $this->container['deleted']; + return $this->container['type']; } /** - * Sets deleted + * Sets type * - * @param bool|null $deleted deleted + * @param string $type Type of the column * * @return self */ - public function setDeleted($deleted) + public function setType($type) { - $this->container['deleted'] = $deleted; + $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 options + * Gets option_count * - * @return \HubSpot\Client\Cms\Hubdb\Model\Option[]|null + * @return int|null */ - public function getOptions() + public function getOptionCount() { - return $this->container['options']; + return $this->container['option_count']; } /** - * Sets options + * Sets option_count * - * @param \HubSpot\Client\Cms\Hubdb\Model\Option[]|null $options Options to choose for select and multi-select columns + * @param int|null $option_count Number of options available * * @return self */ - public function setOptions($options) + public function setOptionCount($option_count) { - $this->container['options'] = $options; + $this->container['option_count'] = $option_count; return $this; } /** - * Gets width + * Gets foreign_ids * - * @return int|null + * @return \HubSpot\Client\Cms\Hubdb\Model\ForeignId[]|null */ - public function getWidth() + public function getForeignIds() { - return $this->container['width']; + return $this->container['foreign_ids']; } /** - * Sets width + * Sets foreign_ids * - * @param int|null $width Column width for HubDB UI + * @param \HubSpot\Client\Cms\Hubdb\Model\ForeignId[]|null $foreign_ids Foreign Ids * * @return self */ - public function setWidth($width) + public function setForeignIds($foreign_ids) { - $this->container['width'] = $width; + $this->container['foreign_ids'] = $foreign_ids; return $this; } /** - * Gets foreign_table_id + * Gets deleted * - * @return int|null + * @return bool|null */ - public function getForeignTableId() + public function getDeleted() { - return $this->container['foreign_table_id']; + return $this->container['deleted']; } /** - * Sets foreign_table_id + * Sets deleted * - * @param int|null $foreign_table_id Foreign table id referenced + * @param bool|null $deleted deleted * * @return self */ - public function setForeignTableId($foreign_table_id) + public function setDeleted($deleted) { - $this->container['foreign_table_id'] = $foreign_table_id; + $this->container['deleted'] = $deleted; return $this; } /** - * Gets foreign_column_id + * Gets name * - * @return int|null + * @return string */ - public function getForeignColumnId() + public function getName() { - return $this->container['foreign_column_id']; + return $this->container['name']; } /** - * Sets foreign_column_id + * Sets name * - * @param int|null $foreign_column_id Foreign Column id + * @param string $name Name of the column * * @return self */ - public function setForeignColumnId($foreign_column_id) + public function setName($name) { - $this->container['foreign_column_id'] = $foreign_column_id; + $this->container['name'] = $name; return $this; } /** - * Gets description + * Gets options * - * @return string|null + * @return \HubSpot\Client\Cms\Hubdb\Model\Option[]|null */ - public function getDescription() + public function getOptions() { - return $this->container['description']; + return $this->container['options']; } /** - * Sets description + * Sets options * - * @param string|null $description description + * @param \HubSpot\Client\Cms\Hubdb\Model\Option[]|null $options Options to choose for select and multi-select columns * * @return self */ - public function setDescription($description) + public function setOptions($options) { - $this->container['description'] = $description; + $this->container['options'] = $options; return $this; } /** - * Gets foreign_ids + * Gets width * - * @return \HubSpot\Client\Cms\Hubdb\Model\ForeignId[]|null + * @return int|null */ - public function getForeignIds() + public function getWidth() { - return $this->container['foreign_ids']; + return $this->container['width']; } /** - * Sets foreign_ids + * Sets width * - * @param \HubSpot\Client\Cms\Hubdb\Model\ForeignId[]|null $foreign_ids Foreign Ids + * @param int|null $width Column width for HubDB UI * * @return self */ - public function setForeignIds($foreign_ids) + public function setWidth($width) { - $this->container['foreign_ids'] = $foreign_ids; + $this->container['width'] = $width; return $this; } /** - * Gets type + * Gets id * - * @return string + * @return string|null */ - public function getType() + public function getId() { - return $this->container['type']; + return $this->container['id']; } /** - * Sets type + * Sets id * - * @param string $type Type of the column + * @param string|null $id Column Id * * @return self */ - public function setType($type) + public function setId($id) { - $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; + $this->container['id'] = $id; return $this; } /** - * Gets foreign_ids_by_name + * Gets foreign_ids_by_id * * @return array|null */ - public function getForeignIdsByName() + public function getForeignIdsById() { - return $this->container['foreign_ids_by_name']; + return $this->container['foreign_ids_by_id']; } /** - * Sets foreign_ids_by_name + * Sets foreign_ids_by_id * - * @param array|null $foreign_ids_by_name Foreign ids by name + * @param array|null $foreign_ids_by_id Foreign ids * * @return self */ - public function setForeignIdsByName($foreign_ids_by_name) + public function setForeignIdsById($foreign_ids_by_id) { - $this->container['foreign_ids_by_name'] = $foreign_ids_by_name; + $this->container['foreign_ids_by_id'] = $foreign_ids_by_id; return $this; } /** - * Gets foreign_ids_by_id + * Gets foreign_column_id * - * @return array|null + * @return int|null */ - public function getForeignIdsById() + public function getForeignColumnId() { - return $this->container['foreign_ids_by_id']; + return $this->container['foreign_column_id']; } /** - * Sets foreign_ids_by_id + * Sets foreign_column_id * - * @param array|null $foreign_ids_by_id Foreign ids + * @param int|null $foreign_column_id Foreign Column id * * @return self */ - public function setForeignIdsById($foreign_ids_by_id) + public function setForeignColumnId($foreign_column_id) { - $this->container['foreign_ids_by_id'] = $foreign_ids_by_id; + $this->container['foreign_column_id'] = $foreign_column_id; return $this; } /** - * Gets option_count + * Gets foreign_ids_by_name * - * @return int|null + * @return array|null */ - public function getOptionCount() + public function getForeignIdsByName() { - return $this->container['option_count']; + return $this->container['foreign_ids_by_name']; } /** - * Sets option_count + * Sets foreign_ids_by_name * - * @param int|null $option_count Number of options available + * @param array|null $foreign_ids_by_name Foreign ids by name * * @return self */ - public function setOptionCount($option_count) + public function setForeignIdsByName($foreign_ids_by_name) { - $this->container['option_count'] = $option_count; + $this->container['foreign_ids_by_name'] = $foreign_ids_by_name; return $this; } diff --git a/codegen/Cms/Hubdb/Model/ColumnRequest.php b/codegen/Cms/Hubdb/Model/ColumnRequest.php index 3a35afcc..6d307206 100644 --- a/codegen/Cms/Hubdb/Model/ColumnRequest.php +++ b/codegen/Cms/Hubdb/Model/ColumnRequest.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -57,12 +57,12 @@ class ColumnRequest implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'id' => 'int', + 'foreign_table_id' => 'int', 'name' => 'string', + 'options' => '\HubSpot\Client\Cms\Hubdb\Model\Option[]', + 'id' => 'int', 'label' => 'string', 'type' => 'string', - 'options' => '\HubSpot\Client\Cms\Hubdb\Model\Option[]', - 'foreign_table_id' => 'int', 'foreign_column_id' => 'int' ]; @@ -74,12 +74,12 @@ class ColumnRequest implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => 'int32', + 'foreign_table_id' => 'int64', 'name' => null, + 'options' => null, + 'id' => 'int32', 'label' => null, 'type' => null, - 'options' => null, - 'foreign_table_id' => 'int64', 'foreign_column_id' => 'int32' ]; @@ -110,12 +110,12 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', + 'foreign_table_id' => 'foreignTableId', 'name' => 'name', + 'options' => 'options', + 'id' => 'id', 'label' => 'label', 'type' => 'type', - 'options' => 'options', - 'foreign_table_id' => 'foreignTableId', 'foreign_column_id' => 'foreignColumnId' ]; @@ -125,12 +125,12 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', + 'foreign_table_id' => 'setForeignTableId', 'name' => 'setName', + 'options' => 'setOptions', + 'id' => 'setId', 'label' => 'setLabel', 'type' => 'setType', - 'options' => 'setOptions', - 'foreign_table_id' => 'setForeignTableId', 'foreign_column_id' => 'setForeignColumnId' ]; @@ -140,12 +140,12 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', + 'foreign_table_id' => 'getForeignTableId', 'name' => 'getName', + 'options' => 'getOptions', + 'id' => 'getId', 'label' => 'getLabel', 'type' => 'getType', - 'options' => 'getOptions', - 'foreign_table_id' => 'getForeignTableId', 'foreign_column_id' => 'getForeignColumnId' ]; @@ -251,12 +251,12 @@ public function getTypeAllowableValues() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; + $this->container['foreign_table_id'] = $data['foreign_table_id'] ?? null; $this->container['name'] = $data['name'] ?? null; + $this->container['options'] = $data['options'] ?? null; + $this->container['id'] = $data['id'] ?? null; $this->container['label'] = $data['label'] ?? null; $this->container['type'] = $data['type'] ?? null; - $this->container['options'] = $data['options'] ?? null; - $this->container['foreign_table_id'] = $data['foreign_table_id'] ?? null; $this->container['foreign_column_id'] = $data['foreign_column_id'] ?? null; } @@ -269,12 +269,15 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } + if ($this->container['options'] === null) { + $invalidProperties[] = "'options' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } if ($this->container['label'] === null) { $invalidProperties[] = "'label' can't be null"; } @@ -290,9 +293,6 @@ public function listInvalidProperties() ); } - if ($this->container['options'] === null) { - $invalidProperties[] = "'options' can't be null"; - } return $invalidProperties; } @@ -309,25 +309,25 @@ public function valid() /** - * Gets id + * Gets foreign_table_id * - * @return int + * @return int|null */ - public function getId() + public function getForeignTableId() { - return $this->container['id']; + return $this->container['foreign_table_id']; } /** - * Sets id + * Sets foreign_table_id * - * @param int $id Column Id + * @param int|null $foreign_table_id The id of another table to which the column refers/points to. * * @return self */ - public function setId($id) + public function setForeignTableId($foreign_table_id) { - $this->container['id'] = $id; + $this->container['foreign_table_id'] = $foreign_table_id; return $this; } @@ -357,107 +357,107 @@ public function setName($name) } /** - * Gets label + * Gets options * - * @return string + * @return \HubSpot\Client\Cms\Hubdb\Model\Option[] */ - public function getLabel() + public function getOptions() { - return $this->container['label']; + return $this->container['options']; } /** - * Sets label + * Sets options * - * @param string $label Label of the column + * @param \HubSpot\Client\Cms\Hubdb\Model\Option[] $options Options to choose for select and multi-select columns * * @return self */ - public function setLabel($label) + public function setOptions($options) { - $this->container['label'] = $label; + $this->container['options'] = $options; return $this; } /** - * Gets type + * Gets id * - * @return string + * @return int */ - public function getType() + public function getId() { - return $this->container['type']; + return $this->container['id']; } /** - * Sets type + * Sets id * - * @param string $type Type of the column + * @param int $id Column Id * * @return self */ - public function setType($type) + public function setId($id) { - $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; + $this->container['id'] = $id; return $this; } /** - * Gets options + * Gets label * - * @return \HubSpot\Client\Cms\Hubdb\Model\Option[] + * @return string */ - public function getOptions() + public function getLabel() { - return $this->container['options']; + return $this->container['label']; } /** - * Sets options + * Sets label * - * @param \HubSpot\Client\Cms\Hubdb\Model\Option[] $options Options to choose for select and multi-select columns + * @param string $label Label of the column * * @return self */ - public function setOptions($options) + public function setLabel($label) { - $this->container['options'] = $options; + $this->container['label'] = $label; return $this; } /** - * Gets foreign_table_id + * Gets type * - * @return int|null + * @return string */ - public function getForeignTableId() + public function getType() { - return $this->container['foreign_table_id']; + return $this->container['type']; } /** - * Sets foreign_table_id + * Sets type * - * @param int|null $foreign_table_id The id of another table to which the column refers/points to. + * @param string $type Type of the column * * @return self */ - public function setForeignTableId($foreign_table_id) + public function setType($type) { - $this->container['foreign_table_id'] = $foreign_table_id; + $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; } diff --git a/codegen/Cms/Hubdb/Model/Error.php b/codegen/Cms/Hubdb/Model/Error.php index 3c195c99..832d9c58 100644 --- a/codegen/Cms/Hubdb/Model/Error.php +++ b/codegen/Cms/Hubdb/Model/Error.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'correlation_id' => 'string', - 'category' => 'string', 'sub_category' => 'string', - 'errors' => '\HubSpot\Client\Cms\Hubdb\Model\ErrorDetail[]', 'context' => 'array', - 'links' => 'array' + 'correlation_id' => 'string', + 'links' => 'array', + 'message' => 'string', + 'category' => 'string', + 'errors' => '\HubSpot\Client\Cms\Hubdb\Model\ErrorDetail[]' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'correlation_id' => 'uuid', - 'category' => null, 'sub_category' => null, - 'errors' => null, 'context' => null, - 'links' => null + 'correlation_id' => 'uuid', + 'links' => null, + 'message' => null, + 'category' => null, + 'errors' => null ]; /** @@ -110,13 +110,13 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'correlation_id' => 'correlationId', - 'category' => 'category', 'sub_category' => 'subCategory', - 'errors' => 'errors', 'context' => 'context', - 'links' => 'links' + 'correlation_id' => 'correlationId', + 'links' => 'links', + 'message' => 'message', + 'category' => 'category', + 'errors' => 'errors' ]; /** @@ -125,13 +125,13 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'correlation_id' => 'setCorrelationId', - 'category' => 'setCategory', 'sub_category' => 'setSubCategory', - 'errors' => 'setErrors', 'context' => 'setContext', - 'links' => 'setLinks' + 'correlation_id' => 'setCorrelationId', + 'links' => 'setLinks', + 'message' => 'setMessage', + 'category' => 'setCategory', + 'errors' => 'setErrors' ]; /** @@ -140,13 +140,13 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'correlation_id' => 'getCorrelationId', - 'category' => 'getCategory', 'sub_category' => 'getSubCategory', - 'errors' => 'getErrors', 'context' => 'getContext', - 'links' => 'getLinks' + 'correlation_id' => 'getCorrelationId', + 'links' => 'getLinks', + 'message' => 'getMessage', + 'category' => 'getCategory', + 'errors' => 'getErrors' ]; /** @@ -206,13 +206,13 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['correlation_id'] = $data['correlation_id'] ?? null; - $this->container['category'] = $data['category'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['correlation_id'] = $data['correlation_id'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['message'] = $data['message'] ?? null; + $this->container['category'] = $data['category'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; } /** @@ -224,12 +224,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' 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"; } @@ -249,169 +249,169 @@ public function valid() /** - * 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) { - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets correlation_id + * Gets context * - * @return string + * @return array|null */ - public function getCorrelationId() + public function getContext() { - return $this->container['correlation_id']; + return $this->container['context']; } /** - * Sets correlation_id + * Sets context * - * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets + * @param array|null $context Context about the error condition * * @return self */ - public function setCorrelationId($correlation_id) + public function setContext($context) { - $this->container['correlation_id'] = $correlation_id; + $this->container['context'] = $context; return $this; } /** - * Gets category + * Gets correlation_id * * @return string */ - public function getCategory() + public function getCorrelationId() { - return $this->container['category']; + return $this->container['correlation_id']; } /** - * Sets category + * Sets correlation_id * - * @param string $category The error category + * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets * * @return self */ - public function setCategory($category) + public function setCorrelationId($correlation_id) { - $this->container['category'] = $category; + $this->container['correlation_id'] = $correlation_id; return $this; } /** - * Gets sub_category + * Gets links * - * @return string|null + * @return array|null */ - public function getSubCategory() + public function getLinks() { - return $this->container['sub_category']; + return $this->container['links']; } /** - * Sets sub_category + * Sets links * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps * * @return self */ - public function setSubCategory($sub_category) + public function setLinks($links) { - $this->container['sub_category'] = $sub_category; + $this->container['links'] = $links; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\Hubdb\Model\ErrorDetail[]|null + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\Hubdb\Model\ErrorDetail[]|null $errors further information about the error + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets category * - * @return array|null + * @return string */ - public function getContext() + public function getCategory() { - return $this->container['context']; + return $this->container['category']; } /** - * Sets context + * Sets category * - * @param array|null $context Context about the error condition + * @param string $category The error category * * @return self */ - public function setContext($context) + public function setCategory($category) { - $this->container['context'] = $context; + $this->container['category'] = $category; return $this; } /** - * Gets links + * Gets errors * - * @return array|null + * @return \HubSpot\Client\Cms\Hubdb\Model\ErrorDetail[]|null */ - public function getLinks() + public function getErrors() { - return $this->container['links']; + return $this->container['errors']; } /** - * Sets links + * Sets errors * - * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps + * @param \HubSpot\Client\Cms\Hubdb\Model\ErrorDetail[]|null $errors further information about the error * * @return self */ - public function setLinks($links) + public function setErrors($errors) { - $this->container['links'] = $links; + $this->container['errors'] = $errors; return $this; } diff --git a/codegen/Cms/Hubdb/Model/ErrorDetail.php b/codegen/Cms/Hubdb/Model/ErrorDetail.php index 77799074..445341c4 100644 --- a/codegen/Cms/Hubdb/Model/ErrorDetail.php +++ b/codegen/Cms/Hubdb/Model/ErrorDetail.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'in' => 'string', - 'code' => 'string', 'sub_category' => 'string', - 'context' => 'array' + 'code' => 'string', + 'in' => 'string', + 'context' => 'array', + 'message' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'in' => null, - 'code' => null, 'sub_category' => null, - 'context' => null + 'code' => null, + 'in' => null, + 'context' => null, + 'message' => null ]; /** @@ -106,11 +106,11 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'in' => 'in', - 'code' => 'code', 'sub_category' => 'subCategory', - 'context' => 'context' + 'code' => 'code', + 'in' => 'in', + 'context' => 'context', + 'message' => 'message' ]; /** @@ -119,11 +119,11 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'in' => 'setIn', - 'code' => 'setCode', 'sub_category' => 'setSubCategory', - 'context' => 'setContext' + 'code' => 'setCode', + 'in' => 'setIn', + 'context' => 'setContext', + 'message' => 'setMessage' ]; /** @@ -132,11 +132,11 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'in' => 'getIn', - 'code' => 'getCode', 'sub_category' => 'getSubCategory', - 'context' => 'getContext' + 'code' => 'getCode', + 'in' => 'getIn', + 'context' => 'getContext', + 'message' => 'getMessage' ]; /** @@ -196,11 +196,11 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['in'] = $data['in'] ?? null; - $this->container['code'] = $data['code'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['code'] = $data['code'] ?? null; + $this->container['in'] = $data['in'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['message'] = $data['message'] ?? null; } /** @@ -231,49 +231,25 @@ public function valid() /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A human readable message describing the error along with remediation steps where appropriate - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - - /** - * Gets in + * Gets sub_category * * @return string|null */ - public function getIn() + public function getSubCategory() { - return $this->container['in']; + return $this->container['sub_category']; } /** - * Sets in + * Sets sub_category * - * @param string|null $in The name of the field or parameter in which the error was found. + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setIn($in) + public function setSubCategory($sub_category) { - $this->container['in'] = $in; + $this->container['sub_category'] = $sub_category; return $this; } @@ -303,25 +279,25 @@ public function setCode($code) } /** - * Gets sub_category + * Gets in * * @return string|null */ - public function getSubCategory() + public function getIn() { - return $this->container['sub_category']; + return $this->container['in']; } /** - * Sets sub_category + * Sets in * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $in The name of the field or parameter in which the error was found. * * @return self */ - public function setSubCategory($sub_category) + public function setIn($in) { - $this->container['sub_category'] = $sub_category; + $this->container['in'] = $in; return $this; } @@ -349,6 +325,30 @@ public function setContext($context) return $this; } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message A human readable message describing the error along with remediation steps where appropriate + * + * @return self + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Hubdb/Model/ForeignId.php b/codegen/Cms/Hubdb/Model/ForeignId.php index 97a9138d..66102bdb 100644 --- a/codegen/Cms/Hubdb/Model/ForeignId.php +++ b/codegen/Cms/Hubdb/Model/ForeignId.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -57,8 +57,8 @@ class ForeignId implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', 'name' => 'string', + 'id' => 'string', 'type' => 'string' ]; @@ -70,8 +70,8 @@ class ForeignId implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, 'name' => null, + 'id' => null, 'type' => null ]; @@ -102,8 +102,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', 'name' => 'name', + 'id' => 'id', 'type' => 'type' ]; @@ -113,8 +113,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', 'name' => 'setName', + 'id' => 'setId', 'type' => 'setType' ]; @@ -124,8 +124,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', 'name' => 'getName', + 'id' => 'getId', 'type' => 'getType' ]; @@ -186,8 +186,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; $this->container['name'] = $data['name'] ?? null; + $this->container['id'] = $data['id'] ?? null; $this->container['type'] = $data['type'] ?? null; } @@ -200,12 +200,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } if ($this->container['type'] === null) { $invalidProperties[] = "'type' can't be null"; } @@ -225,49 +225,49 @@ public function valid() /** - * Gets id + * Gets name * * @return string */ - public function getId() + public function getName() { - return $this->container['id']; + return $this->container['name']; } /** - * Sets id + * Sets name * - * @param string $id id + * @param string $name * * @return self */ - public function setId($id) + public function setName($name) { - $this->container['id'] = $id; + $this->container['name'] = $name; return $this; } /** - * Gets name + * Gets id * * @return string */ - public function getName() + public function getId() { - return $this->container['name']; + return $this->container['id']; } /** - * Sets name + * Sets id * - * @param string $name name + * @param string $id * * @return self */ - public function setName($name) + public function setId($id) { - $this->container['name'] = $name; + $this->container['id'] = $id; return $this; } @@ -285,7 +285,7 @@ public function getType() /** * Sets type * - * @param string $type type + * @param string $type * * @return self */ diff --git a/codegen/Cms/Hubdb/Model/ForwardPaging.php b/codegen/Cms/Hubdb/Model/ForwardPaging.php index dfaa5607..69858420 100644 --- a/codegen/Cms/Hubdb/Model/ForwardPaging.php +++ b/codegen/Cms/Hubdb/Model/ForwardPaging.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * diff --git a/codegen/Cms/Hubdb/Model/HubDbTableCloneRequest.php b/codegen/Cms/Hubdb/Model/HubDbTableCloneRequest.php index 04904489..90164692 100644 --- a/codegen/Cms/Hubdb/Model/HubDbTableCloneRequest.php +++ b/codegen/Cms/Hubdb/Model/HubDbTableCloneRequest.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * diff --git a/codegen/Cms/Hubdb/Model/HubDbTableRowV3.php b/codegen/Cms/Hubdb/Model/HubDbTableRowV3.php index 2f915fe3..e16ba848 100644 --- a/codegen/Cms/Hubdb/Model/HubDbTableRowV3.php +++ b/codegen/Cms/Hubdb/Model/HubDbTableRowV3.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -57,14 +57,14 @@ class HubDbTableRowV3 implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', - 'values' => 'array', 'path' => 'string', - 'name' => 'string', - 'child_table_id' => 'string', 'created_at' => '\DateTime', - 'updated_at' => '\DateTime', - 'published_at' => '\DateTime' + 'child_table_id' => 'string', + 'published_at' => '\DateTime', + 'values' => 'array', + 'name' => 'string', + 'id' => 'string', + 'updated_at' => '\DateTime' ]; /** @@ -75,14 +75,14 @@ class HubDbTableRowV3 implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, - 'values' => null, 'path' => null, - 'name' => null, - 'child_table_id' => null, 'created_at' => 'date-time', - 'updated_at' => 'date-time', - 'published_at' => 'date-time' + 'child_table_id' => null, + 'published_at' => 'date-time', + 'values' => null, + 'name' => null, + 'id' => null, + 'updated_at' => 'date-time' ]; /** @@ -112,14 +112,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', - 'values' => 'values', 'path' => 'path', - 'name' => 'name', - 'child_table_id' => 'childTableId', 'created_at' => 'createdAt', - 'updated_at' => 'updatedAt', - 'published_at' => 'publishedAt' + 'child_table_id' => 'childTableId', + 'published_at' => 'publishedAt', + 'values' => 'values', + 'name' => 'name', + 'id' => 'id', + 'updated_at' => 'updatedAt' ]; /** @@ -128,14 +128,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', - 'values' => 'setValues', 'path' => 'setPath', - 'name' => 'setName', - 'child_table_id' => 'setChildTableId', 'created_at' => 'setCreatedAt', - 'updated_at' => 'setUpdatedAt', - 'published_at' => 'setPublishedAt' + 'child_table_id' => 'setChildTableId', + 'published_at' => 'setPublishedAt', + 'values' => 'setValues', + 'name' => 'setName', + 'id' => 'setId', + 'updated_at' => 'setUpdatedAt' ]; /** @@ -144,14 +144,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', - 'values' => 'getValues', 'path' => 'getPath', - 'name' => 'getName', - 'child_table_id' => 'getChildTableId', 'created_at' => 'getCreatedAt', - 'updated_at' => 'getUpdatedAt', - 'published_at' => 'getPublishedAt' + 'child_table_id' => 'getChildTableId', + 'published_at' => 'getPublishedAt', + 'values' => 'getValues', + 'name' => 'getName', + 'id' => 'getId', + 'updated_at' => 'getUpdatedAt' ]; /** @@ -211,14 +211,14 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; - $this->container['values'] = $data['values'] ?? null; $this->container['path'] = $data['path'] ?? null; - $this->container['name'] = $data['name'] ?? null; - $this->container['child_table_id'] = $data['child_table_id'] ?? null; $this->container['created_at'] = $data['created_at'] ?? null; - $this->container['updated_at'] = $data['updated_at'] ?? null; + $this->container['child_table_id'] = $data['child_table_id'] ?? null; $this->container['published_at'] = $data['published_at'] ?? null; + $this->container['values'] = $data['values'] ?? null; + $this->container['name'] = $data['name'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['updated_at'] = $data['updated_at'] ?? null; } /** @@ -249,193 +249,193 @@ public function valid() /** - * Gets id + * Gets path * * @return string|null */ - public function getId() + public function getPath() { - return $this->container['id']; + return $this->container['path']; } /** - * Sets id + * Sets path * - * @param string|null $id The id of the table row + * @param string|null $path Specifies the value for `hs_path` column, which will be used as slug in the dynamic pages * * @return self */ - public function setId($id) + public function setPath($path) { - $this->container['id'] = $id; + $this->container['path'] = $path; return $this; } /** - * Gets values + * Gets created_at * - * @return array + * @return \DateTime|null */ - public function getValues() + public function getCreatedAt() { - return $this->container['values']; + return $this->container['created_at']; } /** - * Sets values + * Sets created_at * - * @param array $values List of key value pairs with the column name and column value + * @param \DateTime|null $created_at Timestamp at which the row is created * * @return self */ - public function setValues($values) + public function setCreatedAt($created_at) { - $this->container['values'] = $values; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets path + * Gets child_table_id * * @return string|null */ - public function getPath() + public function getChildTableId() { - return $this->container['path']; + return $this->container['child_table_id']; } /** - * Sets path + * Sets child_table_id * - * @param string|null $path Specifies the value for `hs_path` column, which will be used as slug in the dynamic pages + * @param string|null $child_table_id Specifies the value for the column child table id * * @return self */ - public function setPath($path) + public function setChildTableId($child_table_id) { - $this->container['path'] = $path; + $this->container['child_table_id'] = $child_table_id; return $this; } /** - * Gets name + * Gets published_at * - * @return string|null + * @return \DateTime|null */ - public function getName() + public function getPublishedAt() { - return $this->container['name']; + return $this->container['published_at']; } /** - * Sets name + * Sets published_at * - * @param string|null $name Specifies the value for `hs_name` column, which will be used as title in the dynamic pages + * @param \DateTime|null $published_at published_at * * @return self */ - public function setName($name) + public function setPublishedAt($published_at) { - $this->container['name'] = $name; + $this->container['published_at'] = $published_at; return $this; } /** - * Gets child_table_id + * Gets values * - * @return string|null + * @return array */ - public function getChildTableId() + public function getValues() { - return $this->container['child_table_id']; + return $this->container['values']; } /** - * Sets child_table_id + * Sets values * - * @param string|null $child_table_id Specifies the value for the column child table id + * @param array $values List of key value pairs with the column name and column value * * @return self */ - public function setChildTableId($child_table_id) + public function setValues($values) { - $this->container['child_table_id'] = $child_table_id; + $this->container['values'] = $values; return $this; } /** - * Gets created_at + * Gets name * - * @return \DateTime|null + * @return string|null */ - public function getCreatedAt() + public function getName() { - return $this->container['created_at']; + return $this->container['name']; } /** - * Sets created_at + * Sets name * - * @param \DateTime|null $created_at Timestamp at which the row is created + * @param string|null $name Specifies the value for `hs_name` column, which will be used as title in the dynamic pages * * @return self */ - public function setCreatedAt($created_at) + public function setName($name) { - $this->container['created_at'] = $created_at; + $this->container['name'] = $name; return $this; } /** - * Gets updated_at + * Gets id * - * @return \DateTime|null + * @return string|null */ - public function getUpdatedAt() + public function getId() { - return $this->container['updated_at']; + return $this->container['id']; } /** - * Sets updated_at + * Sets id * - * @param \DateTime|null $updated_at Timestamp at which the row is updated last time + * @param string|null $id The id of the table row * * @return self */ - public function setUpdatedAt($updated_at) + public function setId($id) { - $this->container['updated_at'] = $updated_at; + $this->container['id'] = $id; return $this; } /** - * Gets published_at + * Gets updated_at * * @return \DateTime|null */ - public function getPublishedAt() + public function getUpdatedAt() { - return $this->container['published_at']; + return $this->container['updated_at']; } /** - * Sets published_at + * Sets updated_at * - * @param \DateTime|null $published_at published_at + * @param \DateTime|null $updated_at Timestamp at which the row is updated last time * * @return self */ - public function setPublishedAt($published_at) + public function setUpdatedAt($updated_at) { - $this->container['published_at'] = $published_at; + $this->container['updated_at'] = $updated_at; return $this; } diff --git a/codegen/Cms/Hubdb/Model/HubDbTableRowV3BatchUpdateRequest.php b/codegen/Cms/Hubdb/Model/HubDbTableRowV3BatchUpdateRequest.php index 5565a607..49c820d8 100644 --- a/codegen/Cms/Hubdb/Model/HubDbTableRowV3BatchUpdateRequest.php +++ b/codegen/Cms/Hubdb/Model/HubDbTableRowV3BatchUpdateRequest.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -58,11 +58,11 @@ class HubDbTableRowV3BatchUpdateRequest implements ModelInterface, ArrayAccess, */ protected static $openAPITypes = [ 'path' => 'string', - 'name' => 'string', 'child_table_id' => 'int', 'values' => 'array', - 'display_index' => 'int', - 'id' => 'int' + 'name' => 'string', + 'id' => 'string', + 'display_index' => 'int' ]; /** @@ -74,11 +74,11 @@ class HubDbTableRowV3BatchUpdateRequest implements ModelInterface, ArrayAccess, */ protected static $openAPIFormats = [ 'path' => null, - 'name' => null, 'child_table_id' => 'int32', 'values' => null, - 'display_index' => 'int32', - 'id' => 'int64' + 'name' => null, + 'id' => null, + 'display_index' => 'int32' ]; /** @@ -109,11 +109,11 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'path' => 'path', - 'name' => 'name', 'child_table_id' => 'childTableId', 'values' => 'values', - 'display_index' => 'displayIndex', - 'id' => 'id' + 'name' => 'name', + 'id' => 'id', + 'display_index' => 'displayIndex' ]; /** @@ -123,11 +123,11 @@ public static function openAPIFormats() */ protected static $setters = [ 'path' => 'setPath', - 'name' => 'setName', 'child_table_id' => 'setChildTableId', 'values' => 'setValues', - 'display_index' => 'setDisplayIndex', - 'id' => 'setId' + 'name' => 'setName', + 'id' => 'setId', + 'display_index' => 'setDisplayIndex' ]; /** @@ -137,11 +137,11 @@ public static function openAPIFormats() */ protected static $getters = [ 'path' => 'getPath', - 'name' => 'getName', 'child_table_id' => 'getChildTableId', 'values' => 'getValues', - 'display_index' => 'getDisplayIndex', - 'id' => 'getId' + 'name' => 'getName', + 'id' => 'getId', + 'display_index' => 'getDisplayIndex' ]; /** @@ -202,11 +202,11 @@ public function getModelName() public function __construct(array $data = null) { $this->container['path'] = $data['path'] ?? null; - $this->container['name'] = $data['name'] ?? null; $this->container['child_table_id'] = $data['child_table_id'] ?? null; $this->container['values'] = $data['values'] ?? null; - $this->container['display_index'] = $data['display_index'] ?? null; + $this->container['name'] = $data['name'] ?? null; $this->container['id'] = $data['id'] ?? null; + $this->container['display_index'] = $data['display_index'] ?? null; } /** @@ -263,30 +263,6 @@ public function setPath($path) return $this; } - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name Specifies the value for `hs_name` column, which will be used as title in the dynamic pages - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** * Gets child_table_id * @@ -336,25 +312,25 @@ public function setValues($values) } /** - * Gets display_index + * Gets name * - * @return int|null + * @return string|null */ - public function getDisplayIndex() + public function getName() { - return $this->container['display_index']; + return $this->container['name']; } /** - * Sets display_index + * Sets name * - * @param int|null $display_index display_index + * @param string|null $name Specifies the value for `hs_name` column, which will be used as title in the dynamic pages * * @return self */ - public function setDisplayIndex($display_index) + public function setName($name) { - $this->container['display_index'] = $display_index; + $this->container['name'] = $name; return $this; } @@ -362,7 +338,7 @@ public function setDisplayIndex($display_index) /** * Gets id * - * @return int + * @return string */ public function getId() { @@ -372,7 +348,7 @@ public function getId() /** * Sets id * - * @param int $id The id of the table row + * @param string $id The id of the table row * * @return self */ @@ -382,6 +358,30 @@ public function setId($id) return $this; } + + /** + * Gets display_index + * + * @return int|null + */ + public function getDisplayIndex() + { + return $this->container['display_index']; + } + + /** + * Sets display_index + * + * @param int|null $display_index display_index + * + * @return self + */ + public function setDisplayIndex($display_index) + { + $this->container['display_index'] = $display_index; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Hubdb/Model/HubDbTableRowV3Request.php b/codegen/Cms/Hubdb/Model/HubDbTableRowV3Request.php index f15c1d30..d34b26dd 100644 --- a/codegen/Cms/Hubdb/Model/HubDbTableRowV3Request.php +++ b/codegen/Cms/Hubdb/Model/HubDbTableRowV3Request.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -58,9 +58,9 @@ class HubDbTableRowV3Request implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPITypes = [ 'path' => 'string', - 'name' => 'string', 'child_table_id' => 'int', 'values' => 'array', + 'name' => 'string', 'display_index' => 'int' ]; @@ -73,9 +73,9 @@ class HubDbTableRowV3Request implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPIFormats = [ 'path' => null, - 'name' => null, 'child_table_id' => 'int32', 'values' => null, + 'name' => null, 'display_index' => 'int32' ]; @@ -107,9 +107,9 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'path' => 'path', - 'name' => 'name', 'child_table_id' => 'childTableId', 'values' => 'values', + 'name' => 'name', 'display_index' => 'displayIndex' ]; @@ -120,9 +120,9 @@ public static function openAPIFormats() */ protected static $setters = [ 'path' => 'setPath', - 'name' => 'setName', 'child_table_id' => 'setChildTableId', 'values' => 'setValues', + 'name' => 'setName', 'display_index' => 'setDisplayIndex' ]; @@ -133,9 +133,9 @@ public static function openAPIFormats() */ protected static $getters = [ 'path' => 'getPath', - 'name' => 'getName', 'child_table_id' => 'getChildTableId', 'values' => 'getValues', + 'name' => 'getName', 'display_index' => 'getDisplayIndex' ]; @@ -197,9 +197,9 @@ public function getModelName() public function __construct(array $data = null) { $this->container['path'] = $data['path'] ?? null; - $this->container['name'] = $data['name'] ?? null; $this->container['child_table_id'] = $data['child_table_id'] ?? null; $this->container['values'] = $data['values'] ?? null; + $this->container['name'] = $data['name'] ?? null; $this->container['display_index'] = $data['display_index'] ?? null; } @@ -254,30 +254,6 @@ public function setPath($path) return $this; } - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name Specifies the value for `hs_name` column, which will be used as title in the dynamic pages - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** * Gets child_table_id * @@ -326,6 +302,30 @@ public function setValues($values) return $this; } + /** + * Gets name + * + * @return string|null + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string|null $name Specifies the value for `hs_name` column, which will be used as title in the dynamic pages + * + * @return self + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** * Gets display_index * diff --git a/codegen/Cms/Hubdb/Model/HubDbTableV3.php b/codegen/Cms/Hubdb/Model/HubDbTableV3.php index a5919d49..0313051b 100644 --- a/codegen/Cms/Hubdb/Model/HubDbTableV3.php +++ b/codegen/Cms/Hubdb/Model/HubDbTableV3.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -58,24 +58,24 @@ class HubDbTableV3 implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', - 'name' => 'string', - 'label' => 'string', + 'dynamic_meta_tags' => 'array', + 'updated_by' => '\HubSpot\Client\Cms\Hubdb\Model\SimpleUser', + 'allow_public_api_access' => 'bool', + 'use_for_pages' => 'bool', + 'published_at' => '\DateTime', 'columns' => '\HubSpot\Client\Cms\Hubdb\Model\Column[]', + 'label' => 'string', 'published' => 'bool', - 'deleted' => 'bool', 'column_count' => 'int', - 'row_count' => 'int', - 'created_by' => '\HubSpot\Client\Cms\Hubdb\Model\SimpleUser', - 'updated_by' => '\HubSpot\Client\Cms\Hubdb\Model\SimpleUser', - 'use_for_pages' => 'bool', 'allow_child_tables' => 'bool', + 'created_at' => '\DateTime', + 'deleted' => 'bool', + 'created_by' => '\HubSpot\Client\Cms\Hubdb\Model\SimpleUser', + 'name' => 'string', 'enable_child_table_pages' => 'bool', + 'id' => 'string', + 'row_count' => 'int', 'is_ordered_manually' => 'bool', - 'dynamic_meta_tags' => 'array', - 'allow_public_api_access' => 'bool', - 'created_at' => '\DateTime', - 'published_at' => '\DateTime', 'updated_at' => '\DateTime' ]; @@ -87,24 +87,24 @@ class HubDbTableV3 implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, - 'name' => null, - 'label' => null, + 'dynamic_meta_tags' => 'int32', + 'updated_by' => null, + 'allow_public_api_access' => null, + 'use_for_pages' => null, + 'published_at' => 'date-time', 'columns' => null, + 'label' => null, 'published' => null, - 'deleted' => null, 'column_count' => 'int32', - 'row_count' => 'int32', - 'created_by' => null, - 'updated_by' => null, - 'use_for_pages' => null, 'allow_child_tables' => null, + 'created_at' => 'date-time', + 'deleted' => null, + 'created_by' => null, + 'name' => null, 'enable_child_table_pages' => null, + 'id' => null, + 'row_count' => 'int32', 'is_ordered_manually' => null, - 'dynamic_meta_tags' => 'int32', - 'allow_public_api_access' => null, - 'created_at' => 'date-time', - 'published_at' => 'date-time', 'updated_at' => 'date-time' ]; @@ -135,24 +135,24 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', - 'label' => 'label', + 'dynamic_meta_tags' => 'dynamicMetaTags', + 'updated_by' => 'updatedBy', + 'allow_public_api_access' => 'allowPublicApiAccess', + 'use_for_pages' => 'useForPages', + 'published_at' => 'publishedAt', 'columns' => 'columns', + 'label' => 'label', 'published' => 'published', - 'deleted' => 'deleted', 'column_count' => 'columnCount', - 'row_count' => 'rowCount', - 'created_by' => 'createdBy', - 'updated_by' => 'updatedBy', - 'use_for_pages' => 'useForPages', 'allow_child_tables' => 'allowChildTables', + 'created_at' => 'createdAt', + 'deleted' => 'deleted', + 'created_by' => 'createdBy', + 'name' => 'name', 'enable_child_table_pages' => 'enableChildTablePages', + 'id' => 'id', + 'row_count' => 'rowCount', 'is_ordered_manually' => 'isOrderedManually', - 'dynamic_meta_tags' => 'dynamicMetaTags', - 'allow_public_api_access' => 'allowPublicApiAccess', - 'created_at' => 'createdAt', - 'published_at' => 'publishedAt', 'updated_at' => 'updatedAt' ]; @@ -162,24 +162,24 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', - 'label' => 'setLabel', + 'dynamic_meta_tags' => 'setDynamicMetaTags', + 'updated_by' => 'setUpdatedBy', + 'allow_public_api_access' => 'setAllowPublicApiAccess', + 'use_for_pages' => 'setUseForPages', + 'published_at' => 'setPublishedAt', 'columns' => 'setColumns', + 'label' => 'setLabel', 'published' => 'setPublished', - 'deleted' => 'setDeleted', 'column_count' => 'setColumnCount', - 'row_count' => 'setRowCount', - 'created_by' => 'setCreatedBy', - 'updated_by' => 'setUpdatedBy', - 'use_for_pages' => 'setUseForPages', 'allow_child_tables' => 'setAllowChildTables', + 'created_at' => 'setCreatedAt', + 'deleted' => 'setDeleted', + 'created_by' => 'setCreatedBy', + 'name' => 'setName', 'enable_child_table_pages' => 'setEnableChildTablePages', + 'id' => 'setId', + 'row_count' => 'setRowCount', 'is_ordered_manually' => 'setIsOrderedManually', - 'dynamic_meta_tags' => 'setDynamicMetaTags', - 'allow_public_api_access' => 'setAllowPublicApiAccess', - 'created_at' => 'setCreatedAt', - 'published_at' => 'setPublishedAt', 'updated_at' => 'setUpdatedAt' ]; @@ -189,24 +189,24 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', - 'label' => 'getLabel', + 'dynamic_meta_tags' => 'getDynamicMetaTags', + 'updated_by' => 'getUpdatedBy', + 'allow_public_api_access' => 'getAllowPublicApiAccess', + 'use_for_pages' => 'getUseForPages', + 'published_at' => 'getPublishedAt', 'columns' => 'getColumns', + 'label' => 'getLabel', 'published' => 'getPublished', - 'deleted' => 'getDeleted', 'column_count' => 'getColumnCount', - 'row_count' => 'getRowCount', - 'created_by' => 'getCreatedBy', - 'updated_by' => 'getUpdatedBy', - 'use_for_pages' => 'getUseForPages', 'allow_child_tables' => 'getAllowChildTables', + 'created_at' => 'getCreatedAt', + 'deleted' => 'getDeleted', + 'created_by' => 'getCreatedBy', + 'name' => 'getName', 'enable_child_table_pages' => 'getEnableChildTablePages', + 'id' => 'getId', + 'row_count' => 'getRowCount', 'is_ordered_manually' => 'getIsOrderedManually', - 'dynamic_meta_tags' => 'getDynamicMetaTags', - 'allow_public_api_access' => 'getAllowPublicApiAccess', - 'created_at' => 'getCreatedAt', - 'published_at' => 'getPublishedAt', 'updated_at' => 'getUpdatedAt' ]; @@ -267,24 +267,24 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; - $this->container['name'] = $data['name'] ?? null; - $this->container['label'] = $data['label'] ?? null; + $this->container['dynamic_meta_tags'] = $data['dynamic_meta_tags'] ?? null; + $this->container['updated_by'] = $data['updated_by'] ?? null; + $this->container['allow_public_api_access'] = $data['allow_public_api_access'] ?? null; + $this->container['use_for_pages'] = $data['use_for_pages'] ?? null; + $this->container['published_at'] = $data['published_at'] ?? null; $this->container['columns'] = $data['columns'] ?? null; + $this->container['label'] = $data['label'] ?? null; $this->container['published'] = $data['published'] ?? null; - $this->container['deleted'] = $data['deleted'] ?? null; $this->container['column_count'] = $data['column_count'] ?? null; - $this->container['row_count'] = $data['row_count'] ?? null; - $this->container['created_by'] = $data['created_by'] ?? null; - $this->container['updated_by'] = $data['updated_by'] ?? null; - $this->container['use_for_pages'] = $data['use_for_pages'] ?? null; $this->container['allow_child_tables'] = $data['allow_child_tables'] ?? null; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['deleted'] = $data['deleted'] ?? null; + $this->container['created_by'] = $data['created_by'] ?? null; + $this->container['name'] = $data['name'] ?? null; $this->container['enable_child_table_pages'] = $data['enable_child_table_pages'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['row_count'] = $data['row_count'] ?? null; $this->container['is_ordered_manually'] = $data['is_ordered_manually'] ?? null; - $this->container['dynamic_meta_tags'] = $data['dynamic_meta_tags'] ?? null; - $this->container['allow_public_api_access'] = $data['allow_public_api_access'] ?? null; - $this->container['created_at'] = $data['created_at'] ?? null; - $this->container['published_at'] = $data['published_at'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; } @@ -297,12 +297,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; - } if ($this->container['label'] === null) { $invalidProperties[] = "'label' can't be null"; } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } return $invalidProperties; } @@ -319,433 +319,433 @@ public function valid() /** - * Gets id + * Gets dynamic_meta_tags * - * @return string|null + * @return array|null */ - public function getId() + public function getDynamicMetaTags() { - return $this->container['id']; + return $this->container['dynamic_meta_tags']; } /** - * Sets id + * Sets dynamic_meta_tags * - * @param string|null $id Id of the table + * @param array|null $dynamic_meta_tags Specifies the key value pairs of the metadata fields with the associated column ids * * @return self */ - public function setId($id) + public function setDynamicMetaTags($dynamic_meta_tags) { - $this->container['id'] = $id; + $this->container['dynamic_meta_tags'] = $dynamic_meta_tags; return $this; } /** - * Gets name + * Gets updated_by * - * @return string + * @return \HubSpot\Client\Cms\Hubdb\Model\SimpleUser|null */ - public function getName() + public function getUpdatedBy() { - return $this->container['name']; + return $this->container['updated_by']; } /** - * Sets name + * Sets updated_by * - * @param string $name Name of the table + * @param \HubSpot\Client\Cms\Hubdb\Model\SimpleUser|null $updated_by updated_by * * @return self */ - public function setName($name) + public function setUpdatedBy($updated_by) { - $this->container['name'] = $name; + $this->container['updated_by'] = $updated_by; return $this; } /** - * Gets label + * Gets allow_public_api_access * - * @return string + * @return bool|null */ - public function getLabel() + public function getAllowPublicApiAccess() { - return $this->container['label']; + return $this->container['allow_public_api_access']; } /** - * Sets label + * Sets allow_public_api_access * - * @param string $label Label of the table + * @param bool|null $allow_public_api_access Specifies whether the table can be read by public without authorization * * @return self */ - public function setLabel($label) + public function setAllowPublicApiAccess($allow_public_api_access) { - $this->container['label'] = $label; + $this->container['allow_public_api_access'] = $allow_public_api_access; return $this; } /** - * Gets columns + * Gets use_for_pages * - * @return \HubSpot\Client\Cms\Hubdb\Model\Column[]|null + * @return bool|null */ - public function getColumns() + public function getUseForPages() { - return $this->container['columns']; + return $this->container['use_for_pages']; } /** - * Sets columns + * Sets use_for_pages * - * @param \HubSpot\Client\Cms\Hubdb\Model\Column[]|null $columns List of columns in the table + * @param bool|null $use_for_pages Specifies whether the table can be used for creation of dynamic pages * * @return self */ - public function setColumns($columns) + public function setUseForPages($use_for_pages) { - $this->container['columns'] = $columns; + $this->container['use_for_pages'] = $use_for_pages; return $this; } /** - * Gets published + * Gets published_at * - * @return bool|null + * @return \DateTime|null */ - public function getPublished() + public function getPublishedAt() { - return $this->container['published']; + return $this->container['published_at']; } /** - * Sets published + * Sets published_at * - * @param bool|null $published published + * @param \DateTime|null $published_at Timestamp at which the table is published recently * * @return self */ - public function setPublished($published) + public function setPublishedAt($published_at) { - $this->container['published'] = $published; + $this->container['published_at'] = $published_at; return $this; } /** - * Gets deleted + * Gets columns * - * @return bool|null + * @return \HubSpot\Client\Cms\Hubdb\Model\Column[]|null */ - public function getDeleted() + public function getColumns() { - return $this->container['deleted']; + return $this->container['columns']; } /** - * Sets deleted + * Sets columns * - * @param bool|null $deleted deleted + * @param \HubSpot\Client\Cms\Hubdb\Model\Column[]|null $columns List of columns in the table * * @return self */ - public function setDeleted($deleted) + public function setColumns($columns) { - $this->container['deleted'] = $deleted; + $this->container['columns'] = $columns; return $this; } /** - * Gets column_count + * Gets label * - * @return int|null + * @return string */ - public function getColumnCount() + public function getLabel() { - return $this->container['column_count']; + return $this->container['label']; } /** - * Sets column_count + * Sets label * - * @param int|null $column_count Number of columns including deleted + * @param string $label Label of the table * * @return self */ - public function setColumnCount($column_count) + public function setLabel($label) { - $this->container['column_count'] = $column_count; + $this->container['label'] = $label; return $this; } /** - * Gets row_count + * Gets published * - * @return int|null + * @return bool|null */ - public function getRowCount() + public function getPublished() { - return $this->container['row_count']; + return $this->container['published']; } /** - * Sets row_count + * Sets published * - * @param int|null $row_count Number of rows in the table + * @param bool|null $published published * * @return self */ - public function setRowCount($row_count) + public function setPublished($published) { - $this->container['row_count'] = $row_count; + $this->container['published'] = $published; return $this; } /** - * Gets created_by + * Gets column_count * - * @return \HubSpot\Client\Cms\Hubdb\Model\SimpleUser|null + * @return int|null */ - public function getCreatedBy() + public function getColumnCount() { - return $this->container['created_by']; + return $this->container['column_count']; } /** - * Sets created_by + * Sets column_count * - * @param \HubSpot\Client\Cms\Hubdb\Model\SimpleUser|null $created_by created_by + * @param int|null $column_count Number of columns including deleted * * @return self */ - public function setCreatedBy($created_by) + public function setColumnCount($column_count) { - $this->container['created_by'] = $created_by; + $this->container['column_count'] = $column_count; return $this; } /** - * Gets updated_by + * Gets allow_child_tables * - * @return \HubSpot\Client\Cms\Hubdb\Model\SimpleUser|null + * @return bool|null */ - public function getUpdatedBy() + public function getAllowChildTables() { - return $this->container['updated_by']; + return $this->container['allow_child_tables']; } /** - * Sets updated_by + * Sets allow_child_tables * - * @param \HubSpot\Client\Cms\Hubdb\Model\SimpleUser|null $updated_by updated_by + * @param bool|null $allow_child_tables Specifies whether child tables can be created * * @return self */ - public function setUpdatedBy($updated_by) + public function setAllowChildTables($allow_child_tables) { - $this->container['updated_by'] = $updated_by; + $this->container['allow_child_tables'] = $allow_child_tables; return $this; } /** - * Gets use_for_pages + * Gets created_at * - * @return bool|null + * @return \DateTime|null */ - public function getUseForPages() + public function getCreatedAt() { - return $this->container['use_for_pages']; + return $this->container['created_at']; } /** - * Sets use_for_pages + * Sets created_at * - * @param bool|null $use_for_pages Specifies whether the table can be used for creation of dynamic pages + * @param \DateTime|null $created_at Timestamp at which the table is created * * @return self */ - public function setUseForPages($use_for_pages) + public function setCreatedAt($created_at) { - $this->container['use_for_pages'] = $use_for_pages; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets allow_child_tables + * Gets deleted * * @return bool|null */ - public function getAllowChildTables() + public function getDeleted() { - return $this->container['allow_child_tables']; + return $this->container['deleted']; } /** - * Sets allow_child_tables + * Sets deleted * - * @param bool|null $allow_child_tables Specifies whether child tables can be created + * @param bool|null $deleted deleted * * @return self */ - public function setAllowChildTables($allow_child_tables) + public function setDeleted($deleted) { - $this->container['allow_child_tables'] = $allow_child_tables; + $this->container['deleted'] = $deleted; return $this; } /** - * Gets enable_child_table_pages + * Gets created_by * - * @return bool|null + * @return \HubSpot\Client\Cms\Hubdb\Model\SimpleUser|null */ - public function getEnableChildTablePages() + public function getCreatedBy() { - return $this->container['enable_child_table_pages']; + return $this->container['created_by']; } /** - * Sets enable_child_table_pages + * Sets created_by * - * @param bool|null $enable_child_table_pages Specifies creation of multi-level dynamic pages using child tables + * @param \HubSpot\Client\Cms\Hubdb\Model\SimpleUser|null $created_by created_by * * @return self */ - public function setEnableChildTablePages($enable_child_table_pages) + public function setCreatedBy($created_by) { - $this->container['enable_child_table_pages'] = $enable_child_table_pages; + $this->container['created_by'] = $created_by; return $this; } /** - * Gets is_ordered_manually + * Gets name * - * @return bool|null + * @return string */ - public function getIsOrderedManually() + public function getName() { - return $this->container['is_ordered_manually']; + return $this->container['name']; } /** - * Sets is_ordered_manually + * Sets name * - * @param bool|null $is_ordered_manually is_ordered_manually + * @param string $name Name of the table * * @return self */ - public function setIsOrderedManually($is_ordered_manually) + public function setName($name) { - $this->container['is_ordered_manually'] = $is_ordered_manually; + $this->container['name'] = $name; return $this; } /** - * Gets dynamic_meta_tags + * Gets enable_child_table_pages * - * @return array|null + * @return bool|null */ - public function getDynamicMetaTags() + public function getEnableChildTablePages() { - return $this->container['dynamic_meta_tags']; + return $this->container['enable_child_table_pages']; } /** - * Sets dynamic_meta_tags + * Sets enable_child_table_pages * - * @param array|null $dynamic_meta_tags Specifies the key value pairs of the metadata fields with the associated column ids + * @param bool|null $enable_child_table_pages Specifies creation of multi-level dynamic pages using child tables * * @return self */ - public function setDynamicMetaTags($dynamic_meta_tags) + public function setEnableChildTablePages($enable_child_table_pages) { - $this->container['dynamic_meta_tags'] = $dynamic_meta_tags; + $this->container['enable_child_table_pages'] = $enable_child_table_pages; return $this; } /** - * Gets allow_public_api_access + * Gets id * - * @return bool|null + * @return string|null */ - public function getAllowPublicApiAccess() + public function getId() { - return $this->container['allow_public_api_access']; + return $this->container['id']; } /** - * Sets allow_public_api_access + * Sets id * - * @param bool|null $allow_public_api_access Specifies whether the table can be read by public without authorization + * @param string|null $id Id of the table * * @return self */ - public function setAllowPublicApiAccess($allow_public_api_access) + public function setId($id) { - $this->container['allow_public_api_access'] = $allow_public_api_access; + $this->container['id'] = $id; return $this; } /** - * Gets created_at + * Gets row_count * - * @return \DateTime|null + * @return int|null */ - public function getCreatedAt() + public function getRowCount() { - return $this->container['created_at']; + return $this->container['row_count']; } /** - * Sets created_at + * Sets row_count * - * @param \DateTime|null $created_at Timestamp at which the table is created + * @param int|null $row_count Number of rows in the table * * @return self */ - public function setCreatedAt($created_at) + public function setRowCount($row_count) { - $this->container['created_at'] = $created_at; + $this->container['row_count'] = $row_count; return $this; } /** - * Gets published_at + * Gets is_ordered_manually * - * @return \DateTime|null + * @return bool|null */ - public function getPublishedAt() + public function getIsOrderedManually() { - return $this->container['published_at']; + return $this->container['is_ordered_manually']; } /** - * Sets published_at + * Sets is_ordered_manually * - * @param \DateTime|null $published_at Timestamp at which the table is published recently + * @param bool|null $is_ordered_manually is_ordered_manually * * @return self */ - public function setPublishedAt($published_at) + public function setIsOrderedManually($is_ordered_manually) { - $this->container['published_at'] = $published_at; + $this->container['is_ordered_manually'] = $is_ordered_manually; return $this; } diff --git a/codegen/Cms/Hubdb/Model/HubDbTableV3Request.php b/codegen/Cms/Hubdb/Model/HubDbTableV3Request.php index fb32daf8..2e13b535 100644 --- a/codegen/Cms/Hubdb/Model/HubDbTableV3Request.php +++ b/codegen/Cms/Hubdb/Model/HubDbTableV3Request.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -57,14 +57,14 @@ class HubDbTableV3Request implements ModelInterface, ArrayAccess, \JsonSerializa * @var string[] */ protected static $openAPITypes = [ - 'name' => 'string', - 'label' => 'string', - 'use_for_pages' => 'bool', + 'dynamic_meta_tags' => 'array', 'allow_public_api_access' => 'bool', - 'allow_child_tables' => 'bool', - 'enable_child_table_pages' => 'bool', + 'use_for_pages' => 'bool', 'columns' => '\HubSpot\Client\Cms\Hubdb\Model\ColumnRequest[]', - 'dynamic_meta_tags' => 'array' + 'name' => 'string', + 'enable_child_table_pages' => 'bool', + 'label' => 'string', + 'allow_child_tables' => 'bool' ]; /** @@ -75,14 +75,14 @@ class HubDbTableV3Request implements ModelInterface, ArrayAccess, \JsonSerializa * @psalm-var array */ protected static $openAPIFormats = [ - 'name' => null, - 'label' => null, - 'use_for_pages' => null, + 'dynamic_meta_tags' => 'int32', 'allow_public_api_access' => null, - 'allow_child_tables' => null, - 'enable_child_table_pages' => null, + 'use_for_pages' => null, 'columns' => null, - 'dynamic_meta_tags' => 'int32' + 'name' => null, + 'enable_child_table_pages' => null, + 'label' => null, + 'allow_child_tables' => null ]; /** @@ -112,14 +112,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'name' => 'name', - 'label' => 'label', - 'use_for_pages' => 'useForPages', + 'dynamic_meta_tags' => 'dynamicMetaTags', 'allow_public_api_access' => 'allowPublicApiAccess', - 'allow_child_tables' => 'allowChildTables', - 'enable_child_table_pages' => 'enableChildTablePages', + 'use_for_pages' => 'useForPages', 'columns' => 'columns', - 'dynamic_meta_tags' => 'dynamicMetaTags' + 'name' => 'name', + 'enable_child_table_pages' => 'enableChildTablePages', + 'label' => 'label', + 'allow_child_tables' => 'allowChildTables' ]; /** @@ -128,14 +128,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'name' => 'setName', - 'label' => 'setLabel', - 'use_for_pages' => 'setUseForPages', + 'dynamic_meta_tags' => 'setDynamicMetaTags', 'allow_public_api_access' => 'setAllowPublicApiAccess', - 'allow_child_tables' => 'setAllowChildTables', - 'enable_child_table_pages' => 'setEnableChildTablePages', + 'use_for_pages' => 'setUseForPages', 'columns' => 'setColumns', - 'dynamic_meta_tags' => 'setDynamicMetaTags' + 'name' => 'setName', + 'enable_child_table_pages' => 'setEnableChildTablePages', + 'label' => 'setLabel', + 'allow_child_tables' => 'setAllowChildTables' ]; /** @@ -144,14 +144,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'name' => 'getName', - 'label' => 'getLabel', - 'use_for_pages' => 'getUseForPages', + 'dynamic_meta_tags' => 'getDynamicMetaTags', 'allow_public_api_access' => 'getAllowPublicApiAccess', - 'allow_child_tables' => 'getAllowChildTables', - 'enable_child_table_pages' => 'getEnableChildTablePages', + 'use_for_pages' => 'getUseForPages', 'columns' => 'getColumns', - 'dynamic_meta_tags' => 'getDynamicMetaTags' + 'name' => 'getName', + 'enable_child_table_pages' => 'getEnableChildTablePages', + 'label' => 'getLabel', + 'allow_child_tables' => 'getAllowChildTables' ]; /** @@ -211,14 +211,14 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['dynamic_meta_tags'] = $data['dynamic_meta_tags'] ?? null; + $this->container['allow_public_api_access'] = $data['allow_public_api_access'] ?? null; + $this->container['use_for_pages'] = $data['use_for_pages'] ?? null; + $this->container['columns'] = $data['columns'] ?? null; $this->container['name'] = $data['name'] ?? null; + $this->container['enable_child_table_pages'] = $data['enable_child_table_pages'] ?? null; $this->container['label'] = $data['label'] ?? null; - $this->container['use_for_pages'] = $data['use_for_pages'] ?? null; - $this->container['allow_public_api_access'] = $data['allow_public_api_access'] ?? null; $this->container['allow_child_tables'] = $data['allow_child_tables'] ?? null; - $this->container['enable_child_table_pages'] = $data['enable_child_table_pages'] ?? null; - $this->container['columns'] = $data['columns'] ?? null; - $this->container['dynamic_meta_tags'] = $data['dynamic_meta_tags'] ?? null; } /** @@ -252,49 +252,49 @@ public function valid() /** - * Gets name + * Gets dynamic_meta_tags * - * @return string + * @return array|null */ - public function getName() + public function getDynamicMetaTags() { - return $this->container['name']; + return $this->container['dynamic_meta_tags']; } /** - * Sets name + * Sets dynamic_meta_tags * - * @param string $name Name of the table + * @param array|null $dynamic_meta_tags Specifies the key value pairs of the metadata fields with the associated column ids * * @return self */ - public function setName($name) + public function setDynamicMetaTags($dynamic_meta_tags) { - $this->container['name'] = $name; + $this->container['dynamic_meta_tags'] = $dynamic_meta_tags; return $this; } /** - * Gets label + * Gets allow_public_api_access * - * @return string + * @return bool|null */ - public function getLabel() + public function getAllowPublicApiAccess() { - return $this->container['label']; + return $this->container['allow_public_api_access']; } /** - * Sets label + * Sets allow_public_api_access * - * @param string $label Label of the table + * @param bool|null $allow_public_api_access Specifies whether the table can be read by public without authorization * * @return self */ - public function setLabel($label) + public function setAllowPublicApiAccess($allow_public_api_access) { - $this->container['label'] = $label; + $this->container['allow_public_api_access'] = $allow_public_api_access; return $this; } @@ -324,49 +324,49 @@ public function setUseForPages($use_for_pages) } /** - * Gets allow_public_api_access + * Gets columns * - * @return bool|null + * @return \HubSpot\Client\Cms\Hubdb\Model\ColumnRequest[]|null */ - public function getAllowPublicApiAccess() + public function getColumns() { - return $this->container['allow_public_api_access']; + return $this->container['columns']; } /** - * Sets allow_public_api_access + * Sets columns * - * @param bool|null $allow_public_api_access Specifies whether the table can be read by public without authorization + * @param \HubSpot\Client\Cms\Hubdb\Model\ColumnRequest[]|null $columns List of columns in the table * * @return self */ - public function setAllowPublicApiAccess($allow_public_api_access) + public function setColumns($columns) { - $this->container['allow_public_api_access'] = $allow_public_api_access; + $this->container['columns'] = $columns; return $this; } /** - * Gets allow_child_tables + * Gets name * - * @return bool|null + * @return string */ - public function getAllowChildTables() + public function getName() { - return $this->container['allow_child_tables']; + return $this->container['name']; } /** - * Sets allow_child_tables + * Sets name * - * @param bool|null $allow_child_tables Specifies whether child tables can be created + * @param string $name Name of the table * * @return self */ - public function setAllowChildTables($allow_child_tables) + public function setName($name) { - $this->container['allow_child_tables'] = $allow_child_tables; + $this->container['name'] = $name; return $this; } @@ -396,49 +396,49 @@ public function setEnableChildTablePages($enable_child_table_pages) } /** - * Gets columns + * Gets label * - * @return \HubSpot\Client\Cms\Hubdb\Model\ColumnRequest[]|null + * @return string */ - public function getColumns() + public function getLabel() { - return $this->container['columns']; + return $this->container['label']; } /** - * Sets columns + * Sets label * - * @param \HubSpot\Client\Cms\Hubdb\Model\ColumnRequest[]|null $columns List of columns in the table + * @param string $label Label of the table * * @return self */ - public function setColumns($columns) + public function setLabel($label) { - $this->container['columns'] = $columns; + $this->container['label'] = $label; return $this; } /** - * Gets dynamic_meta_tags + * Gets allow_child_tables * - * @return array|null + * @return bool|null */ - public function getDynamicMetaTags() + public function getAllowChildTables() { - return $this->container['dynamic_meta_tags']; + return $this->container['allow_child_tables']; } /** - * Sets dynamic_meta_tags + * Sets allow_child_tables * - * @param array|null $dynamic_meta_tags Specifies the key value pairs of the metadata fields with the associated column ids + * @param bool|null $allow_child_tables Specifies whether child tables can be created * * @return self */ - public function setDynamicMetaTags($dynamic_meta_tags) + public function setAllowChildTables($allow_child_tables) { - $this->container['dynamic_meta_tags'] = $dynamic_meta_tags; + $this->container['allow_child_tables'] = $allow_child_tables; return $this; } diff --git a/codegen/Cms/Hubdb/Model/ImportResult.php b/codegen/Cms/Hubdb/Model/ImportResult.php index 615892e6..cab5ada5 100644 --- a/codegen/Cms/Hubdb/Model/ImportResult.php +++ b/codegen/Cms/Hubdb/Model/ImportResult.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -58,10 +58,10 @@ class ImportResult implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'errors' => '\HubSpot\Client\Cms\Hubdb\Model\Error[]', - 'duplicate_rows' => 'int', 'row_limit_exceeded' => 'bool', - 'rows_imported' => 'int' + 'duplicate_rows' => 'int', + 'rows_imported' => 'int', + 'errors' => '\HubSpot\Client\Cms\Hubdb\Model\Error[]' ]; /** @@ -72,10 +72,10 @@ class ImportResult implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'errors' => null, - 'duplicate_rows' => 'int32', 'row_limit_exceeded' => null, - 'rows_imported' => 'int32' + 'duplicate_rows' => 'int32', + 'rows_imported' => 'int32', + 'errors' => null ]; /** @@ -105,10 +105,10 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'errors' => 'errors', - 'duplicate_rows' => 'duplicateRows', 'row_limit_exceeded' => 'rowLimitExceeded', - 'rows_imported' => 'rowsImported' + 'duplicate_rows' => 'duplicateRows', + 'rows_imported' => 'rowsImported', + 'errors' => 'errors' ]; /** @@ -117,10 +117,10 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'errors' => 'setErrors', - 'duplicate_rows' => 'setDuplicateRows', 'row_limit_exceeded' => 'setRowLimitExceeded', - 'rows_imported' => 'setRowsImported' + 'duplicate_rows' => 'setDuplicateRows', + 'rows_imported' => 'setRowsImported', + 'errors' => 'setErrors' ]; /** @@ -129,10 +129,10 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'errors' => 'getErrors', - 'duplicate_rows' => 'getDuplicateRows', 'row_limit_exceeded' => 'getRowLimitExceeded', - 'rows_imported' => 'getRowsImported' + 'duplicate_rows' => 'getDuplicateRows', + 'rows_imported' => 'getRowsImported', + 'errors' => 'getErrors' ]; /** @@ -192,10 +192,10 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['errors'] = $data['errors'] ?? null; - $this->container['duplicate_rows'] = $data['duplicate_rows'] ?? null; $this->container['row_limit_exceeded'] = $data['row_limit_exceeded'] ?? null; + $this->container['duplicate_rows'] = $data['duplicate_rows'] ?? null; $this->container['rows_imported'] = $data['rows_imported'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; } /** @@ -207,18 +207,18 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['errors'] === null) { - $invalidProperties[] = "'errors' can't be null"; + if ($this->container['row_limit_exceeded'] === null) { + $invalidProperties[] = "'row_limit_exceeded' can't be null"; } if ($this->container['duplicate_rows'] === null) { $invalidProperties[] = "'duplicate_rows' can't be null"; } - if ($this->container['row_limit_exceeded'] === null) { - $invalidProperties[] = "'row_limit_exceeded' can't be null"; - } if ($this->container['rows_imported'] === null) { $invalidProperties[] = "'rows_imported' can't be null"; } + if ($this->container['errors'] === null) { + $invalidProperties[] = "'errors' can't be null"; + } return $invalidProperties; } @@ -235,25 +235,25 @@ public function valid() /** - * Gets errors + * Gets row_limit_exceeded * - * @return \HubSpot\Client\Cms\Hubdb\Model\Error[] + * @return bool */ - public function getErrors() + public function getRowLimitExceeded() { - return $this->container['errors']; + return $this->container['row_limit_exceeded']; } /** - * Sets errors + * Sets row_limit_exceeded * - * @param \HubSpot\Client\Cms\Hubdb\Model\Error[] $errors List of errors during import + * @param bool $row_limit_exceeded Specifies whether row limit exceeded during import * * @return self */ - public function setErrors($errors) + public function setRowLimitExceeded($row_limit_exceeded) { - $this->container['errors'] = $errors; + $this->container['row_limit_exceeded'] = $row_limit_exceeded; return $this; } @@ -283,49 +283,49 @@ public function setDuplicateRows($duplicate_rows) } /** - * Gets row_limit_exceeded + * Gets rows_imported * - * @return bool + * @return int */ - public function getRowLimitExceeded() + public function getRowsImported() { - return $this->container['row_limit_exceeded']; + return $this->container['rows_imported']; } /** - * Sets row_limit_exceeded + * Sets rows_imported * - * @param bool $row_limit_exceeded Specifies whether row limit exceeded during import + * @param int $rows_imported Specifies number of rows imported * * @return self */ - public function setRowLimitExceeded($row_limit_exceeded) + public function setRowsImported($rows_imported) { - $this->container['row_limit_exceeded'] = $row_limit_exceeded; + $this->container['rows_imported'] = $rows_imported; return $this; } /** - * Gets rows_imported + * Gets errors * - * @return int + * @return \HubSpot\Client\Cms\Hubdb\Model\Error[] */ - public function getRowsImported() + public function getErrors() { - return $this->container['rows_imported']; + return $this->container['errors']; } /** - * Sets rows_imported + * Sets errors * - * @param int $rows_imported Specifies number of rows imported + * @param \HubSpot\Client\Cms\Hubdb\Model\Error[] $errors List of errors during import * * @return self */ - public function setRowsImported($rows_imported) + public function setErrors($errors) { - $this->container['rows_imported'] = $rows_imported; + $this->container['errors'] = $errors; return $this; } diff --git a/codegen/Cms/Hubdb/Model/ModelInterface.php b/codegen/Cms/Hubdb/Model/ModelInterface.php index 5ecc2ec6..d0136c4a 100644 --- a/codegen/Cms/Hubdb/Model/ModelInterface.php +++ b/codegen/Cms/Hubdb/Model/ModelInterface.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * diff --git a/codegen/Cms/Hubdb/Model/NextPage.php b/codegen/Cms/Hubdb/Model/NextPage.php index c5d5a4a0..2ddb3ba6 100644 --- a/codegen/Cms/Hubdb/Model/NextPage.php +++ b/codegen/Cms/Hubdb/Model/NextPage.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -57,8 +57,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'after' => 'string', - 'link' => 'string' + 'link' => 'string', + 'after' => 'string' ]; /** @@ -69,8 +69,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'after' => null, - 'link' => null + 'link' => null, + 'after' => null ]; /** @@ -100,8 +100,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'after' => 'after', - 'link' => 'link' + 'link' => 'link', + 'after' => 'after' ]; /** @@ -110,8 +110,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'after' => 'setAfter', - 'link' => 'setLink' + 'link' => 'setLink', + 'after' => 'setAfter' ]; /** @@ -120,8 +120,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'after' => 'getAfter', - 'link' => 'getLink' + 'link' => 'getLink', + 'after' => 'getAfter' ]; /** @@ -181,8 +181,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['after'] = $data['after'] ?? null; $this->container['link'] = $data['link'] ?? null; + $this->container['after'] = $data['after'] ?? null; } /** @@ -213,49 +213,49 @@ public function valid() /** - * 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 after + * @param string|null $link * * @return self */ - public function setAfter($after) + public function setLink($link) { - $this->container['after'] = $after; + $this->container['link'] = $link; return $this; } /** - * 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 link + * @param string $after * * @return self */ - public function setLink($link) + public function setAfter($after) { - $this->container['link'] = $link; + $this->container['after'] = $after; return $this; } diff --git a/codegen/Cms/Hubdb/Model/Option.php b/codegen/Cms/Hubdb/Model/Option.php index 3d2021ee..13d6d2f3 100644 --- a/codegen/Cms/Hubdb/Model/Option.php +++ b/codegen/Cms/Hubdb/Model/Option.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -57,8 +57,8 @@ class Option implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', 'name' => 'string', + 'id' => 'string', 'label' => 'string', 'type' => 'string', 'order' => 'int' @@ -72,8 +72,8 @@ class Option implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, 'name' => null, + 'id' => null, 'label' => null, 'type' => null, 'order' => 'int32' @@ -106,8 +106,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', 'name' => 'name', + 'id' => 'id', 'label' => 'label', 'type' => 'type', 'order' => 'order' @@ -119,8 +119,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', 'name' => 'setName', + 'id' => 'setId', 'label' => 'setLabel', 'type' => 'setType', 'order' => 'setOrder' @@ -132,8 +132,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', 'name' => 'getName', + 'id' => 'getId', 'label' => 'getLabel', 'type' => 'getType', 'order' => 'getOrder' @@ -196,8 +196,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; $this->container['name'] = $data['name'] ?? null; + $this->container['id'] = $data['id'] ?? null; $this->container['label'] = $data['label'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['order'] = $data['order'] ?? null; @@ -212,12 +212,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } if ($this->container['type'] === null) { $invalidProperties[] = "'type' can't be null"; } @@ -240,49 +240,49 @@ public function valid() /** - * Gets id + * Gets name * * @return string */ - public function getId() + public function getName() { - return $this->container['id']; + return $this->container['name']; } /** - * Sets id + * Sets name * - * @param string $id id + * @param string $name * * @return self */ - public function setId($id) + public function setName($name) { - $this->container['id'] = $id; + $this->container['name'] = $name; return $this; } /** - * Gets name + * Gets id * * @return string */ - public function getName() + public function getId() { - return $this->container['name']; + return $this->container['id']; } /** - * Sets name + * Sets id * - * @param string $name name + * @param string $id * * @return self */ - public function setName($name) + public function setId($id) { - $this->container['name'] = $name; + $this->container['id'] = $id; return $this; } @@ -324,7 +324,7 @@ public function getType() /** * Sets type * - * @param string $type type + * @param string $type * * @return self */ @@ -348,7 +348,7 @@ public function getOrder() /** * Sets order * - * @param int $order order + * @param int $order * * @return self */ diff --git a/codegen/Cms/Hubdb/Model/SimpleUser.php b/codegen/Cms/Hubdb/Model/SimpleUser.php index f7c7a79d..c88fa3a0 100644 --- a/codegen/Cms/Hubdb/Model/SimpleUser.php +++ b/codegen/Cms/Hubdb/Model/SimpleUser.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -57,10 +57,10 @@ class SimpleUser implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', - 'email' => 'string', 'first_name' => 'string', - 'last_name' => 'string' + 'last_name' => 'string', + 'id' => 'string', + 'email' => 'string' ]; /** @@ -71,10 +71,10 @@ class SimpleUser implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, - 'email' => null, 'first_name' => null, - 'last_name' => null + 'last_name' => null, + 'id' => null, + 'email' => null ]; /** @@ -104,10 +104,10 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', - 'email' => 'email', 'first_name' => 'firstName', - 'last_name' => 'lastName' + 'last_name' => 'lastName', + 'id' => 'id', + 'email' => 'email' ]; /** @@ -116,10 +116,10 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', - 'email' => 'setEmail', 'first_name' => 'setFirstName', - 'last_name' => 'setLastName' + 'last_name' => 'setLastName', + 'id' => 'setId', + 'email' => 'setEmail' ]; /** @@ -128,10 +128,10 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', - 'email' => 'getEmail', 'first_name' => 'getFirstName', - 'last_name' => 'getLastName' + 'last_name' => 'getLastName', + 'id' => 'getId', + 'email' => 'getEmail' ]; /** @@ -191,10 +191,10 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; - $this->container['email'] = $data['email'] ?? null; $this->container['first_name'] = $data['first_name'] ?? null; $this->container['last_name'] = $data['last_name'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['email'] = $data['email'] ?? null; } /** @@ -206,18 +206,18 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['email'] === null) { - $invalidProperties[] = "'email' can't be null"; - } if ($this->container['first_name'] === null) { $invalidProperties[] = "'first_name' can't be null"; } if ($this->container['last_name'] === null) { $invalidProperties[] = "'last_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; } @@ -234,97 +234,97 @@ public function valid() /** - * Gets id + * Gets first_name * * @return string */ - public function getId() + public function getFirstName() { - return $this->container['id']; + return $this->container['first_name']; } /** - * Sets id + * Sets first_name * - * @param string $id id + * @param string $first_name * * @return self */ - public function setId($id) + public function setFirstName($first_name) { - $this->container['id'] = $id; + $this->container['first_name'] = $first_name; return $this; } /** - * Gets email + * Gets last_name * * @return string */ - public function getEmail() + public function getLastName() { - return $this->container['email']; + return $this->container['last_name']; } /** - * Sets email + * Sets last_name * - * @param string $email email + * @param string $last_name * * @return self */ - public function setEmail($email) + public function setLastName($last_name) { - $this->container['email'] = $email; + $this->container['last_name'] = $last_name; return $this; } /** - * Gets first_name + * Gets id * * @return string */ - public function getFirstName() + public function getId() { - return $this->container['first_name']; + return $this->container['id']; } /** - * Sets first_name + * Sets id * - * @param string $first_name first_name + * @param string $id * * @return self */ - public function setFirstName($first_name) + public function setId($id) { - $this->container['first_name'] = $first_name; + $this->container['id'] = $id; return $this; } /** - * Gets last_name + * Gets email * * @return string */ - public function getLastName() + public function getEmail() { - return $this->container['last_name']; + return $this->container['email']; } /** - * Sets last_name + * Sets email * - * @param string $last_name last_name + * @param string $email * * @return self */ - public function setLastName($last_name) + public function setEmail($email) { - $this->container['last_name'] = $last_name; + $this->container['email'] = $email; return $this; } diff --git a/codegen/Cms/Hubdb/Model/StandardError.php b/codegen/Cms/Hubdb/Model/StandardError.php index 064c0c94..736bc0b9 100644 --- a/codegen/Cms/Hubdb/Model/StandardError.php +++ b/codegen/Cms/Hubdb/Model/StandardError.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * @@ -57,14 +57,14 @@ class StandardError implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', + 'sub_category' => 'object', + 'context' => 'array', + 'links' => 'array', 'id' => 'string', 'category' => 'string', - 'sub_category' => 'object', 'message' => 'string', 'errors' => '\HubSpot\Client\Cms\Hubdb\Model\ErrorDetail[]', - 'context' => 'array', - 'links' => 'array' + 'status' => 'string' ]; /** @@ -75,14 +75,14 @@ class StandardError implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'status' => null, + 'sub_category' => null, + 'context' => null, + 'links' => null, 'id' => null, 'category' => null, - 'sub_category' => null, 'message' => null, 'errors' => null, - 'context' => null, - 'links' => null + 'status' => null ]; /** @@ -112,14 +112,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'status' => 'status', + 'sub_category' => 'subCategory', + 'context' => 'context', + 'links' => 'links', 'id' => 'id', 'category' => 'category', - 'sub_category' => 'subCategory', 'message' => 'message', 'errors' => 'errors', - 'context' => 'context', - 'links' => 'links' + 'status' => 'status' ]; /** @@ -128,14 +128,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'status' => 'setStatus', + 'sub_category' => 'setSubCategory', + 'context' => 'setContext', + 'links' => 'setLinks', 'id' => 'setId', 'category' => 'setCategory', - 'sub_category' => 'setSubCategory', 'message' => 'setMessage', 'errors' => 'setErrors', - 'context' => 'setContext', - 'links' => 'setLinks' + 'status' => 'setStatus' ]; /** @@ -144,14 +144,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'status' => 'getStatus', + 'sub_category' => 'getSubCategory', + 'context' => 'getContext', + 'links' => 'getLinks', 'id' => 'getId', 'category' => 'getCategory', - 'sub_category' => 'getSubCategory', 'message' => 'getMessage', 'errors' => 'getErrors', - 'context' => 'getContext', - 'links' => 'getLinks' + 'status' => 'getStatus' ]; /** @@ -211,14 +211,14 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['status'] = $data['status'] ?? null; + $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['context'] = $data['context'] ?? null; + $this->container['links'] = $data['links'] ?? null; $this->container['id'] = $data['id'] ?? null; $this->container['category'] = $data['category'] ?? null; - $this->container['sub_category'] = $data['sub_category'] ?? null; $this->container['message'] = $data['message'] ?? null; $this->container['errors'] = $data['errors'] ?? null; - $this->container['context'] = $data['context'] ?? null; - $this->container['links'] = $data['links'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -230,8 +230,11 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['status'] === null) { - $invalidProperties[] = "'status' can't be null"; + if ($this->container['context'] === null) { + $invalidProperties[] = "'context' 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"; @@ -242,11 +245,8 @@ public function listInvalidProperties() if ($this->container['errors'] === null) { $invalidProperties[] = "'errors' can't be null"; } - if ($this->container['context'] === null) { - $invalidProperties[] = "'context' can't be null"; - } - if ($this->container['links'] === null) { - $invalidProperties[] = "'links' can't be null"; + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; } return $invalidProperties; } @@ -264,193 +264,193 @@ public function valid() /** - * 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 status + * @param object|null $sub_category * * @return self */ - public function setStatus($status) + public function setSubCategory($sub_category) { - $this->container['status'] = $status; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets id + * Gets context * - * @return string|null + * @return array */ - public function getId() + public function getContext() { - return $this->container['id']; + return $this->container['context']; } /** - * Sets id + * Sets context * - * @param string|null $id id + * @param array $context * * @return self */ - public function setId($id) + public function setContext($context) { - $this->container['id'] = $id; + $this->container['context'] = $context; return $this; } /** - * 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 category + * @param array $links * * @return self */ - public function setCategory($category) + public function setLinks($links) { - $this->container['category'] = $category; + $this->container['links'] = $links; return $this; } /** - * Gets sub_category + * Gets id * - * @return object|null + * @return string|null */ - public function getSubCategory() + public function getId() { - return $this->container['sub_category']; + return $this->container['id']; } /** - * Sets sub_category + * Sets id * - * @param object|null $sub_category sub_category + * @param string|null $id * * @return self */ - public function setSubCategory($sub_category) + public function setId($id) { - $this->container['sub_category'] = $sub_category; + $this->container['id'] = $id; return $this; } /** - * Gets message + * Gets category * * @return string */ - public function getMessage() + public function getCategory() { - return $this->container['message']; + return $this->container['category']; } /** - * Sets message + * Sets category * - * @param string $message message + * @param string $category * * @return self */ - public function setMessage($message) + public function setCategory($category) { - $this->container['message'] = $message; + $this->container['category'] = $category; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\Hubdb\Model\ErrorDetail[] + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\Hubdb\Model\ErrorDetail[] $errors errors + * @param string $message * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets errors * - * @return array + * @return \HubSpot\Client\Cms\Hubdb\Model\ErrorDetail[] */ - public function getContext() + public function getErrors() { - return $this->container['context']; + return $this->container['errors']; } /** - * Sets context + * Sets errors * - * @param array $context context + * @param \HubSpot\Client\Cms\Hubdb\Model\ErrorDetail[] $errors * * @return self */ - public function setContext($context) + public function setErrors($errors) { - $this->container['context'] = $context; + $this->container['errors'] = $errors; return $this; } /** - * Gets links + * Gets status * - * @return array + * @return string */ - public function getLinks() + public function getStatus() { - return $this->container['links']; + return $this->container['status']; } /** - * Sets links + * Sets status * - * @param array $links links + * @param string $status * * @return self */ - public function setLinks($links) + public function setStatus($status) { - $this->container['links'] = $links; + $this->container['status'] = $status; return $this; } diff --git a/codegen/Cms/Hubdb/ObjectSerializer.php b/codegen/Cms/Hubdb/ObjectSerializer.php index 8a53814f..5fbb2404 100644 --- a/codegen/Cms/Hubdb/ObjectSerializer.php +++ b/codegen/Cms/Hubdb/ObjectSerializer.php @@ -11,7 +11,7 @@ */ /** - * HubDB endpoints + * Hubdb * * HubDB is a relational data store that presents data as rows, columns, and cells in a table, much like a spreadsheet. HubDB tables can be added or modified [in the HubSpot CMS](https://knowledge.hubspot.com/cos-general/how-to-edit-hubdb-tables), but you can also use the API endpoints documented here. For more information on HubDB tables and using their data on a HubSpot site, see the [CMS developers site](https://designers.hubspot.com/docs/tools/hubdb). You can also see the [documentation for dynamic pages](https://designers.hubspot.com/docs/tutorials/how-to-build-dynamic-pages-with-hubdb) for more details about the `useForPages` field. HubDB tables support `draft` and `published` versions. This allows you to update data in the table, either for testing or to allow for a manual approval process, without affecting any live pages using the existing data. Draft data can be reviewed, and published by a user working in HubSpot or published via the API. Draft data can also be discarded, allowing users to go back to the published version of the data without disrupting it. If a table is set to be `allowed for public access`, you can access the published version of the table and rows without any authentication by specifying the portal id via the query parameter `portalId`. * diff --git a/codegen/Cms/Performance/Api/PublicPerformanceApi.php b/codegen/Cms/Performance/Api/PublicPerformanceApi.php index 18c00fca..cedc68a3 100644 --- a/codegen/Cms/Performance/Api/PublicPerformanceApi.php +++ b/codegen/Cms/Performance/Api/PublicPerformanceApi.php @@ -10,7 +10,7 @@ */ /** - * CMS Performance API + * CMS Performance * * Use these endpoints to get a time series view of your website's performance. * diff --git a/codegen/Cms/Performance/ApiException.php b/codegen/Cms/Performance/ApiException.php index c9df6205..1b431056 100644 --- a/codegen/Cms/Performance/ApiException.php +++ b/codegen/Cms/Performance/ApiException.php @@ -10,7 +10,7 @@ */ /** - * CMS Performance API + * CMS Performance * * Use these endpoints to get a time series view of your website's performance. * diff --git a/codegen/Cms/Performance/Configuration.php b/codegen/Cms/Performance/Configuration.php index cba80911..95af5dfd 100644 --- a/codegen/Cms/Performance/Configuration.php +++ b/codegen/Cms/Performance/Configuration.php @@ -10,7 +10,7 @@ */ /** - * CMS Performance API + * CMS Performance * * Use these endpoints to get a time series view of your website's performance. * diff --git a/codegen/Cms/Performance/HeaderSelector.php b/codegen/Cms/Performance/HeaderSelector.php index 2a85f6ea..deffa4ed 100644 --- a/codegen/Cms/Performance/HeaderSelector.php +++ b/codegen/Cms/Performance/HeaderSelector.php @@ -10,7 +10,7 @@ */ /** - * CMS Performance API + * CMS Performance * * Use these endpoints to get a time series view of your website's performance. * diff --git a/codegen/Cms/Performance/Model/Error.php b/codegen/Cms/Performance/Model/Error.php index 853cd261..063993e7 100644 --- a/codegen/Cms/Performance/Model/Error.php +++ b/codegen/Cms/Performance/Model/Error.php @@ -11,7 +11,7 @@ */ /** - * CMS Performance API + * CMS Performance * * Use these endpoints to get a time series view of your website's performance. * @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'correlation_id' => 'string', - 'category' => 'string', 'sub_category' => 'string', - 'errors' => '\HubSpot\Client\Cms\Performance\Model\ErrorDetail[]', 'context' => 'array', - 'links' => 'array' + 'correlation_id' => 'string', + 'links' => 'array', + 'message' => 'string', + 'category' => 'string', + 'errors' => '\HubSpot\Client\Cms\Performance\Model\ErrorDetail[]' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'correlation_id' => 'uuid', - 'category' => null, 'sub_category' => null, - 'errors' => null, 'context' => null, - 'links' => null + 'correlation_id' => 'uuid', + 'links' => null, + 'message' => null, + 'category' => null, + 'errors' => null ]; /** @@ -110,13 +110,13 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'correlation_id' => 'correlationId', - 'category' => 'category', 'sub_category' => 'subCategory', - 'errors' => 'errors', 'context' => 'context', - 'links' => 'links' + 'correlation_id' => 'correlationId', + 'links' => 'links', + 'message' => 'message', + 'category' => 'category', + 'errors' => 'errors' ]; /** @@ -125,13 +125,13 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'correlation_id' => 'setCorrelationId', - 'category' => 'setCategory', 'sub_category' => 'setSubCategory', - 'errors' => 'setErrors', 'context' => 'setContext', - 'links' => 'setLinks' + 'correlation_id' => 'setCorrelationId', + 'links' => 'setLinks', + 'message' => 'setMessage', + 'category' => 'setCategory', + 'errors' => 'setErrors' ]; /** @@ -140,13 +140,13 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'correlation_id' => 'getCorrelationId', - 'category' => 'getCategory', 'sub_category' => 'getSubCategory', - 'errors' => 'getErrors', 'context' => 'getContext', - 'links' => 'getLinks' + 'correlation_id' => 'getCorrelationId', + 'links' => 'getLinks', + 'message' => 'getMessage', + 'category' => 'getCategory', + 'errors' => 'getErrors' ]; /** @@ -206,13 +206,13 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['correlation_id'] = $data['correlation_id'] ?? null; - $this->container['category'] = $data['category'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['correlation_id'] = $data['correlation_id'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['message'] = $data['message'] ?? null; + $this->container['category'] = $data['category'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; } /** @@ -224,12 +224,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' 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"; } @@ -249,169 +249,169 @@ public function valid() /** - * 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) { - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets correlation_id + * Gets context * - * @return string + * @return array|null */ - public function getCorrelationId() + public function getContext() { - return $this->container['correlation_id']; + return $this->container['context']; } /** - * Sets correlation_id + * Sets context * - * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets + * @param array|null $context Context about the error condition * * @return self */ - public function setCorrelationId($correlation_id) + public function setContext($context) { - $this->container['correlation_id'] = $correlation_id; + $this->container['context'] = $context; return $this; } /** - * Gets category + * Gets correlation_id * * @return string */ - public function getCategory() + public function getCorrelationId() { - return $this->container['category']; + return $this->container['correlation_id']; } /** - * Sets category + * Sets correlation_id * - * @param string $category The error category + * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets * * @return self */ - public function setCategory($category) + public function setCorrelationId($correlation_id) { - $this->container['category'] = $category; + $this->container['correlation_id'] = $correlation_id; return $this; } /** - * Gets sub_category + * Gets links * - * @return string|null + * @return array|null */ - public function getSubCategory() + public function getLinks() { - return $this->container['sub_category']; + return $this->container['links']; } /** - * Sets sub_category + * Sets links * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps * * @return self */ - public function setSubCategory($sub_category) + public function setLinks($links) { - $this->container['sub_category'] = $sub_category; + $this->container['links'] = $links; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\Performance\Model\ErrorDetail[]|null + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\Performance\Model\ErrorDetail[]|null $errors further information about the error + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets category * - * @return array|null + * @return string */ - public function getContext() + public function getCategory() { - return $this->container['context']; + return $this->container['category']; } /** - * Sets context + * Sets category * - * @param array|null $context Context about the error condition + * @param string $category The error category * * @return self */ - public function setContext($context) + public function setCategory($category) { - $this->container['context'] = $context; + $this->container['category'] = $category; return $this; } /** - * Gets links + * Gets errors * - * @return array|null + * @return \HubSpot\Client\Cms\Performance\Model\ErrorDetail[]|null */ - public function getLinks() + public function getErrors() { - return $this->container['links']; + return $this->container['errors']; } /** - * Sets links + * Sets errors * - * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps + * @param \HubSpot\Client\Cms\Performance\Model\ErrorDetail[]|null $errors further information about the error * * @return self */ - public function setLinks($links) + public function setErrors($errors) { - $this->container['links'] = $links; + $this->container['errors'] = $errors; return $this; } diff --git a/codegen/Cms/Performance/Model/ErrorDetail.php b/codegen/Cms/Performance/Model/ErrorDetail.php index 9ff4ca77..5b96f1cb 100644 --- a/codegen/Cms/Performance/Model/ErrorDetail.php +++ b/codegen/Cms/Performance/Model/ErrorDetail.php @@ -11,7 +11,7 @@ */ /** - * CMS Performance API + * CMS Performance * * Use these endpoints to get a time series view of your website's performance. * @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'in' => 'string', - 'code' => 'string', 'sub_category' => 'string', - 'context' => 'array' + 'code' => 'string', + 'in' => 'string', + 'context' => 'array', + 'message' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'in' => null, - 'code' => null, 'sub_category' => null, - 'context' => null + 'code' => null, + 'in' => null, + 'context' => null, + 'message' => null ]; /** @@ -106,11 +106,11 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'in' => 'in', - 'code' => 'code', 'sub_category' => 'subCategory', - 'context' => 'context' + 'code' => 'code', + 'in' => 'in', + 'context' => 'context', + 'message' => 'message' ]; /** @@ -119,11 +119,11 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'in' => 'setIn', - 'code' => 'setCode', 'sub_category' => 'setSubCategory', - 'context' => 'setContext' + 'code' => 'setCode', + 'in' => 'setIn', + 'context' => 'setContext', + 'message' => 'setMessage' ]; /** @@ -132,11 +132,11 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'in' => 'getIn', - 'code' => 'getCode', 'sub_category' => 'getSubCategory', - 'context' => 'getContext' + 'code' => 'getCode', + 'in' => 'getIn', + 'context' => 'getContext', + 'message' => 'getMessage' ]; /** @@ -196,11 +196,11 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['in'] = $data['in'] ?? null; - $this->container['code'] = $data['code'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['code'] = $data['code'] ?? null; + $this->container['in'] = $data['in'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['message'] = $data['message'] ?? null; } /** @@ -231,49 +231,25 @@ public function valid() /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A human readable message describing the error along with remediation steps where appropriate - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - - /** - * Gets in + * Gets sub_category * * @return string|null */ - public function getIn() + public function getSubCategory() { - return $this->container['in']; + return $this->container['sub_category']; } /** - * Sets in + * Sets sub_category * - * @param string|null $in The name of the field or parameter in which the error was found. + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setIn($in) + public function setSubCategory($sub_category) { - $this->container['in'] = $in; + $this->container['sub_category'] = $sub_category; return $this; } @@ -303,25 +279,25 @@ public function setCode($code) } /** - * Gets sub_category + * Gets in * * @return string|null */ - public function getSubCategory() + public function getIn() { - return $this->container['sub_category']; + return $this->container['in']; } /** - * Sets sub_category + * Sets in * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $in The name of the field or parameter in which the error was found. * * @return self */ - public function setSubCategory($sub_category) + public function setIn($in) { - $this->container['sub_category'] = $sub_category; + $this->container['in'] = $in; return $this; } @@ -349,6 +325,30 @@ public function setContext($context) return $this; } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message A human readable message describing the error along with remediation steps where appropriate + * + * @return self + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/Performance/Model/ModelInterface.php b/codegen/Cms/Performance/Model/ModelInterface.php index c2c66e9b..58420b83 100644 --- a/codegen/Cms/Performance/Model/ModelInterface.php +++ b/codegen/Cms/Performance/Model/ModelInterface.php @@ -11,7 +11,7 @@ */ /** - * CMS Performance API + * CMS Performance * * Use these endpoints to get a time series view of your website's performance. * diff --git a/codegen/Cms/Performance/Model/PerformanceView.php b/codegen/Cms/Performance/Model/PerformanceView.php index d96c8fce..dde15bbe 100644 --- a/codegen/Cms/Performance/Model/PerformanceView.php +++ b/codegen/Cms/Performance/Model/PerformanceView.php @@ -11,7 +11,7 @@ */ /** - * CMS Performance API + * CMS Performance * * Use these endpoints to get a time series view of your website's performance. * @@ -62,24 +62,24 @@ class PerformanceView implements ModelInterface, ArrayAccess, \JsonSerializable '_404' => 'int', '_500' => 'int', '_504' => 'int', - 'start_timestamp' => 'int', - 'end_timestamp' => 'int', 'start_datetime' => 'string', - 'end_datetime' => 'string', + 'response_time_ms' => 'int', + '_95th' => 'int', 'total_requests' => 'int', - 'cache_hits' => 'int', 'cache_hit_rate' => 'float', + '_99th' => 'int', 'total_request_time' => 'int', - 'avg_origin_response_time' => 'int', - 'response_time_ms' => 'int', '_100_x' => 'int', + '_50th' => 'int', + 'cache_hits' => 'int', '_20_x' => 'int', '_30_x' => 'int', '_40_x' => 'int', + 'end_timestamp' => 'int', '_50_x' => 'int', - '_50th' => 'int', - '_95th' => 'int', - '_99th' => 'int' + 'start_timestamp' => 'int', + 'end_datetime' => 'string', + 'avg_origin_response_time' => 'int' ]; /** @@ -94,24 +94,24 @@ class PerformanceView implements ModelInterface, ArrayAccess, \JsonSerializable '_404' => 'int32', '_500' => 'int32', '_504' => 'int32', - 'start_timestamp' => 'int64', - 'end_timestamp' => 'int64', 'start_datetime' => null, - 'end_datetime' => null, + 'response_time_ms' => 'int32', + '_95th' => 'int32', 'total_requests' => 'int32', - 'cache_hits' => 'int32', 'cache_hit_rate' => null, + '_99th' => 'int32', 'total_request_time' => 'int32', - 'avg_origin_response_time' => 'int32', - 'response_time_ms' => 'int32', '_100_x' => 'int32', + '_50th' => 'int32', + 'cache_hits' => 'int32', '_20_x' => 'int32', '_30_x' => 'int32', '_40_x' => 'int32', + 'end_timestamp' => 'int64', '_50_x' => 'int32', - '_50th' => 'int32', - '_95th' => 'int32', - '_99th' => 'int32' + 'start_timestamp' => 'int64', + 'end_datetime' => null, + 'avg_origin_response_time' => 'int32' ]; /** @@ -145,24 +145,24 @@ public static function openAPIFormats() '_404' => '404', '_500' => '500', '_504' => '504', - 'start_timestamp' => 'startTimestamp', - 'end_timestamp' => 'endTimestamp', 'start_datetime' => 'startDatetime', - 'end_datetime' => 'endDatetime', + 'response_time_ms' => 'responseTimeMs', + '_95th' => '95th', 'total_requests' => 'totalRequests', - 'cache_hits' => 'cacheHits', 'cache_hit_rate' => 'cacheHitRate', + '_99th' => '99th', 'total_request_time' => 'totalRequestTime', - 'avg_origin_response_time' => 'avgOriginResponseTime', - 'response_time_ms' => 'responseTimeMs', '_100_x' => '100X', + '_50th' => '50th', + 'cache_hits' => 'cacheHits', '_20_x' => '20X', '_30_x' => '30X', '_40_x' => '40X', + 'end_timestamp' => 'endTimestamp', '_50_x' => '50X', - '_50th' => '50th', - '_95th' => '95th', - '_99th' => '99th' + 'start_timestamp' => 'startTimestamp', + 'end_datetime' => 'endDatetime', + 'avg_origin_response_time' => 'avgOriginResponseTime' ]; /** @@ -175,24 +175,24 @@ public static function openAPIFormats() '_404' => 'set404', '_500' => 'set500', '_504' => 'set504', - 'start_timestamp' => 'setStartTimestamp', - 'end_timestamp' => 'setEndTimestamp', 'start_datetime' => 'setStartDatetime', - 'end_datetime' => 'setEndDatetime', + 'response_time_ms' => 'setResponseTimeMs', + '_95th' => 'set95th', 'total_requests' => 'setTotalRequests', - 'cache_hits' => 'setCacheHits', 'cache_hit_rate' => 'setCacheHitRate', + '_99th' => 'set99th', 'total_request_time' => 'setTotalRequestTime', - 'avg_origin_response_time' => 'setAvgOriginResponseTime', - 'response_time_ms' => 'setResponseTimeMs', '_100_x' => 'set100X', + '_50th' => 'set50th', + 'cache_hits' => 'setCacheHits', '_20_x' => 'set20X', '_30_x' => 'set30X', '_40_x' => 'set40X', + 'end_timestamp' => 'setEndTimestamp', '_50_x' => 'set50X', - '_50th' => 'set50th', - '_95th' => 'set95th', - '_99th' => 'set99th' + 'start_timestamp' => 'setStartTimestamp', + 'end_datetime' => 'setEndDatetime', + 'avg_origin_response_time' => 'setAvgOriginResponseTime' ]; /** @@ -205,24 +205,24 @@ public static function openAPIFormats() '_404' => 'get404', '_500' => 'get500', '_504' => 'get504', - 'start_timestamp' => 'getStartTimestamp', - 'end_timestamp' => 'getEndTimestamp', 'start_datetime' => 'getStartDatetime', - 'end_datetime' => 'getEndDatetime', + 'response_time_ms' => 'getResponseTimeMs', + '_95th' => 'get95th', 'total_requests' => 'getTotalRequests', - 'cache_hits' => 'getCacheHits', 'cache_hit_rate' => 'getCacheHitRate', + '_99th' => 'get99th', 'total_request_time' => 'getTotalRequestTime', - 'avg_origin_response_time' => 'getAvgOriginResponseTime', - 'response_time_ms' => 'getResponseTimeMs', '_100_x' => 'get100X', + '_50th' => 'get50th', + 'cache_hits' => 'getCacheHits', '_20_x' => 'get20X', '_30_x' => 'get30X', '_40_x' => 'get40X', + 'end_timestamp' => 'getEndTimestamp', '_50_x' => 'get50X', - '_50th' => 'get50th', - '_95th' => 'get95th', - '_99th' => 'get99th' + 'start_timestamp' => 'getStartTimestamp', + 'end_datetime' => 'getEndDatetime', + 'avg_origin_response_time' => 'getAvgOriginResponseTime' ]; /** @@ -286,24 +286,24 @@ public function __construct(array $data = null) $this->container['_404'] = $data['_404'] ?? null; $this->container['_500'] = $data['_500'] ?? null; $this->container['_504'] = $data['_504'] ?? null; - $this->container['start_timestamp'] = $data['start_timestamp'] ?? null; - $this->container['end_timestamp'] = $data['end_timestamp'] ?? null; $this->container['start_datetime'] = $data['start_datetime'] ?? null; - $this->container['end_datetime'] = $data['end_datetime'] ?? null; + $this->container['response_time_ms'] = $data['response_time_ms'] ?? null; + $this->container['_95th'] = $data['_95th'] ?? null; $this->container['total_requests'] = $data['total_requests'] ?? null; - $this->container['cache_hits'] = $data['cache_hits'] ?? null; $this->container['cache_hit_rate'] = $data['cache_hit_rate'] ?? null; + $this->container['_99th'] = $data['_99th'] ?? null; $this->container['total_request_time'] = $data['total_request_time'] ?? null; - $this->container['avg_origin_response_time'] = $data['avg_origin_response_time'] ?? null; - $this->container['response_time_ms'] = $data['response_time_ms'] ?? null; $this->container['_100_x'] = $data['_100_x'] ?? null; + $this->container['_50th'] = $data['_50th'] ?? null; + $this->container['cache_hits'] = $data['cache_hits'] ?? null; $this->container['_20_x'] = $data['_20_x'] ?? null; $this->container['_30_x'] = $data['_30_x'] ?? null; $this->container['_40_x'] = $data['_40_x'] ?? null; + $this->container['end_timestamp'] = $data['end_timestamp'] ?? null; $this->container['_50_x'] = $data['_50_x'] ?? null; - $this->container['_50th'] = $data['_50th'] ?? null; - $this->container['_95th'] = $data['_95th'] ?? null; - $this->container['_99th'] = $data['_99th'] ?? null; + $this->container['start_timestamp'] = $data['start_timestamp'] ?? null; + $this->container['end_datetime'] = $data['end_datetime'] ?? null; + $this->container['avg_origin_response_time'] = $data['avg_origin_response_time'] ?? null; } /** @@ -327,39 +327,30 @@ public function listInvalidProperties() if ($this->container['_504'] === null) { $invalidProperties[] = "'_504' can't be null"; } - if ($this->container['start_timestamp'] === null) { - $invalidProperties[] = "'start_timestamp' can't be null"; - } - if ($this->container['end_timestamp'] === null) { - $invalidProperties[] = "'end_timestamp' can't be null"; - } - if ($this->container['start_datetime'] === null) { - $invalidProperties[] = "'start_datetime' can't be null"; + if ($this->container['response_time_ms'] === null) { + $invalidProperties[] = "'response_time_ms' can't be null"; } - if ($this->container['end_datetime'] === null) { - $invalidProperties[] = "'end_datetime' can't be null"; + if ($this->container['_95th'] === null) { + $invalidProperties[] = "'_95th' can't be null"; } if ($this->container['total_requests'] === null) { $invalidProperties[] = "'total_requests' can't be null"; } - if ($this->container['cache_hits'] === null) { - $invalidProperties[] = "'cache_hits' can't be null"; - } if ($this->container['cache_hit_rate'] === null) { $invalidProperties[] = "'cache_hit_rate' can't be null"; } - if ($this->container['total_request_time'] === null) { - $invalidProperties[] = "'total_request_time' can't be null"; - } - if ($this->container['avg_origin_response_time'] === null) { - $invalidProperties[] = "'avg_origin_response_time' can't be null"; - } - if ($this->container['response_time_ms'] === null) { - $invalidProperties[] = "'response_time_ms' can't be null"; + if ($this->container['_99th'] === null) { + $invalidProperties[] = "'_99th' can't be null"; } if ($this->container['_100_x'] === null) { $invalidProperties[] = "'_100_x' can't be null"; } + if ($this->container['_50th'] === null) { + $invalidProperties[] = "'_50th' can't be null"; + } + if ($this->container['cache_hits'] === null) { + $invalidProperties[] = "'cache_hits' can't be null"; + } if ($this->container['_20_x'] === null) { $invalidProperties[] = "'_20_x' can't be null"; } @@ -369,17 +360,17 @@ public function listInvalidProperties() if ($this->container['_40_x'] === null) { $invalidProperties[] = "'_40_x' can't be null"; } + if ($this->container['end_timestamp'] === null) { + $invalidProperties[] = "'end_timestamp' can't be null"; + } if ($this->container['_50_x'] === null) { $invalidProperties[] = "'_50_x' can't be null"; } - if ($this->container['_50th'] === null) { - $invalidProperties[] = "'_50th' can't be null"; - } - if ($this->container['_95th'] === null) { - $invalidProperties[] = "'_95th' can't be null"; + if ($this->container['start_timestamp'] === null) { + $invalidProperties[] = "'start_timestamp' can't be null"; } - if ($this->container['_99th'] === null) { - $invalidProperties[] = "'_99th' can't be null"; + if ($this->container['avg_origin_response_time'] === null) { + $invalidProperties[] = "'avg_origin_response_time' can't be null"; } return $invalidProperties; } @@ -493,97 +484,73 @@ public function set504($_504) } /** - * Gets start_timestamp + * Gets start_datetime * - * @return int + * @return string|null */ - public function getStartTimestamp() + public function getStartDatetime() { - return $this->container['start_timestamp']; + return $this->container['start_datetime']; } /** - * Sets start_timestamp + * Sets start_datetime * - * @param int $start_timestamp The timestamp in milliseconds of the start of this interval. + * @param string|null $start_datetime start_datetime * * @return self */ - public function setStartTimestamp($start_timestamp) + public function setStartDatetime($start_datetime) { - $this->container['start_timestamp'] = $start_timestamp; + $this->container['start_datetime'] = $start_datetime; return $this; } /** - * Gets end_timestamp + * Gets response_time_ms * * @return int */ - public function getEndTimestamp() - { - return $this->container['end_timestamp']; - } - - /** - * Sets end_timestamp - * - * @param int $end_timestamp The timestamp in milliseconds of the end of this interval. - * - * @return self - */ - public function setEndTimestamp($end_timestamp) - { - $this->container['end_timestamp'] = $end_timestamp; - - return $this; - } - - /** - * Gets start_datetime - * - * @return string - */ - public function getStartDatetime() + public function getResponseTimeMs() { - return $this->container['start_datetime']; + return $this->container['response_time_ms']; } /** - * Sets start_datetime + * Sets response_time_ms * - * @param string $start_datetime start_datetime + * @param int $response_time_ms The average response time in milliseconds. * * @return self */ - public function setStartDatetime($start_datetime) + public function setResponseTimeMs($response_time_ms) { - $this->container['start_datetime'] = $start_datetime; + $this->container['response_time_ms'] = $response_time_ms; return $this; } /** - * Gets end_datetime + * Gets _95th * - * @return string + * @return int */ - public function getEndDatetime() + public function get95th() { - return $this->container['end_datetime']; + return $this->container['_95th']; } /** - * Sets end_datetime + * Sets _95th * - * @param string $end_datetime end_datetime + * @param int $_95th The 95th percentile response time. * * @return self */ - public function setEndDatetime($end_datetime) + public function set95th($_95th) { - $this->container['end_datetime'] = $end_datetime; + $this->container['_95th'] = $_95th; return $this; } @@ -613,49 +580,49 @@ public function setTotalRequests($total_requests) } /** - * Gets cache_hits + * Gets cache_hit_rate * - * @return int + * @return float */ - public function getCacheHits() + public function getCacheHitRate() { - return $this->container['cache_hits']; + return $this->container['cache_hit_rate']; } /** - * Sets cache_hits + * Sets cache_hit_rate * - * @param int $cache_hits The total number of requests that were served cached responses. + * @param float $cache_hit_rate The percentage of requests that were served cached responses. * * @return self */ - public function setCacheHits($cache_hits) + public function setCacheHitRate($cache_hit_rate) { - $this->container['cache_hits'] = $cache_hits; + $this->container['cache_hit_rate'] = $cache_hit_rate; return $this; } /** - * Gets cache_hit_rate + * Gets _99th * - * @return float + * @return int */ - public function getCacheHitRate() + public function get99th() { - return $this->container['cache_hit_rate']; + return $this->container['_99th']; } /** - * Sets cache_hit_rate + * Sets _99th * - * @param float $cache_hit_rate The percentage of requests that were served cached responses. + * @param int $_99th The 99th percentile response time. * * @return self */ - public function setCacheHitRate($cache_hit_rate) + public function set99th($_99th) { - $this->container['cache_hit_rate'] = $cache_hit_rate; + $this->container['_99th'] = $_99th; return $this; } @@ -663,7 +630,7 @@ public function setCacheHitRate($cache_hit_rate) /** * Gets total_request_time * - * @return int + * @return int|null */ public function getTotalRequestTime() { @@ -673,7 +640,7 @@ public function getTotalRequestTime() /** * Sets total_request_time * - * @param int $total_request_time total_request_time + * @param int|null $total_request_time total_request_time * * @return self */ @@ -685,73 +652,73 @@ public function setTotalRequestTime($total_request_time) } /** - * Gets avg_origin_response_time + * Gets _100_x * * @return int */ - public function getAvgOriginResponseTime() + public function get100X() { - return $this->container['avg_origin_response_time']; + return $this->container['_100_x']; } /** - * Sets avg_origin_response_time + * Sets _100_x * - * @param int $avg_origin_response_time The average response time in milliseconds from the origin to the edge. + * @param int $_100_x The number of responses that had an http status code between 1000-1999. * * @return self */ - public function setAvgOriginResponseTime($avg_origin_response_time) + public function set100X($_100_x) { - $this->container['avg_origin_response_time'] = $avg_origin_response_time; + $this->container['_100_x'] = $_100_x; return $this; } /** - * Gets response_time_ms + * Gets _50th * * @return int */ - public function getResponseTimeMs() + public function get50th() { - return $this->container['response_time_ms']; + return $this->container['_50th']; } /** - * Sets response_time_ms + * Sets _50th * - * @param int $response_time_ms The average response time in milliseconds. + * @param int $_50th The 50th percentile response time. * * @return self */ - public function setResponseTimeMs($response_time_ms) + public function set50th($_50th) { - $this->container['response_time_ms'] = $response_time_ms; + $this->container['_50th'] = $_50th; return $this; } /** - * Gets _100_x + * Gets cache_hits * * @return int */ - public function get100X() + public function getCacheHits() { - return $this->container['_100_x']; + return $this->container['cache_hits']; } /** - * Sets _100_x + * Sets cache_hits * - * @param int $_100_x The number of responses that had an http status code between 1000-1999. + * @param int $cache_hits The total number of requests that were served cached responses. * * @return self */ - public function set100X($_100_x) + public function setCacheHits($cache_hits) { - $this->container['_100_x'] = $_100_x; + $this->container['cache_hits'] = $cache_hits; return $this; } @@ -828,6 +795,30 @@ public function set40X($_40_x) return $this; } + /** + * Gets end_timestamp + * + * @return int + */ + public function getEndTimestamp() + { + return $this->container['end_timestamp']; + } + + /** + * Sets end_timestamp + * + * @param int $end_timestamp The timestamp in milliseconds of the end of this interval. + * + * @return self + */ + public function setEndTimestamp($end_timestamp) + { + $this->container['end_timestamp'] = $end_timestamp; + + return $this; + } + /** * Gets _50_x * @@ -853,73 +844,73 @@ public function set50X($_50_x) } /** - * Gets _50th + * Gets start_timestamp * * @return int */ - public function get50th() + public function getStartTimestamp() { - return $this->container['_50th']; + return $this->container['start_timestamp']; } /** - * Sets _50th + * Sets start_timestamp * - * @param int $_50th The 50th percentile response time. + * @param int $start_timestamp The timestamp in milliseconds of the start of this interval. * * @return self */ - public function set50th($_50th) + public function setStartTimestamp($start_timestamp) { - $this->container['_50th'] = $_50th; + $this->container['start_timestamp'] = $start_timestamp; return $this; } /** - * Gets _95th + * Gets end_datetime * - * @return int + * @return string|null */ - public function get95th() + public function getEndDatetime() { - return $this->container['_95th']; + return $this->container['end_datetime']; } /** - * Sets _95th + * Sets end_datetime * - * @param int $_95th The 95th percentile response time. + * @param string|null $end_datetime end_datetime * * @return self */ - public function set95th($_95th) + public function setEndDatetime($end_datetime) { - $this->container['_95th'] = $_95th; + $this->container['end_datetime'] = $end_datetime; return $this; } /** - * Gets _99th + * Gets avg_origin_response_time * * @return int */ - public function get99th() + public function getAvgOriginResponseTime() { - return $this->container['_99th']; + return $this->container['avg_origin_response_time']; } /** - * Sets _99th + * Sets avg_origin_response_time * - * @param int $_99th The 99th percentile response time. + * @param int $avg_origin_response_time The average response time in milliseconds from the origin to the edge. * * @return self */ - public function set99th($_99th) + public function setAvgOriginResponseTime($avg_origin_response_time) { - $this->container['_99th'] = $_99th; + $this->container['avg_origin_response_time'] = $avg_origin_response_time; return $this; } diff --git a/codegen/Cms/Performance/Model/PublicPerformanceResponse.php b/codegen/Cms/Performance/Model/PublicPerformanceResponse.php index 17b87fbd..8822fd25 100644 --- a/codegen/Cms/Performance/Model/PublicPerformanceResponse.php +++ b/codegen/Cms/Performance/Model/PublicPerformanceResponse.php @@ -11,7 +11,7 @@ */ /** - * CMS Performance API + * CMS Performance * * Use these endpoints to get a time series view of your website's performance. * @@ -57,13 +57,13 @@ class PublicPerformanceResponse implements ModelInterface, ArrayAccess, \JsonSer * @var string[] */ protected static $openAPITypes = [ - 'data' => '\HubSpot\Client\Cms\Performance\Model\PerformanceView[]', - 'domain' => 'string', 'path' => 'string', + 'period' => 'string', 'start_interval' => 'int', - 'end_interval' => 'int', + 'data' => '\HubSpot\Client\Cms\Performance\Model\PerformanceView[]', + 'domain' => 'string', 'interval' => 'string', - 'period' => 'string' + 'end_interval' => 'int' ]; /** @@ -74,13 +74,13 @@ class PublicPerformanceResponse implements ModelInterface, ArrayAccess, \JsonSer * @psalm-var array */ protected static $openAPIFormats = [ - 'data' => null, - 'domain' => null, 'path' => null, + 'period' => null, 'start_interval' => 'int64', - 'end_interval' => 'int64', + 'data' => null, + 'domain' => null, 'interval' => null, - 'period' => null + 'end_interval' => 'int64' ]; /** @@ -110,13 +110,13 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'data' => 'data', - 'domain' => 'domain', 'path' => 'path', + 'period' => 'period', 'start_interval' => 'startInterval', - 'end_interval' => 'endInterval', + 'data' => 'data', + 'domain' => 'domain', 'interval' => 'interval', - 'period' => 'period' + 'end_interval' => 'endInterval' ]; /** @@ -125,13 +125,13 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'data' => 'setData', - 'domain' => 'setDomain', 'path' => 'setPath', + 'period' => 'setPeriod', 'start_interval' => 'setStartInterval', - 'end_interval' => 'setEndInterval', + 'data' => 'setData', + 'domain' => 'setDomain', 'interval' => 'setInterval', - 'period' => 'setPeriod' + 'end_interval' => 'setEndInterval' ]; /** @@ -140,13 +140,13 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'data' => 'getData', - 'domain' => 'getDomain', 'path' => 'getPath', + 'period' => 'getPeriod', 'start_interval' => 'getStartInterval', - 'end_interval' => 'getEndInterval', + 'data' => 'getData', + 'domain' => 'getDomain', 'interval' => 'getInterval', - 'period' => 'getPeriod' + 'end_interval' => 'getEndInterval' ]; /** @@ -190,16 +190,6 @@ public function getModelName() return self::$openAPIModelName; } - public const INTERVAL_ONE_MINUTE = 'ONE_MINUTE'; - public const INTERVAL_FIVE_MINUTES = 'FIVE_MINUTES'; - public const INTERVAL_TEN_MINUTES = 'TEN_MINUTES'; - public const INTERVAL_FIFTEEN_MINUTES = 'FIFTEEN_MINUTES'; - public const INTERVAL_THIRTY_MINUTES = 'THIRTY_MINUTES'; - public const INTERVAL_ONE_HOUR = 'ONE_HOUR'; - public const INTERVAL_FOUR_HOURS = 'FOUR_HOURS'; - public const INTERVAL_TWELVE_HOURS = 'TWELVE_HOURS'; - public const INTERVAL_ONE_DAY = 'ONE_DAY'; - public const INTERVAL_ONE_WEEK = 'ONE_WEEK'; public const PERIOD_ONE_MINUTE = 'ONE_MINUTE'; public const PERIOD_FIVE_MINUTES = 'FIVE_MINUTES'; public const PERIOD_TEN_MINUTES = 'TEN_MINUTES'; @@ -210,27 +200,16 @@ public function getModelName() public const PERIOD_TWELVE_HOURS = 'TWELVE_HOURS'; public const PERIOD_ONE_DAY = 'ONE_DAY'; public const PERIOD_ONE_WEEK = 'ONE_WEEK'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getIntervalAllowableValues() - { - return [ - self::INTERVAL_ONE_MINUTE, - self::INTERVAL_FIVE_MINUTES, - self::INTERVAL_TEN_MINUTES, - self::INTERVAL_FIFTEEN_MINUTES, - self::INTERVAL_THIRTY_MINUTES, - self::INTERVAL_ONE_HOUR, - self::INTERVAL_FOUR_HOURS, - self::INTERVAL_TWELVE_HOURS, - self::INTERVAL_ONE_DAY, - self::INTERVAL_ONE_WEEK, - ]; - } + public const INTERVAL_ONE_MINUTE = 'ONE_MINUTE'; + public const INTERVAL_FIVE_MINUTES = 'FIVE_MINUTES'; + public const INTERVAL_TEN_MINUTES = 'TEN_MINUTES'; + public const INTERVAL_FIFTEEN_MINUTES = 'FIFTEEN_MINUTES'; + public const INTERVAL_THIRTY_MINUTES = 'THIRTY_MINUTES'; + public const INTERVAL_ONE_HOUR = 'ONE_HOUR'; + public const INTERVAL_FOUR_HOURS = 'FOUR_HOURS'; + public const INTERVAL_TWELVE_HOURS = 'TWELVE_HOURS'; + public const INTERVAL_ONE_DAY = 'ONE_DAY'; + public const INTERVAL_ONE_WEEK = 'ONE_WEEK'; /** * Gets allowable values of the enum @@ -253,6 +232,27 @@ public function getPeriodAllowableValues() ]; } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getIntervalAllowableValues() + { + return [ + self::INTERVAL_ONE_MINUTE, + self::INTERVAL_FIVE_MINUTES, + self::INTERVAL_TEN_MINUTES, + self::INTERVAL_FIFTEEN_MINUTES, + self::INTERVAL_THIRTY_MINUTES, + self::INTERVAL_ONE_HOUR, + self::INTERVAL_FOUR_HOURS, + self::INTERVAL_TWELVE_HOURS, + self::INTERVAL_ONE_DAY, + self::INTERVAL_ONE_WEEK, + ]; + } + /** * Associative array for storing property values * @@ -268,13 +268,13 @@ public function getPeriodAllowableValues() */ public function __construct(array $data = null) { - $this->container['data'] = $data['data'] ?? null; - $this->container['domain'] = $data['domain'] ?? null; $this->container['path'] = $data['path'] ?? null; + $this->container['period'] = $data['period'] ?? null; $this->container['start_interval'] = $data['start_interval'] ?? null; - $this->container['end_interval'] = $data['end_interval'] ?? null; + $this->container['data'] = $data['data'] ?? null; + $this->container['domain'] = $data['domain'] ?? null; $this->container['interval'] = $data['interval'] ?? null; - $this->container['period'] = $data['period'] ?? null; + $this->container['end_interval'] = $data['end_interval'] ?? null; } /** @@ -286,14 +286,20 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['data'] === null) { - $invalidProperties[] = "'data' can't be null"; + $allowedValues = $this->getPeriodAllowableValues(); + if (!is_null($this->container['period']) && !in_array($this->container['period'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'period', must be one of '%s'", + $this->container['period'], + implode("', '", $allowedValues) + ); } + if ($this->container['start_interval'] === null) { $invalidProperties[] = "'start_interval' can't be null"; } - if ($this->container['end_interval'] === null) { - $invalidProperties[] = "'end_interval' can't be null"; + if ($this->container['data'] === null) { + $invalidProperties[] = "'data' can't be null"; } if ($this->container['interval'] === null) { $invalidProperties[] = "'interval' can't be null"; @@ -307,15 +313,9 @@ public function listInvalidProperties() ); } - $allowedValues = $this->getPeriodAllowableValues(); - if (!is_null($this->container['period']) && !in_array($this->container['period'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'period', must be one of '%s'", - $this->container['period'], - implode("', '", $allowedValues) - ); + if ($this->container['end_interval'] === null) { + $invalidProperties[] = "'end_interval' can't be null"; } - return $invalidProperties; } @@ -332,121 +332,131 @@ public function valid() /** - * Gets data + * Gets path * - * @return \HubSpot\Client\Cms\Performance\Model\PerformanceView[] + * @return string|null */ - public function getData() + public function getPath() { - return $this->container['data']; + return $this->container['path']; } /** - * Sets data + * Sets path * - * @param \HubSpot\Client\Cms\Performance\Model\PerformanceView[] $data data + * @param string|null $path path * * @return self */ - public function setData($data) + public function setPath($path) { - $this->container['data'] = $data; + $this->container['path'] = $path; return $this; } /** - * Gets domain + * Gets period * * @return string|null */ - public function getDomain() + public function getPeriod() { - return $this->container['domain']; + return $this->container['period']; } /** - * Sets domain + * Sets period * - * @param string|null $domain domain + * @param string|null $period period * * @return self */ - public function setDomain($domain) + public function setPeriod($period) { - $this->container['domain'] = $domain; + $allowedValues = $this->getPeriodAllowableValues(); + if (!is_null($period) && !in_array($period, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'period', must be one of '%s'", + $period, + implode("', '", $allowedValues) + ) + ); + } + $this->container['period'] = $period; return $this; } /** - * Gets path + * Gets start_interval * - * @return string|null + * @return int */ - public function getPath() + public function getStartInterval() { - return $this->container['path']; + return $this->container['start_interval']; } /** - * Sets path + * Sets start_interval * - * @param string|null $path path + * @param int $start_interval start_interval * * @return self */ - public function setPath($path) + public function setStartInterval($start_interval) { - $this->container['path'] = $path; + $this->container['start_interval'] = $start_interval; return $this; } /** - * Gets start_interval + * Gets data * - * @return int + * @return \HubSpot\Client\Cms\Performance\Model\PerformanceView[] */ - public function getStartInterval() + public function getData() { - return $this->container['start_interval']; + return $this->container['data']; } /** - * Sets start_interval + * Sets data * - * @param int $start_interval start_interval + * @param \HubSpot\Client\Cms\Performance\Model\PerformanceView[] $data data * * @return self */ - public function setStartInterval($start_interval) + public function setData($data) { - $this->container['start_interval'] = $start_interval; + $this->container['data'] = $data; return $this; } /** - * Gets end_interval + * Gets domain * - * @return int + * @return string|null */ - public function getEndInterval() + public function getDomain() { - return $this->container['end_interval']; + return $this->container['domain']; } /** - * Sets end_interval + * Sets domain * - * @param int $end_interval end_interval + * @param string|null $domain domain * * @return self */ - public function setEndInterval($end_interval) + public function setDomain($domain) { - $this->container['end_interval'] = $end_interval; + $this->container['domain'] = $domain; return $this; } @@ -486,35 +496,25 @@ public function setInterval($interval) } /** - * Gets period + * Gets end_interval * - * @return string|null + * @return int */ - public function getPeriod() + public function getEndInterval() { - return $this->container['period']; + return $this->container['end_interval']; } /** - * Sets period + * Sets end_interval * - * @param string|null $period period + * @param int $end_interval end_interval * * @return self */ - public function setPeriod($period) + public function setEndInterval($end_interval) { - $allowedValues = $this->getPeriodAllowableValues(); - if (!is_null($period) && !in_array($period, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'period', must be one of '%s'", - $period, - implode("', '", $allowedValues) - ) - ); - } - $this->container['period'] = $period; + $this->container['end_interval'] = $end_interval; return $this; } diff --git a/codegen/Cms/Performance/ObjectSerializer.php b/codegen/Cms/Performance/ObjectSerializer.php index 9ed12b57..df39aca2 100644 --- a/codegen/Cms/Performance/ObjectSerializer.php +++ b/codegen/Cms/Performance/ObjectSerializer.php @@ -11,7 +11,7 @@ */ /** - * CMS Performance API + * CMS Performance * * Use these endpoints to get a time series view of your website's performance. * diff --git a/codegen/Cms/SiteSearch/Model/ContentSearchResult.php b/codegen/Cms/SiteSearch/Model/ContentSearchResult.php index 1e579794..0f30abe8 100644 --- a/codegen/Cms/SiteSearch/Model/ContentSearchResult.php +++ b/codegen/Cms/SiteSearch/Model/ContentSearchResult.php @@ -58,23 +58,23 @@ class ContentSearchResult implements ModelInterface, ArrayAccess, \JsonSerializa * @var string[] */ protected static $openAPITypes = [ - 'id' => 'int', - 'score' => 'float', + 'combined_id' => 'string', + 'description' => 'string', + 'language' => 'string', 'type' => 'string', - 'domain' => 'string', + 'title' => 'string', 'url' => 'string', + 'tags' => 'string[]', + 'row_id' => 'int', 'featured_image_url' => 'string', - 'language' => 'string', - 'title' => 'string', - 'description' => 'string', - 'category' => 'string', - 'subcategory' => 'string', + 'score' => 'float', 'author_full_name' => 'string', - 'tags' => 'string[]', + 'domain' => 'string', 'table_id' => 'int', - 'row_id' => 'int', + 'id' => 'int', 'published_date' => 'int', - 'combined_id' => 'string' + 'category' => 'string', + 'subcategory' => 'string' ]; /** @@ -85,23 +85,23 @@ class ContentSearchResult implements ModelInterface, ArrayAccess, \JsonSerializa * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => 'int32', - 'score' => null, + 'combined_id' => null, + 'description' => null, + 'language' => null, 'type' => null, - 'domain' => null, + 'title' => null, 'url' => null, + 'tags' => null, + 'row_id' => 'int64', 'featured_image_url' => null, - 'language' => null, - 'title' => null, - 'description' => null, - 'category' => null, - 'subcategory' => null, + 'score' => null, 'author_full_name' => null, - 'tags' => null, + 'domain' => null, 'table_id' => 'int64', - 'row_id' => 'int64', + 'id' => 'int32', 'published_date' => 'int64', - 'combined_id' => null + 'category' => null, + 'subcategory' => null ]; /** @@ -131,23 +131,23 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', - 'score' => 'score', + 'combined_id' => 'combinedId', + 'description' => 'description', + 'language' => 'language', 'type' => 'type', - 'domain' => 'domain', + 'title' => 'title', 'url' => 'url', + 'tags' => 'tags', + 'row_id' => 'rowId', 'featured_image_url' => 'featuredImageUrl', - 'language' => 'language', - 'title' => 'title', - 'description' => 'description', - 'category' => 'category', - 'subcategory' => 'subcategory', + 'score' => 'score', 'author_full_name' => 'authorFullName', - 'tags' => 'tags', + 'domain' => 'domain', 'table_id' => 'tableId', - 'row_id' => 'rowId', + 'id' => 'id', 'published_date' => 'publishedDate', - 'combined_id' => 'combinedId' + 'category' => 'category', + 'subcategory' => 'subcategory' ]; /** @@ -156,23 +156,23 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', - 'score' => 'setScore', + 'combined_id' => 'setCombinedId', + 'description' => 'setDescription', + 'language' => 'setLanguage', 'type' => 'setType', - 'domain' => 'setDomain', + 'title' => 'setTitle', 'url' => 'setUrl', + 'tags' => 'setTags', + 'row_id' => 'setRowId', 'featured_image_url' => 'setFeaturedImageUrl', - 'language' => 'setLanguage', - 'title' => 'setTitle', - 'description' => 'setDescription', - 'category' => 'setCategory', - 'subcategory' => 'setSubcategory', + 'score' => 'setScore', 'author_full_name' => 'setAuthorFullName', - 'tags' => 'setTags', + 'domain' => 'setDomain', 'table_id' => 'setTableId', - 'row_id' => 'setRowId', + 'id' => 'setId', 'published_date' => 'setPublishedDate', - 'combined_id' => 'setCombinedId' + 'category' => 'setCategory', + 'subcategory' => 'setSubcategory' ]; /** @@ -181,23 +181,23 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', - 'score' => 'getScore', + 'combined_id' => 'getCombinedId', + 'description' => 'getDescription', + 'language' => 'getLanguage', 'type' => 'getType', - 'domain' => 'getDomain', + 'title' => 'getTitle', 'url' => 'getUrl', + 'tags' => 'getTags', + 'row_id' => 'getRowId', 'featured_image_url' => 'getFeaturedImageUrl', - 'language' => 'getLanguage', - 'title' => 'getTitle', - 'description' => 'getDescription', - 'category' => 'getCategory', - 'subcategory' => 'getSubcategory', + 'score' => 'getScore', 'author_full_name' => 'getAuthorFullName', - 'tags' => 'getTags', + 'domain' => 'getDomain', 'table_id' => 'getTableId', - 'row_id' => 'getRowId', + 'id' => 'getId', 'published_date' => 'getPublishedDate', - 'combined_id' => 'getCombinedId' + 'category' => 'getCategory', + 'subcategory' => 'getSubcategory' ]; /** @@ -241,11 +241,6 @@ 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_LISTING_PAGE = 'LISTING_PAGE'; public const LANGUAGE_AF = 'af'; public const LANGUAGE_AF_NA = 'af-na'; public const LANGUAGE_AF_ZA = 'af-za'; @@ -396,6 +391,7 @@ public function getModelName() public const LANGUAGE_EN_CH = 'en-ch'; public const LANGUAGE_EN_CK = 'en-ck'; public const LANGUAGE_EN_CM = 'en-cm'; + public const LANGUAGE_EN_CN = 'en-cn'; public const LANGUAGE_EN_CX = 'en-cx'; public const LANGUAGE_EN_CY = 'en-cy'; public const LANGUAGE_EN_DE = 'en-de'; @@ -439,6 +435,7 @@ public function getModelName() public const LANGUAGE_EN_MT = 'en-mt'; public const LANGUAGE_EN_MU = 'en-mu'; public const LANGUAGE_EN_MW = 'en-mw'; + public const LANGUAGE_EN_MX = 'en-mx'; public const LANGUAGE_EN_MY = 'en-my'; public const LANGUAGE_EN_NA = 'en-na'; public const LANGUAGE_EN_NF = 'en-nf'; @@ -998,22 +995,11 @@ public function getModelName() public const LANGUAGE_ZH_HANT = 'zh-hant'; public const LANGUAGE_ZU = 'zu'; public const LANGUAGE_ZU_ZA = 'zu-za'; - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getTypeAllowableValues() - { - return [ - self::TYPE_LANDING_PAGE, - self::TYPE_BLOG_POST, - self::TYPE_SITE_PAGE, - self::TYPE_KNOWLEDGE_ARTICLE, - self::TYPE_LISTING_PAGE, - ]; - } + 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_LISTING_PAGE = 'LISTING_PAGE'; /** * Gets allowable values of the enum @@ -1173,6 +1159,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_EN_CH, self::LANGUAGE_EN_CK, self::LANGUAGE_EN_CM, + self::LANGUAGE_EN_CN, self::LANGUAGE_EN_CX, self::LANGUAGE_EN_CY, self::LANGUAGE_EN_DE, @@ -1216,6 +1203,7 @@ public function getLanguageAllowableValues() self::LANGUAGE_EN_MT, self::LANGUAGE_EN_MU, self::LANGUAGE_EN_MW, + self::LANGUAGE_EN_MX, self::LANGUAGE_EN_MY, self::LANGUAGE_EN_NA, self::LANGUAGE_EN_NF, @@ -1778,6 +1766,22 @@ public function getLanguageAllowableValues() ]; } + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_LANDING_PAGE, + self::TYPE_BLOG_POST, + self::TYPE_SITE_PAGE, + self::TYPE_KNOWLEDGE_ARTICLE, + self::TYPE_LISTING_PAGE, + ]; + } + /** * Associative array for storing property values * @@ -1793,23 +1797,23 @@ public function getLanguageAllowableValues() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; - $this->container['score'] = $data['score'] ?? null; + $this->container['combined_id'] = $data['combined_id'] ?? null; + $this->container['description'] = $data['description'] ?? null; + $this->container['language'] = $data['language'] ?? null; $this->container['type'] = $data['type'] ?? null; - $this->container['domain'] = $data['domain'] ?? null; + $this->container['title'] = $data['title'] ?? null; $this->container['url'] = $data['url'] ?? null; + $this->container['tags'] = $data['tags'] ?? null; + $this->container['row_id'] = $data['row_id'] ?? null; $this->container['featured_image_url'] = $data['featured_image_url'] ?? null; - $this->container['language'] = $data['language'] ?? null; - $this->container['title'] = $data['title'] ?? null; - $this->container['description'] = $data['description'] ?? null; - $this->container['category'] = $data['category'] ?? null; - $this->container['subcategory'] = $data['subcategory'] ?? null; + $this->container['score'] = $data['score'] ?? null; $this->container['author_full_name'] = $data['author_full_name'] ?? null; - $this->container['tags'] = $data['tags'] ?? null; + $this->container['domain'] = $data['domain'] ?? null; $this->container['table_id'] = $data['table_id'] ?? null; - $this->container['row_id'] = $data['row_id'] ?? null; + $this->container['id'] = $data['id'] ?? null; $this->container['published_date'] = $data['published_date'] ?? null; - $this->container['combined_id'] = $data['combined_id'] ?? null; + $this->container['category'] = $data['category'] ?? null; + $this->container['subcategory'] = $data['subcategory'] ?? null; } /** @@ -1821,12 +1825,15 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['score'] === null) { - $invalidProperties[] = "'score' 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['type'] === null) { $invalidProperties[] = "'type' can't be null"; } @@ -1839,21 +1846,18 @@ public function listInvalidProperties() ); } - if ($this->container['domain'] === null) { - $invalidProperties[] = "'domain' can't be null"; - } if ($this->container['url'] === null) { $invalidProperties[] = "'url' 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['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; } @@ -1870,49 +1874,83 @@ public function valid() /** - * Gets id + * Gets combined_id * - * @return int + * @return string|null */ - public function getId() + public function getCombinedId() { - return $this->container['id']; + return $this->container['combined_id']; } /** - * Sets id + * Sets combined_id * - * @param int $id The ID of the content. + * @param string|null $combined_id The ID of the document in HubSpot. * * @return self */ - public function setId($id) + public function setCombinedId($combined_id) { - $this->container['id'] = $id; + $this->container['combined_id'] = $combined_id; return $this; } /** - * Gets score + * Gets description * - * @return float + * @return string|null */ - public function getScore() + public function getDescription() { - return $this->container['score']; + return $this->container['description']; } /** - * Sets score + * Sets description * - * @param float $score The matching score of the document. + * @param string|null $description The result's description. The content will be determined by the value of `length` in the request. * * @return self */ - public function setScore($score) + public function setDescription($description) { - $this->container['score'] = $score; + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets language + * + * @return string|null + */ + public function getLanguage() + { + return $this->container['language']; + } + + /** + * Sets language + * + * @param string|null $language The document's language. + * + * @return self + */ + public function setLanguage($language) + { + $allowedValues = $this->getLanguageAllowableValues(); + if (!is_null($language) && !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; } @@ -1952,25 +1990,25 @@ public function setType($type) } /** - * Gets domain + * Gets title * - * @return string + * @return string|null */ - public function getDomain() + public function getTitle() { - return $this->container['domain']; + return $this->container['title']; } /** - * Sets domain + * Sets title * - * @param string $domain The domain the document is hosted on. + * @param string|null $title The title of the returned document. * * @return self */ - public function setDomain($domain) + public function setTitle($title) { - $this->container['domain'] = $domain; + $this->container['title'] = $title; return $this; } @@ -2000,155 +2038,97 @@ public function setUrl($url) } /** - * 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) - { - $this->container['featured_image_url'] = $featured_image_url; - - return $this; - } - - /** - * Gets language - * - * @return string|null - */ - public function getLanguage() - { - return $this->container['language']; - } - - /** - * Sets language - * - * @param string|null $language The document's language. - * - * @return self - */ - public function setLanguage($language) - { - $allowedValues = $this->getLanguageAllowableValues(); - if (!is_null($language) && !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 title + * Gets tags * - * @return string|null + * @return string[]|null */ - public function getTitle() + public function getTags() { - return $this->container['title']; + return $this->container['tags']; } /** - * Sets title + * Sets tags * - * @param string|null $title The title of the returned document. + * @param string[]|null $tags If a blog post, the tags associated with it. * * @return self */ - public function setTitle($title) + public function setTags($tags) { - $this->container['title'] = $title; + $this->container['tags'] = $tags; return $this; } /** - * Gets description + * Gets row_id * - * @return string|null + * @return int|null */ - public function getDescription() + public function getRowId() { - return $this->container['description']; + return $this->container['row_id']; } /** - * Sets description + * Sets row_id * - * @param string|null $description The result's description. The content will be determined by the value of `length` in the request. + * @param int|null $row_id If a dynamic page, the row ID in the HubDB table. * * @return self */ - public function setDescription($description) + public function setRowId($row_id) { - $this->container['description'] = $description; + $this->container['row_id'] = $row_id; return $this; } /** - * Gets category + * Gets featured_image_url * * @return string|null */ - public function getCategory() + public function getFeaturedImageUrl() { - return $this->container['category']; + return $this->container['featured_image_url']; } /** - * Sets category + * Sets featured_image_url * - * @param string|null $category For knowledge articles, the category of the article. + * @param string|null $featured_image_url URL of the featured image. * * @return self */ - public function setCategory($category) + public function setFeaturedImageUrl($featured_image_url) { - $this->container['category'] = $category; + $this->container['featured_image_url'] = $featured_image_url; return $this; } /** - * Gets subcategory + * Gets score * - * @return string|null + * @return float */ - public function getSubcategory() + public function getScore() { - return $this->container['subcategory']; + return $this->container['score']; } /** - * Sets subcategory + * Sets score * - * @param string|null $subcategory For knowledge articles, the subcategory of the article. + * @param float $score The matching score of the document. * * @return self */ - public function setSubcategory($subcategory) + public function setScore($score) { - $this->container['subcategory'] = $subcategory; + $this->container['score'] = $score; return $this; } @@ -2178,25 +2158,25 @@ public function setAuthorFullName($author_full_name) } /** - * Gets tags + * Gets domain * - * @return string[]|null + * @return string */ - public function getTags() + public function getDomain() { - return $this->container['tags']; + return $this->container['domain']; } /** - * Sets tags + * Sets domain * - * @param string[]|null $tags If a blog post, the tags associated with it. + * @param string $domain The domain the document is hosted on. * * @return self */ - public function setTags($tags) + public function setDomain($domain) { - $this->container['tags'] = $tags; + $this->container['domain'] = $domain; return $this; } @@ -2226,25 +2206,25 @@ public function setTableId($table_id) } /** - * Gets row_id + * Gets id * - * @return int|null + * @return int */ - public function getRowId() + public function getId() { - return $this->container['row_id']; + return $this->container['id']; } /** - * Sets row_id + * Sets id * - * @param int|null $row_id If a dynamic page, the row ID in the HubDB table. + * @param int $id The ID of the content. * * @return self */ - public function setRowId($row_id) + public function setId($id) { - $this->container['row_id'] = $row_id; + $this->container['id'] = $id; return $this; } @@ -2274,25 +2254,49 @@ public function setPublishedDate($published_date) } /** - * Gets combined_id + * Gets category * * @return string|null */ - public function getCombinedId() + public function getCategory() { - return $this->container['combined_id']; + return $this->container['category']; } /** - * Sets combined_id + * Sets category * - * @param string|null $combined_id The ID of the document in HubSpot. + * @param string|null $category For knowledge articles, the category of the article. * * @return self */ - public function setCombinedId($combined_id) + public function setCategory($category) { - $this->container['combined_id'] = $combined_id; + $this->container['category'] = $category; + + return $this; + } + + /** + * Gets subcategory + * + * @return string|null + */ + public function getSubcategory() + { + return $this->container['subcategory']; + } + + /** + * Sets subcategory + * + * @param string|null $subcategory For knowledge articles, the subcategory of the article. + * + * @return self + */ + public function setSubcategory($subcategory) + { + $this->container['subcategory'] = $subcategory; return $this; } diff --git a/codegen/Cms/SiteSearch/Model/Error.php b/codegen/Cms/SiteSearch/Model/Error.php index 136c4c4e..f520cc9b 100644 --- a/codegen/Cms/SiteSearch/Model/Error.php +++ b/codegen/Cms/SiteSearch/Model/Error.php @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'correlation_id' => 'string', - 'category' => 'string', 'sub_category' => 'string', - 'errors' => '\HubSpot\Client\Cms\SiteSearch\Model\ErrorDetail[]', 'context' => 'array', - 'links' => 'array' + 'correlation_id' => 'string', + 'links' => 'array', + 'message' => 'string', + 'category' => 'string', + 'errors' => '\HubSpot\Client\Cms\SiteSearch\Model\ErrorDetail[]' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'correlation_id' => 'uuid', - 'category' => null, 'sub_category' => null, - 'errors' => null, 'context' => null, - 'links' => null + 'correlation_id' => 'uuid', + 'links' => null, + 'message' => null, + 'category' => null, + 'errors' => null ]; /** @@ -110,13 +110,13 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'correlation_id' => 'correlationId', - 'category' => 'category', 'sub_category' => 'subCategory', - 'errors' => 'errors', 'context' => 'context', - 'links' => 'links' + 'correlation_id' => 'correlationId', + 'links' => 'links', + 'message' => 'message', + 'category' => 'category', + 'errors' => 'errors' ]; /** @@ -125,13 +125,13 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'correlation_id' => 'setCorrelationId', - 'category' => 'setCategory', 'sub_category' => 'setSubCategory', - 'errors' => 'setErrors', 'context' => 'setContext', - 'links' => 'setLinks' + 'correlation_id' => 'setCorrelationId', + 'links' => 'setLinks', + 'message' => 'setMessage', + 'category' => 'setCategory', + 'errors' => 'setErrors' ]; /** @@ -140,13 +140,13 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'correlation_id' => 'getCorrelationId', - 'category' => 'getCategory', 'sub_category' => 'getSubCategory', - 'errors' => 'getErrors', 'context' => 'getContext', - 'links' => 'getLinks' + 'correlation_id' => 'getCorrelationId', + 'links' => 'getLinks', + 'message' => 'getMessage', + 'category' => 'getCategory', + 'errors' => 'getErrors' ]; /** @@ -206,13 +206,13 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['correlation_id'] = $data['correlation_id'] ?? null; - $this->container['category'] = $data['category'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['correlation_id'] = $data['correlation_id'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['message'] = $data['message'] ?? null; + $this->container['category'] = $data['category'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; } /** @@ -224,12 +224,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' 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"; } @@ -249,169 +249,169 @@ public function valid() /** - * 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) { - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets correlation_id + * Gets context * - * @return string + * @return array|null */ - public function getCorrelationId() + public function getContext() { - return $this->container['correlation_id']; + return $this->container['context']; } /** - * Sets correlation_id + * Sets context * - * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets + * @param array|null $context Context about the error condition * * @return self */ - public function setCorrelationId($correlation_id) + public function setContext($context) { - $this->container['correlation_id'] = $correlation_id; + $this->container['context'] = $context; return $this; } /** - * Gets category + * Gets correlation_id * * @return string */ - public function getCategory() + public function getCorrelationId() { - return $this->container['category']; + return $this->container['correlation_id']; } /** - * Sets category + * Sets correlation_id * - * @param string $category The error category + * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets * * @return self */ - public function setCategory($category) + public function setCorrelationId($correlation_id) { - $this->container['category'] = $category; + $this->container['correlation_id'] = $correlation_id; return $this; } /** - * Gets sub_category + * Gets links * - * @return string|null + * @return array|null */ - public function getSubCategory() + public function getLinks() { - return $this->container['sub_category']; + return $this->container['links']; } /** - * Sets sub_category + * Sets links * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps * * @return self */ - public function setSubCategory($sub_category) + public function setLinks($links) { - $this->container['sub_category'] = $sub_category; + $this->container['links'] = $links; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\SiteSearch\Model\ErrorDetail[]|null + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\SiteSearch\Model\ErrorDetail[]|null $errors further information about the error + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets category * - * @return array|null + * @return string */ - public function getContext() + public function getCategory() { - return $this->container['context']; + return $this->container['category']; } /** - * Sets context + * Sets category * - * @param array|null $context Context about the error condition + * @param string $category The error category * * @return self */ - public function setContext($context) + public function setCategory($category) { - $this->container['context'] = $context; + $this->container['category'] = $category; return $this; } /** - * Gets links + * Gets errors * - * @return array|null + * @return \HubSpot\Client\Cms\SiteSearch\Model\ErrorDetail[]|null */ - public function getLinks() + public function getErrors() { - return $this->container['links']; + return $this->container['errors']; } /** - * Sets links + * Sets errors * - * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps + * @param \HubSpot\Client\Cms\SiteSearch\Model\ErrorDetail[]|null $errors further information about the error * * @return self */ - public function setLinks($links) + public function setErrors($errors) { - $this->container['links'] = $links; + $this->container['errors'] = $errors; return $this; } diff --git a/codegen/Cms/SiteSearch/Model/ErrorDetail.php b/codegen/Cms/SiteSearch/Model/ErrorDetail.php index e3ab858e..e545975c 100644 --- a/codegen/Cms/SiteSearch/Model/ErrorDetail.php +++ b/codegen/Cms/SiteSearch/Model/ErrorDetail.php @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'in' => 'string', - 'code' => 'string', 'sub_category' => 'string', - 'context' => 'array' + 'code' => 'string', + 'in' => 'string', + 'context' => 'array', + 'message' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'in' => null, - 'code' => null, 'sub_category' => null, - 'context' => null + 'code' => null, + 'in' => null, + 'context' => null, + 'message' => null ]; /** @@ -106,11 +106,11 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'in' => 'in', - 'code' => 'code', 'sub_category' => 'subCategory', - 'context' => 'context' + 'code' => 'code', + 'in' => 'in', + 'context' => 'context', + 'message' => 'message' ]; /** @@ -119,11 +119,11 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'in' => 'setIn', - 'code' => 'setCode', 'sub_category' => 'setSubCategory', - 'context' => 'setContext' + 'code' => 'setCode', + 'in' => 'setIn', + 'context' => 'setContext', + 'message' => 'setMessage' ]; /** @@ -132,11 +132,11 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'in' => 'getIn', - 'code' => 'getCode', 'sub_category' => 'getSubCategory', - 'context' => 'getContext' + 'code' => 'getCode', + 'in' => 'getIn', + 'context' => 'getContext', + 'message' => 'getMessage' ]; /** @@ -196,11 +196,11 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['in'] = $data['in'] ?? null; - $this->container['code'] = $data['code'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['code'] = $data['code'] ?? null; + $this->container['in'] = $data['in'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['message'] = $data['message'] ?? null; } /** @@ -231,49 +231,25 @@ public function valid() /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A human readable message describing the error along with remediation steps where appropriate - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - - /** - * Gets in + * Gets sub_category * * @return string|null */ - public function getIn() + public function getSubCategory() { - return $this->container['in']; + return $this->container['sub_category']; } /** - * Sets in + * Sets sub_category * - * @param string|null $in The name of the field or parameter in which the error was found. + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setIn($in) + public function setSubCategory($sub_category) { - $this->container['in'] = $in; + $this->container['sub_category'] = $sub_category; return $this; } @@ -303,25 +279,25 @@ public function setCode($code) } /** - * Gets sub_category + * Gets in * * @return string|null */ - public function getSubCategory() + public function getIn() { - return $this->container['sub_category']; + return $this->container['in']; } /** - * Sets sub_category + * Sets in * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $in The name of the field or parameter in which the error was found. * * @return self */ - public function setSubCategory($sub_category) + public function setIn($in) { - $this->container['sub_category'] = $sub_category; + $this->container['in'] = $in; return $this; } @@ -349,6 +325,30 @@ public function setContext($context) return $this; } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message A human readable message describing the error along with remediation steps where appropriate + * + * @return self + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + 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 097f707c..fd2e70ce 100644 --- a/codegen/Cms/SiteSearch/Model/IndexedField.php +++ b/codegen/Cms/SiteSearch/Model/IndexedField.php @@ -57,9 +57,9 @@ class IndexedField implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'values' => 'object[]', 'name' => 'string', 'value' => 'object', - 'values' => 'object[]', 'metadata_field' => 'bool' ]; @@ -71,9 +71,9 @@ class IndexedField implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'values' => null, 'name' => null, 'value' => null, - 'values' => null, 'metadata_field' => null ]; @@ -104,9 +104,9 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ + 'values' => 'values', 'name' => 'name', 'value' => 'value', - 'values' => 'values', 'metadata_field' => 'metadataField' ]; @@ -116,9 +116,9 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ + 'values' => 'setValues', 'name' => 'setName', 'value' => 'setValue', - 'values' => 'setValues', 'metadata_field' => 'setMetadataField' ]; @@ -128,9 +128,9 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ + 'values' => 'getValues', 'name' => 'getName', 'value' => 'getValue', - 'values' => 'getValues', 'metadata_field' => 'getMetadataField' ]; @@ -191,9 +191,9 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['values'] = $data['values'] ?? null; $this->container['name'] = $data['name'] ?? null; $this->container['value'] = $data['value'] ?? null; - $this->container['values'] = $data['values'] ?? null; $this->container['metadata_field'] = $data['metadata_field'] ?? null; } @@ -206,15 +206,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['values'] === null) { + $invalidProperties[] = "'values' can't be null"; + } if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } if ($this->container['value'] === null) { $invalidProperties[] = "'value' can't be null"; } - if ($this->container['values'] === null) { - $invalidProperties[] = "'values' can't be null"; - } if ($this->container['metadata_field'] === null) { $invalidProperties[] = "'metadata_field' can't be null"; } @@ -234,73 +234,73 @@ public function valid() /** - * Gets name + * Gets values * - * @return string + * @return object[] */ - public function getName() + public function getValues() { - return $this->container['name']; + return $this->container['values']; } /** - * Sets name + * Sets values * - * @param string $name name + * @param object[] $values values * * @return self */ - public function setName($name) + public function setValues($values) { - $this->container['name'] = $name; + $this->container['values'] = $values; return $this; } /** - * Gets value + * Gets name * - * @return object + * @return string */ - public function getValue() + public function getName() { - return $this->container['value']; + return $this->container['name']; } /** - * Sets value + * Sets name * - * @param object $value value + * @param string $name name * * @return self */ - public function setValue($value) + public function setName($name) { - $this->container['value'] = $value; + $this->container['name'] = $name; return $this; } /** - * Gets values + * Gets value * - * @return object[] + * @return object */ - public function getValues() + public function getValue() { - return $this->container['values']; + return $this->container['value']; } /** - * Sets values + * Sets value * - * @param object[] $values values + * @param object $value value * * @return self */ - public function setValues($values) + public function setValue($value) { - $this->container['values'] = $values; + $this->container['value'] = $value; return $this; } diff --git a/codegen/Cms/SiteSearch/Model/PublicSearchResults.php b/codegen/Cms/SiteSearch/Model/PublicSearchResults.php index dcb8dc76..18a29cd4 100644 --- a/codegen/Cms/SiteSearch/Model/PublicSearchResults.php +++ b/codegen/Cms/SiteSearch/Model/PublicSearchResults.php @@ -58,11 +58,11 @@ class PublicSearchResults implements ModelInterface, ArrayAccess, \JsonSerializa */ protected static $openAPITypes = [ 'total' => 'int', + 'search_term' => 'string', 'offset' => 'int', 'limit' => 'int', - 'results' => '\HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[]', - 'search_term' => 'string', - 'page' => 'int' + 'page' => 'int', + 'results' => '\HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[]' ]; /** @@ -74,11 +74,11 @@ class PublicSearchResults implements ModelInterface, ArrayAccess, \JsonSerializa */ protected static $openAPIFormats = [ 'total' => 'int32', + 'search_term' => null, 'offset' => 'int32', 'limit' => 'int32', - 'results' => null, - 'search_term' => null, - 'page' => 'int32' + 'page' => 'int32', + 'results' => null ]; /** @@ -109,11 +109,11 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'total' => 'total', + 'search_term' => 'searchTerm', 'offset' => 'offset', 'limit' => 'limit', - 'results' => 'results', - 'search_term' => 'searchTerm', - 'page' => 'page' + 'page' => 'page', + 'results' => 'results' ]; /** @@ -123,11 +123,11 @@ public static function openAPIFormats() */ protected static $setters = [ 'total' => 'setTotal', + 'search_term' => 'setSearchTerm', 'offset' => 'setOffset', 'limit' => 'setLimit', - 'results' => 'setResults', - 'search_term' => 'setSearchTerm', - 'page' => 'setPage' + 'page' => 'setPage', + 'results' => 'setResults' ]; /** @@ -137,11 +137,11 @@ public static function openAPIFormats() */ protected static $getters = [ 'total' => 'getTotal', + 'search_term' => 'getSearchTerm', 'offset' => 'getOffset', 'limit' => 'getLimit', - 'results' => 'getResults', - 'search_term' => 'getSearchTerm', - 'page' => 'getPage' + 'page' => 'getPage', + 'results' => 'getResults' ]; /** @@ -202,11 +202,11 @@ public function getModelName() public function __construct(array $data = null) { $this->container['total'] = $data['total'] ?? null; + $this->container['search_term'] = $data['search_term'] ?? null; $this->container['offset'] = $data['offset'] ?? null; $this->container['limit'] = $data['limit'] ?? null; - $this->container['results'] = $data['results'] ?? null; - $this->container['search_term'] = $data['search_term'] ?? null; $this->container['page'] = $data['page'] ?? null; + $this->container['results'] = $data['results'] ?? null; } /** @@ -227,12 +227,12 @@ public function listInvalidProperties() if ($this->container['limit'] === null) { $invalidProperties[] = "'limit' can't be null"; } - if ($this->container['results'] === null) { - $invalidProperties[] = "'results' 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"; + } return $invalidProperties; } @@ -273,121 +273,121 @@ public function setTotal($total) } /** - * Gets offset + * Gets search_term * - * @return int + * @return string|null */ - public function getOffset() + public function getSearchTerm() { - return $this->container['offset']; + return $this->container['search_term']; } /** - * Sets offset + * Sets search_term * - * @param int $offset offset + * @param string|null $search_term search_term * * @return self */ - public function setOffset($offset) + public function setSearchTerm($search_term) { - $this->container['offset'] = $offset; + $this->container['search_term'] = $search_term; return $this; } /** - * Gets limit + * Gets offset * * @return int */ - public function getLimit() + public function getOffset() { - return $this->container['limit']; + return $this->container['offset']; } /** - * Sets limit + * Sets offset * - * @param int $limit limit + * @param int $offset offset * * @return self */ - public function setLimit($limit) + public function setOffset($offset) { - $this->container['limit'] = $limit; + $this->container['offset'] = $offset; return $this; } /** - * Gets results + * Gets limit * - * @return \HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[] + * @return int */ - public function getResults() + public function getLimit() { - return $this->container['results']; + return $this->container['limit']; } /** - * Sets results + * Sets limit * - * @param \HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[] $results results + * @param int $limit limit * * @return self */ - public function setResults($results) + public function setLimit($limit) { - $this->container['results'] = $results; + $this->container['limit'] = $limit; return $this; } /** - * Gets search_term + * Gets page * - * @return string|null + * @return int */ - public function getSearchTerm() + public function getPage() { - return $this->container['search_term']; + return $this->container['page']; } /** - * Sets search_term + * Sets page * - * @param string|null $search_term search_term + * @param int $page page * * @return self */ - public function setSearchTerm($search_term) + public function setPage($page) { - $this->container['search_term'] = $search_term; + $this->container['page'] = $page; return $this; } /** - * Gets page + * Gets results * - * @return int + * @return \HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[] */ - public function getPage() + public function getResults() { - return $this->container['page']; + return $this->container['results']; } /** - * Sets page + * Sets results * - * @param int $page page + * @param \HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[] $results results * * @return self */ - public function setPage($page) + public function setResults($results) { - $this->container['page'] = $page; + $this->container['results'] = $results; return $this; } diff --git a/codegen/Cms/SourceCode/Api/ContentApi.php b/codegen/Cms/SourceCode/Api/ContentApi.php index ba3fd61b..561ab9cb 100644 --- a/codegen/Cms/SourceCode/Api/ContentApi.php +++ b/codegen/Cms/SourceCode/Api/ContentApi.php @@ -729,38 +729,40 @@ public function createRequest($environment, $path, $file = null) } /** - * Operation get + * Operation createOrUpdate * - * Download a file + * Create or update a file * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) + * @param \SplFileObject $file The file to upload. (optional) * * @throws \HubSpot\Client\Cms\SourceCode\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \HubSpot\Client\Cms\SourceCode\Model\Error + * @return \HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata|\HubSpot\Client\Cms\SourceCode\Model\Error */ - public function get($environment, $path) + public function createOrUpdate($environment, $path, $file = null) { - list($response) = $this->getWithHttpInfo($environment, $path); + list($response) = $this->createOrUpdateWithHttpInfo($environment, $path, $file); return $response; } /** - * Operation getWithHttpInfo + * Operation createOrUpdateWithHttpInfo * - * Download a file + * Create or update a file * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) + * @param \SplFileObject $file The file to upload. (optional) * * @throws \HubSpot\Client\Cms\SourceCode\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \HubSpot\Client\Cms\SourceCode\Model\Error, HTTP status code, HTTP response headers (array of strings) + * @return array of \HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata|\HubSpot\Client\Cms\SourceCode\Model\Error, HTTP status code, HTTP response headers (array of strings) */ - public function getWithHttpInfo($environment, $path) + public function createOrUpdateWithHttpInfo($environment, $path, $file = null) { - $request = $this->getRequest($environment, $path); + $request = $this->createOrUpdateRequest($environment, $path, $file); try { $options = $this->createHttpClientOption(); @@ -798,6 +800,21 @@ public function getWithHttpInfo($environment, $path) } switch($statusCode) { + case 200: + if ('\HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata' === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ('\HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata' !== 'string') { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata', []), + $response->getStatusCode(), + $response->getHeaders() + ]; default: if ('\HubSpot\Client\Cms\SourceCode\Model\Error' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -815,7 +832,7 @@ public function getWithHttpInfo($environment, $path) ]; } - $returnType = '\HubSpot\Client\Cms\SourceCode\Model\Error'; + $returnType = '\HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -833,6 +850,14 @@ public function getWithHttpInfo($environment, $path) } catch (ApiException $e) { switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -847,19 +872,20 @@ public function getWithHttpInfo($environment, $path) } /** - * Operation getAsync + * Operation createOrUpdateAsync * - * Download a file + * Create or update a file * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) + * @param \SplFileObject $file The file to upload. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAsync($environment, $path) + public function createOrUpdateAsync($environment, $path, $file = null) { - return $this->getAsyncWithHttpInfo($environment, $path) + return $this->createOrUpdateAsyncWithHttpInfo($environment, $path, $file) ->then( function ($response) { return $response[0]; @@ -868,20 +894,21 @@ function ($response) { } /** - * Operation getAsyncWithHttpInfo + * Operation createOrUpdateAsyncWithHttpInfo * - * Download a file + * Create or update a file * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) + * @param \SplFileObject $file The file to upload. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAsyncWithHttpInfo($environment, $path) + public function createOrUpdateAsyncWithHttpInfo($environment, $path, $file = null) { - $returnType = '\HubSpot\Client\Cms\SourceCode\Model\Error'; - $request = $this->getRequest($environment, $path); + $returnType = '\HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata'; + $request = $this->createOrUpdateRequest($environment, $path, $file); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -920,30 +947,31 @@ function ($exception) { } /** - * Create request for operation 'get' + * Create request for operation 'createOrUpdate' * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) + * @param \SplFileObject $file The file to upload. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getRequest($environment, $path) + public function createOrUpdateRequest($environment, $path, $file = null) { // verify the required parameter 'environment' is set if ($environment === null || (is_array($environment) && count($environment) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $environment when calling get' + 'Missing the required parameter $environment when calling createOrUpdate' ); } // verify the required parameter 'path' is set if ($path === null || (is_array($path) && count($path) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $path when calling get' + 'Missing the required parameter $path when calling createOrUpdate' ); } if (!preg_match("/.+/", $path)) { - throw new \InvalidArgumentException("invalid value for \"path\" when calling ContentApi.get, must conform to the pattern /.+/."); + throw new \InvalidArgumentException("invalid value for \"path\" when calling ContentApi.createOrUpdate, must conform to the pattern /.+/."); } @@ -973,15 +1001,27 @@ public function getRequest($environment, $path) ); } + // form params + if ($file !== null) { + $multipart = true; + $formParams['file'] = []; + $paramFiles = is_array($file) ? $file : [$file]; + foreach ($paramFiles as $paramFile) { + $formParams['file'][] = \GuzzleHttp\Psr7\Utils::tryFopen( + ObjectSerializer::toFormValue($paramFile), + 'rb' + ); + } + } if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( - ['*/*'] + ['application/json', '*/*'] ); } else { $headers = $this->headerSelector->selectHeaders( - ['*/*'], - [] + ['application/json', '*/*'], + ['multipart/form-data'] ); } @@ -1028,7 +1068,7 @@ public function getRequest($environment, $path) $query = ObjectSerializer::buildQuery($queryParams); return new Request( - 'GET', + 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody @@ -1036,40 +1076,38 @@ public function getRequest($environment, $path) } /** - * Operation replace + * Operation download * - * Create or update a file + * Download a file * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) - * @param \SplFileObject $file The file to upload. (optional) * * @throws \HubSpot\Client\Cms\SourceCode\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata|\HubSpot\Client\Cms\SourceCode\Model\Error + * @return \HubSpot\Client\Cms\SourceCode\Model\Error */ - public function replace($environment, $path, $file = null) + public function download($environment, $path) { - list($response) = $this->replaceWithHttpInfo($environment, $path, $file); + list($response) = $this->downloadWithHttpInfo($environment, $path); return $response; } /** - * Operation replaceWithHttpInfo + * Operation downloadWithHttpInfo * - * Create or update a file + * Download a file * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) - * @param \SplFileObject $file The file to upload. (optional) * * @throws \HubSpot\Client\Cms\SourceCode\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata|\HubSpot\Client\Cms\SourceCode\Model\Error, HTTP status code, HTTP response headers (array of strings) + * @return array of \HubSpot\Client\Cms\SourceCode\Model\Error, HTTP status code, HTTP response headers (array of strings) */ - public function replaceWithHttpInfo($environment, $path, $file = null) + public function downloadWithHttpInfo($environment, $path) { - $request = $this->replaceRequest($environment, $path, $file); + $request = $this->downloadRequest($environment, $path); try { $options = $this->createHttpClientOption(); @@ -1107,21 +1145,6 @@ public function replaceWithHttpInfo($environment, $path, $file = null) } switch($statusCode) { - case 200: - if ('\HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata' === '\SplFileObject') { - $content = $response->getBody(); //stream goes to serializer - } else { - $content = (string) $response->getBody(); - if ('\HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata' !== 'string') { - $content = json_decode($content); - } - } - - return [ - ObjectSerializer::deserialize($content, '\HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata', []), - $response->getStatusCode(), - $response->getHeaders() - ]; default: if ('\HubSpot\Client\Cms\SourceCode\Model\Error' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer @@ -1139,7 +1162,7 @@ public function replaceWithHttpInfo($environment, $path, $file = null) ]; } - $returnType = '\HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata'; + $returnType = '\HubSpot\Client\Cms\SourceCode\Model\Error'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -1157,14 +1180,6 @@ public function replaceWithHttpInfo($environment, $path, $file = null) } catch (ApiException $e) { switch ($e->getCode()) { - case 200: - $data = ObjectSerializer::deserialize( - $e->getResponseBody(), - '\HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata', - $e->getResponseHeaders() - ); - $e->setResponseObject($data); - break; default: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -1179,20 +1194,19 @@ public function replaceWithHttpInfo($environment, $path, $file = null) } /** - * Operation replaceAsync + * Operation downloadAsync * - * Create or update a file + * Download a file * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) - * @param \SplFileObject $file The file to upload. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function replaceAsync($environment, $path, $file = null) + public function downloadAsync($environment, $path) { - return $this->replaceAsyncWithHttpInfo($environment, $path, $file) + return $this->downloadAsyncWithHttpInfo($environment, $path) ->then( function ($response) { return $response[0]; @@ -1201,21 +1215,20 @@ function ($response) { } /** - * Operation replaceAsyncWithHttpInfo + * Operation downloadAsyncWithHttpInfo * - * Create or update a file + * Download a file * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) - * @param \SplFileObject $file The file to upload. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function replaceAsyncWithHttpInfo($environment, $path, $file = null) + public function downloadAsyncWithHttpInfo($environment, $path) { - $returnType = '\HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata'; - $request = $this->replaceRequest($environment, $path, $file); + $returnType = '\HubSpot\Client\Cms\SourceCode\Model\Error'; + $request = $this->downloadRequest($environment, $path); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1254,31 +1267,30 @@ function ($exception) { } /** - * Create request for operation 'replace' + * Create request for operation 'download' * * @param string $environment The environment of the file (\"draft\" or \"published\"). (required) * @param string $path The file system location of the file. (required) - * @param \SplFileObject $file The file to upload. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function replaceRequest($environment, $path, $file = null) + public function downloadRequest($environment, $path) { // verify the required parameter 'environment' is set if ($environment === null || (is_array($environment) && count($environment) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $environment when calling replace' + 'Missing the required parameter $environment when calling download' ); } // verify the required parameter 'path' is set if ($path === null || (is_array($path) && count($path) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $path when calling replace' + 'Missing the required parameter $path when calling download' ); } if (!preg_match("/.+/", $path)) { - throw new \InvalidArgumentException("invalid value for \"path\" when calling ContentApi.replace, must conform to the pattern /.+/."); + throw new \InvalidArgumentException("invalid value for \"path\" when calling ContentApi.download, must conform to the pattern /.+/."); } @@ -1308,27 +1320,15 @@ public function replaceRequest($environment, $path, $file = null) ); } - // form params - if ($file !== null) { - $multipart = true; - $formParams['file'] = []; - $paramFiles = is_array($file) ? $file : [$file]; - foreach ($paramFiles as $paramFile) { - $formParams['file'][] = \GuzzleHttp\Psr7\Utils::tryFopen( - ObjectSerializer::toFormValue($paramFile), - 'rb' - ); - } - } if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( - ['application/json', '*/*'] + ['*/*'] ); } else { $headers = $this->headerSelector->selectHeaders( - ['application/json', '*/*'], - ['multipart/form-data'] + ['*/*'], + [] ); } @@ -1375,7 +1375,7 @@ public function replaceRequest($environment, $path, $file = null) $query = ObjectSerializer::buildQuery($queryParams); return new Request( - 'PUT', + 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), $headers, $httpBody diff --git a/codegen/Cms/SourceCode/Api/MetadataApi.php b/codegen/Cms/SourceCode/Api/MetadataApi.php index 43941e23..6fb54987 100644 --- a/codegen/Cms/SourceCode/Api/MetadataApi.php +++ b/codegen/Cms/SourceCode/Api/MetadataApi.php @@ -122,14 +122,15 @@ 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 $properties properties (optional) * * @throws \HubSpot\Client\Cms\SourceCode\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata|\HubSpot\Client\Cms\SourceCode\Model\Error */ - public function get($environment, $path) + public function get($environment, $path, $properties = null) { - list($response) = $this->getWithHttpInfo($environment, $path); + list($response) = $this->getWithHttpInfo($environment, $path, $properties); return $response; } @@ -140,14 +141,15 @@ public function get($environment, $path) * * @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 $properties (optional) * * @throws \HubSpot\Client\Cms\SourceCode\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata|\HubSpot\Client\Cms\SourceCode\Model\Error, HTTP status code, HTTP response headers (array of strings) */ - public function getWithHttpInfo($environment, $path) + public function getWithHttpInfo($environment, $path, $properties = null) { - $request = $this->getRequest($environment, $path); + $request = $this->getRequest($environment, $path, $properties); try { $options = $this->createHttpClientOption(); @@ -263,13 +265,14 @@ public function getWithHttpInfo($environment, $path) * * @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 $properties (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAsync($environment, $path) + public function getAsync($environment, $path, $properties = null) { - return $this->getAsyncWithHttpInfo($environment, $path) + return $this->getAsyncWithHttpInfo($environment, $path, $properties) ->then( function ($response) { return $response[0]; @@ -284,14 +287,15 @@ 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 $properties (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getAsyncWithHttpInfo($environment, $path) + public function getAsyncWithHttpInfo($environment, $path, $properties = null) { $returnType = '\HubSpot\Client\Cms\SourceCode\Model\AssetFileMetadata'; - $request = $this->getRequest($environment, $path); + $request = $this->getRequest($environment, $path, $properties); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -334,11 +338,12 @@ 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 $properties (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getRequest($environment, $path) + public function getRequest($environment, $path, $properties = null) { // verify the required parameter 'environment' is set if ($environment === null || (is_array($environment) && count($environment) === 0)) { @@ -364,6 +369,15 @@ public function getRequest($environment, $path) $httpBody = ''; $multipart = false; + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $properties, + 'properties', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); // path params diff --git a/codegen/Cms/SourceCode/Api/SourceCodeExtractApi.php b/codegen/Cms/SourceCode/Api/SourceCodeExtractApi.php index dc343042..3d31bbc7 100644 --- a/codegen/Cms/SourceCode/Api/SourceCodeExtractApi.php +++ b/codegen/Cms/SourceCode/Api/SourceCodeExtractApi.php @@ -347,12 +347,12 @@ public function doAsyncRequest($file_extract_request) if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( - ['*/*'] + ['application/json', '*/*'] ); } else { $headers = $this->headerSelector->selectHeaders( - ['*/*'], - [] + ['application/json', '*/*'], + ['application/json'] ); } @@ -652,11 +652,11 @@ public function getAsyncStatusRequest($task_id) if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( - ['*/*'] + ['application/json', '*/*'] ); } else { $headers = $this->headerSelector->selectHeaders( - ['*/*'], + ['application/json', '*/*'], [] ); } diff --git a/codegen/Cms/SourceCode/Model/ActionResponse.php b/codegen/Cms/SourceCode/Model/ActionResponse.php index 99e546c1..d1cc85a5 100644 --- a/codegen/Cms/SourceCode/Model/ActionResponse.php +++ b/codegen/Cms/SourceCode/Model/ActionResponse.php @@ -57,11 +57,11 @@ class ActionResponse implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', + 'completed_at' => '\DateTime', 'requested_at' => '\DateTime', 'started_at' => '\DateTime', - 'completed_at' => '\DateTime', - 'links' => 'array' + 'links' => 'array', + 'status' => 'string' ]; /** @@ -72,11 +72,11 @@ class ActionResponse implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'status' => null, + 'completed_at' => 'date-time', 'requested_at' => 'date-time', 'started_at' => 'date-time', - 'completed_at' => 'date-time', - 'links' => null + 'links' => null, + 'status' => null ]; /** @@ -106,11 +106,11 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'status' => 'status', + 'completed_at' => 'completedAt', 'requested_at' => 'requestedAt', 'started_at' => 'startedAt', - 'completed_at' => 'completedAt', - 'links' => 'links' + 'links' => 'links', + 'status' => 'status' ]; /** @@ -119,11 +119,11 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'status' => 'setStatus', + 'completed_at' => 'setCompletedAt', 'requested_at' => 'setRequestedAt', 'started_at' => 'setStartedAt', - 'completed_at' => 'setCompletedAt', - 'links' => 'setLinks' + 'links' => 'setLinks', + 'status' => 'setStatus' ]; /** @@ -132,11 +132,11 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'status' => 'getStatus', + 'completed_at' => 'getCompletedAt', 'requested_at' => 'getRequestedAt', 'started_at' => 'getStartedAt', - 'completed_at' => 'getCompletedAt', - 'links' => 'getLinks' + 'links' => 'getLinks', + 'status' => 'getStatus' ]; /** @@ -215,11 +215,11 @@ public function getStatusAllowableValues() */ public function __construct(array $data = null) { - $this->container['status'] = $data['status'] ?? null; + $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['requested_at'] = $data['requested_at'] ?? null; $this->container['started_at'] = $data['started_at'] ?? null; - $this->container['completed_at'] = $data['completed_at'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['status'] = $data['status'] ?? null; } /** @@ -231,6 +231,12 @@ public function listInvalidProperties() { $invalidProperties = []; + 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['status'] === null) { $invalidProperties[] = "'status' can't be null"; } @@ -243,12 +249,6 @@ public function listInvalidProperties() ); } - if ($this->container['started_at'] === null) { - $invalidProperties[] = "'started_at' can't be null"; - } - if ($this->container['completed_at'] === null) { - $invalidProperties[] = "'completed_at' can't be null"; - } return $invalidProperties; } @@ -265,35 +265,25 @@ public function valid() /** - * Gets status + * Gets completed_at * - * @return string + * @return \DateTime */ - public function getStatus() + public function getCompletedAt() { - return $this->container['status']; + return $this->container['completed_at']; } /** - * Sets status + * Sets completed_at * - * @param string $status status + * @param \DateTime $completed_at completed_at * * @return self */ - public function setStatus($status) + public function setCompletedAt($completed_at) { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } - $this->container['status'] = $status; + $this->container['completed_at'] = $completed_at; return $this; } @@ -347,49 +337,59 @@ public function setStartedAt($started_at) } /** - * Gets completed_at + * Gets links * - * @return \DateTime + * @return array|null */ - public function getCompletedAt() + public function getLinks() { - return $this->container['completed_at']; + return $this->container['links']; } /** - * Sets completed_at + * Sets links * - * @param \DateTime $completed_at completed_at + * @param array|null $links links * * @return self */ - public function setCompletedAt($completed_at) + public function setLinks($links) { - $this->container['completed_at'] = $completed_at; + $this->container['links'] = $links; return $this; } /** - * Gets links + * Gets status * - * @return array|null + * @return string */ - public function getLinks() + public function getStatus() { - return $this->container['links']; + return $this->container['status']; } /** - * Sets links + * Sets status * - * @param array|null $links links + * @param string $status status * * @return self */ - public function setLinks($links) + public function setStatus($status) { - $this->container['links'] = $links; + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'status', must be one of '%s'", + $status, + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; return $this; } diff --git a/codegen/Cms/SourceCode/Model/AssetFileMetadata.php b/codegen/Cms/SourceCode/Model/AssetFileMetadata.php index c70f1a76..84f4fb2a 100644 --- a/codegen/Cms/SourceCode/Model/AssetFileMetadata.php +++ b/codegen/Cms/SourceCode/Model/AssetFileMetadata.php @@ -58,13 +58,14 @@ class AssetFileMetadata implements ModelInterface, ArrayAccess, \JsonSerializabl * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', - 'name' => 'string', + 'created_at' => 'int', + 'archived_at' => 'int', 'folder' => 'bool', 'children' => 'string[]', - 'updated_at' => 'int', - 'created_at' => 'int', - 'archived_at' => 'int' + 'name' => 'string', + 'id' => 'string', + 'hash' => 'string', + 'updated_at' => 'int' ]; /** @@ -75,13 +76,14 @@ class AssetFileMetadata implements ModelInterface, ArrayAccess, \JsonSerializabl * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, - 'name' => null, + 'created_at' => 'int32', + 'archived_at' => 'int64', 'folder' => null, 'children' => null, - 'updated_at' => 'int32', - 'created_at' => 'int32', - 'archived_at' => 'int64' + 'name' => null, + 'id' => null, + 'hash' => null, + 'updated_at' => 'int32' ]; /** @@ -111,13 +113,14 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', - 'name' => 'name', + 'created_at' => 'createdAt', + 'archived_at' => 'archivedAt', 'folder' => 'folder', 'children' => 'children', - 'updated_at' => 'updatedAt', - 'created_at' => 'createdAt', - 'archived_at' => 'archivedAt' + 'name' => 'name', + 'id' => 'id', + 'hash' => 'hash', + 'updated_at' => 'updatedAt' ]; /** @@ -126,13 +129,14 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', - 'name' => 'setName', + 'created_at' => 'setCreatedAt', + 'archived_at' => 'setArchivedAt', 'folder' => 'setFolder', 'children' => 'setChildren', - 'updated_at' => 'setUpdatedAt', - 'created_at' => 'setCreatedAt', - 'archived_at' => 'setArchivedAt' + 'name' => 'setName', + 'id' => 'setId', + 'hash' => 'setHash', + 'updated_at' => 'setUpdatedAt' ]; /** @@ -141,13 +145,14 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', - 'name' => 'getName', + 'created_at' => 'getCreatedAt', + 'archived_at' => 'getArchivedAt', 'folder' => 'getFolder', 'children' => 'getChildren', - 'updated_at' => 'getUpdatedAt', - 'created_at' => 'getCreatedAt', - 'archived_at' => 'getArchivedAt' + 'name' => 'getName', + 'id' => 'getId', + 'hash' => 'getHash', + 'updated_at' => 'getUpdatedAt' ]; /** @@ -207,13 +212,14 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; - $this->container['name'] = $data['name'] ?? null; + $this->container['created_at'] = $data['created_at'] ?? null; + $this->container['archived_at'] = $data['archived_at'] ?? null; $this->container['folder'] = $data['folder'] ?? null; $this->container['children'] = $data['children'] ?? null; + $this->container['name'] = $data['name'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['hash'] = $data['hash'] ?? null; $this->container['updated_at'] = $data['updated_at'] ?? null; - $this->container['created_at'] = $data['created_at'] ?? null; - $this->container['archived_at'] = $data['archived_at'] ?? null; } /** @@ -225,21 +231,21 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; + if ($this->container['created_at'] === null) { + $invalidProperties[] = "'created_at' can't be null"; + } + if ($this->container['folder'] === null) { + $invalidProperties[] = "'folder' can't be null"; } if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } - if ($this->container['folder'] === null) { - $invalidProperties[] = "'folder' can't be null"; + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } if ($this->container['updated_at'] === null) { $invalidProperties[] = "'updated_at' can't be null"; } - if ($this->container['created_at'] === null) { - $invalidProperties[] = "'created_at' can't be null"; - } return $invalidProperties; } @@ -256,49 +262,49 @@ public function valid() /** - * Gets id + * Gets created_at * - * @return string + * @return int */ - public function getId() + public function getCreatedAt() { - return $this->container['id']; + return $this->container['created_at']; } /** - * Sets id + * Sets created_at * - * @param string $id The path of the file in the CMS Developer File System. + * @param int $created_at Timestamp of when the object was first created. * * @return self */ - public function setId($id) + public function setCreatedAt($created_at) { - $this->container['id'] = $id; + $this->container['created_at'] = $created_at; return $this; } /** - * Gets name + * Gets archived_at * - * @return string + * @return int|null */ - public function getName() + public function getArchivedAt() { - return $this->container['name']; + return $this->container['archived_at']; } /** - * Sets name + * Sets archived_at * - * @param string $name The name of the file. + * @param int|null $archived_at Timestamp of when the object was archived (deleted). * * @return self */ - public function setName($name) + public function setArchivedAt($archived_at) { - $this->container['name'] = $name; + $this->container['archived_at'] = $archived_at; return $this; } @@ -352,73 +358,97 @@ public function setChildren($children) } /** - * Gets updated_at + * Gets name * - * @return int + * @return string */ - public function getUpdatedAt() + public function getName() { - return $this->container['updated_at']; + return $this->container['name']; } /** - * Sets updated_at + * Sets name * - * @param int $updated_at Timestamp of when the object was last updated. + * @param string $name The name of the file. * * @return self */ - public function setUpdatedAt($updated_at) + public function setName($name) { - $this->container['updated_at'] = $updated_at; + $this->container['name'] = $name; return $this; } /** - * Gets created_at + * Gets id * - * @return int + * @return string */ - public function getCreatedAt() + public function getId() { - return $this->container['created_at']; + return $this->container['id']; } /** - * Sets created_at + * Sets id * - * @param int $created_at Timestamp of when the object was first created. + * @param string $id The path of the file in the CMS Developer File System. * * @return self */ - public function setCreatedAt($created_at) + public function setId($id) { - $this->container['created_at'] = $created_at; + $this->container['id'] = $id; return $this; } /** - * Gets archived_at + * Gets hash * - * @return int|null + * @return string|null */ - public function getArchivedAt() + public function getHash() { - return $this->container['archived_at']; + return $this->container['hash']; } /** - * Sets archived_at + * Sets hash * - * @param int|null $archived_at Timestamp of when the object was archived (deleted). + * @param string|null $hash hash * * @return self */ - public function setArchivedAt($archived_at) + public function setHash($hash) { - $this->container['archived_at'] = $archived_at; + $this->container['hash'] = $hash; + + return $this; + } + + /** + * Gets updated_at + * + * @return int + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param int $updated_at Timestamp of when the object was last updated. + * + * @return self + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; return $this; } diff --git a/codegen/Cms/SourceCode/Model/Error.php b/codegen/Cms/SourceCode/Model/Error.php index 13f325b5..da58f3eb 100644 --- a/codegen/Cms/SourceCode/Model/Error.php +++ b/codegen/Cms/SourceCode/Model/Error.php @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'correlation_id' => 'string', - 'category' => 'string', 'sub_category' => 'string', - 'errors' => '\HubSpot\Client\Cms\SourceCode\Model\ErrorDetail[]', 'context' => 'array', - 'links' => 'array' + 'correlation_id' => 'string', + 'links' => 'array', + 'message' => 'string', + 'category' => 'string', + 'errors' => '\HubSpot\Client\Cms\SourceCode\Model\ErrorDetail[]' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'correlation_id' => 'uuid', - 'category' => null, 'sub_category' => null, - 'errors' => null, 'context' => null, - 'links' => null + 'correlation_id' => 'uuid', + 'links' => null, + 'message' => null, + 'category' => null, + 'errors' => null ]; /** @@ -110,13 +110,13 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'correlation_id' => 'correlationId', - 'category' => 'category', 'sub_category' => 'subCategory', - 'errors' => 'errors', 'context' => 'context', - 'links' => 'links' + 'correlation_id' => 'correlationId', + 'links' => 'links', + 'message' => 'message', + 'category' => 'category', + 'errors' => 'errors' ]; /** @@ -125,13 +125,13 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'correlation_id' => 'setCorrelationId', - 'category' => 'setCategory', 'sub_category' => 'setSubCategory', - 'errors' => 'setErrors', 'context' => 'setContext', - 'links' => 'setLinks' + 'correlation_id' => 'setCorrelationId', + 'links' => 'setLinks', + 'message' => 'setMessage', + 'category' => 'setCategory', + 'errors' => 'setErrors' ]; /** @@ -140,13 +140,13 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'correlation_id' => 'getCorrelationId', - 'category' => 'getCategory', 'sub_category' => 'getSubCategory', - 'errors' => 'getErrors', 'context' => 'getContext', - 'links' => 'getLinks' + 'correlation_id' => 'getCorrelationId', + 'links' => 'getLinks', + 'message' => 'getMessage', + 'category' => 'getCategory', + 'errors' => 'getErrors' ]; /** @@ -206,13 +206,13 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['correlation_id'] = $data['correlation_id'] ?? null; - $this->container['category'] = $data['category'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['correlation_id'] = $data['correlation_id'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['message'] = $data['message'] ?? null; + $this->container['category'] = $data['category'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; } /** @@ -224,12 +224,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' 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"; } @@ -249,169 +249,169 @@ public function valid() /** - * 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) { - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets correlation_id + * Gets context * - * @return string + * @return array|null */ - public function getCorrelationId() + public function getContext() { - return $this->container['correlation_id']; + return $this->container['context']; } /** - * Sets correlation_id + * Sets context * - * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets + * @param array|null $context Context about the error condition * * @return self */ - public function setCorrelationId($correlation_id) + public function setContext($context) { - $this->container['correlation_id'] = $correlation_id; + $this->container['context'] = $context; return $this; } /** - * Gets category + * Gets correlation_id * * @return string */ - public function getCategory() + public function getCorrelationId() { - return $this->container['category']; + return $this->container['correlation_id']; } /** - * Sets category + * Sets correlation_id * - * @param string $category The error category + * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets * * @return self */ - public function setCategory($category) + public function setCorrelationId($correlation_id) { - $this->container['category'] = $category; + $this->container['correlation_id'] = $correlation_id; return $this; } /** - * Gets sub_category + * Gets links * - * @return string|null + * @return array|null */ - public function getSubCategory() + public function getLinks() { - return $this->container['sub_category']; + return $this->container['links']; } /** - * Sets sub_category + * Sets links * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps * * @return self */ - public function setSubCategory($sub_category) + public function setLinks($links) { - $this->container['sub_category'] = $sub_category; + $this->container['links'] = $links; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\SourceCode\Model\ErrorDetail[]|null + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\SourceCode\Model\ErrorDetail[]|null $errors further information about the error + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets category * - * @return array|null + * @return string */ - public function getContext() + public function getCategory() { - return $this->container['context']; + return $this->container['category']; } /** - * Sets context + * Sets category * - * @param array|null $context Context about the error condition + * @param string $category The error category * * @return self */ - public function setContext($context) + public function setCategory($category) { - $this->container['context'] = $context; + $this->container['category'] = $category; return $this; } /** - * Gets links + * Gets errors * - * @return array|null + * @return \HubSpot\Client\Cms\SourceCode\Model\ErrorDetail[]|null */ - public function getLinks() + public function getErrors() { - return $this->container['links']; + return $this->container['errors']; } /** - * Sets links + * Sets errors * - * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps + * @param \HubSpot\Client\Cms\SourceCode\Model\ErrorDetail[]|null $errors further information about the error * * @return self */ - public function setLinks($links) + public function setErrors($errors) { - $this->container['links'] = $links; + $this->container['errors'] = $errors; return $this; } diff --git a/codegen/Cms/SourceCode/Model/ErrorDetail.php b/codegen/Cms/SourceCode/Model/ErrorDetail.php index df5f43e0..dc7ef947 100644 --- a/codegen/Cms/SourceCode/Model/ErrorDetail.php +++ b/codegen/Cms/SourceCode/Model/ErrorDetail.php @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'in' => 'string', - 'code' => 'string', 'sub_category' => 'string', - 'context' => 'array' + 'code' => 'string', + 'in' => 'string', + 'context' => 'array', + 'message' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'in' => null, - 'code' => null, 'sub_category' => null, - 'context' => null + 'code' => null, + 'in' => null, + 'context' => null, + 'message' => null ]; /** @@ -106,11 +106,11 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'in' => 'in', - 'code' => 'code', 'sub_category' => 'subCategory', - 'context' => 'context' + 'code' => 'code', + 'in' => 'in', + 'context' => 'context', + 'message' => 'message' ]; /** @@ -119,11 +119,11 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'in' => 'setIn', - 'code' => 'setCode', 'sub_category' => 'setSubCategory', - 'context' => 'setContext' + 'code' => 'setCode', + 'in' => 'setIn', + 'context' => 'setContext', + 'message' => 'setMessage' ]; /** @@ -132,11 +132,11 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'in' => 'getIn', - 'code' => 'getCode', 'sub_category' => 'getSubCategory', - 'context' => 'getContext' + 'code' => 'getCode', + 'in' => 'getIn', + 'context' => 'getContext', + 'message' => 'getMessage' ]; /** @@ -196,11 +196,11 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['in'] = $data['in'] ?? null; - $this->container['code'] = $data['code'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['code'] = $data['code'] ?? null; + $this->container['in'] = $data['in'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['message'] = $data['message'] ?? null; } /** @@ -231,49 +231,25 @@ public function valid() /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A human readable message describing the error along with remediation steps where appropriate - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - - /** - * Gets in + * Gets sub_category * * @return string|null */ - public function getIn() + public function getSubCategory() { - return $this->container['in']; + return $this->container['sub_category']; } /** - * Sets in + * Sets sub_category * - * @param string|null $in The name of the field or parameter in which the error was found. + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setIn($in) + public function setSubCategory($sub_category) { - $this->container['in'] = $in; + $this->container['sub_category'] = $sub_category; return $this; } @@ -303,25 +279,25 @@ public function setCode($code) } /** - * Gets sub_category + * Gets in * * @return string|null */ - public function getSubCategory() + public function getIn() { - return $this->container['sub_category']; + return $this->container['in']; } /** - * Sets sub_category + * Sets in * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $in The name of the field or parameter in which the error was found. * * @return self */ - public function setSubCategory($sub_category) + public function setIn($in) { - $this->container['sub_category'] = $sub_category; + $this->container['in'] = $in; return $this; } @@ -349,6 +325,30 @@ public function setContext($context) return $this; } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message A human readable message describing the error along with remediation steps where appropriate + * + * @return self + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/SourceCode/Model/TaskLocator.php b/codegen/Cms/SourceCode/Model/TaskLocator.php index b25c3e6a..0acf3f52 100644 --- a/codegen/Cms/SourceCode/Model/TaskLocator.php +++ b/codegen/Cms/SourceCode/Model/TaskLocator.php @@ -57,8 +57,8 @@ class TaskLocator implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', - 'links' => 'array' + 'links' => 'array', + 'id' => 'string' ]; /** @@ -69,8 +69,8 @@ class TaskLocator implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null, - 'links' => null + 'links' => null, + 'id' => null ]; /** @@ -100,8 +100,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', - 'links' => 'links' + 'links' => 'links', + 'id' => 'id' ]; /** @@ -110,8 +110,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', - 'links' => 'setLinks' + 'links' => 'setLinks', + 'id' => 'setId' ]; /** @@ -120,8 +120,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', - 'links' => 'getLinks' + 'links' => 'getLinks', + 'id' => 'getId' ]; /** @@ -181,8 +181,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['id'] = $data['id'] ?? null; } /** @@ -213,49 +213,49 @@ public function valid() /** - * Gets id + * Gets links * - * @return string + * @return array|null */ - public function getId() + public function getLinks() { - return $this->container['id']; + return $this->container['links']; } /** - * Sets id + * Sets links * - * @param string $id id + * @param array|null $links links * * @return self */ - public function setId($id) + public function setLinks($links) { - $this->container['id'] = $id; + $this->container['links'] = $links; return $this; } /** - * Gets links + * Gets id * - * @return array|null + * @return string */ - public function getLinks() + public function getId() { - return $this->container['links']; + return $this->container['id']; } /** - * Sets links + * Sets id * - * @param array|null $links links + * @param string $id id * * @return self */ - public function setLinks($links) + public function setId($id) { - $this->container['links'] = $links; + $this->container['id'] = $id; return $this; } diff --git a/codegen/Cms/UrlRedirects/Api/RedirectsApi.php b/codegen/Cms/UrlRedirects/Api/RedirectsApi.php index ac8ad9ce..7d192584 100644 --- a/codegen/Cms/UrlRedirects/Api/RedirectsApi.php +++ b/codegen/Cms/UrlRedirects/Api/RedirectsApi.php @@ -10,7 +10,7 @@ */ /** - * URL redirects + * CMS Url Redirects * * URL redirect operations * diff --git a/codegen/Cms/UrlRedirects/ApiException.php b/codegen/Cms/UrlRedirects/ApiException.php index eb0ecb89..29f7cd37 100644 --- a/codegen/Cms/UrlRedirects/ApiException.php +++ b/codegen/Cms/UrlRedirects/ApiException.php @@ -10,7 +10,7 @@ */ /** - * URL redirects + * CMS Url Redirects * * URL redirect operations * diff --git a/codegen/Cms/UrlRedirects/Configuration.php b/codegen/Cms/UrlRedirects/Configuration.php index 56bf304d..c218b232 100644 --- a/codegen/Cms/UrlRedirects/Configuration.php +++ b/codegen/Cms/UrlRedirects/Configuration.php @@ -10,7 +10,7 @@ */ /** - * URL redirects + * CMS Url Redirects * * URL redirect operations * diff --git a/codegen/Cms/UrlRedirects/HeaderSelector.php b/codegen/Cms/UrlRedirects/HeaderSelector.php index bf1af867..e3b9dcf3 100644 --- a/codegen/Cms/UrlRedirects/HeaderSelector.php +++ b/codegen/Cms/UrlRedirects/HeaderSelector.php @@ -10,7 +10,7 @@ */ /** - * URL redirects + * CMS Url Redirects * * URL redirect operations * diff --git a/codegen/Cms/UrlRedirects/Model/CollectionResponseWithTotalUrlMappingForwardPaging.php b/codegen/Cms/UrlRedirects/Model/CollectionResponseWithTotalUrlMappingForwardPaging.php index d65c1a8e..9bf83a61 100644 --- a/codegen/Cms/UrlRedirects/Model/CollectionResponseWithTotalUrlMappingForwardPaging.php +++ b/codegen/Cms/UrlRedirects/Model/CollectionResponseWithTotalUrlMappingForwardPaging.php @@ -11,7 +11,7 @@ */ /** - * URL redirects + * CMS Url Redirects * * URL redirect operations * @@ -58,8 +58,8 @@ class CollectionResponseWithTotalUrlMappingForwardPaging implements ModelInterfa */ protected static $openAPITypes = [ 'total' => 'int', - 'results' => '\HubSpot\Client\Cms\UrlRedirects\Model\UrlMapping[]', - 'paging' => '\HubSpot\Client\Cms\UrlRedirects\Model\ForwardPaging' + 'paging' => '\HubSpot\Client\Cms\UrlRedirects\Model\ForwardPaging', + 'results' => '\HubSpot\Client\Cms\UrlRedirects\Model\UrlMapping[]' ]; /** @@ -71,8 +71,8 @@ class CollectionResponseWithTotalUrlMappingForwardPaging implements ModelInterfa */ protected static $openAPIFormats = [ 'total' => 'int32', - 'results' => null, - 'paging' => null + 'paging' => null, + 'results' => null ]; /** @@ -103,8 +103,8 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'total' => 'total', - 'results' => 'results', - 'paging' => 'paging' + 'paging' => 'paging', + 'results' => 'results' ]; /** @@ -114,8 +114,8 @@ public static function openAPIFormats() */ protected static $setters = [ 'total' => 'setTotal', - 'results' => 'setResults', - 'paging' => 'setPaging' + 'paging' => 'setPaging', + 'results' => 'setResults' ]; /** @@ -125,8 +125,8 @@ public static function openAPIFormats() */ protected static $getters = [ 'total' => 'getTotal', - 'results' => 'getResults', - 'paging' => 'getPaging' + 'paging' => 'getPaging', + 'results' => 'getResults' ]; /** @@ -187,8 +187,8 @@ public function getModelName() public function __construct(array $data = null) { $this->container['total'] = $data['total'] ?? null; - $this->container['results'] = $data['results'] ?? null; $this->container['paging'] = $data['paging'] ?? null; + $this->container['results'] = $data['results'] ?? null; } /** @@ -246,49 +246,49 @@ public function setTotal($total) } /** - * Gets results + * Gets paging * - * @return \HubSpot\Client\Cms\UrlRedirects\Model\UrlMapping[] + * @return \HubSpot\Client\Cms\UrlRedirects\Model\ForwardPaging|null */ - public function getResults() + public function getPaging() { - return $this->container['results']; + return $this->container['paging']; } /** - * Sets results + * Sets paging * - * @param \HubSpot\Client\Cms\UrlRedirects\Model\UrlMapping[] $results results + * @param \HubSpot\Client\Cms\UrlRedirects\Model\ForwardPaging|null $paging paging * * @return self */ - public function setResults($results) + public function setPaging($paging) { - $this->container['results'] = $results; + $this->container['paging'] = $paging; return $this; } /** - * Gets paging + * Gets results * - * @return \HubSpot\Client\Cms\UrlRedirects\Model\ForwardPaging|null + * @return \HubSpot\Client\Cms\UrlRedirects\Model\UrlMapping[] */ - public function getPaging() + public function getResults() { - return $this->container['paging']; + return $this->container['results']; } /** - * Sets paging + * Sets results * - * @param \HubSpot\Client\Cms\UrlRedirects\Model\ForwardPaging|null $paging paging + * @param \HubSpot\Client\Cms\UrlRedirects\Model\UrlMapping[] $results results * * @return self */ - public function setPaging($paging) + public function setResults($results) { - $this->container['paging'] = $paging; + $this->container['results'] = $results; return $this; } diff --git a/codegen/Cms/UrlRedirects/Model/Error.php b/codegen/Cms/UrlRedirects/Model/Error.php index a11f5cb7..8386675a 100644 --- a/codegen/Cms/UrlRedirects/Model/Error.php +++ b/codegen/Cms/UrlRedirects/Model/Error.php @@ -11,7 +11,7 @@ */ /** - * URL redirects + * CMS Url Redirects * * URL redirect operations * @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'correlation_id' => 'string', - 'category' => 'string', 'sub_category' => 'string', - 'errors' => '\HubSpot\Client\Cms\UrlRedirects\Model\ErrorDetail[]', 'context' => 'array', - 'links' => 'array' + 'correlation_id' => 'string', + 'links' => 'array', + 'message' => 'string', + 'category' => 'string', + 'errors' => '\HubSpot\Client\Cms\UrlRedirects\Model\ErrorDetail[]' ]; /** @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'correlation_id' => 'uuid', - 'category' => null, 'sub_category' => null, - 'errors' => null, 'context' => null, - 'links' => null + 'correlation_id' => 'uuid', + 'links' => null, + 'message' => null, + 'category' => null, + 'errors' => null ]; /** @@ -110,13 +110,13 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'correlation_id' => 'correlationId', - 'category' => 'category', 'sub_category' => 'subCategory', - 'errors' => 'errors', 'context' => 'context', - 'links' => 'links' + 'correlation_id' => 'correlationId', + 'links' => 'links', + 'message' => 'message', + 'category' => 'category', + 'errors' => 'errors' ]; /** @@ -125,13 +125,13 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'correlation_id' => 'setCorrelationId', - 'category' => 'setCategory', 'sub_category' => 'setSubCategory', - 'errors' => 'setErrors', 'context' => 'setContext', - 'links' => 'setLinks' + 'correlation_id' => 'setCorrelationId', + 'links' => 'setLinks', + 'message' => 'setMessage', + 'category' => 'setCategory', + 'errors' => 'setErrors' ]; /** @@ -140,13 +140,13 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'correlation_id' => 'getCorrelationId', - 'category' => 'getCategory', 'sub_category' => 'getSubCategory', - 'errors' => 'getErrors', 'context' => 'getContext', - 'links' => 'getLinks' + 'correlation_id' => 'getCorrelationId', + 'links' => 'getLinks', + 'message' => 'getMessage', + 'category' => 'getCategory', + 'errors' => 'getErrors' ]; /** @@ -206,13 +206,13 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['correlation_id'] = $data['correlation_id'] ?? null; - $this->container['category'] = $data['category'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; - $this->container['errors'] = $data['errors'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['correlation_id'] = $data['correlation_id'] ?? null; $this->container['links'] = $data['links'] ?? null; + $this->container['message'] = $data['message'] ?? null; + $this->container['category'] = $data['category'] ?? null; + $this->container['errors'] = $data['errors'] ?? null; } /** @@ -224,12 +224,12 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' 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"; } @@ -249,169 +249,169 @@ public function valid() /** - * 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) { - $this->container['message'] = $message; + $this->container['sub_category'] = $sub_category; return $this; } /** - * Gets correlation_id + * Gets context * - * @return string + * @return array|null */ - public function getCorrelationId() + public function getContext() { - return $this->container['correlation_id']; + return $this->container['context']; } /** - * Sets correlation_id + * Sets context * - * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets + * @param array|null $context Context about the error condition * * @return self */ - public function setCorrelationId($correlation_id) + public function setContext($context) { - $this->container['correlation_id'] = $correlation_id; + $this->container['context'] = $context; return $this; } /** - * Gets category + * Gets correlation_id * * @return string */ - public function getCategory() + public function getCorrelationId() { - return $this->container['category']; + return $this->container['correlation_id']; } /** - * Sets category + * Sets correlation_id * - * @param string $category The error category + * @param string $correlation_id A unique identifier for the request. Include this value with any error reports or support tickets * * @return self */ - public function setCategory($category) + public function setCorrelationId($correlation_id) { - $this->container['category'] = $category; + $this->container['correlation_id'] = $correlation_id; return $this; } /** - * Gets sub_category + * Gets links * - * @return string|null + * @return array|null */ - public function getSubCategory() + public function getLinks() { - return $this->container['sub_category']; + return $this->container['links']; } /** - * Sets sub_category + * Sets links * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps * * @return self */ - public function setSubCategory($sub_category) + public function setLinks($links) { - $this->container['sub_category'] = $sub_category; + $this->container['links'] = $links; return $this; } /** - * Gets errors + * Gets message * - * @return \HubSpot\Client\Cms\UrlRedirects\Model\ErrorDetail[]|null + * @return string */ - public function getErrors() + public function getMessage() { - return $this->container['errors']; + return $this->container['message']; } /** - * Sets errors + * Sets message * - * @param \HubSpot\Client\Cms\UrlRedirects\Model\ErrorDetail[]|null $errors further information about the error + * @param string $message A human readable message describing the error along with remediation steps where appropriate * * @return self */ - public function setErrors($errors) + public function setMessage($message) { - $this->container['errors'] = $errors; + $this->container['message'] = $message; return $this; } /** - * Gets context + * Gets category * - * @return array|null + * @return string */ - public function getContext() + public function getCategory() { - return $this->container['context']; + return $this->container['category']; } /** - * Sets context + * Sets category * - * @param array|null $context Context about the error condition + * @param string $category The error category * * @return self */ - public function setContext($context) + public function setCategory($category) { - $this->container['context'] = $context; + $this->container['category'] = $category; return $this; } /** - * Gets links + * Gets errors * - * @return array|null + * @return \HubSpot\Client\Cms\UrlRedirects\Model\ErrorDetail[]|null */ - public function getLinks() + public function getErrors() { - return $this->container['links']; + return $this->container['errors']; } /** - * Sets links + * Sets errors * - * @param array|null $links A map of link names to associated URIs containing documentation about the error or recommended remediation steps + * @param \HubSpot\Client\Cms\UrlRedirects\Model\ErrorDetail[]|null $errors further information about the error * * @return self */ - public function setLinks($links) + public function setErrors($errors) { - $this->container['links'] = $links; + $this->container['errors'] = $errors; return $this; } diff --git a/codegen/Cms/UrlRedirects/Model/ErrorDetail.php b/codegen/Cms/UrlRedirects/Model/ErrorDetail.php index c86ae03b..4e39e6f7 100644 --- a/codegen/Cms/UrlRedirects/Model/ErrorDetail.php +++ b/codegen/Cms/UrlRedirects/Model/ErrorDetail.php @@ -11,7 +11,7 @@ */ /** - * URL redirects + * CMS Url Redirects * * URL redirect operations * @@ -57,11 +57,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'in' => 'string', - 'code' => 'string', 'sub_category' => 'string', - 'context' => 'array' + 'code' => 'string', + 'in' => 'string', + 'context' => 'array', + 'message' => 'string' ]; /** @@ -72,11 +72,11 @@ class ErrorDetail implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'in' => null, - 'code' => null, 'sub_category' => null, - 'context' => null + 'code' => null, + 'in' => null, + 'context' => null, + 'message' => null ]; /** @@ -106,11 +106,11 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'in' => 'in', - 'code' => 'code', 'sub_category' => 'subCategory', - 'context' => 'context' + 'code' => 'code', + 'in' => 'in', + 'context' => 'context', + 'message' => 'message' ]; /** @@ -119,11 +119,11 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'in' => 'setIn', - 'code' => 'setCode', 'sub_category' => 'setSubCategory', - 'context' => 'setContext' + 'code' => 'setCode', + 'in' => 'setIn', + 'context' => 'setContext', + 'message' => 'setMessage' ]; /** @@ -132,11 +132,11 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'in' => 'getIn', - 'code' => 'getCode', 'sub_category' => 'getSubCategory', - 'context' => 'getContext' + 'code' => 'getCode', + 'in' => 'getIn', + 'context' => 'getContext', + 'message' => 'getMessage' ]; /** @@ -196,11 +196,11 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['message'] = $data['message'] ?? null; - $this->container['in'] = $data['in'] ?? null; - $this->container['code'] = $data['code'] ?? null; $this->container['sub_category'] = $data['sub_category'] ?? null; + $this->container['code'] = $data['code'] ?? null; + $this->container['in'] = $data['in'] ?? null; $this->container['context'] = $data['context'] ?? null; + $this->container['message'] = $data['message'] ?? null; } /** @@ -231,49 +231,25 @@ public function valid() /** - * Gets message - * - * @return string - */ - public function getMessage() - { - return $this->container['message']; - } - - /** - * Sets message - * - * @param string $message A human readable message describing the error along with remediation steps where appropriate - * - * @return self - */ - public function setMessage($message) - { - $this->container['message'] = $message; - - return $this; - } - - /** - * Gets in + * Gets sub_category * * @return string|null */ - public function getIn() + public function getSubCategory() { - return $this->container['in']; + return $this->container['sub_category']; } /** - * Sets in + * Sets sub_category * - * @param string|null $in The name of the field or parameter in which the error was found. + * @param string|null $sub_category A specific category that contains more specific detail about the error * * @return self */ - public function setIn($in) + public function setSubCategory($sub_category) { - $this->container['in'] = $in; + $this->container['sub_category'] = $sub_category; return $this; } @@ -303,25 +279,25 @@ public function setCode($code) } /** - * Gets sub_category + * Gets in * * @return string|null */ - public function getSubCategory() + public function getIn() { - return $this->container['sub_category']; + return $this->container['in']; } /** - * Sets sub_category + * Sets in * - * @param string|null $sub_category A specific category that contains more specific detail about the error + * @param string|null $in The name of the field or parameter in which the error was found. * * @return self */ - public function setSubCategory($sub_category) + public function setIn($in) { - $this->container['sub_category'] = $sub_category; + $this->container['in'] = $in; return $this; } @@ -349,6 +325,30 @@ public function setContext($context) return $this; } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message A human readable message describing the error along with remediation steps where appropriate + * + * @return self + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/codegen/Cms/UrlRedirects/Model/ForwardPaging.php b/codegen/Cms/UrlRedirects/Model/ForwardPaging.php index 0586a024..0bc3be3f 100644 --- a/codegen/Cms/UrlRedirects/Model/ForwardPaging.php +++ b/codegen/Cms/UrlRedirects/Model/ForwardPaging.php @@ -11,7 +11,7 @@ */ /** - * URL redirects + * CMS Url Redirects * * URL redirect operations * diff --git a/codegen/Cms/UrlRedirects/Model/ModelInterface.php b/codegen/Cms/UrlRedirects/Model/ModelInterface.php index e4f15c2b..6992c9d2 100644 --- a/codegen/Cms/UrlRedirects/Model/ModelInterface.php +++ b/codegen/Cms/UrlRedirects/Model/ModelInterface.php @@ -11,7 +11,7 @@ */ /** - * URL redirects + * CMS Url Redirects * * URL redirect operations * diff --git a/codegen/Cms/UrlRedirects/Model/NextPage.php b/codegen/Cms/UrlRedirects/Model/NextPage.php index 7331ecc8..7a737993 100644 --- a/codegen/Cms/UrlRedirects/Model/NextPage.php +++ b/codegen/Cms/UrlRedirects/Model/NextPage.php @@ -11,7 +11,7 @@ */ /** - * URL redirects + * CMS Url Redirects * * URL redirect operations * @@ -57,8 +57,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'after' => 'string', - 'link' => 'string' + 'link' => 'string', + 'after' => 'string' ]; /** @@ -69,8 +69,8 @@ class NextPage implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'after' => null, - 'link' => null + 'link' => null, + 'after' => null ]; /** @@ -100,8 +100,8 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'after' => 'after', - 'link' => 'link' + 'link' => 'link', + 'after' => 'after' ]; /** @@ -110,8 +110,8 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'after' => 'setAfter', - 'link' => 'setLink' + 'link' => 'setLink', + 'after' => 'setAfter' ]; /** @@ -120,8 +120,8 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'after' => 'getAfter', - 'link' => 'getLink' + 'link' => 'getLink', + 'after' => 'getAfter' ]; /** @@ -181,8 +181,8 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['after'] = $data['after'] ?? null; $this->container['link'] = $data['link'] ?? null; + $this->container['after'] = $data['after'] ?? null; } /** @@ -213,49 +213,49 @@ public function valid() /** - * 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 after + * @param string|null $link link * * @return self */ - public function setAfter($after) + public function setLink($link) { - $this->container['after'] = $after; + $this->container['link'] = $link; return $this; } /** - * 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 link + * @param string $after after * * @return self */ - public function setLink($link) + public function setAfter($after) { - $this->container['link'] = $link; + $this->container['after'] = $after; return $this; } diff --git a/codegen/Cms/UrlRedirects/Model/UrlMapping.php b/codegen/Cms/UrlRedirects/Model/UrlMapping.php index 3c47f95d..36d58b64 100644 --- a/codegen/Cms/UrlRedirects/Model/UrlMapping.php +++ b/codegen/Cms/UrlRedirects/Model/UrlMapping.php @@ -11,7 +11,7 @@ */ /** - * URL redirects + * CMS Url Redirects * * URL redirect operations * @@ -57,18 +57,18 @@ class UrlMapping implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'id' => 'string', - 'route_prefix' => 'string', - 'destination' => 'string', + 'is_trailing_slash_optional' => 'bool', 'redirect_style' => 'int', - 'is_only_after_not_found' => 'bool', - 'is_match_full_url' => 'bool', 'is_match_query_string' => 'bool', + 'created' => '\DateTime', + 'is_match_full_url' => 'bool', + 'destination' => 'string', + 'is_only_after_not_found' => 'bool', 'is_pattern' => 'bool', - 'is_trailing_slash_optional' => 'bool', - 'is_protocol_agnostic' => 'bool', 'precedence' => 'int', - 'created' => '\DateTime', + '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 = [ - 'id' => null, - 'route_prefix' => null, - 'destination' => null, + 'is_trailing_slash_optional' => null, 'redirect_style' => 'int32', - 'is_only_after_not_found' => null, - 'is_match_full_url' => null, 'is_match_query_string' => null, + 'created' => 'date-time', + 'is_match_full_url' => null, + 'destination' => null, + 'is_only_after_not_found' => null, 'is_pattern' => null, - 'is_trailing_slash_optional' => null, - 'is_protocol_agnostic' => null, 'precedence' => 'int32', - 'created' => 'date-time', + 'route_prefix' => null, + 'is_protocol_agnostic' => null, + 'id' => null, 'updated' => 'date-time' ]; @@ -122,18 +122,18 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id', - 'route_prefix' => 'routePrefix', - 'destination' => 'destination', + 'is_trailing_slash_optional' => 'isTrailingSlashOptional', 'redirect_style' => 'redirectStyle', - 'is_only_after_not_found' => 'isOnlyAfterNotFound', - 'is_match_full_url' => 'isMatchFullUrl', 'is_match_query_string' => 'isMatchQueryString', + 'created' => 'created', + 'is_match_full_url' => 'isMatchFullUrl', + 'destination' => 'destination', + 'is_only_after_not_found' => 'isOnlyAfterNotFound', 'is_pattern' => 'isPattern', - 'is_trailing_slash_optional' => 'isTrailingSlashOptional', - 'is_protocol_agnostic' => 'isProtocolAgnostic', 'precedence' => 'precedence', - 'created' => 'created', + 'route_prefix' => 'routePrefix', + 'is_protocol_agnostic' => 'isProtocolAgnostic', + 'id' => 'id', 'updated' => 'updated' ]; @@ -143,18 +143,18 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId', - 'route_prefix' => 'setRoutePrefix', - 'destination' => 'setDestination', + 'is_trailing_slash_optional' => 'setIsTrailingSlashOptional', 'redirect_style' => 'setRedirectStyle', - 'is_only_after_not_found' => 'setIsOnlyAfterNotFound', - 'is_match_full_url' => 'setIsMatchFullUrl', 'is_match_query_string' => 'setIsMatchQueryString', + 'created' => 'setCreated', + 'is_match_full_url' => 'setIsMatchFullUrl', + 'destination' => 'setDestination', + 'is_only_after_not_found' => 'setIsOnlyAfterNotFound', 'is_pattern' => 'setIsPattern', - 'is_trailing_slash_optional' => 'setIsTrailingSlashOptional', - 'is_protocol_agnostic' => 'setIsProtocolAgnostic', 'precedence' => 'setPrecedence', - 'created' => 'setCreated', + 'route_prefix' => 'setRoutePrefix', + 'is_protocol_agnostic' => 'setIsProtocolAgnostic', + 'id' => 'setId', 'updated' => 'setUpdated' ]; @@ -164,18 +164,18 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId', - 'route_prefix' => 'getRoutePrefix', - 'destination' => 'getDestination', + 'is_trailing_slash_optional' => 'getIsTrailingSlashOptional', 'redirect_style' => 'getRedirectStyle', - 'is_only_after_not_found' => 'getIsOnlyAfterNotFound', - 'is_match_full_url' => 'getIsMatchFullUrl', 'is_match_query_string' => 'getIsMatchQueryString', + 'created' => 'getCreated', + 'is_match_full_url' => 'getIsMatchFullUrl', + 'destination' => 'getDestination', + 'is_only_after_not_found' => 'getIsOnlyAfterNotFound', 'is_pattern' => 'getIsPattern', - 'is_trailing_slash_optional' => 'getIsTrailingSlashOptional', - 'is_protocol_agnostic' => 'getIsProtocolAgnostic', 'precedence' => 'getPrecedence', - 'created' => 'getCreated', + 'route_prefix' => 'getRoutePrefix', + 'is_protocol_agnostic' => 'getIsProtocolAgnostic', + 'id' => 'getId', 'updated' => 'getUpdated' ]; @@ -236,18 +236,18 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; - $this->container['route_prefix'] = $data['route_prefix'] ?? null; - $this->container['destination'] = $data['destination'] ?? null; + $this->container['is_trailing_slash_optional'] = $data['is_trailing_slash_optional'] ?? null; $this->container['redirect_style'] = $data['redirect_style'] ?? null; - $this->container['is_only_after_not_found'] = $data['is_only_after_not_found'] ?? null; - $this->container['is_match_full_url'] = $data['is_match_full_url'] ?? null; $this->container['is_match_query_string'] = $data['is_match_query_string'] ?? null; + $this->container['created'] = $data['created'] ?? null; + $this->container['is_match_full_url'] = $data['is_match_full_url'] ?? null; + $this->container['destination'] = $data['destination'] ?? null; + $this->container['is_only_after_not_found'] = $data['is_only_after_not_found'] ?? null; $this->container['is_pattern'] = $data['is_pattern'] ?? null; - $this->container['is_trailing_slash_optional'] = $data['is_trailing_slash_optional'] ?? null; - $this->container['is_protocol_agnostic'] = $data['is_protocol_agnostic'] ?? null; $this->container['precedence'] = $data['precedence'] ?? null; - $this->container['created'] = $data['created'] ?? null; + $this->container['route_prefix'] = $data['route_prefix'] ?? null; + $this->container['is_protocol_agnostic'] = $data['is_protocol_agnostic'] ?? null; + $this->container['id'] = $data['id'] ?? null; $this->container['updated'] = $data['updated'] ?? null; } @@ -260,38 +260,38 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' 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"; + 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['is_only_after_not_found'] === null) { - $invalidProperties[] = "'is_only_after_not_found' 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_match_full_url'] === null) { $invalidProperties[] = "'is_match_full_url' can't be null"; } - if ($this->container['is_match_query_string'] === null) { - $invalidProperties[] = "'is_match_query_string' can't be null"; + if ($this->container['destination'] === null) { + $invalidProperties[] = "'destination' can't be null"; + } + if ($this->container['is_only_after_not_found'] === null) { + $invalidProperties[] = "'is_only_after_not_found' can't be null"; } if ($this->container['is_pattern'] === null) { $invalidProperties[] = "'is_pattern' 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['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['precedence'] === null) { - $invalidProperties[] = "'precedence' can't be null"; + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; } return $invalidProperties; } @@ -309,169 +309,169 @@ public function valid() /** - * Gets id + * Gets is_trailing_slash_optional * - * @return string + * @return bool */ - public function getId() + public function getIsTrailingSlashOptional() { - return $this->container['id']; + return $this->container['is_trailing_slash_optional']; } /** - * Sets id + * Sets is_trailing_slash_optional * - * @param string $id The unique ID of this URL redirect. + * @param bool $is_trailing_slash_optional Whether a trailing slash will be ignored. * * @return self */ - public function setId($id) + public function setIsTrailingSlashOptional($is_trailing_slash_optional) { - $this->container['id'] = $id; + $this->container['is_trailing_slash_optional'] = $is_trailing_slash_optional; return $this; } /** - * Gets route_prefix + * Gets redirect_style * - * @return string + * @return int */ - public function getRoutePrefix() + public function getRedirectStyle() { - return $this->container['route_prefix']; + return $this->container['redirect_style']; } /** - * Sets route_prefix + * Sets redirect_style * - * @param string $route_prefix The target incoming URL, path, or pattern to match for redirection. + * @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 setRoutePrefix($route_prefix) + public function setRedirectStyle($redirect_style) { - $this->container['route_prefix'] = $route_prefix; + $this->container['redirect_style'] = $redirect_style; return $this; } /** - * 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) { - $this->container['destination'] = $destination; + $this->container['is_match_query_string'] = $is_match_query_string; 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 created * * @return self */ - public function setRedirectStyle($redirect_style) + public function setCreated($created) { - $this->container['redirect_style'] = $redirect_style; + $this->container['created'] = $created; return $this; } /** - * Gets is_only_after_not_found + * Gets is_match_full_url * * @return bool */ - public function getIsOnlyAfterNotFound() + public function getIsMatchFullUrl() { - return $this->container['is_only_after_not_found']; + return $this->container['is_match_full_url']; } /** - * Sets is_only_after_not_found + * Sets is_match_full_url * - * @param bool $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. + * @param bool $is_match_full_url Whether the `routePrefix` should match on the entire URL, including the domain. * * @return self */ - public function setIsOnlyAfterNotFound($is_only_after_not_found) + public function setIsMatchFullUrl($is_match_full_url) { - $this->container['is_only_after_not_found'] = $is_only_after_not_found; + $this->container['is_match_full_url'] = $is_match_full_url; return $this; } /** - * Gets is_match_full_url + * Gets destination * - * @return bool + * @return string */ - public function getIsMatchFullUrl() + public function getDestination() { - return $this->container['is_match_full_url']; + return $this->container['destination']; } /** - * Sets is_match_full_url + * Sets destination * - * @param bool $is_match_full_url Whether the `routePrefix` should match on the entire URL, including the domain. + * @param string $destination The destination URL, where the target URL should be redirected if it matches the `routePrefix`. * * @return self */ - public function setIsMatchFullUrl($is_match_full_url) + public function setDestination($destination) { - $this->container['is_match_full_url'] = $is_match_full_url; + $this->container['destination'] = $destination; return $this; } /** - * Gets is_match_query_string + * Gets is_only_after_not_found * * @return bool */ - public function getIsMatchQueryString() + public function getIsOnlyAfterNotFound() { - return $this->container['is_match_query_string']; + return $this->container['is_only_after_not_found']; } /** - * Sets is_match_query_string + * Sets is_only_after_not_found * - * @param bool $is_match_query_string Whether the `routePrefix` should match on the entire URL path, including the query string. + * @param bool $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 setIsMatchQueryString($is_match_query_string) + public function setIsOnlyAfterNotFound($is_only_after_not_found) { - $this->container['is_match_query_string'] = $is_match_query_string; + $this->container['is_only_after_not_found'] = $is_only_after_not_found; return $this; } @@ -501,97 +501,97 @@ public function setIsPattern($is_pattern) } /** - * Gets is_trailing_slash_optional + * Gets precedence * - * @return bool + * @return int */ - public function getIsTrailingSlashOptional() + public function getPrecedence() { - return $this->container['is_trailing_slash_optional']; + return $this->container['precedence']; } /** - * Sets is_trailing_slash_optional + * Sets precedence * - * @param bool $is_trailing_slash_optional Whether a trailing slash will be ignored. + * @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 setIsTrailingSlashOptional($is_trailing_slash_optional) + public function setPrecedence($precedence) { - $this->container['is_trailing_slash_optional'] = $is_trailing_slash_optional; + $this->container['precedence'] = $precedence; return $this; } /** - * Gets is_protocol_agnostic + * Gets route_prefix * - * @return bool + * @return string */ - public function getIsProtocolAgnostic() + public function getRoutePrefix() { - return $this->container['is_protocol_agnostic']; + return $this->container['route_prefix']; } /** - * Sets is_protocol_agnostic + * Sets route_prefix * - * @param bool $is_protocol_agnostic Whether the `routePrefix` should match both HTTP and HTTPS protocols. + * @param string $route_prefix The target incoming URL, path, or pattern to match for redirection. * * @return self */ - public function setIsProtocolAgnostic($is_protocol_agnostic) + public function setRoutePrefix($route_prefix) { - $this->container['is_protocol_agnostic'] = $is_protocol_agnostic; + $this->container['route_prefix'] = $route_prefix; return $this; } /** - * 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) { - $this->container['precedence'] = $precedence; + $this->container['is_protocol_agnostic'] = $is_protocol_agnostic; 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) { - $this->container['created'] = $created; + $this->container['id'] = $id; return $this; } diff --git a/codegen/Cms/UrlRedirects/Model/UrlMappingCreateRequestBody.php b/codegen/Cms/UrlRedirects/Model/UrlMappingCreateRequestBody.php index e03bb612..b443606e 100644 --- a/codegen/Cms/UrlRedirects/Model/UrlMappingCreateRequestBody.php +++ b/codegen/Cms/UrlRedirects/Model/UrlMappingCreateRequestBody.php @@ -11,7 +11,7 @@ */ /** - * URL redirects + * CMS Url Redirects * * URL redirect operations * @@ -57,16 +57,16 @@ class UrlMappingCreateRequestBody implements ModelInterface, ArrayAccess, \JsonS * @var string[] */ protected static $openAPITypes = [ - 'precedence' => 'int', - 'is_only_after_not_found' => 'bool', - 'is_match_full_url' => 'bool', - 'is_match_query_string' => 'bool', - 'is_pattern' => 'bool', 'is_trailing_slash_optional' => 'bool', - 'is_protocol_agnostic' => 'bool', + 'is_match_query_string' => 'bool', + 'redirect_style' => 'int', 'route_prefix' => 'string', + 'is_match_full_url' => 'bool', + 'is_protocol_agnostic' => 'bool', 'destination' => 'string', - 'redirect_style' => 'int' + 'is_only_after_not_found' => 'bool', + 'is_pattern' => 'bool', + 'precedence' => 'int' ]; /** @@ -77,16 +77,16 @@ class UrlMappingCreateRequestBody implements ModelInterface, ArrayAccess, \JsonS * @psalm-var array */ protected static $openAPIFormats = [ - 'precedence' => 'int32', - 'is_only_after_not_found' => null, - 'is_match_full_url' => null, - 'is_match_query_string' => null, - 'is_pattern' => null, 'is_trailing_slash_optional' => null, - 'is_protocol_agnostic' => null, + 'is_match_query_string' => null, + 'redirect_style' => 'int32', 'route_prefix' => null, + 'is_match_full_url' => null, + 'is_protocol_agnostic' => null, 'destination' => null, - 'redirect_style' => 'int32' + 'is_only_after_not_found' => null, + 'is_pattern' => null, + 'precedence' => 'int32' ]; /** @@ -116,16 +116,16 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'precedence' => 'precedence', - 'is_only_after_not_found' => 'isOnlyAfterNotFound', - 'is_match_full_url' => 'isMatchFullUrl', - 'is_match_query_string' => 'isMatchQueryString', - 'is_pattern' => 'isPattern', 'is_trailing_slash_optional' => 'isTrailingSlashOptional', - 'is_protocol_agnostic' => 'isProtocolAgnostic', + 'is_match_query_string' => 'isMatchQueryString', + 'redirect_style' => 'redirectStyle', 'route_prefix' => 'routePrefix', + 'is_match_full_url' => 'isMatchFullUrl', + 'is_protocol_agnostic' => 'isProtocolAgnostic', 'destination' => 'destination', - 'redirect_style' => 'redirectStyle' + 'is_only_after_not_found' => 'isOnlyAfterNotFound', + 'is_pattern' => 'isPattern', + 'precedence' => 'precedence' ]; /** @@ -134,16 +134,16 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'precedence' => 'setPrecedence', - 'is_only_after_not_found' => 'setIsOnlyAfterNotFound', - 'is_match_full_url' => 'setIsMatchFullUrl', - 'is_match_query_string' => 'setIsMatchQueryString', - 'is_pattern' => 'setIsPattern', 'is_trailing_slash_optional' => 'setIsTrailingSlashOptional', - 'is_protocol_agnostic' => 'setIsProtocolAgnostic', + 'is_match_query_string' => 'setIsMatchQueryString', + 'redirect_style' => 'setRedirectStyle', 'route_prefix' => 'setRoutePrefix', + 'is_match_full_url' => 'setIsMatchFullUrl', + 'is_protocol_agnostic' => 'setIsProtocolAgnostic', 'destination' => 'setDestination', - 'redirect_style' => 'setRedirectStyle' + 'is_only_after_not_found' => 'setIsOnlyAfterNotFound', + 'is_pattern' => 'setIsPattern', + 'precedence' => 'setPrecedence' ]; /** @@ -152,16 +152,16 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'precedence' => 'getPrecedence', - 'is_only_after_not_found' => 'getIsOnlyAfterNotFound', - 'is_match_full_url' => 'getIsMatchFullUrl', - 'is_match_query_string' => 'getIsMatchQueryString', - 'is_pattern' => 'getIsPattern', 'is_trailing_slash_optional' => 'getIsTrailingSlashOptional', - 'is_protocol_agnostic' => 'getIsProtocolAgnostic', + 'is_match_query_string' => 'getIsMatchQueryString', + 'redirect_style' => 'getRedirectStyle', 'route_prefix' => 'getRoutePrefix', + 'is_match_full_url' => 'getIsMatchFullUrl', + 'is_protocol_agnostic' => 'getIsProtocolAgnostic', 'destination' => 'getDestination', - 'redirect_style' => 'getRedirectStyle' + 'is_only_after_not_found' => 'getIsOnlyAfterNotFound', + 'is_pattern' => 'getIsPattern', + 'precedence' => 'getPrecedence' ]; /** @@ -221,16 +221,16 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['precedence'] = $data['precedence'] ?? null; - $this->container['is_only_after_not_found'] = $data['is_only_after_not_found'] ?? null; - $this->container['is_match_full_url'] = $data['is_match_full_url'] ?? null; - $this->container['is_match_query_string'] = $data['is_match_query_string'] ?? null; - $this->container['is_pattern'] = $data['is_pattern'] ?? null; $this->container['is_trailing_slash_optional'] = $data['is_trailing_slash_optional'] ?? null; - $this->container['is_protocol_agnostic'] = $data['is_protocol_agnostic'] ?? null; + $this->container['is_match_query_string'] = $data['is_match_query_string'] ?? null; + $this->container['redirect_style'] = $data['redirect_style'] ?? null; $this->container['route_prefix'] = $data['route_prefix'] ?? null; + $this->container['is_match_full_url'] = $data['is_match_full_url'] ?? null; + $this->container['is_protocol_agnostic'] = $data['is_protocol_agnostic'] ?? null; $this->container['destination'] = $data['destination'] ?? null; - $this->container['redirect_style'] = $data['redirect_style'] ?? null; + $this->container['is_only_after_not_found'] = $data['is_only_after_not_found'] ?? null; + $this->container['is_pattern'] = $data['is_pattern'] ?? null; + $this->container['precedence'] = $data['precedence'] ?? null; } /** @@ -242,15 +242,15 @@ public function listInvalidProperties() { $invalidProperties = []; + 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"; } - if ($this->container['redirect_style'] === null) { - $invalidProperties[] = "'redirect_style' can't be null"; - } return $invalidProperties; } @@ -267,241 +267,241 @@ public function valid() /** - * Gets precedence + * Gets is_trailing_slash_optional * - * @return int|null + * @return bool|null */ - public function getPrecedence() + public function getIsTrailingSlashOptional() { - return $this->container['precedence']; + return $this->container['is_trailing_slash_optional']; } /** - * Sets precedence + * Sets is_trailing_slash_optional * - * @param int|null $precedence precedence + * @param bool|null $is_trailing_slash_optional is_trailing_slash_optional * * @return self */ - public function setPrecedence($precedence) + public function setIsTrailingSlashOptional($is_trailing_slash_optional) { - $this->container['precedence'] = $precedence; + $this->container['is_trailing_slash_optional'] = $is_trailing_slash_optional; return $this; } /** - * Gets is_only_after_not_found + * Gets is_match_query_string * * @return bool|null */ - public function getIsOnlyAfterNotFound() + public function getIsMatchQueryString() { - return $this->container['is_only_after_not_found']; + return $this->container['is_match_query_string']; } /** - * Sets is_only_after_not_found + * Sets is_match_query_string * - * @param bool|null $is_only_after_not_found is_only_after_not_found + * @param bool|null $is_match_query_string is_match_query_string * * @return self */ - public function setIsOnlyAfterNotFound($is_only_after_not_found) + public function setIsMatchQueryString($is_match_query_string) { - $this->container['is_only_after_not_found'] = $is_only_after_not_found; + $this->container['is_match_query_string'] = $is_match_query_string; return $this; } /** - * Gets is_match_full_url + * Gets redirect_style * - * @return bool|null + * @return int */ - public function getIsMatchFullUrl() + public function getRedirectStyle() { - return $this->container['is_match_full_url']; + return $this->container['redirect_style']; } /** - * Sets is_match_full_url + * Sets redirect_style * - * @param bool|null $is_match_full_url is_match_full_url + * @param int $redirect_style redirect_style * * @return self */ - public function setIsMatchFullUrl($is_match_full_url) + public function setRedirectStyle($redirect_style) { - $this->container['is_match_full_url'] = $is_match_full_url; + $this->container['redirect_style'] = $redirect_style; return $this; } /** - * Gets is_match_query_string + * Gets route_prefix * - * @return bool|null + * @return string */ - public function getIsMatchQueryString() + public function getRoutePrefix() { - return $this->container['is_match_query_string']; + return $this->container['route_prefix']; } /** - * Sets is_match_query_string + * Sets route_prefix * - * @param bool|null $is_match_query_string is_match_query_string + * @param string $route_prefix route_prefix * * @return self */ - public function setIsMatchQueryString($is_match_query_string) + public function setRoutePrefix($route_prefix) { - $this->container['is_match_query_string'] = $is_match_query_string; + $this->container['route_prefix'] = $route_prefix; return $this; } /** - * Gets is_pattern + * Gets is_match_full_url * * @return bool|null */ - public function getIsPattern() + public function getIsMatchFullUrl() { - return $this->container['is_pattern']; + return $this->container['is_match_full_url']; } /** - * Sets is_pattern + * Sets is_match_full_url * - * @param bool|null $is_pattern is_pattern + * @param bool|null $is_match_full_url is_match_full_url * * @return self */ - public function setIsPattern($is_pattern) + public function setIsMatchFullUrl($is_match_full_url) { - $this->container['is_pattern'] = $is_pattern; + $this->container['is_match_full_url'] = $is_match_full_url; return $this; } /** - * Gets is_trailing_slash_optional + * Gets is_protocol_agnostic * * @return bool|null */ - public function getIsTrailingSlashOptional() + public function getIsProtocolAgnostic() { - return $this->container['is_trailing_slash_optional']; + return $this->container['is_protocol_agnostic']; } /** - * Sets is_trailing_slash_optional + * Sets is_protocol_agnostic * - * @param bool|null $is_trailing_slash_optional is_trailing_slash_optional + * @param bool|null $is_protocol_agnostic is_protocol_agnostic * * @return self */ - public function setIsTrailingSlashOptional($is_trailing_slash_optional) + public function setIsProtocolAgnostic($is_protocol_agnostic) { - $this->container['is_trailing_slash_optional'] = $is_trailing_slash_optional; + $this->container['is_protocol_agnostic'] = $is_protocol_agnostic; return $this; } /** - * Gets is_protocol_agnostic + * Gets destination * - * @return bool|null + * @return string */ - public function getIsProtocolAgnostic() + public function getDestination() { - return $this->container['is_protocol_agnostic']; + return $this->container['destination']; } /** - * Sets is_protocol_agnostic + * Sets destination * - * @param bool|null $is_protocol_agnostic is_protocol_agnostic + * @param string $destination destination * * @return self */ - public function setIsProtocolAgnostic($is_protocol_agnostic) + public function setDestination($destination) { - $this->container['is_protocol_agnostic'] = $is_protocol_agnostic; + $this->container['destination'] = $destination; 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 is_only_after_not_found * * @return self */ - public function setRoutePrefix($route_prefix) + public function setIsOnlyAfterNotFound($is_only_after_not_found) { - $this->container['route_prefix'] = $route_prefix; + $this->container['is_only_after_not_found'] = $is_only_after_not_found; return $this; } /** - * Gets destination + * Gets is_pattern * - * @return string + * @return bool|null */ - public function getDestination() + public function getIsPattern() { - return $this->container['destination']; + return $this->container['is_pattern']; } /** - * Sets destination + * Sets is_pattern * - * @param string $destination destination + * @param bool|null $is_pattern is_pattern * * @return self */ - public function setDestination($destination) + public function setIsPattern($is_pattern) { - $this->container['destination'] = $destination; + $this->container['is_pattern'] = $is_pattern; return $this; } /** - * Gets redirect_style + * Gets precedence * - * @return int + * @return int|null */ - public function getRedirectStyle() + public function getPrecedence() { - return $this->container['redirect_style']; + return $this->container['precedence']; } /** - * Sets redirect_style + * Sets precedence * - * @param int $redirect_style redirect_style + * @param int|null $precedence precedence * * @return self */ - public function setRedirectStyle($redirect_style) + public function setPrecedence($precedence) { - $this->container['redirect_style'] = $redirect_style; + $this->container['precedence'] = $precedence; return $this; } diff --git a/codegen/Cms/UrlRedirects/ObjectSerializer.php b/codegen/Cms/UrlRedirects/ObjectSerializer.php index e78eaa49..11194791 100644 --- a/codegen/Cms/UrlRedirects/ObjectSerializer.php +++ b/codegen/Cms/UrlRedirects/ObjectSerializer.php @@ -11,7 +11,7 @@ */ /** - * URL redirects + * CMS Url Redirects * * URL redirect operations *