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
178 changes: 89 additions & 89 deletions codegen/Crm/Associations/V4/Api/BasicApi.php

Large diffs are not rendered by default.

100 changes: 50 additions & 50 deletions codegen/Crm/Associations/V4/Api/BatchApi.php

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions codegen/Crm/Associations/V4/Api/ReportApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function getConfig()
*
* Report
*
* @param int $user_id The user for the report (required)
* @param int $user_id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['request'] to see the possible values for this operation
*
* @throws \HubSpot\Client\Crm\Associations\V4\ApiException on non-2xx response or if the response body is not in the expected format
Expand All @@ -148,7 +148,7 @@ public function request($user_id, string $contentType = self::contentTypes['requ
*
* Report
*
* @param int $user_id The user for the report (required)
* @param int $user_id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['request'] to see the possible values for this operation
*
* @throws \HubSpot\Client\Crm\Associations\V4\ApiException on non-2xx response or if the response body is not in the expected format
Expand Down Expand Up @@ -247,7 +247,7 @@ public function requestWithHttpInfo($user_id, string $contentType = self::conten
*
* Report
*
* @param int $user_id The user for the report (required)
* @param int $user_id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['request'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand All @@ -268,7 +268,7 @@ function ($response) {
*
* Report
*
* @param int $user_id The user for the report (required)
* @param int $user_id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['request'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -318,7 +318,7 @@ function ($exception) {
/**
* Create request for operation 'request'
*
* @param int $user_id The user for the report (required)
* @param int $user_id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['request'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand Down
2 changes: 2 additions & 0 deletions codegen/Crm/Associations/V4/Model/AssociationSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ public function getModelName()
public const ASSOCIATION_CATEGORY_HUBSPOT_DEFINED = 'HUBSPOT_DEFINED';
public const ASSOCIATION_CATEGORY_INTEGRATOR_DEFINED = 'INTEGRATOR_DEFINED';
public const ASSOCIATION_CATEGORY_USER_DEFINED = 'USER_DEFINED';
public const ASSOCIATION_CATEGORY_WORK = 'WORK';

/**
* Gets allowable values of the enum
Expand All @@ -250,6 +251,7 @@ public function getAssociationCategoryAllowableValues()
self::ASSOCIATION_CATEGORY_HUBSPOT_DEFINED,
self::ASSOCIATION_CATEGORY_INTEGRATOR_DEFINED,
self::ASSOCIATION_CATEGORY_USER_DEFINED,
self::ASSOCIATION_CATEGORY_WORK,
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ public function getModelName()
public const CATEGORY_HUBSPOT_DEFINED = 'HUBSPOT_DEFINED';
public const CATEGORY_INTEGRATOR_DEFINED = 'INTEGRATOR_DEFINED';
public const CATEGORY_USER_DEFINED = 'USER_DEFINED';
public const CATEGORY_WORK = 'WORK';

/**
* Gets allowable values of the enum
Expand All @@ -256,6 +257,7 @@ public function getCategoryAllowableValues()
self::CATEGORY_HUBSPOT_DEFINED,
self::CATEGORY_INTEGRATOR_DEFINED,
self::CATEGORY_USER_DEFINED,
self::CATEGORY_WORK,
];
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* CollectionResponseMultiAssociatedObjectWithLabel
* CollectionResponseMultiAssociatedObjectWithLabelForwardPaging
*
* PHP version 8.1
*
Expand Down Expand Up @@ -32,15 +32,15 @@
use \HubSpot\Client\Crm\Associations\V4\ObjectSerializer;

/**
* CollectionResponseMultiAssociatedObjectWithLabel Class Doc Comment
* CollectionResponseMultiAssociatedObjectWithLabelForwardPaging Class Doc Comment
*
* @category Class
* @package HubSpot\Client\Crm\Associations\V4
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
* @implements \ArrayAccess<string, mixed>
*/
class CollectionResponseMultiAssociatedObjectWithLabel implements ModelInterface, ArrayAccess, \JsonSerializable
class CollectionResponseMultiAssociatedObjectWithLabelForwardPaging implements ModelInterface, ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;

Expand All @@ -49,15 +49,15 @@ class CollectionResponseMultiAssociatedObjectWithLabel implements ModelInterface
*
* @var string
*/
protected static $openAPIModelName = 'CollectionResponseMultiAssociatedObjectWithLabel';
protected static $openAPIModelName = 'CollectionResponseMultiAssociatedObjectWithLabelForwardPaging';

/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $openAPITypes = [
'paging' => '\HubSpot\Client\Crm\Associations\V4\Model\Paging',
'paging' => '\HubSpot\Client\Crm\Associations\V4\Model\ForwardPaging',
'results' => '\HubSpot\Client\Crm\Associations\V4\Model\MultiAssociatedObjectWithLabel[]'
];

Expand Down Expand Up @@ -302,7 +302,7 @@ public function valid()
/**
* Gets paging
*
* @return \HubSpot\Client\Crm\Associations\V4\Model\Paging|null
* @return \HubSpot\Client\Crm\Associations\V4\Model\ForwardPaging|null
*/
public function getPaging()
{
Expand All @@ -312,7 +312,7 @@ public function getPaging()
/**
* Sets paging
*
* @param \HubSpot\Client\Crm\Associations\V4\Model\Paging|null $paging paging
* @param \HubSpot\Client\Crm\Associations\V4\Model\ForwardPaging|null $paging paging
*
* @return self
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* CreatedResponseLabelsBetweenObjectPair
* ForwardPaging
*
* PHP version 8.1
*
Expand Down Expand Up @@ -32,16 +32,15 @@
use \HubSpot\Client\Crm\Associations\V4\ObjectSerializer;

/**
* CreatedResponseLabelsBetweenObjectPair Class Doc Comment
* ForwardPaging Class Doc Comment
*
* @category Class
* @description Contains the details of the labels that were created to define associations between a specific pair of objects.
* @package HubSpot\Client\Crm\Associations\V4
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
* @implements \ArrayAccess<string, mixed>
*/
class CreatedResponseLabelsBetweenObjectPair implements ModelInterface, ArrayAccess, \JsonSerializable
class ForwardPaging implements ModelInterface, ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;

Expand All @@ -50,17 +49,15 @@ class CreatedResponseLabelsBetweenObjectPair implements ModelInterface, ArrayAcc
*
* @var string
*/
protected static $openAPIModelName = 'CreatedResponseLabelsBetweenObjectPair';
protected static $openAPIModelName = 'ForwardPaging';

/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $openAPITypes = [
'created_resource_id' => 'string',
'entity' => '\HubSpot\Client\Crm\Associations\V4\Model\LabelsBetweenObjectPair',
'location' => 'string'
'next' => '\HubSpot\Client\Crm\Associations\V4\Model\NextPage'
];

/**
Expand All @@ -71,9 +68,7 @@ class CreatedResponseLabelsBetweenObjectPair implements ModelInterface, ArrayAcc
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'created_resource_id' => null,
'entity' => null,
'location' => null
'next' => null
];

/**
Expand All @@ -82,9 +77,7 @@ class CreatedResponseLabelsBetweenObjectPair implements ModelInterface, ArrayAcc
* @var boolean[]
*/
protected static array $openAPINullables = [
'created_resource_id' => false,
'entity' => false,
'location' => false
'next' => false
];

/**
Expand Down Expand Up @@ -173,9 +166,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $attributeMap = [
'created_resource_id' => 'createdResourceId',
'entity' => 'entity',
'location' => 'location'
'next' => 'next'
];

/**
Expand All @@ -184,9 +175,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $setters = [
'created_resource_id' => 'setCreatedResourceId',
'entity' => 'setEntity',
'location' => 'setLocation'
'next' => 'setNext'
];

/**
Expand All @@ -195,9 +184,7 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $getters = [
'created_resource_id' => 'getCreatedResourceId',
'entity' => 'getEntity',
'location' => 'getLocation'
'next' => 'getNext'
];

/**
Expand Down Expand Up @@ -257,9 +244,7 @@ public function getModelName()
*/
public function __construct(?array $data = null)
{
$this->setIfExists('created_resource_id', $data ?? [], null);
$this->setIfExists('entity', $data ?? [], null);
$this->setIfExists('location', $data ?? [], null);
$this->setIfExists('next', $data ?? [], null);
}

/**
Expand Down Expand Up @@ -289,12 +274,6 @@ public function listInvalidProperties()
{
$invalidProperties = [];

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

Expand All @@ -311,82 +290,28 @@ public function valid()


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

/**
* Sets created_resource_id
*
* @param string $created_resource_id The unique identifier of the newly created resource.
*
* @return self
*/
public function setCreatedResourceId($created_resource_id)
{
if (is_null($created_resource_id)) {
throw new \InvalidArgumentException('non-nullable created_resource_id cannot be null');
}
$this->container['created_resource_id'] = $created_resource_id;

return $this;
}

/**
* Gets entity
*
* @return \HubSpot\Client\Crm\Associations\V4\Model\LabelsBetweenObjectPair
*/
public function getEntity()
{
return $this->container['entity'];
}

/**
* Sets entity
*
* @param \HubSpot\Client\Crm\Associations\V4\Model\LabelsBetweenObjectPair $entity entity
*
* @return self
*/
public function setEntity($entity)
{
if (is_null($entity)) {
throw new \InvalidArgumentException('non-nullable entity cannot be null');
}
$this->container['entity'] = $entity;

return $this;
}

/**
* Gets location
* Gets next
*
* @return string|null
* @return \HubSpot\Client\Crm\Associations\V4\Model\NextPage|null
*/
public function getLocation()
public function getNext()
{
return $this->container['location'];
return $this->container['next'];
}

/**
* Sets location
* Sets next
*
* @param string|null $location The URL location of the newly created resource.
* @param \HubSpot\Client\Crm\Associations\V4\Model\NextPage|null $next next
*
* @return self
*/
public function setLocation($location)
public function setNext($next)
{
if (is_null($location)) {
throw new \InvalidArgumentException('non-nullable location cannot be null');
if (is_null($next)) {
throw new \InvalidArgumentException('non-nullable next cannot be null');
}
$this->container['location'] = $location;
$this->container['next'] = $next;

return $this;
}
Expand Down