Skip to content

Commit

Permalink
Merge pull request #423 from HubSpot/codegen/rootClientsP3
Browse files Browse the repository at this point in the history
Codegen: Settings and Webhooks
  • Loading branch information
ksvirkou-hubspot authored Oct 25, 2024
2 parents ce1533b + 01e4909 commit eac224c
Show file tree
Hide file tree
Showing 25 changed files with 448 additions and 151 deletions.
2 changes: 1 addition & 1 deletion codegen/Settings/Users/Api/RolesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
2 changes: 1 addition & 1 deletion codegen/Settings/Users/Api/TeamsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
2 changes: 1 addition & 1 deletion codegen/Settings/Users/Api/UsersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
2 changes: 1 addition & 1 deletion codegen/Settings/Users/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
2 changes: 1 addition & 1 deletion codegen/Settings/Users/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
2 changes: 1 addition & 1 deletion codegen/Settings/Users/HeaderSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
2 changes: 1 addition & 1 deletion codegen/Settings/Users/Model/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
2 changes: 1 addition & 1 deletion codegen/Settings/Users/Model/ErrorDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
2 changes: 1 addition & 1 deletion codegen/Settings/Users/Model/ForwardPaging.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
2 changes: 1 addition & 1 deletion codegen/Settings/Users/Model/ModelInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
2 changes: 1 addition & 1 deletion codegen/Settings/Users/Model/NextPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
2 changes: 1 addition & 1 deletion codegen/Settings/Users/Model/PublicPermissionSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
2 changes: 1 addition & 1 deletion codegen/Settings/Users/Model/PublicTeam.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down
70 changes: 69 additions & 1 deletion codegen/Settings/Users/Model/PublicUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

/**
* Settings User Provisioning
* User Provisioning
*
* Add, manage, and remove users from your account
*
Expand Down Expand Up @@ -58,6 +58,8 @@ class PublicUser implements ModelInterface, ArrayAccess, \JsonSerializable
* @var string[]
*/
protected static $openAPITypes = [
'first_name' => 'string',
'last_name' => 'string',
'primary_team_id' => 'string',
'role_ids' => 'string[]',
'send_welcome_email' => 'bool',
Expand All @@ -76,6 +78,8 @@ class PublicUser implements ModelInterface, ArrayAccess, \JsonSerializable
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'first_name' => null,
'last_name' => null,
'primary_team_id' => null,
'role_ids' => null,
'send_welcome_email' => null,
Expand All @@ -92,6 +96,8 @@ class PublicUser implements ModelInterface, ArrayAccess, \JsonSerializable
* @var boolean[]
*/
protected static array $openAPINullables = [
'first_name' => false,
'last_name' => false,
'primary_team_id' => false,
'role_ids' => false,
'send_welcome_email' => false,
Expand Down Expand Up @@ -188,6 +194,8 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $attributeMap = [
'first_name' => 'firstName',
'last_name' => 'lastName',
'primary_team_id' => 'primaryTeamId',
'role_ids' => 'roleIds',
'send_welcome_email' => 'sendWelcomeEmail',
Expand All @@ -204,6 +212,8 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $setters = [
'first_name' => 'setFirstName',
'last_name' => 'setLastName',
'primary_team_id' => 'setPrimaryTeamId',
'role_ids' => 'setRoleIds',
'send_welcome_email' => 'setSendWelcomeEmail',
Expand All @@ -220,6 +230,8 @@ public function isNullableSetToNull(string $property): bool
* @var string[]
*/
protected static $getters = [
'first_name' => 'getFirstName',
'last_name' => 'getLastName',
'primary_team_id' => 'getPrimaryTeamId',
'role_ids' => 'getRoleIds',
'send_welcome_email' => 'getSendWelcomeEmail',
Expand Down Expand Up @@ -287,6 +299,8 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
$this->setIfExists('first_name', $data ?? [], null);
$this->setIfExists('last_name', $data ?? [], null);
$this->setIfExists('primary_team_id', $data ?? [], null);
$this->setIfExists('role_ids', $data ?? [], null);
$this->setIfExists('send_welcome_email', $data ?? [], null);
Expand Down Expand Up @@ -345,6 +359,60 @@ public function valid()
}


/**
* Gets first_name
*
* @return string|null
*/
public function getFirstName()
{
return $this->container['first_name'];
}

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

return $this;
}

/**
* Gets last_name
*
* @return string|null
*/
public function getLastName()
{
return $this->container['last_name'];
}

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

return $this;
}

/**
* Gets primary_team_id
*
Expand Down
Loading

0 comments on commit eac224c

Please sign in to comment.