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 1863d3f commit 5c0fb52
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 6 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-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.

Expand Down
10 changes: 9 additions & 1 deletion docs/EventsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion fastly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""


__version__ = "4.1.0"
__version__ = "4.1.1"

# import ApiClient
from fastly.api_client import ApiClient
Expand Down
24 changes: 24 additions & 0 deletions fastly/api/events_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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':
Expand All @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion fastly/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion fastly/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 5c0fb52

Please sign in to comment.