Skip to content

Commit

Permalink
Generated v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed May 22, 2023
1 parent 7587ae1 commit ac55920
Show file tree
Hide file tree
Showing 18 changed files with 280 additions and 145 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [v2.1.1](https://github.com/fastly/fastly-php/releases/tag/release/v2.1.1) (2023-05-22)

**Bug fixes:**

- fix(acl): change `version` from int to string.
- fix(acl): add missing methods for `service_id` and `service_version` properties.
- fix(backend): make `ssl_check_cert` nullable.
- fix(purge): skip URL escape for `surrogate_key` param.
- fix(snippets): change `priority` and `version` from int to string.
- fix(snippets): add missing methods for `service_id` and `service_version` properties.

## [v2.1.0](https://github.com/fastly/fastly-php/releases/tag/release/v2.1.0) (2023-05-17)

**Enhancements:**
Expand Down
8 changes: 4 additions & 4 deletions docs/Api/SnippetApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $options['name'] = 'name_example'; // string | The name for the snippet.
$options['dynamic'] = 56; // int | Sets the snippet version.
$options['type'] = 'type_example'; // string | The location in generated VCL where the snippet should be placed.
$options['content'] = 'content_example'; // string | The VCL code that specifies exactly what the snippet does.
$options['priority'] = 100; // int | Priority determines execution order. Lower numbers execute first.
$options['priority'] = '100'; // string | Priority determines execution order. Lower numbers execute first.

try {
$result = $apiInstance->createSnippet($options);
Expand All @@ -59,7 +59,7 @@ Name | Type | Description | Notes
**dynamic** | **int** | Sets the snippet version. | [optional] [one of: 0, 1]
**type** | **string** | The location in generated VCL where the snippet should be placed. | [optional] [one of: 'init', 'recv', 'hash', 'hit', 'miss', 'pass', 'fetch', 'error', 'deliver', 'log', 'none']
**content** | **string** | The VCL code that specifies exactly what the snippet does. | [optional]
**priority** | **int** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to 100]
**priority** | **string** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to '100']

### Return type

Expand Down Expand Up @@ -232,7 +232,7 @@ $options['name'] = 'name_example'; // string | The name for the snippet.
$options['dynamic'] = 56; // int | Sets the snippet version.
$options['type'] = 'type_example'; // string | The location in generated VCL where the snippet should be placed.
$options['content'] = 'content_example'; // string | The VCL code that specifies exactly what the snippet does.
$options['priority'] = 100; // int | Priority determines execution order. Lower numbers execute first.
$options['priority'] = '100'; // string | Priority determines execution order. Lower numbers execute first.

try {
$result = $apiInstance->updateSnippetDynamic($options);
Expand All @@ -253,7 +253,7 @@ Name | Type | Description | Notes
**dynamic** | **int** | Sets the snippet version. | [optional] [one of: 0, 1]
**type** | **string** | The location in generated VCL where the snippet should be placed. | [optional] [one of: 'init', 'recv', 'hash', 'hit', 'miss', 'pass', 'fetch', 'error', 'deliver', 'log', 'none']
**content** | **string** | The VCL code that specifies exactly what the snippet does. | [optional]
**priority** | **int** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to 100]
**priority** | **string** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to '100']

### Return type

Expand Down
2 changes: 1 addition & 1 deletion docs/Model/AclResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**service_id** | **string** | | [optional] [readonly]
**version** | **int** | | [optional] [readonly]
**version** | **string** | String representing the number identifying a version of the service. | [optional] [readonly]
**id** | **string** | | [optional] [readonly]


Expand Down
2 changes: 2 additions & 0 deletions docs/Model/AclResponseAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**service_id** | **string** | | [optional] [readonly]
**version** | **string** | String representing the number identifying a version of the service. | [optional] [readonly]
**id** | **string** | | [optional] [readonly]


Expand Down
6 changes: 3 additions & 3 deletions docs/Model/SchemasSnippetResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Name | Type | Description | Notes
**dynamic** | **int** | Sets the snippet version. | [optional] [one of: 0, 1]
**type** | **string** | The location in generated VCL where the snippet should be placed. | [optional] [one of: 'init', 'recv', 'hash', 'hit', 'miss', 'pass', 'fetch', 'error', 'deliver', 'log', 'none']
**content** | **string** | The VCL code that specifies exactly what the snippet does. | [optional]
**priority** | **int** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to 100]
**service_id** | **string** | | [optional] [readonly]
**version** | **int** | | [optional] [readonly]
**priority** | **string** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to '100']
**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**service_id** | **string** | | [optional] [readonly]
**version** | **string** | String representing the number identifying a version of the service. | [optional] [readonly]
**id** | **string** | | [optional] [readonly]


