Skip to content

Commit

Permalink
Merge pull request #264 from HubSpot/feature/codegen
Browse files Browse the repository at this point in the history
Regeneration (Codegen Only)
  • Loading branch information
ksvirkou-hubspot authored Jul 27, 2023
2 parents c6a6576 + ae72b39 commit 748676f
Show file tree
Hide file tree
Showing 185 changed files with 2,430 additions and 13,032 deletions.
10 changes: 0 additions & 10 deletions codegen/Automation/Actions/Api/CallbacksApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,6 @@ public function completeRequest($callback_id, $callback_completion_request)
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -586,11 +581,6 @@ public function completeBatchRequest($batch_input_callback_completion_batch_requ
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down
5 changes: 0 additions & 5 deletions codegen/Cms/AuditLogs/Api/AuditLogsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -490,11 +490,6 @@ public function getPageRequest($object_id = null, $user_id = null, $after = null
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down
70 changes: 0 additions & 70 deletions codegen/Cms/Blogs/Authors/Api/BlogAuthorsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,6 @@ public function archiveRequest($object_id, $archived = null)
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -583,11 +578,6 @@ public function archiveBatchRequest($batch_input_string)
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -870,11 +860,6 @@ public function attachToLangGroupRequest($attach_to_lang_primary_request_v_next)
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -1180,11 +1165,6 @@ public function createRequest($blog_author)
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -1513,11 +1493,6 @@ public function createBatchRequest($batch_input_blog_author)
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -1823,11 +1798,6 @@ public function createLangVariationRequest($blog_author_clone_request_v_next)
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -2110,11 +2080,6 @@ public function detachFromLangGroupRequest($detach_from_lang_group_request_v_nex
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -2436,11 +2401,6 @@ public function getByIdRequest($object_id, $archived = null)
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -2869,11 +2829,6 @@ public function getPageRequest($created_at = null, $created_after = null, $creat
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -3216,11 +3171,6 @@ public function readBatchRequest($batch_input_string, $archived = null)
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -3457,11 +3407,6 @@ public function setLangPrimaryRequest($set_new_language_primary_request_v_next)
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -3800,11 +3745,6 @@ public function updateRequest($object_id, $blog_author, $archived = null)
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -4147,11 +4087,6 @@ public function updateBatchRequest($batch_input_json_node, $archived = null)
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down Expand Up @@ -4434,11 +4369,6 @@ public function updateLangsRequest($update_languages_request_v_next)
}
}

// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}
// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
Expand Down
Loading

0 comments on commit 748676f

Please sign in to comment.