From 5c0fb52dcf4ba1447df8475b426912ab7daadde8 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 1 Sep 2023 14:22:42 +0000 Subject: [PATCH] Generated v4.1.1 --- CHANGELOG.md | 7 +++++++ docs/EventsApi.md | 10 +++++++++- fastly/__init__.py | 2 +- fastly/api/events_api.py | 24 ++++++++++++++++++++++++ fastly/api_client.py | 2 +- fastly/configuration.py | 2 +- setup.py | 2 +- sig.json | 2 +- 8 files changed, 45 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cb6e238..ebaf56f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,17 @@ # Changelog +## [v4.1.1](https://github.com/fastly/fastly-py/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-py/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. diff --git a/docs/EventsApi.md b/docs/EventsApi.md index e063e00..ced689c 100644 --- a/docs/EventsApi.md +++ b/docs/EventsApi.md @@ -130,6 +130,10 @@ with fastly.ApiClient(configuration) as api_client: filter_user_id = "filter[user_id]_example" # str | Limit the results returned to a specific user. (optional) filter_token_id = "filter[token_id]_example" # str | Limit the returned events to a specific token. (optional) filter_created_at = "filter[created_at]_example" # str | 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 = "filter[created_at][lte]_example" # str | Return events on and before a date and time in ISO 8601 format. (optional) + filter_created_at_lt = "filter[created_at][lt]_example" # str | Return events before a date and time in ISO 8601 format. (optional) + filter_created_at_gte = "filter[created_at][gte]_example" # str | Return events on and after a date and time in ISO 8601 format. (optional) + filter_created_at_gt = "filter[created_at][gt]_example" # str | Return events after a date and time in ISO 8601 format. (optional) page_number = 1 # int | Current page. (optional) page_size = 20 # int | Number of records per page. (optional) if omitted the server will use the default value of 20 sort = "created_at" # str | The order in which to list the results by creation date. (optional) if omitted the server will use the default value of "created_at" @@ -138,7 +142,7 @@ with fastly.ApiClient(configuration) as api_client: # and optional values try: # List events - api_response = api_instance.list_events(filter_customer_id=filter_customer_id, filter_event_type=filter_event_type, filter_service_id=filter_service_id, filter_user_id=filter_user_id, filter_token_id=filter_token_id, filter_created_at=filter_created_at, page_number=page_number, page_size=page_size, sort=sort) + api_response = api_instance.list_events(filter_customer_id=filter_customer_id, filter_event_type=filter_event_type, filter_service_id=filter_service_id, filter_user_id=filter_user_id, filter_token_id=filter_token_id, filter_created_at=filter_created_at, filter_created_at_lte=filter_created_at_lte, filter_created_at_lt=filter_created_at_lt, filter_created_at_gte=filter_created_at_gte, filter_created_at_gt=filter_created_at_gt, page_number=page_number, page_size=page_size, sort=sort) pprint(api_response) except fastly.ApiException as e: print("Exception when calling EventsApi->list_events: %s\n" % e) @@ -155,6 +159,10 @@ Name | Type | Description | Notes **filter_user_id** | **str**| Limit the results returned to a specific user. | [optional] **filter_token_id** | **str**| Limit the returned events to a specific token. | [optional] **filter_created_at** | **str**| 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** | **str**| Return events on and before a date and time in ISO 8601 format. | [optional] + **filter_created_at_lt** | **str**| Return events before a date and time in ISO 8601 format. | [optional] + **filter_created_at_gte** | **str**| Return events on and after a date and time in ISO 8601 format. | [optional] + **filter_created_at_gt** | **str**| 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] if omitted the server will use the default value of 20 **sort** | **str**| The order in which to list the results by creation date. | [optional] if omitted the server will use the default value of "created_at" diff --git a/fastly/__init__.py b/fastly/__init__.py index 515f106..8d7aa96 100644 --- a/fastly/__init__.py +++ b/fastly/__init__.py @@ -10,7 +10,7 @@ """ -__version__ = "4.1.0" +__version__ = "4.1.1" # import ApiClient from fastly.api_client import ApiClient diff --git a/fastly/api/events_api.py b/fastly/api/events_api.py index d14ed08..169f763 100644 --- a/fastly/api/events_api.py +++ b/fastly/api/events_api.py @@ -116,6 +116,10 @@ def __init__(self, api_client=None): 'filter_user_id', 'filter_token_id', 'filter_created_at', + 'filter_created_at_lte', + 'filter_created_at_lt', + 'filter_created_at_gte', + 'filter_created_at_gt', 'page_number', 'page_size', 'sort', @@ -158,6 +162,14 @@ def __init__(self, api_client=None): (str,), 'filter_created_at': (str,), + 'filter_created_at_lte': + (str,), + 'filter_created_at_lt': + (str,), + 'filter_created_at_gte': + (str,), + 'filter_created_at_gt': + (str,), 'page_number': (int,), 'page_size': @@ -172,6 +184,10 @@ def __init__(self, api_client=None): 'filter_user_id': 'filter[user_id]', 'filter_token_id': 'filter[token_id]', 'filter_created_at': 'filter[created_at]', + 'filter_created_at_lte': 'filter[created_at][lte]', + 'filter_created_at_lt': 'filter[created_at][lt]', + 'filter_created_at_gte': 'filter[created_at][gte]', + 'filter_created_at_gt': 'filter[created_at][gt]', 'page_number': 'page[number]', 'page_size': 'page[size]', 'sort': 'sort', @@ -183,6 +199,10 @@ def __init__(self, api_client=None): 'filter_user_id': 'query', 'filter_token_id': 'query', 'filter_created_at': 'query', + 'filter_created_at_lte': 'query', + 'filter_created_at_lt': 'query', + 'filter_created_at_gte': 'query', + 'filter_created_at_gt': 'query', 'page_number': 'query', 'page_size': 'query', 'sort': 'query', @@ -300,6 +320,10 @@ def list_events( filter_user_id (str): Limit the results returned to a specific user.. [optional] filter_token_id (str): Limit the returned events to a specific token.. [optional] filter_created_at (str): 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 (str): Return events on and before a date and time in ISO 8601 format. . [optional] + filter_created_at_lt (str): Return events before a date and time in ISO 8601 format. . [optional] + filter_created_at_gte (str): Return events on and after a date and time in ISO 8601 format. . [optional] + filter_created_at_gt (str): 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] if omitted the server will use the default value of 20 sort (str): The order in which to list the results by creation date.. [optional] if omitted the server will use the default value of "created_at" diff --git a/fastly/api_client.py b/fastly/api_client.py index 0ead702..123ebb3 100644 --- a/fastly/api_client.py +++ b/fastly/api_client.py @@ -79,7 +79,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'fastly-py/4.1.0' + self.user_agent = 'fastly-py/4.1.1' # The last observed value of http header Fastly-RateLimit-Remaining self.rate_limit_remaining = DEFAULT_RATELIMIT diff --git a/fastly/configuration.py b/fastly/configuration.py index 5643869..7f09c46 100644 --- a/fastly/configuration.py +++ b/fastly/configuration.py @@ -446,7 +446,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0.0\n"\ - "SDK Package Version: 4.1.0".\ + "SDK Package Version: 4.1.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/setup.py b/setup.py index 6d4e7c0..c0f3643 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ from pathlib import Path NAME = "fastly" -VERSION = "4.1.0" +VERSION = "4.1.1" # To install the library, run the following # # python setup.py install diff --git a/sig.json b/sig.json index af51c00..8d0afc0 100644 --- a/sig.json +++ b/sig.json @@ -1 +1 @@ -{"G": "a5d4c17e", "D": "6ddfaf95"} +{"G": "95706192", "D": "691cfbf5"}