Skip to content

Commit

Permalink
Merge pull request #121 from HubSpot/feature/codegen2
Browse files Browse the repository at this point in the history
regeneration (codegen only)
  • Loading branch information
ksvirkou-hubspot authored Mar 29, 2022
2 parents 18dbd7d + 345e626 commit 61e2cfe
Show file tree
Hide file tree
Showing 9 changed files with 230 additions and 553 deletions.
30 changes: 15 additions & 15 deletions codegen/Crm/Contacts/Api/GDPRApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function getConfig()
}

/**
* Operation delete
* Operation purge
*
* GDPR DELETE
*
Expand All @@ -126,13 +126,13 @@ public function getConfig()
* @throws \InvalidArgumentException
* @return void
*/
public function delete($public_gdpr_delete_input)
public function purge($public_gdpr_delete_input)
{
$this->deleteWithHttpInfo($public_gdpr_delete_input);
$this->purgeWithHttpInfo($public_gdpr_delete_input);
}

/**
* Operation deleteWithHttpInfo
* Operation purgeWithHttpInfo
*
* GDPR DELETE
*
Expand All @@ -142,9 +142,9 @@ public function delete($public_gdpr_delete_input)
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
public function deleteWithHttpInfo($public_gdpr_delete_input)
public function purgeWithHttpInfo($public_gdpr_delete_input)
{
$request = $this->deleteRequest($public_gdpr_delete_input);
$request = $this->purgeRequest($public_gdpr_delete_input);

try {
$options = $this->createHttpClientOption();
Expand Down Expand Up @@ -199,7 +199,7 @@ public function deleteWithHttpInfo($public_gdpr_delete_input)
}

/**
* Operation deleteAsync
* Operation purgeAsync
*
* GDPR DELETE
*
Expand All @@ -208,9 +208,9 @@ public function deleteWithHttpInfo($public_gdpr_delete_input)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function deleteAsync($public_gdpr_delete_input)
public function purgeAsync($public_gdpr_delete_input)
{
return $this->deleteAsyncWithHttpInfo($public_gdpr_delete_input)
return $this->purgeAsyncWithHttpInfo($public_gdpr_delete_input)
->then(
function ($response) {
return $response[0];
Expand All @@ -219,7 +219,7 @@ function ($response) {
}

/**
* Operation deleteAsyncWithHttpInfo
* Operation purgeAsyncWithHttpInfo
*
* GDPR DELETE
*
Expand All @@ -228,10 +228,10 @@ function ($response) {
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function deleteAsyncWithHttpInfo($public_gdpr_delete_input)
public function purgeAsyncWithHttpInfo($public_gdpr_delete_input)
{
$returnType = '';
$request = $this->deleteRequest($public_gdpr_delete_input);
$request = $this->purgeRequest($public_gdpr_delete_input);

return $this->client
->sendAsync($request, $this->createHttpClientOption())
Expand All @@ -257,19 +257,19 @@ function ($exception) {
}

/**
* Create request for operation 'delete'
* Create request for operation 'purge'
*
* @param \HubSpot\Client\Crm\Contacts\Model\PublicGdprDeleteInput $public_gdpr_delete_input (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
public function deleteRequest($public_gdpr_delete_input)
public function purgeRequest($public_gdpr_delete_input)
{
// verify the required parameter 'public_gdpr_delete_input' is set
if ($public_gdpr_delete_input === null || (is_array($public_gdpr_delete_input) && count($public_gdpr_delete_input) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $public_gdpr_delete_input when calling delete'
'Missing the required parameter $public_gdpr_delete_input when calling purge'
);
}

Expand Down
32 changes: 16 additions & 16 deletions codegen/Crm/Objects/Api/GDPRApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function getConfig()
}

/**
* Operation delete
* Operation purge
*
* GDPR DELETE
*
Expand All @@ -127,13 +127,13 @@ public function getConfig()
* @throws \InvalidArgumentException
* @return void
*/
public function delete($object_type, $public_gdpr_delete_input)
public function purge($object_type, $public_gdpr_delete_input)
{
$this->deleteWithHttpInfo($object_type, $public_gdpr_delete_input);
$this->purgeWithHttpInfo($object_type, $public_gdpr_delete_input);
}