Expand Down
2 changes: 1 addition & 1 deletion docs/Model/Snippet.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**dynamic** | **int** | Sets the snippet version. | [optional] [one of: 0, 1]
**type** | **string** | The location in generated VCL where the snippet should be placed. | [optional] [one of: 'init', 'recv', 'hash', 'hit', 'miss', 'pass', 'fetch', 'error', 'deliver', 'log', 'none']
**content** | **string** | The VCL code that specifies exactly what the snippet does. | [optional]
**priority** | **int** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to 100]
**priority** | **string** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to '100']


[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
6 changes: 3 additions & 3 deletions docs/Model/SnippetResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Name | Type | Description | Notes
**dynamic** | **int** | Sets the snippet version. | [optional] [one of: 0, 1]
**type** | **string** | The location in generated VCL where the snippet should be placed. | [optional] [one of: 'init', 'recv', 'hash', 'hit', 'miss', 'pass', 'fetch', 'error', 'deliver', 'log', 'none']
**content** | **string** | The VCL code that specifies exactly what the snippet does. | [optional]
**priority** | **int** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to 100]
**service_id** | **string** | | [optional] [readonly]
**version** | **int** | | [optional] [readonly]
**priority** | **string** | Priority determines execution order. Lower numbers execute first. | [optional] [defaults to '100']
**created_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**service_id** | **string** | | [optional] [readonly]
**version** | **string** | String representing the number identifying a version of the service. | [optional] [readonly]
**id** | **string** | | [optional] [readonly]


Expand Down
2 changes: 2 additions & 0 deletions docs/Model/SnippetResponseAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**service_id** | **string** | | [optional] [readonly]
**version** | **string** | String representing the number identifying a version of the service. | [optional] [readonly]
**id** | **string** | | [optional] [readonly]


Expand Down
2 changes: 1 addition & 1 deletion lib/Api/PurgeApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ public function purgeTagRequest($options)
if ($surrogate_key !== null) {
$resourcePath = str_replace(
'{' . 'surrogate_key' . '}',
ObjectSerializer::toPathValue($surrogate_key),
ObjectSerializer::toPathValue($surrogate_key, true),
$resourcePath
);
}
Expand Down
24 changes: 12 additions & 12 deletions lib/Api/SnippetApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function getConfig()
* @param int $dynamic Sets the snippet version. (optional)
* @param string $type The location in generated VCL where the snippet should be placed. (optional)
* @param string $content The VCL code that specifies exactly what the snippet does. (optional)
* @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100)
* @param string $priority Priority determines execution order. Lower numbers execute first. (optional, default to '100')
*
* @throws \Fastly\ApiException on non-2xx response
* @throws \InvalidArgumentException
Expand All @@ -147,7 +147,7 @@ public function createSnippet($options)
* @param int $dynamic Sets the snippet version. (optional)
* @param string $type The location in generated VCL where the snippet should be placed. (optional)
* @param string $content The VCL code that specifies exactly what the snippet does. (optional)
* @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100)
* @param string $priority Priority determines execution order. Lower numbers execute first. (optional, default to '100')
*
* @throws \Fastly\ApiException on non-2xx response
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -260,7 +260,7 @@ public function createSnippetWithHttpInfo($options)
* @param int $dynamic Sets the snippet version. (optional)
* @param string $type The location in generated VCL where the snippet should be placed. (optional)
* @param string $content The VCL code that specifies exactly what the snippet does. (optional)
* @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100)
* @param string $priority Priority determines execution order. Lower numbers execute first. (optional, default to '100')
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
Expand Down Expand Up @@ -288,7 +288,7 @@ function ($response) {
* @param int $dynamic Sets the snippet version. (optional)
* @param string $type The location in generated VCL where the snippet should be placed. (optional)
* @param string $content The VCL code that specifies exactly what the snippet does. (optional)
* @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100)
* @param string $priority Priority determines execution order. Lower numbers execute first. (optional, default to '100')
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
Expand Down Expand Up @@ -342,7 +342,7 @@ function ($exception) {
* @param int $dynamic Sets the snippet version. (optional)
* @param string $type The location in generated VCL where the snippet should be placed. (optional)
* @param string $content The VCL code that specifies exactly what the snippet does. (optional)
* @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100)
* @param string $priority Priority determines execution order. Lower numbers execute first. (optional, default to '100')
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
Expand All @@ -356,7 +356,7 @@ public function createSnippetRequest($options)
$dynamic = array_key_exists('dynamic', $options) ? $options['dynamic'] : null;
$type = array_key_exists('type', $options) ? $options['type'] : null;
$content = array_key_exists('content', $options) ? $options['content'] : null;
$priority = array_key_exists('priority', $options) ? $options['priority'] : 100;
$priority = array_key_exists('priority', $options) ? $options['priority'] : '100';

