Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codegen/Cms/AuditLogs/Api/AuditLogsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
* Generator version: 7.17.0
* Generator version: 7.19.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion codegen/Cms/AuditLogs/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
* Generator version: 7.17.0
* Generator version: 7.19.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion codegen/Cms/AuditLogs/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
* Generator version: 7.17.0
* Generator version: 7.19.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion codegen/Cms/AuditLogs/FormDataProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
* Generator version: 7.17.0
* Generator version: 7.19.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion codegen/Cms/AuditLogs/HeaderSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
* Generator version: 7.17.0
* Generator version: 7.19.0
*/

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
* Generator version: 7.17.0
* Generator version: 7.19.0
*/

/**
Expand Down
144 changes: 72 additions & 72 deletions codegen/Cms/AuditLogs/Model/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: v3
* Generated by: https://openapi-generator.tech
* Generator version: 7.17.0
* Generator version: 7.19.0
*/

/**
Expand Down Expand Up @@ -57,13 +57,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable
* @var string[]
*/
protected static $openAPITypes = [
'sub_category' => 'string',
'category' => 'string',
'context' => 'array<string,string[]>',
'correlation_id' => 'string',
'errors' => '\HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]',
'links' => 'array<string,string>',
'message' => 'string',
'category' => 'string',
'errors' => '\HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]'
'sub_category' => 'string'
];

/**
Expand All @@ -74,13 +74,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'sub_category' => null,
'category' => null,
'context' => null,
'correlation_id' => 'uuid',
'errors' => null,
'links' => null,
'message' => null,
'category' => null,
'errors' => null
'sub_category' => null
];

/**
Expand All @@ -89,13 +89,13 @@ class Error implements ModelInterface, ArrayAccess, \JsonSerializable
* @var boolean[]
*/
protected static array $openAPINullables = [
'sub_category' => false,
'category' => false,
'context' => false,
'correlation_id' => false,
'errors' => false,
'links' => false,
'message' => false,
'category' => false,
'errors' => false
'sub_category' => false
];

/**
Expand Down Expand Up @@ -184,13 +184,13 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $attributeMap = [
'sub_category' => 'subCategory',
'category' => 'category',
'context' => 'context',
'correlation_id' => 'correlationId',
'errors' => 'errors',
'links' => 'links',
'message' => 'message',
'category' => 'category',
'errors' => 'errors'
'sub_category' => 'subCategory'
];

/**
Expand All @@ -199,13 +199,13 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $setters = [
'sub_category' => 'setSubCategory',
'category' => 'setCategory',
'context' => 'setContext',
'correlation_id' => 'setCorrelationId',
'errors' => 'setErrors',
'links' => 'setLinks',
'message' => 'setMessage',
'category' => 'setCategory',
'errors' => 'setErrors'
'sub_category' => 'setSubCategory'
];

/**
Expand All @@ -214,13 +214,13 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $getters = [
'sub_category' => 'getSubCategory',
'category' => 'getCategory',
'context' => 'getContext',
'correlation_id' => 'getCorrelationId',
'errors' => 'getErrors',
'links' => 'getLinks',
'message' => 'getMessage',
'category' => 'getCategory',
'errors' => 'getErrors'
'sub_category' => 'getSubCategory'
];

/**
Expand Down Expand Up @@ -280,13 +280,13 @@ public function getModelName()
*/
public function __construct(?array $data = null)
{
$this->setIfExists('sub_category', $data ?? [], null);
$this->setIfExists('category', $data ?? [], null);
$this->setIfExists('context', $data ?? [], null);
$this->setIfExists('correlation_id', $data ?? [], null);
$this->setIfExists('errors', $data ?? [], null);
$this->setIfExists('links', $data ?? [], null);
$this->setIfExists('message', $data ?? [], null);
$this->setIfExists('category', $data ?? [], null);
$this->setIfExists('errors', $data ?? [], null);
$this->setIfExists('sub_category', $data ?? [], null);
}

/**
Expand Down Expand Up @@ -316,15 +316,15 @@ public function listInvalidProperties()
{
$invalidProperties = [];

if ($this->container['category'] === null) {
$invalidProperties[] = "'category' can't be null";
}
if ($this->container['correlation_id'] === null) {
$invalidProperties[] = "'correlation_id' can't be null";
}
if ($this->container['message'] === null) {
$invalidProperties[] = "'message' can't be null";
}
if ($this->container['category'] === null) {
$invalidProperties[] = "'category' can't be null";
}
return $invalidProperties;
}

Expand All @@ -341,28 +341,28 @@ public function valid()


/**
* Gets sub_category
* Gets category
*
* @return string|null
* @return string
*/
public function getSubCategory()
public function getCategory()
{
return $this->container['sub_category'];
return $this->container['category'];
}

/**
* Sets sub_category
* Sets category
*
* @param string|null $sub_category A specific category that contains more specific detail about the error
* @param string $category The error category
*
* @return self
*/
public function setSubCategory($sub_category)
public function setCategory($category)
{
if (is_null($sub_category)) {
throw new \InvalidArgumentException('non-nullable sub_category cannot be null');
if (is_null($category)) {
throw new \InvalidArgumentException('non-nullable category cannot be null');
}
$this->container['sub_category'] = $sub_category;
$this->container['category'] = $category;

return $this;
}
Expand Down Expand Up @@ -421,6 +421,33 @@ public function setCorrelationId($correlation_id)
return $this;
}

/**
* Gets errors
*
* @return \HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]|null
*/
public function getErrors()
{
return $this->container['errors'];
}

/**
* Sets errors
*
* @param \HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]|null $errors further information about the error
*
* @return self
*/
public function setErrors($errors)
{
if (is_null($errors)) {
throw new \InvalidArgumentException('non-nullable errors cannot be null');
}
$this->container['errors'] = $errors;

return $this;
}

/**
* Gets links
*
Expand Down Expand Up @@ -476,55 +503,28 @@ public function setMessage($message)
}

/**
* Gets category
*
* @return string
*/
public function getCategory()
{
return $this->container['category'];
}

/**
* Sets category
*
* @param string $category The error category
*
* @return self
*/
public function setCategory($category)
{
if (is_null($category)) {
throw new \InvalidArgumentException('non-nullable category cannot be null');
}
$this->container['category'] = $category;

return $this;
}

/**
* Gets errors
* Gets sub_category
*
* @return \HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]|null
* @return string|null
*/
public function getErrors()
public function getSubCategory()
{
return $this->container['errors'];
return $this->container['sub_category'];
}

/**
* Sets errors
* Sets sub_category
*
* @param \HubSpot\Client\Cms\AuditLogs\Model\ErrorDetail[]|null $errors further information about the error
* @param string|null $sub_category A specific category that contains more specific detail about the error
*
* @return self
*/
public function setErrors($errors)
public function setSubCategory($sub_category)
{
if (is_null($errors)) {
throw new \InvalidArgumentException('non-nullable errors cannot be null');
if (is_null($sub_category)) {
throw new \InvalidArgumentException('non-nullable sub_category cannot be null');
}
$this->container['errors'] = $errors;
$this->container['sub_category'] = $sub_category;

return $this;
}
Expand Down
Loading