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
1,464 changes: 1,464 additions & 0 deletions codegen/Crm/Extensions/Calling/Api/ChannelConnectionSettingsApi.php

Large diffs are not rendered by default.

123 changes: 57 additions & 66 deletions codegen/Crm/Extensions/Calling/Api/RecordingSettingsApi.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
* OpenAPI Generator version: 7.3.0
* Generator version: 7.12.0
*/

/**
Expand Down Expand Up @@ -92,13 +92,13 @@ class RecordingSettingsApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
$hostIndex = 0
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
int $hostIndex = 0
) {
$this->client = $client ?: new Client();
$this->config = $config ?: new Configuration();
$this->config = $config ?: Configuration::getDefaultConfiguration();
$this->headerSelector = $selector ?: new HeaderSelector();
$this->hostIndex = $hostIndex;
}
Expand Down Expand Up @@ -134,7 +134,7 @@ public function getConfig()
/**
* Operation getUrlFormat
*
* Read calling app recording settings
* Retrieve recording settings
*
* @param int $app_id The ID of the app. (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUrlFormat'] to see the possible values for this operation
Expand All @@ -152,7 +152,7 @@ public function getUrlFormat($app_id, string $contentType = self::contentTypes['
/**
* Operation getUrlFormatWithHttpInfo
*
* Read calling app recording settings
* Retrieve recording settings
*
* @param int $app_id The ID of the app. (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUrlFormat'] to see the possible values for this operation
Expand Down Expand Up @@ -187,18 +187,6 @@ public function getUrlFormatWithHttpInfo($app_id, string $contentType = self::co

$statusCode = $response->getStatusCode();

if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
sprintf(
'[%d] Error connecting to the API (%s)',
$statusCode,
(string) $request->getUri()
),
$statusCode,
$response->getHeaders(),
(string) $response->getBody()
);
}

switch($statusCode) {
case 200:
Expand Down Expand Up @@ -257,6 +245,19 @@ public function getUrlFormatWithHttpInfo($app_id, string $contentType = self::co
];
}

if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
sprintf(
'[%d] Error connecting to the API (%s)',
$statusCode,
(string) $request->getUri()
),
$statusCode,
$response->getHeaders(),
(string) $response->getBody()
);
}

$returnType = '\HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsResponse';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
Expand Down Expand Up @@ -311,7 +312,7 @@ public function getUrlFormatWithHttpInfo($app_id, string $contentType = self::co
/**
* Operation getUrlFormatAsync
*
* Read calling app recording settings
* Retrieve recording settings
*
* @param int $app_id The ID of the app. (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUrlFormat'] to see the possible values for this operation
Expand All @@ -332,7 +333,7 @@ function ($response) {
/**
* Operation getUrlFormatAsyncWithHttpInfo
*
* Read calling app recording settings
* Retrieve recording settings
*
* @param int $app_id The ID of the app. (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getUrlFormat'] to see the possible values for this operation
Expand Down Expand Up @@ -533,18 +534,6 @@ public function markAsReadyWithHttpInfo($mark_recording_as_ready_request, string

$statusCode = $response->getStatusCode();

if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
sprintf(
'[%d] Error connecting to the API (%s)',
$statusCode,
(string) $request->getUri()
),
$statusCode,
$response->getHeaders(),
(string) $response->getBody()
);
}

return [null, $statusCode, $response->getHeaders()];

Expand Down Expand Up @@ -721,7 +710,7 @@ public function markAsReadyRequest($mark_recording_as_ready_request, string $con
/**
* Operation registerUrlFormat
*
* Register calling app for recording
* Enable the app for call recording
*
* @param int $app_id The ID of the app. (required)
* @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsRequest $recording_settings_request recording_settings_request (required)
Expand All @@ -740,7 +729,7 @@ public function registerUrlFormat($app_id, $recording_settings_request, string $
/**
* Operation registerUrlFormatWithHttpInfo
*
* Register calling app for recording
* Enable the app for call recording
*
* @param int $app_id The ID of the app. (required)
* @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsRequest $recording_settings_request (required)
Expand Down Expand Up @@ -776,18 +765,6 @@ public function registerUrlFormatWithHttpInfo($app_id, $recording_settings_reque

$statusCode = $response->getStatusCode();

if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
sprintf(
'[%d] Error connecting to the API (%s)',
$statusCode,
(string) $request->getUri()
),
$statusCode,
$response->getHeaders(),
(string) $response->getBody()
);
}

switch($statusCode) {
case 200:
Expand Down Expand Up @@ -846,6 +823,19 @@ public function registerUrlFormatWithHttpInfo($app_id, $recording_settings_reque
];
}

if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
sprintf(
'[%d] Error connecting to the API (%s)',
$statusCode,
(string) $request->getUri()
),
$statusCode,
$response->getHeaders(),
(string) $response->getBody()
);
}

$returnType = '\HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsResponse';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
Expand Down Expand Up @@ -900,7 +890,7 @@ public function registerUrlFormatWithHttpInfo($app_id, $recording_settings_reque
/**
* Operation registerUrlFormatAsync
*
* Register calling app for recording
* Enable the app for call recording
*
* @param int $app_id The ID of the app. (required)
* @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsRequest $recording_settings_request (required)
Expand All @@ -922,7 +912,7 @@ function ($response) {
/**
* Operation registerUrlFormatAsyncWithHttpInfo
*
* Register calling app for recording
* Enable the app for call recording
*
* @param int $app_id The ID of the app. (required)
* @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsRequest $recording_settings_request (required)
Expand Down Expand Up @@ -1087,7 +1077,7 @@ public function registerUrlFormatRequest($app_id, $recording_settings_request, s
/**
* Operation updateUrlFormat
*
* Update calling app&#39;s recording settings
* Update recording settings
*
* @param int $app_id The ID of the app. (required)
* @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsPatchRequest $recording_settings_patch_request recording_settings_patch_request (required)
Expand All @@ -1106,7 +1096,7 @@ public function updateUrlFormat($app_id, $recording_settings_patch_request, stri
/**
* Operation updateUrlFormatWithHttpInfo
*
* Update calling app&#39;s recording settings
* Update recording settings
*
* @param int $app_id The ID of the app. (required)
* @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsPatchRequest $recording_settings_patch_request (required)
Expand Down Expand Up @@ -1142,18 +1132,6 @@ public function updateUrlFormatWithHttpInfo($app_id, $recording_settings_patch_r

$statusCode = $response->getStatusCode();

if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
sprintf(
'[%d] Error connecting to the API (%s)',
$statusCode,
(string) $request->getUri()
),
$statusCode,
$response->getHeaders(),
(string) $response->getBody()
);
}

switch($statusCode) {
case 200:
Expand Down Expand Up @@ -1212,6 +1190,19 @@ public function updateUrlFormatWithHttpInfo($app_id, $recording_settings_patch_r
];
}

if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
sprintf(
'[%d] Error connecting to the API (%s)',
$statusCode,
(string) $request->getUri()
),
$statusCode,
$response->getHeaders(),
(string) $response->getBody()
);
}

$returnType = '\HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsResponse';
if ($returnType === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
Expand Down Expand Up @@ -1266,7 +1257,7 @@ public function updateUrlFormatWithHttpInfo($app_id, $recording_settings_patch_r
/**
* Operation updateUrlFormatAsync
*
* Update calling app&#39;s recording settings
* Update recording settings
*
* @param int $app_id The ID of the app. (required)
* @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsPatchRequest $recording_settings_patch_request (required)
Expand All @@ -1288,7 +1279,7 @@ function ($response) {
/**
* Operation updateUrlFormatAsyncWithHttpInfo
*
* Update calling app&#39;s recording settings
* Update recording settings
*
* @param int $app_id The ID of the app. (required)
* @param \HubSpot\Client\Crm\Extensions\Calling\Model\RecordingSettingsPatchRequest $recording_settings_patch_request (required)
Expand Down
Loading