Skip to content

Commit

Permalink
Merge pull request #426 from HubSpot/feature/12.0.0
Browse files Browse the repository at this point in the history
Version 12.0.0
  • Loading branch information
ksvirkou-hubspot authored Oct 28, 2024
2 parents 846f33d + 1f25118 commit 6659a2f
Show file tree
Hide file tree
Showing 690 changed files with 73,257 additions and 31,124 deletions.
133 changes: 114 additions & 19 deletions CHANGELOG.md

Large diffs are not rendered by default.

1,542 changes: 1,542 additions & 0 deletions codegen/Cms/Blogs/BlogPosts/Model/AttachToLangPrimaryRequestVNext.php

Large diffs are not rendered by default.

72 changes: 41 additions & 31 deletions codegen/Cms/Blogs/BlogPosts/Model/BlogPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ class BlogPost implements ModelInterface, ArrayAccess, \JsonSerializable
'rss_summary' => 'string',
'page_expiry_enabled' => 'bool',
'url' => 'string',
'public_access_rules' => 'object[]',
'enable_google_amp_output_override' => 'bool',
'public_access_rules' => 'object[]',
'archived_at' => 'int',
'post_body' => 'string',
'theme_settings_values' => 'array<string,object>',
Expand Down Expand Up @@ -180,8 +180,8 @@ class BlogPost implements ModelInterface, ArrayAccess, \JsonSerializable
'rss_summary' => null,
'page_expiry_enabled' => null,
'url' => null,
'public_access_rules' => null,
'enable_google_amp_output_override' => null,
'public_access_rules' => null,
'archived_at' => 'int64',
'post_body' => null,
'theme_settings_values' => null,
Expand Down Expand Up @@ -249,8 +249,8 @@ class BlogPost implements ModelInterface, ArrayAccess, \JsonSerializable
'rss_summary' => false,
'page_expiry_enabled' => false,
'url' => false,
'public_access_rules' => false,
'enable_google_amp_output_override' => false,
'public_access_rules' => false,
'archived_at' => false,
'post_body' => false,
'theme_settings_values' => false,
Expand Down Expand Up @@ -398,8 +398,8 @@ public function isNullableSetToNull(string $property): bool
'rss_summary' => 'rssSummary',
'page_expiry_enabled' => 'pageExpiryEnabled',
'url' => 'url',
'public_access_rules' => 'publicAccessRules',
'enable_google_amp_output_override' => 'enableGoogleAmpOutputOverride',
'public_access_rules' => 'publicAccessRules',
'archived_at' => 'archivedAt',
'post_body' => 'postBody',
'theme_settings_values' => 'themeSettingsValues',
Expand Down Expand Up @@ -467,8 +467,8 @@ public function isNullableSetToNull(string $property): bool
'rss_summary' => 'setRssSummary',
'page_expiry_enabled' => 'setPageExpiryEnabled',
'url' => 'setUrl',
'public_access_rules' => 'setPublicAccessRules',
'enable_google_amp_output_override' => 'setEnableGoogleAmpOutputOverride',
'public_access_rules' => 'setPublicAccessRules',
'archived_at' => 'setArchivedAt',
'post_body' => 'setPostBody',
'theme_settings_values' => 'setThemeSettingsValues',
Expand Down Expand Up @@ -536,8 +536,8 @@ public function isNullableSetToNull(string $property): bool
'rss_summary' => 'getRssSummary',
'page_expiry_enabled' => 'getPageExpiryEnabled',
'url' => 'getUrl',
'public_access_rules' => 'getPublicAccessRules',
'enable_google_amp_output_override' => 'getEnableGoogleAmpOutputOverride',
'public_access_rules' => 'getPublicAccessRules',
'archived_at' => 'getArchivedAt',
'post_body' => 'getPostBody',
'theme_settings_values' => 'getThemeSettingsValues',
Expand Down Expand Up @@ -746,7 +746,9 @@ public function getModelName()
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_ER = 'en-er';
public const LANGUAGE_EN_FR = 'en-fr';
public const LANGUAGE_EN_FI = 'en-fi';
public const LANGUAGE_EN_FJ = 'en-fj';
public const LANGUAGE_EN_FK = 'en-fk';
Expand Down Expand Up @@ -1356,6 +1358,9 @@ public function getModelName()
public const CONTENT_TYPE_CATEGORY__10 = '10';
public const CONTENT_TYPE_CATEGORY__11 = '11';
public const CONTENT_TYPE_CATEGORY__12 = '12';
public const CONTENT_TYPE_CATEGORY__13 = '13';
public const CONTENT_TYPE_CATEGORY__14 = '14';
public const CONTENT_TYPE_CATEGORY__15 = '15';
public const AB_STATUS_MASTER = 'master';
public const AB_STATUS_VARIANT = 'variant';
public const AB_STATUS_LOSER_VARIANT = 'loser_variant';
Expand Down Expand Up @@ -1561,7 +1566,9 @@ public function getLanguageAllowableValues()
self::LANGUAGE_EN_DG,
self::LANGUAGE_EN_DK,
self::LANGUAGE_EN_DM,
self::LANGUAGE_EN_EE,
self::LANGUAGE_EN_ER,
self::LANGUAGE_EN_FR,
self::LANGUAGE_EN_FI,
self::LANGUAGE_EN_FJ,
self::LANGUAGE_EN_FK,
Expand Down Expand Up @@ -2182,6 +2189,9 @@ public function getContentTypeCategoryAllowableValues()
self::CONTENT_TYPE_CATEGORY__10,
self::CONTENT_TYPE_CATEGORY__11,
self::CONTENT_TYPE_CATEGORY__12,
self::CONTENT_TYPE_CATEGORY__13,
self::CONTENT_TYPE_CATEGORY__14,
self::CONTENT_TYPE_CATEGORY__15,
];
}

