From 7616d40b838700ba2ac872df1b467a4d805cc940 Mon Sep 17 00:00:00 2001 From: Camden Phalen Date: Wed, 30 Sep 2026 16:31:17 -0400 Subject: [PATCH] Regenerate PHP SDK: restore OAuth auth on CRM clients The previous codegen regen shipped ~54 CRM clients (Contacts, Companies, Deals, LineItems, Products, Quotes, Invoices, and all Crm/Objects/*) with no Authorization header, so every authenticated CRM call 401s. Root cause was in the generator: upstream CRM specs carry empty security and the only thing injecting oauth2 was per-client override files, which were incomplete/removed. Regenerated with api-clients' generic security injection fix (see api-clients "Inject default OAuth security so CRM clients keep auth on regen"), which restores the `Authorization: Bearer` block on all CRM request builders. Zero-auth Api classes drop from 69/159 to 12/160; the remaining 12 are OAuth token endpoints (public) and developer_hapikey clients (Webhooks, Automation Actions, CRM card/videoconferencing extensions), which correctly use a non-bearer scheme. Diff is auth restoration plus minor current-spec drift picked up by the regen (a few model field/enum updates and new Cms/SiteSearch files). Co-Authored-By: Claude Opus 4.8 --- .../Actions/Model/ArrayFieldSchemaItems.php | 2 + .../Actions/Model/ChirpAiContextObject.php | 7 +- .../Model/FieldTypeDefinitionSchema.php | 2 + .../Actions/Model/StringFieldSchema.php | 2 + codegen/Cms/SiteSearch/Api/SearchApi.php | 747 +++++ .../SiteSearch/Model/ContentSearchResult.php | 2924 +++++++++++++++++ .../SiteSearch/Model/PublicSearchResults.php | 594 ++++ .../Crm/Commerce/Invoices/Api/BasicApi.php | 20 + .../Crm/Commerce/Invoices/Api/BatchApi.php | 20 + .../Crm/Commerce/Invoices/Api/SearchApi.php | 4 + codegen/Crm/Companies/Api/AdvancedApi.php | 4 + codegen/Crm/Companies/Api/BasicApi.php | 20 + codegen/Crm/Companies/Api/BatchApi.php | 20 + codegen/Crm/Companies/Api/SearchApi.php | 4 + codegen/Crm/Contacts/Api/AdvancedApi.php | 8 + codegen/Crm/Contacts/Api/BasicApi.php | 20 + codegen/Crm/Contacts/Api/BatchApi.php | 20 + codegen/Crm/Contacts/Api/SearchApi.php | 4 + codegen/Crm/Deals/Api/BasicApi.php | 24 + codegen/Crm/Deals/Api/BatchApi.php | 20 + codegen/Crm/Deals/Api/SearchApi.php | 4 + codegen/Crm/LineItems/Api/BasicApi.php | 20 + codegen/Crm/LineItems/Api/BatchApi.php | 20 + codegen/Crm/LineItems/Api/SearchApi.php | 4 + codegen/Crm/Objects/Calls/Api/BasicApi.php | 20 + codegen/Crm/Objects/Calls/Api/BatchApi.php | 20 + codegen/Crm/Objects/Calls/Api/SearchApi.php | 4 + .../Objects/Communications/Api/BasicApi.php | 20 + .../Objects/Communications/Api/BatchApi.php | 20 + .../Objects/Communications/Api/SearchApi.php | 4 + codegen/Crm/Objects/Emails/Api/BasicApi.php | 20 + codegen/Crm/Objects/Emails/Api/BatchApi.php | 20 + codegen/Crm/Objects/Emails/Api/SearchApi.php | 4 + .../FeedbackSubmissions/Api/BasicApi.php | 8 + .../FeedbackSubmissions/Api/BatchApi.php | 4 + .../FeedbackSubmissions/Api/SearchApi.php | 4 + codegen/Crm/Objects/Goals/Api/BasicApi.php | 20 + codegen/Crm/Objects/Goals/Api/BatchApi.php | 20 + codegen/Crm/Objects/Goals/Api/SearchApi.php | 4 + codegen/Crm/Objects/Leads/Api/BasicApi.php | 20 + codegen/Crm/Objects/Leads/Api/BatchApi.php | 20 + codegen/Crm/Objects/Leads/Api/SearchApi.php | 4 + codegen/Crm/Objects/Meetings/Api/BasicApi.php | 20 + codegen/Crm/Objects/Meetings/Api/BatchApi.php | 20 + .../Crm/Objects/Meetings/Api/SearchApi.php | 4 + codegen/Crm/Objects/Notes/Api/BasicApi.php | 20 + codegen/Crm/Objects/Notes/Api/BatchApi.php | 20 + codegen/Crm/Objects/Notes/Api/SearchApi.php | 4 + .../Crm/Objects/PostalMail/Api/BasicApi.php | 20 + .../Crm/Objects/PostalMail/Api/BatchApi.php | 20 + .../Crm/Objects/PostalMail/Api/SearchApi.php | 4 + codegen/Crm/Objects/Tasks/Api/BasicApi.php | 20 + codegen/Crm/Objects/Tasks/Api/BatchApi.php | 20 + codegen/Crm/Objects/Tasks/Api/SearchApi.php | 4 + codegen/Crm/Objects/Taxes/Api/BasicApi.php | 20 + codegen/Crm/Objects/Taxes/Api/BatchApi.php | 20 + codegen/Crm/Objects/Taxes/Api/SearchApi.php | 4 + codegen/Crm/Products/Api/BasicApi.php | 20 + codegen/Crm/Products/Api/BatchApi.php | 20 + codegen/Crm/Products/Api/SearchApi.php | 4 + codegen/Crm/Quotes/Api/BasicApi.php | 20 + codegen/Crm/Quotes/Api/BatchApi.php | 20 + codegen/Crm/Quotes/Api/SearchApi.php | 4 + codegen/Events/Api/BasicApi.php | 8 + .../Transactional/Model/EventIdView.php | 1 + .../Model/PublicSingleSendEmail.php | 1 + .../Model/PublicSingleSendRequestEgg.php | 1 + .../Model/SmtpApiTokenRequestEgg.php | 1 + .../Transactional/Model/SmtpApiTokenView.php | 1 + 69 files changed, 5069 insertions(+), 2 deletions(-) create mode 100644 codegen/Cms/SiteSearch/Api/SearchApi.php create mode 100644 codegen/Cms/SiteSearch/Model/ContentSearchResult.php create mode 100644 codegen/Cms/SiteSearch/Model/PublicSearchResults.php diff --git a/codegen/Automation/Actions/Model/ArrayFieldSchemaItems.php b/codegen/Automation/Actions/Model/ArrayFieldSchemaItems.php index 1a840b7d..2902b7ae 100644 --- a/codegen/Automation/Actions/Model/ArrayFieldSchemaItems.php +++ b/codegen/Automation/Actions/Model/ArrayFieldSchemaItems.php @@ -271,6 +271,7 @@ public function getModelName() public const FORMAT_DATE_TIME = 'DATE_TIME'; public const FORMAT_MONTH_AND_DAY = 'MONTH_AND_DAY'; public const FORMAT_OBJECT_COORDINATE = 'OBJECT_COORDINATE'; + public const FORMAT_OBJECT_TYPE = 'OBJECT_TYPE'; public const FORMAT_TIME = 'TIME'; public const FORMAT_URI = 'URI'; @@ -305,6 +306,7 @@ public function getFormatAllowableValues() self::FORMAT_DATE_TIME, self::FORMAT_MONTH_AND_DAY, self::FORMAT_OBJECT_COORDINATE, + self::FORMAT_OBJECT_TYPE, self::FORMAT_TIME, self::FORMAT_URI, ]; diff --git a/codegen/Automation/Actions/Model/ChirpAiContextObject.php b/codegen/Automation/Actions/Model/ChirpAiContextObject.php index 5dfc2524..2008d48d 100644 --- a/codegen/Automation/Actions/Model/ChirpAiContextObject.php +++ b/codegen/Automation/Actions/Model/ChirpAiContextObject.php @@ -436,6 +436,9 @@ public function listInvalidProperties() if ($this->container['otel_context_holder'] === null) { $invalidProperties[] = "'otel_context_holder' can't be null"; } + if ($this->container['sensitivity'] === null) { + $invalidProperties[] = "'sensitivity' can't be null"; + } $allowedValues = $this->getSensitivityAllowableValues(); if (!is_null($this->container['sensitivity']) && !in_array($this->container['sensitivity'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -709,7 +712,7 @@ public function setOtelContextHolder($otel_context_holder) /** * Gets sensitivity * - * @return string|null + * @return string */ public function getSensitivity() { @@ -719,7 +722,7 @@ public function getSensitivity() /** * Sets sensitivity * - * @param string|null $sensitivity sensitivity + * @param string $sensitivity sensitivity * * @return self */ diff --git a/codegen/Automation/Actions/Model/FieldTypeDefinitionSchema.php b/codegen/Automation/Actions/Model/FieldTypeDefinitionSchema.php index f9c5b3a9..ac88d263 100644 --- a/codegen/Automation/Actions/Model/FieldTypeDefinitionSchema.php +++ b/codegen/Automation/Actions/Model/FieldTypeDefinitionSchema.php @@ -271,6 +271,7 @@ public function getModelName() public const FORMAT_DATE_TIME = 'DATE_TIME'; public const FORMAT_MONTH_AND_DAY = 'MONTH_AND_DAY'; public const FORMAT_OBJECT_COORDINATE = 'OBJECT_COORDINATE'; + public const FORMAT_OBJECT_TYPE = 'OBJECT_TYPE'; public const FORMAT_TIME = 'TIME'; public const FORMAT_URI = 'URI'; @@ -305,6 +306,7 @@ public function getFormatAllowableValues() self::FORMAT_DATE_TIME, self::FORMAT_MONTH_AND_DAY, self::FORMAT_OBJECT_COORDINATE, + self::FORMAT_OBJECT_TYPE, self::FORMAT_TIME, self::FORMAT_URI, ]; diff --git a/codegen/Automation/Actions/Model/StringFieldSchema.php b/codegen/Automation/Actions/Model/StringFieldSchema.php index 933048c7..56cef601 100644 --- a/codegen/Automation/Actions/Model/StringFieldSchema.php +++ b/codegen/Automation/Actions/Model/StringFieldSchema.php @@ -238,6 +238,7 @@ public function getModelName() public const FORMAT_DATE_TIME = 'DATE_TIME'; public const FORMAT_MONTH_AND_DAY = 'MONTH_AND_DAY'; public const FORMAT_OBJECT_COORDINATE = 'OBJECT_COORDINATE'; + public const FORMAT_OBJECT_TYPE = 'OBJECT_TYPE'; public const FORMAT_TIME = 'TIME'; public const FORMAT_URI = 'URI'; public const TYPE_STRING = 'STRING'; @@ -254,6 +255,7 @@ public function getFormatAllowableValues() self::FORMAT_DATE_TIME, self::FORMAT_MONTH_AND_DAY, self::FORMAT_OBJECT_COORDINATE, + self::FORMAT_OBJECT_TYPE, self::FORMAT_TIME, self::FORMAT_URI, ]; diff --git a/codegen/Cms/SiteSearch/Api/SearchApi.php b/codegen/Cms/SiteSearch/Api/SearchApi.php new file mode 100644 index 00000000..2301b50f --- /dev/null +++ b/codegen/Cms/SiteSearch/Api/SearchApi.php @@ -0,0 +1,747 @@ + [ + 'application/json', + ], + ]; + + /** + * @param ClientInterface $client + * @param Configuration $config + * @param HeaderSelector $selector + * @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec + */ + public function __construct( + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null, + int $hostIndex = 0 + ) { + $this->client = $client ?: new Client(); + $this->config = $config ?: Configuration::getDefaultConfiguration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $hostIndex; + } + + /** + * Set the host index + * + * @param int $hostIndex Host index (required) + */ + public function setHostIndex($hostIndex): void + { + $this->hostIndex = $hostIndex; + } + + /** + * Get the host index + * + * @return int Host index + */ + public function getHostIndex() + { + return $this->hostIndex; + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation cmsSiteSearchV3Search + * + * Search your site + * + * @param bool|null $analytics (optional) + * @param bool|null $autocomplete (optional) + * @param float|null $boost_limit (optional) + * @param string|null $boost_recent (optional) + * @param string[]|null $domain (optional) + * @param int[]|null $group_id (optional) + * @param string|null $hubdb_query (optional) + * @param string|null $language (optional) + * @param string|null $length (optional) + * @param int|null $limit The maximum number of results to display per page. (optional) + * @param bool|null $match_prefix (optional) + * @param int|null $offset (optional) + * @param string[]|null $path_prefix (optional) + * @param float|null $popularity_boost (optional) + * @param string[]|null $property (optional) + * @param string|null $q (optional) + * @param int|null $table_id (optional) + * @param string[]|null $type (optional) + * @param string[]|null $types (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['cmsSiteSearchV3Search'] to see the possible values for this operation + * + * @throws \HubSpot\Client\Cms\SiteSearch\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return \HubSpot\Client\Cms\SiteSearch\Model\PublicSearchResults|\HubSpot\Client\Cms\SiteSearch\Model\Error + */ + public function cmsSiteSearchV3Search($analytics = null, $autocomplete = null, $boost_limit = null, $boost_recent = null, $domain = null, $group_id = null, $hubdb_query = null, $language = null, $length = null, $limit = null, $match_prefix = null, $offset = null, $path_prefix = null, $popularity_boost = null, $property = null, $q = null, $table_id = null, $type = null, $types = null, string $contentType = self::contentTypes['cmsSiteSearchV3Search'][0]) + { + list($response) = $this->cmsSiteSearchV3SearchWithHttpInfo($analytics, $autocomplete, $boost_limit, $boost_recent, $domain, $group_id, $hubdb_query, $language, $length, $limit, $match_prefix, $offset, $path_prefix, $popularity_boost, $property, $q, $table_id, $type, $types, $contentType); + return $response; + } + + /** + * Operation cmsSiteSearchV3SearchWithHttpInfo + * + * Search your site + * + * @param bool|null $analytics (optional) + * @param bool|null $autocomplete (optional) + * @param float|null $boost_limit (optional) + * @param string|null $boost_recent (optional) + * @param string[]|null $domain (optional) + * @param int[]|null $group_id (optional) + * @param string|null $hubdb_query (optional) + * @param string|null $language (optional) + * @param string|null $length (optional) + * @param int|null $limit The maximum number of results to display per page. (optional) + * @param bool|null $match_prefix (optional) + * @param int|null $offset (optional) + * @param string[]|null $path_prefix (optional) + * @param float|null $popularity_boost (optional) + * @param string[]|null $property (optional) + * @param string|null $q (optional) + * @param int|null $table_id (optional) + * @param string[]|null $type (optional) + * @param string[]|null $types (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['cmsSiteSearchV3Search'] to see the possible values for this operation + * + * @throws \HubSpot\Client\Cms\SiteSearch\ApiException on non-2xx response or if the response body is not in the expected format + * @throws \InvalidArgumentException + * @return array of \HubSpot\Client\Cms\SiteSearch\Model\PublicSearchResults|\HubSpot\Client\Cms\SiteSearch\Model\Error, HTTP status code, HTTP response headers (array of strings) + */ + public function cmsSiteSearchV3SearchWithHttpInfo($analytics = null, $autocomplete = null, $boost_limit = null, $boost_recent = null, $domain = null, $group_id = null, $hubdb_query = null, $language = null, $length = null, $limit = null, $match_prefix = null, $offset = null, $path_prefix = null, $popularity_boost = null, $property = null, $q = null, $table_id = null, $type = null, $types = null, string $contentType = self::contentTypes['cmsSiteSearchV3Search'][0]) + { + $request = $this->cmsSiteSearchV3SearchRequest($analytics, $autocomplete, $boost_limit, $boost_recent, $domain, $group_id, $hubdb_query, $language, $length, $limit, $match_prefix, $offset, $path_prefix, $popularity_boost, $property, $q, $table_id, $type, $types, $contentType); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + (method_exists($e, 'getResponse') && $e->getResponse()) ? $e->getResponse()->getHeaders() : null, + (method_exists($e, 'getResponse') && $e->getResponse()) ? (string) $e->getResponse()->getBody() : null + ); + } catch (\Psr\Http\Client\NetworkExceptionInterface $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + (int) $e->getCode(), + null, + null + ); + } + + $statusCode = $response->getStatusCode(); + + + switch($statusCode) { + case 200: + return $this->handleResponseWithDataType( + '\HubSpot\Client\Cms\SiteSearch\Model\PublicSearchResults', + $request, + $response, + ); + default: + return $this->handleResponseWithDataType( + '\HubSpot\Client\Cms\SiteSearch\Model\Error', + $request, + $response, + ); + } + + + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + (string) $request->getUri() + ), + $statusCode, + $response->getHeaders(), + (string) $response->getBody() + ); + } + + return $this->handleResponseWithDataType( + '\HubSpot\Client\Cms\SiteSearch\Model\PublicSearchResults', + $request, + $response, + ); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\HubSpot\Client\Cms\SiteSearch\Model\PublicSearchResults', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + default: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\HubSpot\Client\Cms\SiteSearch\Model\Error', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + throw $e; + } + + + throw $e; + } + } + + /** + * Operation cmsSiteSearchV3SearchAsync + * + * Search your site + * + * @param bool|null $analytics (optional) + * @param bool|null $autocomplete (optional) + * @param float|null $boost_limit (optional) + * @param string|null $boost_recent (optional) + * @param string[]|null $domain (optional) + * @param int[]|null $group_id (optional) + * @param string|null $hubdb_query (optional) + * @param string|null $language (optional) + * @param string|null $length (optional) + * @param int|null $limit The maximum number of results to display per page. (optional) + * @param bool|null $match_prefix (optional) + * @param int|null $offset (optional) + * @param string[]|null $path_prefix (optional) + * @param float|null $popularity_boost (optional) + * @param string[]|null $property (optional) + * @param string|null $q (optional) + * @param int|null $table_id (optional) + * @param string[]|null $type (optional) + * @param string[]|null $types (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['cmsSiteSearchV3Search'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cmsSiteSearchV3SearchAsync($analytics = null, $autocomplete = null, $boost_limit = null, $boost_recent = null, $domain = null, $group_id = null, $hubdb_query = null, $language = null, $length = null, $limit = null, $match_prefix = null, $offset = null, $path_prefix = null, $popularity_boost = null, $property = null, $q = null, $table_id = null, $type = null, $types = null, string $contentType = self::contentTypes['cmsSiteSearchV3Search'][0]) + { + return $this->cmsSiteSearchV3SearchAsyncWithHttpInfo($analytics, $autocomplete, $boost_limit, $boost_recent, $domain, $group_id, $hubdb_query, $language, $length, $limit, $match_prefix, $offset, $path_prefix, $popularity_boost, $property, $q, $table_id, $type, $types, $contentType) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation cmsSiteSearchV3SearchAsyncWithHttpInfo + * + * Search your site + * + * @param bool|null $analytics (optional) + * @param bool|null $autocomplete (optional) + * @param float|null $boost_limit (optional) + * @param string|null $boost_recent (optional) + * @param string[]|null $domain (optional) + * @param int[]|null $group_id (optional) + * @param string|null $hubdb_query (optional) + * @param string|null $language (optional) + * @param string|null $length (optional) + * @param int|null $limit The maximum number of results to display per page. (optional) + * @param bool|null $match_prefix (optional) + * @param int|null $offset (optional) + * @param string[]|null $path_prefix (optional) + * @param float|null $popularity_boost (optional) + * @param string[]|null $property (optional) + * @param string|null $q (optional) + * @param int|null $table_id (optional) + * @param string[]|null $type (optional) + * @param string[]|null $types (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['cmsSiteSearchV3Search'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cmsSiteSearchV3SearchAsyncWithHttpInfo($analytics = null, $autocomplete = null, $boost_limit = null, $boost_recent = null, $domain = null, $group_id = null, $hubdb_query = null, $language = null, $length = null, $limit = null, $match_prefix = null, $offset = null, $path_prefix = null, $popularity_boost = null, $property = null, $q = null, $table_id = null, $type = null, $types = null, string $contentType = self::contentTypes['cmsSiteSearchV3Search'][0]) + { + $returnType = '\HubSpot\Client\Cms\SiteSearch\Model\PublicSearchResults'; + $request = $this->cmsSiteSearchV3SearchRequest($analytics, $autocomplete, $boost_limit, $boost_recent, $domain, $group_id, $hubdb_query, $language, $length, $limit, $match_prefix, $offset, $path_prefix, $popularity_boost, $property, $q, $table_id, $type, $types, $contentType); + + 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() + ]; + }, + function ($exception) { + $response = method_exists($exception, 'getResponse') ? $exception->getResponse() : null; + $statusCode = $response ? $response->getStatusCode() : $exception->getCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response ? $response->getHeaders() : [], + $response ? (string) $response->getBody() : '' + ); + } + ); + } + + /** + * Create request for operation 'cmsSiteSearchV3Search' + * + * @param bool|null $analytics (optional) + * @param bool|null $autocomplete (optional) + * @param float|null $boost_limit (optional) + * @param string|null $boost_recent (optional) + * @param string[]|null $domain (optional) + * @param int[]|null $group_id (optional) + * @param string|null $hubdb_query (optional) + * @param string|null $language (optional) + * @param string|null $length (optional) + * @param int|null $limit The maximum number of results to display per page. (optional) + * @param bool|null $match_prefix (optional) + * @param int|null $offset (optional) + * @param string[]|null $path_prefix (optional) + * @param float|null $popularity_boost (optional) + * @param string[]|null $property (optional) + * @param string|null $q (optional) + * @param int|null $table_id (optional) + * @param string[]|null $type (optional) + * @param string[]|null $types (optional) + * @param string $contentType The value for the Content-Type header. Check self::contentTypes['cmsSiteSearchV3Search'] to see the possible values for this operation + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + public function cmsSiteSearchV3SearchRequest($analytics = null, $autocomplete = null, $boost_limit = null, $boost_recent = null, $domain = null, $group_id = null, $hubdb_query = null, $language = null, $length = null, $limit = null, $match_prefix = null, $offset = null, $path_prefix = null, $popularity_boost = null, $property = null, $q = null, $table_id = null, $type = null, $types = null, string $contentType = self::contentTypes['cmsSiteSearchV3Search'][0]) + { + + + + + + + + + + + + + + + + + + + + + + $resourcePath = '/cms/site-search/v3/search'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $analytics, + 'analytics', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $autocomplete, + 'autocomplete', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $boost_limit, + 'boostLimit', // param base name + 'number', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $boost_recent, + 'boostRecent', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $domain, + 'domain', // param base name + 'array', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $group_id, + 'groupId', // param base name + 'array', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $hubdb_query, + 'hubdbQuery', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $language, + 'language', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $length, + 'length', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $limit, + 'limit', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $match_prefix, + 'matchPrefix', // param base name + 'boolean', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $offset, + 'offset', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $path_prefix, + 'pathPrefix', // param base name + 'array', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $popularity_boost, + 'popularityBoost', // param base name + 'number', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $property, + 'property', // param base name + 'array', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $q, + 'q', // param base name + 'string', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $table_id, + 'tableId', // param base name + 'integer', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $type, + 'type', // param base name + 'array', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + // query params + $queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue( + $types, + 'types', // param base name + 'array', // openApiType + 'form', // style + true, // explode + false // required + ) ?? []); + + + + + $headers = $this->headerSelector->selectHeaders( + ['application/json', '*/*', ], + $contentType, + $multipart + ); + + // for model (json/xml) + if (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif (stripos($headers['Content-Type'], 'application/json') !== false) { + # if Content-Type contains "application/json", json_encode the form parameters + $httpBody = json_encode($formParams, JSON_THROW_ON_ERROR); + } else { + // for HTTP post (form) + $httpBody = ObjectSerializer::buildQuery($formParams); + } + } + + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $operationHost = $this->config->getHost(); + $query = ObjectSerializer::buildQuery($queryParams); + return new Request( + 'GET', + $operationHost . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + if ($this->config->getCertFile()) { + $options[RequestOptions::CERT] = $this->config->getCertFile(); + } + + if ($this->config->getKeyFile()) { + $options[RequestOptions::SSL_KEY] = $this->config->getKeyFile(); + } + + return $options; + } + + private function handleResponseWithDataType( + string $dataType, + RequestInterface $request, + ResponseInterface $response + ): array { + if ($dataType === '\SplFileObject') { + $content = $response->getBody(); //stream goes to serializer + } else { + $content = (string) $response->getBody(); + if ($dataType !== 'string') { + try { + $content = json_decode($content, false, 512, JSON_THROW_ON_ERROR); + } catch (\JsonException $exception) { + throw new ApiException( + sprintf( + 'Error JSON decoding server response (%s)', + $request->getUri() + ), + $response->getStatusCode(), + $response->getHeaders(), + $content + ); + } + } + } + + return [ + ObjectSerializer::deserialize($content, $dataType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + private function responseWithinRangeCode( + string $rangeCode, + int $statusCode + ): bool { + $left = (int) ($rangeCode[0].'00'); + $right = (int) ($rangeCode[0].'99'); + + return $statusCode >= $left && $statusCode <= $right; + } +} diff --git a/codegen/Cms/SiteSearch/Model/ContentSearchResult.php b/codegen/Cms/SiteSearch/Model/ContentSearchResult.php new file mode 100644 index 00000000..ee925963 --- /dev/null +++ b/codegen/Cms/SiteSearch/Model/ContentSearchResult.php @@ -0,0 +1,2924 @@ + + */ +class ContentSearchResult implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ContentSearchResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'author_full_name' => 'string', + 'category' => 'string', + 'combined_id' => 'string', + 'content_type' => 'string', + 'description' => 'string', + 'domain' => 'string', + 'featured_image_url' => 'string', + 'id' => 'int', + 'in_beta' => 'bool', + 'is_private' => 'bool', + 'language' => 'string', + 'published_date' => 'int', + 'row_id' => 'int', + 'score' => 'float', + 'subcategory' => 'string', + 'table_id' => 'int', + 'tags' => 'string[]', + 'title' => 'string', + 'type' => 'string', + 'url' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'author_full_name' => null, + 'category' => null, + 'combined_id' => null, + 'content_type' => null, + 'description' => null, + 'domain' => null, + 'featured_image_url' => null, + 'id' => 'int64', + 'in_beta' => null, + 'is_private' => null, + 'language' => null, + 'published_date' => 'int64', + 'row_id' => 'int64', + 'score' => null, + 'subcategory' => null, + 'table_id' => 'int64', + 'tags' => null, + 'title' => null, + 'type' => null, + 'url' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'author_full_name' => false, + 'category' => false, + 'combined_id' => false, + 'content_type' => false, + 'description' => false, + 'domain' => false, + 'featured_image_url' => false, + 'id' => false, + 'in_beta' => false, + 'is_private' => false, + 'language' => false, + 'published_date' => false, + 'row_id' => false, + 'score' => false, + 'subcategory' => false, + 'table_id' => false, + 'tags' => false, + 'title' => false, + 'type' => false, + 'url' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * 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 nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'author_full_name' => 'authorFullName', + 'category' => 'category', + 'combined_id' => 'combinedId', + 'content_type' => 'contentType', + 'description' => 'description', + 'domain' => 'domain', + 'featured_image_url' => 'featuredImageUrl', + 'id' => 'id', + 'in_beta' => 'inBeta', + 'is_private' => 'isPrivate', + 'language' => 'language', + 'published_date' => 'publishedDate', + 'row_id' => 'rowId', + 'score' => 'score', + 'subcategory' => 'subcategory', + 'table_id' => 'tableId', + 'tags' => 'tags', + 'title' => 'title', + 'type' => 'type', + 'url' => 'url' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'author_full_name' => 'setAuthorFullName', + 'category' => 'setCategory', + 'combined_id' => 'setCombinedId', + 'content_type' => 'setContentType', + 'description' => 'setDescription', + 'domain' => 'setDomain', + 'featured_image_url' => 'setFeaturedImageUrl', + 'id' => 'setId', + 'in_beta' => 'setInBeta', + 'is_private' => 'setIsPrivate', + 'language' => 'setLanguage', + 'published_date' => 'setPublishedDate', + 'row_id' => 'setRowId', + 'score' => 'setScore', + 'subcategory' => 'setSubcategory', + 'table_id' => 'setTableId', + 'tags' => 'setTags', + 'title' => 'setTitle', + 'type' => 'setType', + 'url' => 'setUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'author_full_name' => 'getAuthorFullName', + 'category' => 'getCategory', + 'combined_id' => 'getCombinedId', + 'content_type' => 'getContentType', + 'description' => 'getDescription', + 'domain' => 'getDomain', + 'featured_image_url' => 'getFeaturedImageUrl', + 'id' => 'getId', + 'in_beta' => 'getInBeta', + 'is_private' => 'getIsPrivate', + 'language' => 'getLanguage', + 'published_date' => 'getPublishedDate', + 'row_id' => 'getRowId', + 'score' => 'getScore', + 'subcategory' => 'getSubcategory', + 'table_id' => 'getTableId', + 'tags' => 'getTags', + 'title' => 'getTitle', + 'type' => 'getType', + 'url' => 'getUrl' + ]; + + /** + * 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; + } + + public const LANGUAGE_AA = 'aa'; + public const LANGUAGE_AB = 'ab'; + public const LANGUAGE_AE = 'ae'; + 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_AN = 'an'; + public const LANGUAGE_ANN = 'ann'; + public const LANGUAGE_ANN_NG = 'ann-ng'; + 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_AV = 'av'; + public const LANGUAGE_AY = 'ay'; + public const LANGUAGE_AZ = 'az'; + public const LANGUAGE_AZ_AZ = 'az-az'; + public const LANGUAGE_BA = 'ba'; + public const LANGUAGE_BAL = 'bal'; + public const LANGUAGE_BAL_PK = 'bal-pk'; + 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_BGC = 'bgc'; + public const LANGUAGE_BGC_IN = 'bgc-in'; + public const LANGUAGE_BHO = 'bho'; + public const LANGUAGE_BHO_IN = 'bho-in'; + public const LANGUAGE_BI = 'bi'; + public const LANGUAGE_BLO = 'blo'; + public const LANGUAGE_BLO_BJ = 'blo-bj'; + 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_CEB = 'ceb'; + public const LANGUAGE_CEB_PH = 'ceb-ph'; + public const LANGUAGE_CGG = 'cgg'; + public const LANGUAGE_CGG_UG = 'cgg-ug'; + public const LANGUAGE_CH = 'ch'; + 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_CO = 'co'; + public const LANGUAGE_CR = 'cr'; + public const LANGUAGE_CS = 'cs'; + public const LANGUAGE_CS_CZ = 'cs-cz'; + public const LANGUAGE_CSW = 'csw'; + public const LANGUAGE_CSW_CA = 'csw-ca'; + public const LANGUAGE_CU = 'cu'; + public const LANGUAGE_CU_RU = 'cu-ru'; + public const LANGUAGE_CV = 'cv'; + public const LANGUAGE_CV_RU = 'cv-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_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'; + public const LANGUAGE_DUA_CM = 'dua-cm'; + public const LANGUAGE_DV = 'dv'; + 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_CN = 'en-cn'; + public const LANGUAGE_EN_CX = 'en-cx'; + public const LANGUAGE_EN_CY = 'en-cy'; + public const LANGUAGE_EN_CZ = 'en-cz'; + 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_EE = 'en-ee'; + public const LANGUAGE_EN_EG = 'en-eg'; + public const LANGUAGE_EN_ER = 'en-er'; + public const LANGUAGE_EN_ES = 'en-es'; + 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_FR = 'en-fr'; + 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_GS = 'en-gs'; + 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_HU = 'en-hu'; + public const LANGUAGE_EN_ID = 'en-id'; + 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_IT = 'en-it'; + 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_MV = 'en-mv'; + 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'; + public const LANGUAGE_EN_NG = 'en-ng'; + public const LANGUAGE_EN_NL = 'en-nl'; + public const LANGUAGE_EN_NO = 'en-no'; + 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_PL = 'en-pl'; + public const LANGUAGE_EN_PN = 'en-pn'; + public const LANGUAGE_EN_PR = 'en-pr'; + public const LANGUAGE_EN_PT = 'en-pt'; + public const LANGUAGE_EN_PW = 'en-pw'; + public const LANGUAGE_EN_RO = 'en-ro'; + 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_SK = 'en-sk'; + 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_TH = 'en-th'; + public const LANGUAGE_EN_TK = 'en-tk'; + public const LANGUAGE_EN_TN = 'en-tn'; + 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_VN = 'en-vn'; + 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_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'; + public const LANGUAGE_FIL = 'fil'; + public const LANGUAGE_FIL_PH = 'fil-ph'; + public const LANGUAGE_FJ = 'fj'; + 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_FRR = 'frr'; + public const LANGUAGE_FRR_DE = 'frr-de'; + 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_GB = 'ga-gb'; + public const LANGUAGE_GA_IE = 'ga-ie'; + public const LANGUAGE_GAA = 'gaa'; + public const LANGUAGE_GAA_GH = 'gaa-gh'; + 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_GN = 'gn'; + 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_HE_IL = 'he-il'; + public const LANGUAGE_HI = 'hi'; + public const LANGUAGE_HI_IN = 'hi-in'; + public const LANGUAGE_HMN = 'hmn'; + public const LANGUAGE_HO = 'ho'; + 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_HT = 'ht'; + public const LANGUAGE_HT_HT = 'ht-ht'; + 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_HZ = 'hz'; + public const LANGUAGE_IA = 'ia'; + public const LANGUAGE_IA_001 = 'ia-001'; + public const LANGUAGE_ID = 'id'; + public const LANGUAGE_ID_ID = 'id-id'; + public const LANGUAGE_IE = 'ie'; + public const LANGUAGE_IE_EE = 'ie-ee'; + 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_IK = 'ik'; + public const LANGUAGE_IO = 'io'; + 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_IU = 'iu'; + 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_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'; + public const LANGUAGE_KAB_DZ = 'kab-dz'; + public const LANGUAGE_KAM = 'kam'; + public const LANGUAGE_KAM_KE = 'kam-ke'; + public const LANGUAGE_KAR = 'kar'; + 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_KG = 'kg'; + public const LANGUAGE_KGP = 'kgp'; + public const LANGUAGE_KGP_BR = 'kgp-br'; + public const LANGUAGE_KH = 'kh'; + 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_KJ = 'kj'; + 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_CN = 'ko-cn'; + 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_KR = 'kr'; + 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_KU = 'ku'; + public const LANGUAGE_KU_TR = 'ku-tr'; + public const LANGUAGE_KV = 'kv'; + public const LANGUAGE_KW = 'kw'; + public const LANGUAGE_KW_GB = 'kw-gb'; + public const LANGUAGE_KXV = 'kxv'; + public const LANGUAGE_KXV_IN = 'kxv-in'; + public const LANGUAGE_KY = 'ky'; + public const LANGUAGE_KY_KG = 'ky-kg'; + public const LANGUAGE_LA = 'la'; + 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_LI = 'li'; + public const LANGUAGE_LIJ = 'lij'; + public const LANGUAGE_LIJ_IT = 'lij-it'; + public const LANGUAGE_LKT = 'lkt'; + public const LANGUAGE_LKT_US = 'lkt-us'; + public const LANGUAGE_LMO = 'lmo'; + public const LANGUAGE_LMO_IT = 'lmo-it'; + 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_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'; + public const LANGUAGE_MDF = 'mdf'; + public const LANGUAGE_MDF_RU = 'mdf-ru'; + 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_MH = 'mh'; + 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'; + 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_NA = 'na'; + 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_NG = 'ng'; + public const LANGUAGE_NL = 'nl'; + public const LANGUAGE_NL_AW = 'nl-aw'; + public const LANGUAGE_NL_BE = 'nl-be'; + public const LANGUAGE_NL_BQ = 'nl-bq'; + public const LANGUAGE_NL_CH = 'nl-ch'; + public const LANGUAGE_NL_CW = 'nl-cw'; + public const LANGUAGE_NL_LU = 'nl-lu'; + public const LANGUAGE_NL_NL = 'nl-nl'; + 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_NQO = 'nqo'; + public const LANGUAGE_NQO_GN = 'nqo-gn'; + public const LANGUAGE_NR = 'nr'; + public const LANGUAGE_NSO = 'nso'; + public const LANGUAGE_NSO_ZA = 'nso-za'; + public const LANGUAGE_NUS = 'nus'; + public const LANGUAGE_NUS_SS = 'nus-ss'; + public const LANGUAGE_NV = 'nv'; + public const LANGUAGE_NY = 'ny'; + public const LANGUAGE_NYN = 'nyn'; + public const LANGUAGE_NYN_UG = 'nyn-ug'; + public const LANGUAGE_OC = 'oc'; + public const LANGUAGE_OC_ES = 'oc-es'; + public const LANGUAGE_OC_FR = 'oc-fr'; + public const LANGUAGE_OJ = 'oj'; + 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_PCM = 'pcm'; + public const LANGUAGE_PCM_NG = 'pcm-ng'; + public const LANGUAGE_PI = 'pi'; + public const LANGUAGE_PIS = 'pis'; + public const LANGUAGE_PIS_SB = 'pis-sb'; + 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'; + 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_RAJ = 'raj'; + public const LANGUAGE_RAJ_IN = 'raj-in'; + 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_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_SC = 'sc'; + public const LANGUAGE_SC_IT = 'sc-it'; + 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'; + 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_SM = 'sm'; + public const LANGUAGE_SMN = 'smn'; + public const LANGUAGE_SMN_FI = 'smn-fi'; + public const LANGUAGE_SMS = 'sms'; + public const LANGUAGE_SMS_FI = 'sms-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_SS = 'ss'; + public const LANGUAGE_ST = 'st'; + public const LANGUAGE_ST_LS = 'st-ls'; + public const LANGUAGE_ST_ZA = 'st-za'; + 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'; + 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_SYR = 'syr'; + public const LANGUAGE_SYR_IQ = 'syr-iq'; + public const LANGUAGE_SYR_SY = 'syr-sy'; + public const LANGUAGE_SZL = 'szl'; + public const LANGUAGE_SZL_PL = 'szl-pl'; + 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_TL = 'tl'; + public const LANGUAGE_TN = 'tn'; + public const LANGUAGE_TN_BW = 'tn-bw'; + public const LANGUAGE_TN_ZA = 'tn-za'; + public const LANGUAGE_TO = 'to'; + public const LANGUAGE_TO_TO = 'to-to'; + public const LANGUAGE_TOK = 'tok'; + public const LANGUAGE_TOK_001 = 'tok-001'; + public const LANGUAGE_TR = 'tr'; + public const LANGUAGE_TR_CY = 'tr-cy'; + public const LANGUAGE_TR_TR = 'tr-tr'; + public const LANGUAGE_TS = 'ts'; + public const LANGUAGE_TT = 'tt'; + public const LANGUAGE_TT_RU = 'tt-ru'; + public const LANGUAGE_TW = 'tw'; + public const LANGUAGE_TWQ = 'twq'; + public const LANGUAGE_TWQ_NE = 'twq-ne'; + public const LANGUAGE_TY = 'ty'; + 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_VE = 've'; + public const LANGUAGE_VEC = 'vec'; + public const LANGUAGE_VEC_IT = 'vec-it'; + public const LANGUAGE_VI = 'vi'; + public const LANGUAGE_VI_VN = 'vi-vn'; + public const LANGUAGE_VMW = 'vmw'; + public const LANGUAGE_VMW_MZ = 'vmw-mz'; + 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_WA = 'wa'; + 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_XH = 'xh'; + public const LANGUAGE_XH_ZA = 'xh-za'; + public const LANGUAGE_XNR = 'xnr'; + public const LANGUAGE_XNR_IN = 'xnr-in'; + 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_YI = 'yi'; + public const LANGUAGE_YI_001 = 'yi-001'; + public const LANGUAGE_YI_UA = 'yi-ua'; + public const LANGUAGE_YO = 'yo'; + public const LANGUAGE_YO_BJ = 'yo-bj'; + public const LANGUAGE_YO_NG = 'yo-ng'; + public const LANGUAGE_YRL = 'yrl'; + public const LANGUAGE_YRL_BR = 'yrl-br'; + public const LANGUAGE_YRL_CO = 'yrl-co'; + public const LANGUAGE_YRL_VE = 'yrl-ve'; + public const LANGUAGE_YUE = 'yue'; + public const LANGUAGE_YUE_CN = 'yue-cn'; + public const LANGUAGE_YUE_HK = 'yue-hk'; + public const LANGUAGE_YUE_MO = 'yue-mo'; + public const LANGUAGE_ZA = 'za'; + public const LANGUAGE_ZA_CN = 'za-cn'; + 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_HANS = 'zh-hans'; + public const LANGUAGE_ZH_HANT = 'zh-hant'; + public const LANGUAGE_ZH_HK = 'zh-hk'; + public const LANGUAGE_ZH_MO = 'zh-mo'; + public const LANGUAGE_ZH_MY = 'zh-my'; + public const LANGUAGE_ZH_SG = 'zh-sg'; + public const LANGUAGE_ZH_TW = 'zh-tw'; + public const LANGUAGE_ZU = 'zu'; + public const LANGUAGE_ZU_ZA = 'zu-za'; + public const TYPE_BLOG_POST = 'BLOG_POST'; + public const TYPE_KNOWLEDGE_ARTICLE = 'KNOWLEDGE_ARTICLE'; + public const TYPE_LANDING_PAGE = 'LANDING_PAGE'; + public const TYPE_LISTING_PAGE = 'LISTING_PAGE'; + public const TYPE_SITE_PAGE = 'SITE_PAGE'; + public const TYPE_STRUCTURED_CONTENT = 'STRUCTURED_CONTENT'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getLanguageAllowableValues() + { + return [ + self::LANGUAGE_AA, + self::LANGUAGE_AB, + self::LANGUAGE_AE, + 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_AN, + self::LANGUAGE_ANN, + self::LANGUAGE_ANN_NG, + 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_AV, + self::LANGUAGE_AY, + self::LANGUAGE_AZ, + self::LANGUAGE_AZ_AZ, + self::LANGUAGE_BA, + self::LANGUAGE_BAL, + self::LANGUAGE_BAL_PK, + 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_BGC, + self::LANGUAGE_BGC_IN, + self::LANGUAGE_BHO, + self::LANGUAGE_BHO_IN, + self::LANGUAGE_BI, + self::LANGUAGE_BLO, + self::LANGUAGE_BLO_BJ, + 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_CEB, + self::LANGUAGE_CEB_PH, + self::LANGUAGE_CGG, + self::LANGUAGE_CGG_UG, + self::LANGUAGE_CH, + self::LANGUAGE_CHR, + self::LANGUAGE_CHR_US, + self::LANGUAGE_CKB, + self::LANGUAGE_CKB_IQ, + self::LANGUAGE_CKB_IR, + self::LANGUAGE_CO, + self::LANGUAGE_CR, + self::LANGUAGE_CS, + self::LANGUAGE_CS_CZ, + self::LANGUAGE_CSW, + self::LANGUAGE_CSW_CA, + self::LANGUAGE_CU, + self::LANGUAGE_CU_RU, + self::LANGUAGE_CV, + self::LANGUAGE_CV_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_DOI, + self::LANGUAGE_DOI_IN, + self::LANGUAGE_DSB, + self::LANGUAGE_DSB_DE, + self::LANGUAGE_DUA, + self::LANGUAGE_DUA_CM, + self::LANGUAGE_DV, + 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_CN, + self::LANGUAGE_EN_CX, + self::LANGUAGE_EN_CY, + self::LANGUAGE_EN_CZ, + self::LANGUAGE_EN_DE, + self::LANGUAGE_EN_DG, + self::LANGUAGE_EN_DK, + self::LANGUAGE_EN_DM, + self::LANGUAGE_EN_EE, + self::LANGUAGE_EN_EG, + self::LANGUAGE_EN_ER, + self::LANGUAGE_EN_ES, + self::LANGUAGE_EN_FI, + self::LANGUAGE_EN_FJ, + self::LANGUAGE_EN_FK, + self::LANGUAGE_EN_FM, + self::LANGUAGE_EN_FR, + 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_GS, + self::LANGUAGE_EN_GU, + self::LANGUAGE_EN_GY, + self::LANGUAGE_EN_HK, + self::LANGUAGE_EN_HU, + self::LANGUAGE_EN_ID, + self::LANGUAGE_EN_IE, + self::LANGUAGE_EN_IL, + self::LANGUAGE_EN_IM, + self::LANGUAGE_EN_IN, + self::LANGUAGE_EN_IO, + self::LANGUAGE_EN_IT, + 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_MV, + self::LANGUAGE_EN_MW, + self::LANGUAGE_EN_MX, + self::LANGUAGE_EN_MY, + self::LANGUAGE_EN_NA, + self::LANGUAGE_EN_NF, + self::LANGUAGE_EN_NG, + self::LANGUAGE_EN_NL, + self::LANGUAGE_EN_NO, + 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_PL, + self::LANGUAGE_EN_PN, + self::LANGUAGE_EN_PR, + self::LANGUAGE_EN_PT, + self::LANGUAGE_EN_PW, + self::LANGUAGE_EN_RO, + 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_SK, + self::LANGUAGE_EN_SL, + self::LANGUAGE_EN_SS, + self::LANGUAGE_EN_SX, + self::LANGUAGE_EN_SZ, + self::LANGUAGE_EN_TC, + self::LANGUAGE_EN_TH, + self::LANGUAGE_EN_TK, + self::LANGUAGE_EN_TN, + 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_VN, + 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_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, + self::LANGUAGE_FIL, + self::LANGUAGE_FIL_PH, + self::LANGUAGE_FJ, + 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_FRR, + self::LANGUAGE_FRR_DE, + self::LANGUAGE_FUR, + self::LANGUAGE_FUR_IT, + self::LANGUAGE_FY, + self::LANGUAGE_FY_NL, + self::LANGUAGE_GA, + self::LANGUAGE_GA_GB, + self::LANGUAGE_GA_IE, + self::LANGUAGE_GAA, + self::LANGUAGE_GAA_GH, + self::LANGUAGE_GD, + self::LANGUAGE_GD_GB, + self::LANGUAGE_GL, + self::LANGUAGE_GL_ES, + self::LANGUAGE_GN, + 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_HE_IL, + self::LANGUAGE_HI, + self::LANGUAGE_HI_IN, + self::LANGUAGE_HMN, + self::LANGUAGE_HO, + self::LANGUAGE_HR, + self::LANGUAGE_HR_BA, + self::LANGUAGE_HR_HR, + self::LANGUAGE_HSB, + self::LANGUAGE_HSB_DE, + self::LANGUAGE_HT, + self::LANGUAGE_HT_HT, + self::LANGUAGE_HU, + self::LANGUAGE_HU_HU, + self::LANGUAGE_HY, + self::LANGUAGE_HY_AM, + self::LANGUAGE_HZ, + self::LANGUAGE_IA, + self::LANGUAGE_IA_001, + self::LANGUAGE_ID, + self::LANGUAGE_ID_ID, + self::LANGUAGE_IE, + self::LANGUAGE_IE_EE, + self::LANGUAGE_IG, + self::LANGUAGE_IG_NG, + self::LANGUAGE_II, + self::LANGUAGE_II_CN, + self::LANGUAGE_IK, + self::LANGUAGE_IO, + 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_IU, + self::LANGUAGE_JA, + self::LANGUAGE_JA_JP, + self::LANGUAGE_JGO, + self::LANGUAGE_JGO_CM, + self::LANGUAGE_JMC, + self::LANGUAGE_JMC_TZ, + self::LANGUAGE_JV, + self::LANGUAGE_JV_ID, + self::LANGUAGE_KA, + self::LANGUAGE_KA_GE, + self::LANGUAGE_KAB, + self::LANGUAGE_KAB_DZ, + self::LANGUAGE_KAM, + self::LANGUAGE_KAM_KE, + self::LANGUAGE_KAR, + self::LANGUAGE_KDE, + self::LANGUAGE_KDE_TZ, + self::LANGUAGE_KEA, + self::LANGUAGE_KEA_CV, + self::LANGUAGE_KG, + self::LANGUAGE_KGP, + self::LANGUAGE_KGP_BR, + self::LANGUAGE_KH, + self::LANGUAGE_KHQ, + self::LANGUAGE_KHQ_ML, + self::LANGUAGE_KI, + self::LANGUAGE_KI_KE, + self::LANGUAGE_KJ, + 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_CN, + self::LANGUAGE_KO_KP, + self::LANGUAGE_KO_KR, + self::LANGUAGE_KOK, + self::LANGUAGE_KOK_IN, + self::LANGUAGE_KR, + 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_KU, + self::LANGUAGE_KU_TR, + self::LANGUAGE_KV, + self::LANGUAGE_KW, + self::LANGUAGE_KW_GB, + self::LANGUAGE_KXV, + self::LANGUAGE_KXV_IN, + self::LANGUAGE_KY, + self::LANGUAGE_KY_KG, + self::LANGUAGE_LA, + self::LANGUAGE_LAG, + self::LANGUAGE_LAG_TZ, + self::LANGUAGE_LB, + self::LANGUAGE_LB_LU, + self::LANGUAGE_LG, + self::LANGUAGE_LG_UG, + self::LANGUAGE_LI, + self::LANGUAGE_LIJ, + self::LANGUAGE_LIJ_IT, + self::LANGUAGE_LKT, + self::LANGUAGE_LKT_US, + self::LANGUAGE_LMO, + self::LANGUAGE_LMO_IT, + 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_MAI, + self::LANGUAGE_MAI_IN, + self::LANGUAGE_MAS, + self::LANGUAGE_MAS_KE, + self::LANGUAGE_MAS_TZ, + self::LANGUAGE_MDF, + self::LANGUAGE_MDF_RU, + 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_MH, + 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, + 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_NA, + 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_NG, + self::LANGUAGE_NL, + self::LANGUAGE_NL_AW, + self::LANGUAGE_NL_BE, + self::LANGUAGE_NL_BQ, + self::LANGUAGE_NL_CH, + 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_NQO, + self::LANGUAGE_NQO_GN, + self::LANGUAGE_NR, + self::LANGUAGE_NSO, + self::LANGUAGE_NSO_ZA, + self::LANGUAGE_NUS, + self::LANGUAGE_NUS_SS, + self::LANGUAGE_NV, + self::LANGUAGE_NY, + self::LANGUAGE_NYN, + self::LANGUAGE_NYN_UG, + self::LANGUAGE_OC, + self::LANGUAGE_OC_ES, + self::LANGUAGE_OC_FR, + self::LANGUAGE_OJ, + 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_PCM, + self::LANGUAGE_PCM_NG, + self::LANGUAGE_PI, + self::LANGUAGE_PIS, + self::LANGUAGE_PIS_SB, + 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, + 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_RAJ, + self::LANGUAGE_RAJ_IN, + 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_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_SC, + self::LANGUAGE_SC_IT, + self::LANGUAGE_SD, + self::LANGUAGE_SD_IN, + 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_SM, + self::LANGUAGE_SMN, + self::LANGUAGE_SMN_FI, + self::LANGUAGE_SMS, + self::LANGUAGE_SMS_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_SS, + self::LANGUAGE_ST, + self::LANGUAGE_ST_LS, + self::LANGUAGE_ST_ZA, + self::LANGUAGE_SU, + self::LANGUAGE_SU_ID, + 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_SYR, + self::LANGUAGE_SYR_IQ, + self::LANGUAGE_SYR_SY, + self::LANGUAGE_SZL, + self::LANGUAGE_SZL_PL, + 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_TL, + self::LANGUAGE_TN, + self::LANGUAGE_TN_BW, + self::LANGUAGE_TN_ZA, + self::LANGUAGE_TO, + self::LANGUAGE_TO_TO, + self::LANGUAGE_TOK, + self::LANGUAGE_TOK_001, + self::LANGUAGE_TR, + self::LANGUAGE_TR_CY, + self::LANGUAGE_TR_TR, + self::LANGUAGE_TS, + self::LANGUAGE_TT, + self::LANGUAGE_TT_RU, + self::LANGUAGE_TW, + self::LANGUAGE_TWQ, + self::LANGUAGE_TWQ_NE, + self::LANGUAGE_TY, + 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_VE, + self::LANGUAGE_VEC, + self::LANGUAGE_VEC_IT, + self::LANGUAGE_VI, + self::LANGUAGE_VI_VN, + self::LANGUAGE_VMW, + self::LANGUAGE_VMW_MZ, + self::LANGUAGE_VO, + self::LANGUAGE_VO_001, + self::LANGUAGE_VUN, + self::LANGUAGE_VUN_TZ, + self::LANGUAGE_WA, + self::LANGUAGE_WAE, + self::LANGUAGE_WAE_CH, + self::LANGUAGE_WO, + self::LANGUAGE_WO_SN, + self::LANGUAGE_XH, + self::LANGUAGE_XH_ZA, + self::LANGUAGE_XNR, + self::LANGUAGE_XNR_IN, + self::LANGUAGE_XOG, + self::LANGUAGE_XOG_UG, + self::LANGUAGE_YAV, + self::LANGUAGE_YAV_CM, + self::LANGUAGE_YI, + self::LANGUAGE_YI_001, + self::LANGUAGE_YI_UA, + self::LANGUAGE_YO, + self::LANGUAGE_YO_BJ, + self::LANGUAGE_YO_NG, + self::LANGUAGE_YRL, + self::LANGUAGE_YRL_BR, + self::LANGUAGE_YRL_CO, + self::LANGUAGE_YRL_VE, + self::LANGUAGE_YUE, + self::LANGUAGE_YUE_CN, + self::LANGUAGE_YUE_HK, + self::LANGUAGE_YUE_MO, + self::LANGUAGE_ZA, + self::LANGUAGE_ZA_CN, + self::LANGUAGE_ZGH, + self::LANGUAGE_ZGH_MA, + self::LANGUAGE_ZH, + self::LANGUAGE_ZH_CN, + self::LANGUAGE_ZH_HANS, + self::LANGUAGE_ZH_HANT, + self::LANGUAGE_ZH_HK, + self::LANGUAGE_ZH_MO, + self::LANGUAGE_ZH_MY, + self::LANGUAGE_ZH_SG, + self::LANGUAGE_ZH_TW, + self::LANGUAGE_ZU, + self::LANGUAGE_ZU_ZA, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_BLOG_POST, + self::TYPE_KNOWLEDGE_ARTICLE, + self::TYPE_LANDING_PAGE, + self::TYPE_LISTING_PAGE, + self::TYPE_SITE_PAGE, + self::TYPE_STRUCTURED_CONTENT, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('author_full_name', $data ?? [], null); + $this->setIfExists('category', $data ?? [], null); + $this->setIfExists('combined_id', $data ?? [], null); + $this->setIfExists('content_type', $data ?? [], null); + $this->setIfExists('description', $data ?? [], null); + $this->setIfExists('domain', $data ?? [], null); + $this->setIfExists('featured_image_url', $data ?? [], null); + $this->setIfExists('id', $data ?? [], null); + $this->setIfExists('in_beta', $data ?? [], null); + $this->setIfExists('is_private', $data ?? [], null); + $this->setIfExists('language', $data ?? [], null); + $this->setIfExists('published_date', $data ?? [], null); + $this->setIfExists('row_id', $data ?? [], null); + $this->setIfExists('score', $data ?? [], null); + $this->setIfExists('subcategory', $data ?? [], null); + $this->setIfExists('table_id', $data ?? [], null); + $this->setIfExists('tags', $data ?? [], null); + $this->setIfExists('title', $data ?? [], null); + $this->setIfExists('type', $data ?? [], null); + $this->setIfExists('url', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['domain'] === null) { + $invalidProperties[] = "'domain' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + $allowedValues = $this->getLanguageAllowableValues(); + if (!is_null($this->container['language']) && !in_array($this->container['language'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "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['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['url'] === null) { + $invalidProperties[] = "'url' 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 author_full_name + * + * @return string|null + */ + public function getAuthorFullName() + { + return $this->container['author_full_name']; + } + + /** + * Sets author_full_name + * + * @param string|null $author_full_name Name of the author. + * + * @return self + */ + public function setAuthorFullName($author_full_name) + { + if (is_null($author_full_name)) { + throw new \InvalidArgumentException('non-nullable author_full_name cannot be null'); + } + $this->container['author_full_name'] = $author_full_name; + + return $this; + } + + /** + * Gets category + * + * @return string|null + */ + public function getCategory() + { + return $this->container['category']; + } + + /** + * Sets category + * + * @param string|null $category The error category + * + * @return self + */ + public function setCategory($category) + { + if (is_null($category)) { + throw new \InvalidArgumentException('non-nullable category cannot be null'); + } + $this->container['category'] = $category; + + return $this; + } + + /** + * Gets combined_id + * + * @return string|null + */ + public function getCombinedId() + { + return $this->container['combined_id']; + } + + /** + * Sets combined_id + * + * @param string|null $combined_id The ID of the document in HubSpot. + * + * @return self + */ + public function setCombinedId($combined_id) + { + if (is_null($combined_id)) { + throw new \InvalidArgumentException('non-nullable combined_id cannot be null'); + } + $this->container['combined_id'] = $combined_id; + + return $this; + } + + /** + * Gets content_type + * + * @return string|null + */ + public function getContentType() + { + return $this->container['content_type']; + } + + /** + * Sets content_type + * + * @param string|null $content_type content_type + * + * @return self + */ + public function setContentType($content_type) + { + if (is_null($content_type)) { + throw new \InvalidArgumentException('non-nullable content_type cannot be null'); + } + $this->container['content_type'] = $content_type; + + return $this; + } + + /** + * Gets description + * + * @return string|null + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @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 setDescription($description) + { + if (is_null($description)) { + throw new \InvalidArgumentException('non-nullable description cannot be null'); + } + $this->container['description'] = $description; + + return $this; + } + + /** + * Gets domain + * + * @return string + */ + public function getDomain() + { + return $this->container['domain']; + } + + /** + * Sets domain + * + * @param string $domain The domain the document is hosted on. + * + * @return self + */ + public function setDomain($domain) + { + if (is_null($domain)) { + throw new \InvalidArgumentException('non-nullable domain cannot be null'); + } + $this->container['domain'] = $domain; + + return $this; + } + + /** + * Gets featured_image_url + * + * @return string|null + */ + public function getFeaturedImageUrl() + { + return $this->container['featured_image_url']; + } + + /** + * Sets featured_image_url + * + * @param string|null $featured_image_url URL of the featured image. + * + * @return self + */ + public function setFeaturedImageUrl($featured_image_url) + { + if (is_null($featured_image_url)) { + throw new \InvalidArgumentException('non-nullable featured_image_url cannot be null'); + } + $this->container['featured_image_url'] = $featured_image_url; + + return $this; + } + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id The ID of the content. + * + * @return self + */ + public function setId($id) + { + if (is_null($id)) { + throw new \InvalidArgumentException('non-nullable id cannot be null'); + } + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets in_beta + * + * @return bool|null + */ + public function getInBeta() + { + return $this->container['in_beta']; + } + + /** + * Sets in_beta + * + * @param bool|null $in_beta in_beta + * + * @return self + */ + public function setInBeta($in_beta) + { + if (is_null($in_beta)) { + throw new \InvalidArgumentException('non-nullable in_beta cannot be null'); + } + $this->container['in_beta'] = $in_beta; + + return $this; + } + + /** + * Gets is_private + * + * @return bool|null + */ + public function getIsPrivate() + { + return $this->container['is_private']; + } + + /** + * Sets is_private + * + * @param bool|null $is_private is_private + * + * @return self + */ + public function setIsPrivate($is_private) + { + if (is_null($is_private)) { + throw new \InvalidArgumentException('non-nullable is_private cannot be null'); + } + $this->container['is_private'] = $is_private; + + 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) + { + if (is_null($language)) { + throw new \InvalidArgumentException('non-nullable language cannot be null'); + } + $allowedValues = $this->getLanguageAllowableValues(); + if (!in_array($language, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'language', must be one of '%s'", + $language, + implode("', '", $allowedValues) + ) + ); + } + $this->container['language'] = $language; + + return $this; + } + + /** + * Gets published_date + * + * @return int|null + */ + public function getPublishedDate() + { + return $this->container['published_date']; + } + + /** + * Sets published_date + * + * @param int|null $published_date The date the content was published. + * + * @return self + */ + public function setPublishedDate($published_date) + { + if (is_null($published_date)) { + throw new \InvalidArgumentException('non-nullable published_date cannot be null'); + } + $this->container['published_date'] = $published_date; + + return $this; + } + + /** + * Gets row_id + * + * @return int|null + */ + public function getRowId() + { + return $this->container['row_id']; + } + + /** + * Sets row_id + * + * @param int|null $row_id If a dynamic page, the row ID in the HubDB table. + * + * @return self + */ + public function setRowId($row_id) + { + if (is_null($row_id)) { + throw new \InvalidArgumentException('non-nullable row_id cannot be null'); + } + $this->container['row_id'] = $row_id; + + return $this; + } + + /** + * Gets score + * + * @return float + */ + public function getScore() + { + return $this->container['score']; + } + + /** + * Sets score + * + * @param float $score The matching score of the document. + * + * @return self + */ + public function setScore($score) + { + if (is_null($score)) { + throw new \InvalidArgumentException('non-nullable score cannot be null'); + } + $this->container['score'] = $score; + + 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) + { + if (is_null($subcategory)) { + throw new \InvalidArgumentException('non-nullable subcategory cannot be null'); + } + $this->container['subcategory'] = $subcategory; + + return $this; + } + + /** + * Gets table_id + * + * @return int|null + */ + public function getTableId() + { + return $this->container['table_id']; + } + + /** + * Sets table_id + * + * @param int|null $table_id If a dynamic page, the ID of the HubDB table. + * + * @return self + */ + public function setTableId($table_id) + { + if (is_null($table_id)) { + throw new \InvalidArgumentException('non-nullable table_id cannot be null'); + } + $this->container['table_id'] = $table_id; + + return $this; + } + + /** + * Gets tags + * + * @return string[]|null + */ + public function getTags() + { + return $this->container['tags']; + } + + /** + * Sets tags + * + * @param string[]|null $tags If a blog post, the tags associated with it. + * + * @return self + */ + public function setTags($tags) + { + if (is_null($tags)) { + throw new \InvalidArgumentException('non-nullable tags cannot be null'); + } + $this->container['tags'] = $tags; + + return $this; + } + + /** + * Gets title + * + * @return string|null + */ + public function getTitle() + { + return $this->container['title']; + } + + /** + * Sets title + * + * @param string|null $title The title of the returned document. + * + * @return self + */ + public function setTitle($title) + { + if (is_null($title)) { + throw new \InvalidArgumentException('non-nullable title cannot be null'); + } + $this->container['title'] = $title; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type The type of document. Can be `SITE_PAGE`, `LANDING_PAGE`, `BLOG_POST`, `LISTING_PAGE`, or `KNOWLEDGE_ARTICLE`. + * + * @return self + */ + public function setType($type) + { + if (is_null($type)) { + throw new \InvalidArgumentException('non-nullable type cannot be null'); + } + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url The url of the document. + * + * @return self + */ + public function setUrl($url) + { + if (is_null($url)) { + throw new \InvalidArgumentException('non-nullable url cannot be null'); + } + $this->container['url'] = $url; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer|string $offset Offset + * + * @return boolean + */ + public function offsetExists(mixed $offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer|string $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet(mixed $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|string $offset Offset + * + * @return void + */ + public function offsetUnset(mixed $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/SiteSearch/Model/PublicSearchResults.php b/codegen/Cms/SiteSearch/Model/PublicSearchResults.php new file mode 100644 index 00000000..197bc1fb --- /dev/null +++ b/codegen/Cms/SiteSearch/Model/PublicSearchResults.php @@ -0,0 +1,594 @@ + + */ +class PublicSearchResults implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PublicSearchResults'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'limit' => 'int', + 'offset' => 'int', + 'page' => 'int', + 'results' => '\HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[]', + 'search_term' => 'string', + 'total' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'limit' => 'int32', + 'offset' => 'int32', + 'page' => 'int32', + 'results' => null, + 'search_term' => null, + 'total' => 'int64' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static array $openAPINullables = [ + 'limit' => false, + 'offset' => false, + 'page' => false, + 'results' => false, + 'search_term' => false, + 'total' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected array $openAPINullablesSetToNull = []; + + /** + * 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 nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'limit' => 'limit', + 'offset' => 'offset', + 'page' => 'page', + 'results' => 'results', + 'search_term' => 'searchTerm', + 'total' => 'total' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'limit' => 'setLimit', + 'offset' => 'setOffset', + 'page' => 'setPage', + 'results' => 'setResults', + 'search_term' => 'setSearchTerm', + 'total' => 'setTotal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'limit' => 'getLimit', + 'offset' => 'getOffset', + 'page' => 'getPage', + 'results' => 'getResults', + 'search_term' => 'getSearchTerm', + 'total' => 'getTotal' + ]; + + /** + * 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[]|null $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('limit', $data ?? [], null); + $this->setIfExists('offset', $data ?? [], null); + $this->setIfExists('page', $data ?? [], null); + $this->setIfExists('results', $data ?? [], null); + $this->setIfExists('search_term', $data ?? [], null); + $this->setIfExists('total', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['limit'] === null) { + $invalidProperties[] = "'limit' can't be null"; + } + if ($this->container['offset'] === null) { + $invalidProperties[] = "'offset' can't be null"; + } + if ($this->container['page'] === null) { + $invalidProperties[] = "'page' can't be null"; + } + if ($this->container['results'] === null) { + $invalidProperties[] = "'results' can't be null"; + } + if ($this->container['total'] === null) { + $invalidProperties[] = "'total' can't be null"; + } + return $invalidProperties; + } + + /** + * 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 limit + * + * @return int + */ + public function getLimit() + { + return $this->container['limit']; + } + + /** + * Sets limit + * + * @param int $limit The number of results returned in a single response. + * + * @return self + */ + public function setLimit($limit) + { + if (is_null($limit)) { + throw new \InvalidArgumentException('non-nullable limit cannot be null'); + } + $this->container['limit'] = $limit; + + return $this; + } + + /** + * Gets offset + * + * @return int + */ + public function getOffset() + { + return $this->container['offset']; + } + + /** + * Sets offset + * + * @param int $offset The starting point for the next set of results in pagination. + * + * @return self + */ + public function setOffset($offset) + { + if (is_null($offset)) { + throw new \InvalidArgumentException('non-nullable offset cannot be null'); + } + $this->container['offset'] = $offset; + + return $this; + } + + /** + * Gets page + * + * @return int + */ + public function getPage() + { + return $this->container['page']; + } + + /** + * Sets page + * + * @param int $page The current page number in the paginated results. + * + * @return self + */ + public function setPage($page) + { + if (is_null($page)) { + throw new \InvalidArgumentException('non-nullable page cannot be null'); + } + $this->container['page'] = $page; + + return $this; + } + + /** + * Gets results + * + * @return \HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[] + */ + public function getResults() + { + return $this->container['results']; + } + + /** + * Sets results + * + * @param \HubSpot\Client\Cms\SiteSearch\Model\ContentSearchResult[] $results results + * + * @return self + */ + public function setResults($results) + { + if (is_null($results)) { + throw new \InvalidArgumentException('non-nullable results cannot be null'); + } + $this->container['results'] = $results; + + return $this; + } + + /** + * Gets search_term + * + * @return string|null + */ + public function getSearchTerm() + { + return $this->container['search_term']; + } + + /** + * Sets search_term + * + * @param string|null $search_term The term used in the search query. + * + * @return self + */ + public function setSearchTerm($search_term) + { + if (is_null($search_term)) { + throw new \InvalidArgumentException('non-nullable search_term cannot be null'); + } + $this->container['search_term'] = $search_term; + + return $this; + } + + /** + * Gets total + * + * @return int + */ + public function getTotal() + { + return $this->container['total']; + } + + /** + * Sets total + * + * @param int $total The total number of results found for the search term. + * + * @return self + */ + public function setTotal($total) + { + if (is_null($total)) { + throw new \InvalidArgumentException('non-nullable total cannot be null'); + } + $this->container['total'] = $total; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer|string $offset Offset + * + * @return boolean + */ + public function offsetExists(mixed $offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer|string $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet(mixed $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|string $offset Offset + * + * @return void + */ + public function offsetUnset(mixed $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/Crm/Commerce/Invoices/Api/BasicApi.php b/codegen/Crm/Commerce/Invoices/Api/BasicApi.php index 3ab49aca..c9d759b4 100644 --- a/codegen/Crm/Commerce/Invoices/Api/BasicApi.php +++ b/codegen/Crm/Commerce/Invoices/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($invoice_id, string $contentType = self::contentT } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($invoice_id, $archived = false, $associations = n } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($invoice_id, $simple_public_object_input, $id_prop } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Commerce/Invoices/Api/BatchApi.php b/codegen/Crm/Commerce/Invoices/Api/BatchApi.php index 59159817..0482641f 100644 --- a/codegen/Crm/Commerce/Invoices/Api/BatchApi.php +++ b/codegen/Crm/Commerce/Invoices/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Commerce/Invoices/Api/SearchApi.php b/codegen/Crm/Commerce/Invoices/Api/SearchApi.php index 24c26c54..1d050167 100644 --- a/codegen/Crm/Commerce/Invoices/Api/SearchApi.php +++ b/codegen/Crm/Commerce/Invoices/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Companies/Api/AdvancedApi.php b/codegen/Crm/Companies/Api/AdvancedApi.php index ebfb8df4..ae05b538 100644 --- a/codegen/Crm/Companies/Api/AdvancedApi.php +++ b/codegen/Crm/Companies/Api/AdvancedApi.php @@ -383,6 +383,10 @@ public function mergeRequest($public_merge_input, string $contentType = self::co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Companies/Api/BasicApi.php b/codegen/Crm/Companies/Api/BasicApi.php index 31bb3450..97eed278 100644 --- a/codegen/Crm/Companies/Api/BasicApi.php +++ b/codegen/Crm/Companies/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($company_id, string $contentType = self::contentT } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($company_id, $archived = false, $associations = n } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($company_id, $simple_public_object_input, $id_prop } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Companies/Api/BatchApi.php b/codegen/Crm/Companies/Api/BatchApi.php index a42b696e..d6cdefe4 100644 --- a/codegen/Crm/Companies/Api/BatchApi.php +++ b/codegen/Crm/Companies/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Companies/Api/SearchApi.php b/codegen/Crm/Companies/Api/SearchApi.php index 7a03f35a..f4414646 100644 --- a/codegen/Crm/Companies/Api/SearchApi.php +++ b/codegen/Crm/Companies/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Contacts/Api/AdvancedApi.php b/codegen/Crm/Contacts/Api/AdvancedApi.php index 30c26fcd..8623d565 100644 --- a/codegen/Crm/Contacts/Api/AdvancedApi.php +++ b/codegen/Crm/Contacts/Api/AdvancedApi.php @@ -386,6 +386,10 @@ public function mergeRequest($public_merge_input, string $contentType = self::co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -611,6 +615,10 @@ public function purgeRequest($public_gdpr_delete_input, string $contentType = se } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Contacts/Api/BasicApi.php b/codegen/Crm/Contacts/Api/BasicApi.php index 8c47080e..108ef6a5 100644 --- a/codegen/Crm/Contacts/Api/BasicApi.php +++ b/codegen/Crm/Contacts/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($contact_id, string $contentType = self::contentT } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($contact_id, $archived = false, $associations = n } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($contact_id, $simple_public_object_input, $id_prop } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Contacts/Api/BatchApi.php b/codegen/Crm/Contacts/Api/BatchApi.php index 6091ddd4..69538d7e 100644 --- a/codegen/Crm/Contacts/Api/BatchApi.php +++ b/codegen/Crm/Contacts/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Contacts/Api/SearchApi.php b/codegen/Crm/Contacts/Api/SearchApi.php index 54953daa..9c4e8deb 100644 --- a/codegen/Crm/Contacts/Api/SearchApi.php +++ b/codegen/Crm/Contacts/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Deals/Api/BasicApi.php b/codegen/Crm/Deals/Api/BasicApi.php index bd0aa1a1..1039dc98 100644 --- a/codegen/Crm/Deals/Api/BasicApi.php +++ b/codegen/Crm/Deals/Api/BasicApi.php @@ -346,6 +346,10 @@ public function archiveRequest($deal_id, string $contentType = self::contentType } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -627,6 +631,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -987,6 +995,10 @@ public function getByIdRequest($deal_id, $archived = false, $associations = null } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1339,6 +1351,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1620,6 +1636,10 @@ public function mergeRequest($public_merge_input, string $contentType = self::co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1939,6 +1959,10 @@ public function updateRequest($deal_id, $simple_public_object_input, $id_propert } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Deals/Api/BatchApi.php b/codegen/Crm/Deals/Api/BatchApi.php index 24c931a3..c9a88051 100644 --- a/codegen/Crm/Deals/Api/BatchApi.php +++ b/codegen/Crm/Deals/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Deals/Api/SearchApi.php b/codegen/Crm/Deals/Api/SearchApi.php index 3fbdb38a..1c175bdd 100644 --- a/codegen/Crm/Deals/Api/SearchApi.php +++ b/codegen/Crm/Deals/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/LineItems/Api/BasicApi.php b/codegen/Crm/LineItems/Api/BasicApi.php index b37eb40f..f01a8ddc 100644 --- a/codegen/Crm/LineItems/Api/BasicApi.php +++ b/codegen/Crm/LineItems/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($line_item_id, string $contentType = self::conten } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($line_item_id, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($line_item_id, $simple_public_object_input, $id_pr } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/LineItems/Api/BatchApi.php b/codegen/Crm/LineItems/Api/BatchApi.php index 2c550790..9f4591e9 100644 --- a/codegen/Crm/LineItems/Api/BatchApi.php +++ b/codegen/Crm/LineItems/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/LineItems/Api/SearchApi.php b/codegen/Crm/LineItems/Api/SearchApi.php index 3013b078..42b9f95c 100644 --- a/codegen/Crm/LineItems/Api/SearchApi.php +++ b/codegen/Crm/LineItems/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Calls/Api/BasicApi.php b/codegen/Crm/Objects/Calls/Api/BasicApi.php index 0662c37d..f22182f7 100644 --- a/codegen/Crm/Objects/Calls/Api/BasicApi.php +++ b/codegen/Crm/Objects/Calls/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($call_id, string $contentType = self::contentType } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($call_id, $archived = false, $associations = null } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($call_id, $simple_public_object_input, $id_propert } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Calls/Api/BatchApi.php b/codegen/Crm/Objects/Calls/Api/BatchApi.php index 83ad53de..6d8d8465 100644 --- a/codegen/Crm/Objects/Calls/Api/BatchApi.php +++ b/codegen/Crm/Objects/Calls/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Calls/Api/SearchApi.php b/codegen/Crm/Objects/Calls/Api/SearchApi.php index e178adcd..624ce9b9 100644 --- a/codegen/Crm/Objects/Calls/Api/SearchApi.php +++ b/codegen/Crm/Objects/Calls/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Communications/Api/BasicApi.php b/codegen/Crm/Objects/Communications/Api/BasicApi.php index 93033b3b..2054c503 100644 --- a/codegen/Crm/Objects/Communications/Api/BasicApi.php +++ b/codegen/Crm/Objects/Communications/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($communication_id, string $contentType = self::co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($communication_id, $archived = false, $associatio } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($communication_id, $simple_public_object_input, $i } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Communications/Api/BatchApi.php b/codegen/Crm/Objects/Communications/Api/BatchApi.php index d079c1da..dd6ea1a0 100644 --- a/codegen/Crm/Objects/Communications/Api/BatchApi.php +++ b/codegen/Crm/Objects/Communications/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Communications/Api/SearchApi.php b/codegen/Crm/Objects/Communications/Api/SearchApi.php index d28d64bf..9980436b 100644 --- a/codegen/Crm/Objects/Communications/Api/SearchApi.php +++ b/codegen/Crm/Objects/Communications/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Emails/Api/BasicApi.php b/codegen/Crm/Objects/Emails/Api/BasicApi.php index 0aa8b3dd..fc91fbe1 100644 --- a/codegen/Crm/Objects/Emails/Api/BasicApi.php +++ b/codegen/Crm/Objects/Emails/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($email_id, string $contentType = self::contentTyp } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($email_id, $archived = false, $associations = nul } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($email_id, $simple_public_object_input, $id_proper } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Emails/Api/BatchApi.php b/codegen/Crm/Objects/Emails/Api/BatchApi.php index 0401cedc..d039a8ef 100644 --- a/codegen/Crm/Objects/Emails/Api/BatchApi.php +++ b/codegen/Crm/Objects/Emails/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Emails/Api/SearchApi.php b/codegen/Crm/Objects/Emails/Api/SearchApi.php index a9af2239..569800cb 100644 --- a/codegen/Crm/Objects/Emails/Api/SearchApi.php +++ b/codegen/Crm/Objects/Emails/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/FeedbackSubmissions/Api/BasicApi.php b/codegen/Crm/Objects/FeedbackSubmissions/Api/BasicApi.php index d987a4d7..de4ed497 100644 --- a/codegen/Crm/Objects/FeedbackSubmissions/Api/BasicApi.php +++ b/codegen/Crm/Objects/FeedbackSubmissions/Api/BasicApi.php @@ -465,6 +465,10 @@ public function getByIdRequest($feedback_submission_id, $archived = false, $asso } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -817,6 +821,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/FeedbackSubmissions/Api/BatchApi.php b/codegen/Crm/Objects/FeedbackSubmissions/Api/BatchApi.php index b77c81dd..9714cd34 100644 --- a/codegen/Crm/Objects/FeedbackSubmissions/Api/BatchApi.php +++ b/codegen/Crm/Objects/FeedbackSubmissions/Api/BatchApi.php @@ -412,6 +412,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/FeedbackSubmissions/Api/SearchApi.php b/codegen/Crm/Objects/FeedbackSubmissions/Api/SearchApi.php index 8b2f76f0..d3d24dfe 100644 --- a/codegen/Crm/Objects/FeedbackSubmissions/Api/SearchApi.php +++ b/codegen/Crm/Objects/FeedbackSubmissions/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Goals/Api/BasicApi.php b/codegen/Crm/Objects/Goals/Api/BasicApi.php index 308585a0..128721e5 100644 --- a/codegen/Crm/Objects/Goals/Api/BasicApi.php +++ b/codegen/Crm/Objects/Goals/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($goal_target_id, string $contentType = self::cont } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($goal_target_id, $archived = false, $associations } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($goal_target_id, $simple_public_object_input, $id_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Goals/Api/BatchApi.php b/codegen/Crm/Objects/Goals/Api/BatchApi.php index 2c276492..3c75e6e3 100644 --- a/codegen/Crm/Objects/Goals/Api/BatchApi.php +++ b/codegen/Crm/Objects/Goals/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Goals/Api/SearchApi.php b/codegen/Crm/Objects/Goals/Api/SearchApi.php index 9b8aace2..15355913 100644 --- a/codegen/Crm/Objects/Goals/Api/SearchApi.php +++ b/codegen/Crm/Objects/Goals/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Leads/Api/BasicApi.php b/codegen/Crm/Objects/Leads/Api/BasicApi.php index ffb54071..2c4da7d0 100644 --- a/codegen/Crm/Objects/Leads/Api/BasicApi.php +++ b/codegen/Crm/Objects/Leads/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($leads_id, string $contentType = self::contentTyp } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($leads_id, $archived = false, $associations = nul } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($leads_id, $simple_public_object_input, $id_proper } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Leads/Api/BatchApi.php b/codegen/Crm/Objects/Leads/Api/BatchApi.php index d5917738..0a9ff081 100644 --- a/codegen/Crm/Objects/Leads/Api/BatchApi.php +++ b/codegen/Crm/Objects/Leads/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Leads/Api/SearchApi.php b/codegen/Crm/Objects/Leads/Api/SearchApi.php index ec45e2bd..4f3634e8 100644 --- a/codegen/Crm/Objects/Leads/Api/SearchApi.php +++ b/codegen/Crm/Objects/Leads/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Meetings/Api/BasicApi.php b/codegen/Crm/Objects/Meetings/Api/BasicApi.php index 221bd5de..2d33fe79 100644 --- a/codegen/Crm/Objects/Meetings/Api/BasicApi.php +++ b/codegen/Crm/Objects/Meetings/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($meeting_id, string $contentType = self::contentT } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($meeting_id, $archived = false, $associations = n } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($meeting_id, $simple_public_object_input, $id_prop } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Meetings/Api/BatchApi.php b/codegen/Crm/Objects/Meetings/Api/BatchApi.php index 09d11762..803ecb6d 100644 --- a/codegen/Crm/Objects/Meetings/Api/BatchApi.php +++ b/codegen/Crm/Objects/Meetings/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Meetings/Api/SearchApi.php b/codegen/Crm/Objects/Meetings/Api/SearchApi.php index acd62339..6e87102d 100644 --- a/codegen/Crm/Objects/Meetings/Api/SearchApi.php +++ b/codegen/Crm/Objects/Meetings/Api/SearchApi.php @@ -375,6 +375,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Notes/Api/BasicApi.php b/codegen/Crm/Objects/Notes/Api/BasicApi.php index 70255f25..ebc0118b 100644 --- a/codegen/Crm/Objects/Notes/Api/BasicApi.php +++ b/codegen/Crm/Objects/Notes/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($note_id, string $contentType = self::contentType } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($note_id, $archived = false, $associations = null } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($note_id, $simple_public_object_input, $id_propert } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Notes/Api/BatchApi.php b/codegen/Crm/Objects/Notes/Api/BatchApi.php index 812715d0..f677200d 100644 --- a/codegen/Crm/Objects/Notes/Api/BatchApi.php +++ b/codegen/Crm/Objects/Notes/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Notes/Api/SearchApi.php b/codegen/Crm/Objects/Notes/Api/SearchApi.php index 0f8ea296..8ac9f231 100644 --- a/codegen/Crm/Objects/Notes/Api/SearchApi.php +++ b/codegen/Crm/Objects/Notes/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/PostalMail/Api/BasicApi.php b/codegen/Crm/Objects/PostalMail/Api/BasicApi.php index 7f35ffb3..e080c9e6 100644 --- a/codegen/Crm/Objects/PostalMail/Api/BasicApi.php +++ b/codegen/Crm/Objects/PostalMail/Api/BasicApi.php @@ -335,6 +335,10 @@ public function archiveRequest($postal_mail_id, string $contentType = self::cont } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -608,6 +612,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -960,6 +968,10 @@ public function getByIdRequest($postal_mail_id, $archived = false, $associations } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1304,6 +1316,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1615,6 +1631,10 @@ public function updateRequest($postal_mail_id, $simple_public_object_input, $id_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/PostalMail/Api/BatchApi.php b/codegen/Crm/Objects/PostalMail/Api/BatchApi.php index d6f74bec..5d2e4fc9 100644 --- a/codegen/Crm/Objects/PostalMail/Api/BatchApi.php +++ b/codegen/Crm/Objects/PostalMail/Api/BatchApi.php @@ -331,6 +331,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -618,6 +622,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -920,6 +928,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1207,6 +1219,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1494,6 +1510,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/PostalMail/Api/SearchApi.php b/codegen/Crm/Objects/PostalMail/Api/SearchApi.php index d469bb2f..435b0e12 100644 --- a/codegen/Crm/Objects/PostalMail/Api/SearchApi.php +++ b/codegen/Crm/Objects/PostalMail/Api/SearchApi.php @@ -375,6 +375,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Tasks/Api/BasicApi.php b/codegen/Crm/Objects/Tasks/Api/BasicApi.php index 962ecc29..457ac6a4 100644 --- a/codegen/Crm/Objects/Tasks/Api/BasicApi.php +++ b/codegen/Crm/Objects/Tasks/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($task_id, string $contentType = self::contentType } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($task_id, $archived = false, $associations = null } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($task_id, $simple_public_object_input, $id_propert } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Tasks/Api/BatchApi.php b/codegen/Crm/Objects/Tasks/Api/BatchApi.php index 297fc4ae..90a3a95d 100644 --- a/codegen/Crm/Objects/Tasks/Api/BatchApi.php +++ b/codegen/Crm/Objects/Tasks/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Tasks/Api/SearchApi.php b/codegen/Crm/Objects/Tasks/Api/SearchApi.php index a14f4099..ee243c2b 100644 --- a/codegen/Crm/Objects/Tasks/Api/SearchApi.php +++ b/codegen/Crm/Objects/Tasks/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Taxes/Api/BasicApi.php b/codegen/Crm/Objects/Taxes/Api/BasicApi.php index 2dec9e3a..f3b118f8 100644 --- a/codegen/Crm/Objects/Taxes/Api/BasicApi.php +++ b/codegen/Crm/Objects/Taxes/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($tax_id, string $contentType = self::contentTypes } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($tax_id, $archived = false, $associations = null, } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($tax_id, $simple_public_object_input, $id_property } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Taxes/Api/BatchApi.php b/codegen/Crm/Objects/Taxes/Api/BatchApi.php index d4d7c64d..91f4a6d7 100644 --- a/codegen/Crm/Objects/Taxes/Api/BatchApi.php +++ b/codegen/Crm/Objects/Taxes/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Objects/Taxes/Api/SearchApi.php b/codegen/Crm/Objects/Taxes/Api/SearchApi.php index 2ce057e2..6302030d 100644 --- a/codegen/Crm/Objects/Taxes/Api/SearchApi.php +++ b/codegen/Crm/Objects/Taxes/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Products/Api/BasicApi.php b/codegen/Crm/Products/Api/BasicApi.php index 7e0e6f0a..e0f2f253 100644 --- a/codegen/Crm/Products/Api/BasicApi.php +++ b/codegen/Crm/Products/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($product_id, string $contentType = self::contentT } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($product_id, $archived = false, $associations = n } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($product_id, $simple_public_object_input, $id_prop } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Products/Api/BatchApi.php b/codegen/Crm/Products/Api/BatchApi.php index 307fb091..86e4de09 100644 --- a/codegen/Crm/Products/Api/BatchApi.php +++ b/codegen/Crm/Products/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Products/Api/SearchApi.php b/codegen/Crm/Products/Api/SearchApi.php index 20035a9b..6b024c7e 100644 --- a/codegen/Crm/Products/Api/SearchApi.php +++ b/codegen/Crm/Products/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Quotes/Api/BasicApi.php b/codegen/Crm/Quotes/Api/BasicApi.php index 8a77963c..7bcf3ba4 100644 --- a/codegen/Crm/Quotes/Api/BasicApi.php +++ b/codegen/Crm/Quotes/Api/BasicApi.php @@ -343,6 +343,10 @@ public function archiveRequest($quote_id, string $contentType = self::contentTyp } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -624,6 +628,10 @@ public function createRequest($simple_public_object_input_for_create, string $co } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -984,6 +992,10 @@ public function getByIdRequest($quote_id, $archived = false, $associations = nul } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1336,6 +1348,10 @@ public function getPageRequest($after = null, $archived = false, $associations = } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1655,6 +1671,10 @@ public function updateRequest($quote_id, $simple_public_object_input, $id_proper } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Quotes/Api/BatchApi.php b/codegen/Crm/Quotes/Api/BatchApi.php index 88e59a3b..f361ba2e 100644 --- a/codegen/Crm/Quotes/Api/BatchApi.php +++ b/codegen/Crm/Quotes/Api/BatchApi.php @@ -339,6 +339,10 @@ public function archiveRequest($batch_input_simple_public_object_id, string $con } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -634,6 +638,10 @@ public function createRequest($batch_input_simple_public_object_batch_input_for_ } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -944,6 +952,10 @@ public function readRequest($batch_read_input_simple_public_object_id, $archived } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1239,6 +1251,10 @@ public function updateRequest($batch_input_simple_public_object_batch_input, str } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1534,6 +1550,10 @@ public function upsertRequest($batch_input_simple_public_object_batch_input_upse } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Crm/Quotes/Api/SearchApi.php b/codegen/Crm/Quotes/Api/SearchApi.php index 1e59c104..f23fcab8 100644 --- a/codegen/Crm/Quotes/Api/SearchApi.php +++ b/codegen/Crm/Quotes/Api/SearchApi.php @@ -383,6 +383,10 @@ public function doSearchRequest($public_object_search_request, string $contentTy } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Events/Api/BasicApi.php b/codegen/Events/Api/BasicApi.php index cb60b02c..42ae912e 100644 --- a/codegen/Events/Api/BasicApi.php +++ b/codegen/Events/Api/BasicApi.php @@ -554,6 +554,10 @@ public function eventsV3EventsRequest($after = null, $before = null, $event_type } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -808,6 +812,10 @@ public function eventsV3EventsEventTypesRequest(string $contentType = self::cont } } + // this endpoint requires OAuth (access token) + if (!empty($this->config->getAccessToken())) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/codegen/Marketing/Transactional/Model/EventIdView.php b/codegen/Marketing/Transactional/Model/EventIdView.php index 2950438d..d783a09e 100644 --- a/codegen/Marketing/Transactional/Model/EventIdView.php +++ b/codegen/Marketing/Transactional/Model/EventIdView.php @@ -35,6 +35,7 @@ * EventIdView Class Doc Comment * * @category Class + * @description The ID of a send event. * @package HubSpot\Client\Marketing\Transactional * @author OpenAPI Generator team * @link https://openapi-generator.tech diff --git a/codegen/Marketing/Transactional/Model/PublicSingleSendEmail.php b/codegen/Marketing/Transactional/Model/PublicSingleSendEmail.php index 5dd4b12e..128192a4 100644 --- a/codegen/Marketing/Transactional/Model/PublicSingleSendEmail.php +++ b/codegen/Marketing/Transactional/Model/PublicSingleSendEmail.php @@ -35,6 +35,7 @@ * PublicSingleSendEmail Class Doc Comment * * @category Class + * @description A JSON object containing anything you want to override. * @package HubSpot\Client\Marketing\Transactional * @author OpenAPI Generator team * @link https://openapi-generator.tech diff --git a/codegen/Marketing/Transactional/Model/PublicSingleSendRequestEgg.php b/codegen/Marketing/Transactional/Model/PublicSingleSendRequestEgg.php index a88117d2..9b50cfce 100644 --- a/codegen/Marketing/Transactional/Model/PublicSingleSendRequestEgg.php +++ b/codegen/Marketing/Transactional/Model/PublicSingleSendRequestEgg.php @@ -35,6 +35,7 @@ * PublicSingleSendRequestEgg Class Doc Comment * * @category Class + * @description A request to send a single transactional email asynchronously. * @package HubSpot\Client\Marketing\Transactional * @author OpenAPI Generator team * @link https://openapi-generator.tech diff --git a/codegen/Marketing/Transactional/Model/SmtpApiTokenRequestEgg.php b/codegen/Marketing/Transactional/Model/SmtpApiTokenRequestEgg.php index 98ddf7a2..9af74c73 100644 --- a/codegen/Marketing/Transactional/Model/SmtpApiTokenRequestEgg.php +++ b/codegen/Marketing/Transactional/Model/SmtpApiTokenRequestEgg.php @@ -35,6 +35,7 @@ * SmtpApiTokenRequestEgg Class Doc Comment * * @category Class + * @description A request object to create a SMTP API token * @package HubSpot\Client\Marketing\Transactional * @author OpenAPI Generator team * @link https://openapi-generator.tech diff --git a/codegen/Marketing/Transactional/Model/SmtpApiTokenView.php b/codegen/Marketing/Transactional/Model/SmtpApiTokenView.php index 8466f1b7..6991e984 100644 --- a/codegen/Marketing/Transactional/Model/SmtpApiTokenView.php +++ b/codegen/Marketing/Transactional/Model/SmtpApiTokenView.php @@ -35,6 +35,7 @@ * SmtpApiTokenView Class Doc Comment * * @category Class + * @description A SMTP API token provides both an ID and password that can be used to send email through the HubSpot SMTP API. * @package HubSpot\Client\Marketing\Transactional * @author OpenAPI Generator team * @link https://openapi-generator.tech