Skip to content

Commit

Permalink
Generated v4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 1, 2023
1 parent 123ee20 commit 82ea709
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Changelog

## [v4.1.1](https://github.com/fastly/fastly-php/releases/tag/release/v4.1.1) (2023-09-01)

**Enhancements:**

- feat(events): support extra created_at filters.

## [v4.1.0](https://github.com/fastly/fastly-php/releases/tag/release/v4.1.0) (2023-09-01)

**Enhancements:**

- feat(backend): support share_key field.
- feat(events): support extra created_at filters.
- feat(logging/newrelic): add OTLP endpoints.
- feat(tls/subscriptions): support self_managed_http_challenge field.

Expand Down
8 changes: 8 additions & 0 deletions docs/Api/EventsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ $options['filter_service_id'] = 'filter_service_id_example'; // string | Limit t
$options['filter_user_id'] = 'filter_user_id_example'; // string | Limit the results returned to a specific user.
$options['filter_token_id'] = 'filter_token_id_example'; // string | Limit the returned events to a specific token.
$options['filter_created_at'] = 'filter_created_at_example'; // string | Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12).
$options['filter_created_at_lte'] = 'filter_created_at_lte_example'; // string | Return events on and before a date and time in ISO 8601 format.
$options['filter_created_at_lt'] = 'filter_created_at_lt_example'; // string | Return events before a date and time in ISO 8601 format.
$options['filter_created_at_gte'] = 'filter_created_at_gte_example'; // string | Return events on and after a date and time in ISO 8601 format.
$options['filter_created_at_gt'] = 'filter_created_at_gt_example'; // string | Return events after a date and time in ISO 8601 format.
$options['page_number'] = 1; // int | Current page.
$options['page_size'] = 20; // int | Number of records per page.
$options['sort'] = created_at; // string | The order in which to list the results by creation date.
Expand All @@ -91,6 +95,10 @@ Name | Type | Description | Notes
**filter_user_id** | **string** | Limit the results returned to a specific user. | [optional]
**filter_token_id** | **string** | Limit the returned events to a specific token. | [optional]
**filter_created_at** | **string** | Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12). | [optional]
**filter_created_at_lte** | **string** | Return events on and before a date and time in ISO 8601 format. | [optional]
**filter_created_at_lt** | **string** | Return events before a date and time in ISO 8601 format. | [optional]
**filter_created_at_gte** | **string** | Return events on and after a date and time in ISO 8601 format. | [optional]
**filter_created_at_gt** | **string** | Return events after a date and time in ISO 8601 format. | [optional]
**page_number** | **int** | Current page. | [optional]
**page_size** | **int** | Number of records per page. | [optional] [defaults to 20]
**sort** | **string** | The order in which to list the results by creation date. | [optional] [one of: 'created_at', '-created_at'] [defaults to 'created_at']
Expand Down
68 changes: 68 additions & 0 deletions lib/Api/EventsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@ public function getEventRequest($options)
* @param string $filter_user_id Limit the results returned to a specific user. (optional)
* @param string $filter_token_id Limit the returned events to a specific token. (optional)
* @param string $filter_created_at Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12). (optional)
* @param string $filter_created_at_lte Return events on and before a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_lt Return events before a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_gte Return events on and after a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_gt Return events after a date and time in ISO 8601 format. (optional)
* @param int $page_number Current page. (optional)
* @param int $page_size Number of records per page. (optional, default to 20)
* @param string $sort The order in which to list the results by creation date. (optional, default to 'created_at')
Expand Down Expand Up @@ -477,6 +481,10 @@ public function listEvents($options)
* @param string $filter_user_id Limit the results returned to a specific user. (optional)
* @param string $filter_token_id Limit the returned events to a specific token. (optional)
* @param string $filter_created_at Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12). (optional)
* @param string $filter_created_at_lte Return events on and before a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_lt Return events before a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_gte Return events on and after a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_gt Return events after a date and time in ISO 8601 format. (optional)
* @param int $page_number Current page. (optional)
* @param int $page_size Number of records per page. (optional, default to 20)
* @param string $sort The order in which to list the results by creation date. (optional, default to 'created_at')
Expand Down Expand Up @@ -595,6 +603,10 @@ public function listEventsWithHttpInfo($options)
* @param string $filter_user_id Limit the results returned to a specific user. (optional)
* @param string $filter_token_id Limit the returned events to a specific token. (optional)
* @param string $filter_created_at Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12). (optional)
* @param string $filter_created_at_lte Return events on and before a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_lt Return events before a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_gte Return events on and after a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_gt Return events after a date and time in ISO 8601 format. (optional)
* @param int $page_number Current page. (optional)
* @param int $page_size Number of records per page. (optional, default to 20)
* @param string $sort The order in which to list the results by creation date. (optional, default to 'created_at')
Expand Down Expand Up @@ -628,6 +640,10 @@ function ($response) {
* @param string $filter_user_id Limit the results returned to a specific user. (optional)
* @param string $filter_token_id Limit the returned events to a specific token. (optional)
* @param string $filter_created_at Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12). (optional)
* @param string $filter_created_at_lte Return events on and before a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_lt Return events before a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_gte Return events on and after a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_gt Return events after a date and time in ISO 8601 format. (optional)
* @param int $page_number Current page. (optional)
* @param int $page_size Number of records per page. (optional, default to 20)
* @param string $sort The order in which to list the results by creation date. (optional, default to 'created_at')
Expand Down Expand Up @@ -687,6 +703,10 @@ function ($exception) {
* @param string $filter_user_id Limit the results returned to a specific user. (optional)
* @param string $filter_token_id Limit the returned events to a specific token. (optional)
* @param string $filter_created_at Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12). (optional)
* @param string $filter_created_at_lte Return events on and before a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_lt Return events before a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_gte Return events on and after a date and time in ISO 8601 format. (optional)
* @param string $filter_created_at_gt Return events after a date and time in ISO 8601 format. (optional)
* @param int $page_number Current page. (optional)
* @param int $page_size Number of records per page. (optional, default to 20)
* @param string $sort The order in which to list the results by creation date. (optional, default to 'created_at')
Expand All @@ -703,6 +723,10 @@ public function listEventsRequest($options)
$filter_user_id = array_key_exists('filter_user_id', $options) ? $options['filter_user_id'] : null;
$filter_token_id = array_key_exists('filter_token_id', $options) ? $options['filter_token_id'] : null;
$filter_created_at = array_key_exists('filter_created_at', $options) ? $options['filter_created_at'] : null;
$filter_created_at_lte = array_key_exists('filter_created_at_lte', $options) ? $options['filter_created_at_lte'] : null;
$filter_created_at_lt = array_key_exists('filter_created_at_lt', $options) ? $options['filter_created_at_lt'] : null;
$filter_created_at_gte = array_key_exists('filter_created_at_gte', $options) ? $options['filter_created_at_gte'] : null;
$filter_created_at_gt = array_key_exists('filter_created_at_gt', $options) ? $options['filter_created_at_gt'] : null;
$page_number = array_key_exists('page_number', $options) ? $options['page_number'] : null;
$page_size = array_key_exists('page_size', $options) ? $options['page_size'] : 20;
$sort = array_key_exists('sort', $options) ? $options['sort'] : 'created_at';
Expand Down Expand Up @@ -789,6 +813,50 @@ public function listEventsRequest($options)
}
}
// query params
if ($filter_created_at_lte !== null) {
if('form' === 'form' && is_array($filter_created_at_lte)) {
foreach($filter_created_at_lte as $key => $value) {
$queryParams[$key] = ObjectSerializer::toString($value);
}
}
else {
$queryParams['filter[created_at][lte]'] = ObjectSerializer::toString($filter_created_at_lte);
}
}
// query params
if ($filter_created_at_lt !== null) {
if('form' === 'form' && is_array($filter_created_at_lt)) {
foreach($filter_created_at_lt as $key => $value) {
$queryParams[$key] = ObjectSerializer::toString($value);
}
}
else {
$queryParams['filter[created_at][lt]'] = ObjectSerializer::toString($filter_created_at_lt);
}
}
// query params
if ($filter_created_at_gte !== null) {
if('form' === 'form' && is_array($filter_created_at_gte)) {
foreach($filter_created_at_gte as $key => $value) {
$queryParams[$key] = ObjectSerializer::toString($value);
}
}
else {
$queryParams['filter[created_at][gte]'] = ObjectSerializer::toString($filter_created_at_gte);
}
}
// query params
if ($filter_created_at_gt !== null) {
if('form' === 'form' && is_array($filter_created_at_gt)) {
foreach($filter_created_at_gt as $key => $value) {
$queryParams[$key] = ObjectSerializer::toString($value);
}
}
else {
$queryParams['filter[created_at][gt]'] = ObjectSerializer::toString($filter_created_at_gt);
}
}
// query params
if ($page_number !== null) {
if('form' === 'form' && is_array($page_number)) {
foreach($page_number as $key => $value) {
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/4.1.0';
protected $userAgent = 'fastly-php/4.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: 4.1.0' . PHP_EOL;
$report .= ' SDK Package Version: 4.1.1' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
2 changes: 1 addition & 1 deletion sig.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"G": "a5d4c17e", "D": "6ddfaf95"}
{"G": "95706192", "D": "691cfbf5"}

0 comments on commit 82ea709

Please sign in to comment.