Expand Down Expand Up @@ -2312,8 +2322,8 @@ public function __construct(array $data = null)
$this->setIfExists('rss_summary', $data ?? [], null);
$this->setIfExists('page_expiry_enabled', $data ?? [], null);
$this->setIfExists('url', $data ?? [], null);
$this->setIfExists('public_access_rules', $data ?? [], null);
$this->setIfExists('enable_google_amp_output_override', $data ?? [], null);
$this->setIfExists('public_access_rules', $data ?? [], null);
$this->setIfExists('archived_at', $data ?? [], null);
$this->setIfExists('post_body', $data ?? [], null);
$this->setIfExists('theme_settings_values', $data ?? [], null);
Expand Down Expand Up @@ -2535,12 +2545,12 @@ public function listInvalidProperties()
if ($this->container['url'] === null) {
$invalidProperties[] = "'url' can't be null";
}
if ($this->container['public_access_rules'] === null) {
$invalidProperties[] = "'public_access_rules' can't be null";
}
if ($this->container['enable_google_amp_output_override'] === null) {
$invalidProperties[] = "'enable_google_amp_output_override' can't be null";
}
if ($this->container['public_access_rules'] === null) {
$invalidProperties[] = "'public_access_rules' can't be null";
}
if ($this->container['archived_at'] === null) {
$invalidProperties[] = "'archived_at' can't be null";
}
Expand Down Expand Up @@ -4001,55 +4011,55 @@ public function setUrl($url)
}

/**
* Gets public_access_rules
* Gets enable_google_amp_output_override
*
* @return object[]
* @return bool
*/
public function getPublicAccessRules()
public function getEnableGoogleAmpOutputOverride()
{
return $this->container['public_access_rules'];
return $this->container['enable_google_amp_output_override'];
}

/**
* Sets public_access_rules
* Sets enable_google_amp_output_override
*
* @param object[] $public_access_rules Rules for require member registration to access private content.
* @param bool $enable_google_amp_output_override Boolean to allow overriding the AMP settings for the blog.
*
* @return self
*/
public function setPublicAccessRules($public_access_rules)
public function setEnableGoogleAmpOutputOverride($enable_google_amp_output_override)
{
if (is_null($public_access_rules)) {
throw new \InvalidArgumentException('non-nullable public_access_rules cannot be null');
if (is_null($enable_google_amp_output_override)) {
throw new \InvalidArgumentException('non-nullable enable_google_amp_output_override cannot be null');
}
$this->container['public_access_rules'] = $public_access_rules;
$this->container['enable_google_amp_output_override'] = $enable_google_amp_output_override;

return $this;
}

/**
* Gets enable_google_amp_output_override
* Gets public_access_rules
*
* @return bool
* @return object[]
*/
public function getEnableGoogleAmpOutputOverride()
public function getPublicAccessRules()
{
return $this->container['enable_google_amp_output_override'];
return $this->container['public_access_rules'];
}

/**
* Sets enable_google_amp_output_override
* Sets public_access_rules
*
* @param bool $enable_google_amp_output_override Boolean to allow overriding the AMP settings for the blog.
* @param object[] $public_access_rules Rules for require member registration to access private content.
*
* @return self
*/
public function setEnableGoogleAmpOutputOverride($enable_google_amp_output_override)
public function setPublicAccessRules($public_access_rules)
{
if (is_null($enable_google_amp_output_override)) {
throw new \InvalidArgumentException('non-nullable enable_google_amp_output_override cannot be null');
if (is_null($public_access_rules)) {
throw new \InvalidArgumentException('non-nullable public_access_rules cannot be null');
}
$this->container['enable_google_amp_output_override'] = $enable_google_amp_output_override;
$this->container['public_access_rules'] = $public_access_rules;

return $this;
}
Expand Down Expand Up @@ -4239,7 +4249,7 @@ public function getCategoryId()
/**
* Sets category_id
*
* @param int $category_id ID of the type of object this is. Should always .
* @param int $category_id ID of the type of object this is.
*
* @return self
*/
Expand Down
Loading

0 comments on commit 6659a2f

Please sign in to comment.