// verify the required parameter 'service_id' is set
if ($service_id === null || (is_array($service_id) && count($service_id) === 0)) {
Expand Down Expand Up @@ -1817,7 +1817,7 @@ public function listSnippetsRequest($options)
* @param int $dynamic Sets the snippet version. (optional)
* @param string $type The location in generated VCL where the snippet should be placed. (optional)
* @param string $content The VCL code that specifies exactly what the snippet does. (optional)
* @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100)
* @param string $priority Priority determines execution order. Lower numbers execute first. (optional, default to '100')
*
* @throws \Fastly\ApiException on non-2xx response
* @throws \InvalidArgumentException
Expand All @@ -1842,7 +1842,7 @@ public function updateSnippetDynamic($options)
* @param int $dynamic Sets the snippet version. (optional)
* @param string $type The location in generated VCL where the snippet should be placed. (optional)
* @param string $content The VCL code that specifies exactly what the snippet does. (optional)
* @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100)
* @param string $priority Priority determines execution order. Lower numbers execute first. (optional, default to '100')
*
* @throws \Fastly\ApiException on non-2xx response
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -1955,7 +1955,7 @@ public function updateSnippetDynamicWithHttpInfo($options)
* @param int $dynamic Sets the snippet version. (optional)
* @param string $type The location in generated VCL where the snippet should be placed. (optional)
* @param string $content The VCL code that specifies exactly what the snippet does. (optional)
* @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100)
* @param string $priority Priority determines execution order. Lower numbers execute first. (optional, default to '100')
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
Expand Down Expand Up @@ -1983,7 +1983,7 @@ function ($response) {
* @param int $dynamic Sets the snippet version. (optional)
* @param string $type The location in generated VCL where the snippet should be placed. (optional)
* @param string $content The VCL code that specifies exactly what the snippet does. (optional)
* @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100)
* @param string $priority Priority determines execution order. Lower numbers execute first. (optional, default to '100')
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
Expand Down Expand Up @@ -2037,7 +2037,7 @@ function ($exception) {
* @param int $dynamic Sets the snippet version. (optional)
* @param string $type The location in generated VCL where the snippet should be placed. (optional)
* @param string $content The VCL code that specifies exactly what the snippet does. (optional)
* @param int $priority Priority determines execution order. Lower numbers execute first. (optional, default to 100)
* @param string $priority Priority determines execution order. Lower numbers execute first. (optional, default to '100')
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
Expand All @@ -2051,7 +2051,7 @@ public function updateSnippetDynamicRequest($options)
$dynamic = array_key_exists('dynamic', $options) ? $options['dynamic'] : null;
$type = array_key_exists('type', $options) ? $options['type'] : null;
$content = array_key_exists('content', $options) ? $options['content'] : null;
$priority = array_key_exists('priority', $options) ? $options['priority'] : 100;
$priority = array_key_exists('priority', $options) ? $options['priority'] : '100';

// verify the required parameter 'service_id' is set
if ($service_id === null || (is_array($service_id) && count($service_id) === 0)) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'fastly-php/2.1.0';
protected $userAgent = 'fastly-php/2.1.1';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -453,7 +453,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the schema document: 1.0.0' . PHP_EOL;
$report .= ' SDK Package Version: 2.1.0' . PHP_EOL;
$report .= ' SDK Package Version: 2.1.1' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/AclResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class AclResponse implements ModelInterface, ArrayAccess, \JsonSerializable
'deleted_at' => '\DateTime',
'updated_at' => '\DateTime',
'service_id' => 'string',
'version' => 'int',
'version' => 'string',
'id' => 'string'
];

Expand Down Expand Up @@ -358,7 +358,7 @@ public function setServiceId($service_id)
/**
* Gets version
*
* @return int|null
* @return string|null
*/
public function getVersion()
{
Expand All @@ -368,7 +368,7 @@ public function getVersion()
/**
* Sets version
*
* @param int|null $version version
* @param string|null $version String representing the number identifying a version of the service.
*
* @return self
*/
Expand Down
Loading

0 comments on commit ac55920

Please sign in to comment.