/**
* Operation deleteWithHttpInfo
* Operation purgeWithHttpInfo
*
* GDPR DELETE
*
Expand All @@ -144,9 +144,9 @@ public function delete($object_type, $public_gdpr_delete_input)
* @throws \InvalidArgumentException
* @return array of null, HTTP status code, HTTP response headers (array of strings)
*/
public function deleteWithHttpInfo($object_type, $public_gdpr_delete_input)
public function purgeWithHttpInfo($object_type, $public_gdpr_delete_input)
{
$request = $this->deleteRequest($object_type, $public_gdpr_delete_input);
$request = $this->purgeRequest($object_type, $public_gdpr_delete_input);

try {
$options = $this->createHttpClientOption();
Expand Down Expand Up @@ -201,7 +201,7 @@ public function deleteWithHttpInfo($object_type, $public_gdpr_delete_input)
}

/**
* Operation deleteAsync
* Operation purgeAsync
*
* GDPR DELETE
*
Expand All @@ -211,9 +211,9 @@ public function deleteWithHttpInfo($object_type, $public_gdpr_delete_input)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function deleteAsync($object_type, $public_gdpr_delete_input)
public function purgeAsync($object_type, $public_gdpr_delete_input)
{
return $this->deleteAsyncWithHttpInfo($object_type, $public_gdpr_delete_input)
return $this->purgeAsyncWithHttpInfo($object_type, $public_gdpr_delete_input)
->then(
function ($response) {
return $response[0];
Expand All @@ -222,7 +222,7 @@ function ($response) {
}

/**
* Operation deleteAsyncWithHttpInfo
* Operation purgeAsyncWithHttpInfo
*
* GDPR DELETE
*
Expand All @@ -232,10 +232,10 @@ function ($response) {
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function deleteAsyncWithHttpInfo($object_type, $public_gdpr_delete_input)
public function purgeAsyncWithHttpInfo($object_type, $public_gdpr_delete_input)
{
$returnType = '';
$request = $this->deleteRequest($object_type, $public_gdpr_delete_input);
$request = $this->purgeRequest($object_type, $public_gdpr_delete_input);

return $this->client
->sendAsync($request, $this->createHttpClientOption())
Expand All @@ -261,26 +261,26 @@ function ($exception) {
}

/**
* Create request for operation 'delete'
* Create request for operation 'purge'
*
* @param string $object_type (required)
* @param \HubSpot\Client\Crm\Objects\Model\PublicGdprDeleteInput $public_gdpr_delete_input (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
public function deleteRequest($object_type, $public_gdpr_delete_input)
public function purgeRequest($object_type, $public_gdpr_delete_input)
{
// verify the required parameter 'object_type' is set
if ($object_type === null || (is_array($object_type) && count($object_type) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $object_type when calling delete'
'Missing the required parameter $object_type when calling purge'
);
}
// verify the required parameter 'public_gdpr_delete_input' is set
if ($public_gdpr_delete_input === null || (is_array($public_gdpr_delete_input) && count($public_gdpr_delete_input) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $public_gdpr_delete_input when calling delete'
'Missing the required parameter $public_gdpr_delete_input when calling purge'
);
}

Expand Down
8 changes: 4 additions & 4 deletions codegen/Crm/Pipelines/Api/PipelineStagesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function getConfig()
/**
* Operation archive
*
* Archive a pipeline stage
* Delete a pipeline stage
*
* @param string $object_type object_type (required)
* @param string $pipeline_id pipeline_id (required)
Expand All @@ -136,7 +136,7 @@ public function archive($object_type, $pipeline_id, $stage_id)
/**
* Operation archiveWithHttpInfo
*
* Archive a pipeline stage
* Delete a pipeline stage
*
* @param string $object_type (required)
* @param string $pipeline_id (required)
Expand Down Expand Up @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($object_type, $pipeline_id, $stage_id)
/**
* Operation archiveAsync
*
* Archive a pipeline stage
* Delete a pipeline stage
*
* @param string $object_type (required)
* @param string $pipeline_id (required)
Expand All @@ -227,7 +227,7 @@ function ($response) {
/**
* Operation archiveAsyncWithHttpInfo
*
* Archive a pipeline stage
* Delete a pipeline stage
*
* @param string $object_type (required)
* @param string $pipeline_id (required)
Expand Down
8 changes: 4 additions & 4 deletions codegen/Crm/Pipelines/Api/PipelinesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function getConfig()
/**
* Operation archive
*
* Archive a pipeline
* Delete a pipeline
*
* @param string $object_type object_type (required)
* @param string $pipeline_id pipeline_id (required)
Expand All @@ -136,7 +136,7 @@ public function archive($object_type, $pipeline_id, $validate_references_before_
/**
* Operation archiveWithHttpInfo
*
* Archive a pipeline
* Delete a pipeline
*
* @param string $object_type (required)
* @param string $pipeline_id (required)
Expand Down Expand Up @@ -205,7 +205,7 @@ public function archiveWithHttpInfo($object_type, $pipeline_id, $validate_refere
/**
* Operation archiveAsync
*
* Archive a pipeline
* Delete a pipeline
*
* @param string $object_type (required)
* @param string $pipeline_id (required)
Expand All @@ -227,7 +227,7 @@ function ($response) {
/**
* Operation archiveAsyncWithHttpInfo
*
* Archive a pipeline
* Delete a pipeline
*
* @param string $object_type (required)
* @param string $pipeline_id (required)
Expand Down
Loading

0 comments on commit 61e2cfe

Please sign in to comment.