Skip to content

Commit 30072c8

Browse files
author
github-actions
committed
Generated v4.2.0
1 parent 5c0fb52 commit 30072c8

File tree

67 files changed

+5275
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+5275
-129
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## [v4.2.0](https://github.com/fastly/fastly-py/releases/tag/release/v4.2.0) (2023-10-24)
4+
5+
**Enhancements:**
6+
7+
- feat(stats): add historical DDoS metrics.
8+
- feat(stats): add bot challenges.
9+
10+
**Bug fixes:**
11+
12+
- fix(snippets): ensure POST response's dynamic field is numerical.
13+
314
## [v4.1.1](https://github.com/fastly/fastly-py/releases/tag/release/v4.1.1) (2023-09-01)
415

516
**Enhancements:**

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,10 @@ Class | Method | HTTP request | Description
224224
*InvitationsApi* | [**create_invitation**](docs/InvitationsApi.md#create_invitation) | **POST** /invitations | Create an invitation
225225
*InvitationsApi* | [**delete_invitation**](docs/InvitationsApi.md#delete_invitation) | **DELETE** /invitations/{invitation_id} | Delete an invitation
226226
*InvitationsApi* | [**list_invitations**](docs/InvitationsApi.md#list_invitations) | **GET** /invitations | List invitations
227-
*KvStoreApi* | [**create_store**](docs/KvStoreApi.md#create_store) | **POST** /resources/stores/kv | Create an kv store.
228-
*KvStoreApi* | [**delete_store**](docs/KvStoreApi.md#delete_store) | **DELETE** /resources/stores/kv/{store_id} | Delete an kv store.
229-
*KvStoreApi* | [**get_store**](docs/KvStoreApi.md#get_store) | **GET** /resources/stores/kv/{store_id} | Describe an kv store.
230-
*KvStoreApi* | [**get_stores**](docs/KvStoreApi.md#get_stores) | **GET** /resources/stores/kv | List kv stores.
227+
*KvStoreApi* | [**create_store**](docs/KvStoreApi.md#create_store) | **POST** /resources/stores/kv | Create a KV store.
228+
*KvStoreApi* | [**delete_store**](docs/KvStoreApi.md#delete_store) | **DELETE** /resources/stores/kv/{store_id} | Delete a KV store.
229+
*KvStoreApi* | [**get_store**](docs/KvStoreApi.md#get_store) | **GET** /resources/stores/kv/{store_id} | Describe a KV store.
230+
*KvStoreApi* | [**get_stores**](docs/KvStoreApi.md#get_stores) | **GET** /resources/stores/kv | List KV stores.
231231
*KvStoreItemApi* | [**delete_key_from_store**](docs/KvStoreItemApi.md#delete_key_from_store) | **DELETE** /resources/stores/kv/{store_id}/keys/{key_name} | Delete kv store item.
232232
*KvStoreItemApi* | [**get_keys**](docs/KvStoreItemApi.md#get_keys) | **GET** /resources/stores/kv/{store_id}/keys | List kv store keys.
233233
*KvStoreItemApi* | [**get_value_for_key**](docs/KvStoreItemApi.md#get_value_for_key) | **GET** /resources/stores/kv/{store_id}/keys/{key_name} | Get the value of an kv store item
@@ -585,6 +585,7 @@ Class | Method | HTTP request | Description
585585
*WafRulesApi* | [**get_waf_rule**](docs/WafRulesApi.md#get_waf_rule) | **GET** /waf/rules/{waf_rule_id} | Get a rule
586586
*WafRulesApi* | [**list_waf_rules**](docs/WafRulesApi.md#list_waf_rules) | **GET** /waf/rules | List available WAF rules
587587
*WafTagsApi* | [**list_waf_tags**](docs/WafTagsApi.md#list_waf_tags) | **GET** /waf/tags | List tags
588+
*WholePlatformDdosHistoricalApi* | [**get_platform_ddos_historical**](docs/WholePlatformDdosHistoricalApi.md#get_platform_ddos_historical) | **GET** /metrics/platform/ddos | Get historical DDoS metrics for the entire Fastly platform
588589

589590

590591
## Issues

docs/HistoricalDdos.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# HistoricalDdos
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**status** | **str** | Whether or not we were able to successfully execute the query. | [optional]
8+
**meta** | [**HistoricalDdosMeta**](HistoricalDdosMeta.md) | | [optional]
9+
**msg** | **str, none_type** | If the query was not successful, this will provide a string that explains why. | [optional]
10+
**data** | [**[PlatformDdosDataItems]**](PlatformDdosDataItems.md) | A list of [entries](#entry-data-model). | [optional]
11+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
12+
13+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14+
15+

docs/HistoricalDdosMeta.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# HistoricalDdosMeta
2+
3+
Meta information about the scope of the query in a human readable format.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**start** | **str** | Start time that was used to perform the query as an ISO-8601-formatted date and time. | [optional]
9+
**end** | **str** | End time that was used to perform the query as an ISO-8601-formatted date and time. | [optional]
10+
**downsample** | **str** | Downsample that was used to perform the query. One of `hour` or `day`. | [optional]
11+
**metric** | **str** | A comma-separated list of the metrics that were requested. | [optional]
12+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
13+
14+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15+
16+

docs/HistoricalFieldResultsAttributes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,15 @@ Name | Type | Description | Notes
220220
**ddos_action_tarpit** | **int** | The number of times the tarpit action was taken. The tarpit action delays writing the response to the client. | [optional]
221221
**ddos_action_close** | **int** | The number of times the close action was taken. The close action aborts the connection as soon as possible. The close action takes effect either right after accept, right after the client hello, or right after the response was sent. | [optional]
222222
**ddos_action_blackhole** | **int** | The number of times the blackhole action was taken. The blackhole action quietly closes a TCP connection without sending a reset. The blackhole action quietly closes a TCP connection without notifying its peer (all TCP state is dropped). | [optional]
223+
**bot_challenge_starts** | **int** | The number of challenge-start tokens created. | [optional]
224+
**bot_challenge_complete_tokens_passed** | **int** | The number of challenge-complete tokens that passed validation. | [optional]
225+
**bot_challenge_complete_tokens_failed** | **int** | The number of challenge-complete tokens that failed validation. | [optional]
226+
**bot_challenge_complete_tokens_checked** | **int** | The number of challenge-complete tokens checked. | [optional]
227+
**bot_challenge_complete_tokens_disabled** | **int** | The number of challenge-complete tokens not checked because the feature was disabled. | [optional]
228+
**bot_challenge_complete_tokens_issued** | **int** | The number of challenge-complete tokens issued. For example, issuing a challenge-complete token after a series of CAPTCHA challenges ending in success. | [optional]
229+
**bot_challenges_issued** | **int** | The number of challenges issued. For example, the issuance of a CAPTCHA challenge. | [optional]
230+
**bot_challenges_succeeded** | **int** | The number of successful challenge solutions processed. For example, a correct CAPTCHA solution. | [optional]
231+
**bot_challenges_failed** | **int** | The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution. | [optional]
223232
**service_id** | [**ReadOnlyIdService**](ReadOnlyIdService.md) | | [optional]
224233
**start_time** | **int** | | [optional]
225234
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

docs/KvStoreApi.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ All URIs are relative to *https://api.fastly.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**create_store**](KvStoreApi.md#create_store) | **POST** /resources/stores/kv | Create an kv store.
8-
[**delete_store**](KvStoreApi.md#delete_store) | **DELETE** /resources/stores/kv/{store_id} | Delete an kv store.
9-
[**get_store**](KvStoreApi.md#get_store) | **GET** /resources/stores/kv/{store_id} | Describe an kv store.
10-
[**get_stores**](KvStoreApi.md#get_stores) | **GET** /resources/stores/kv | List kv stores.
7+
[**create_store**](KvStoreApi.md#create_store) | **POST** /resources/stores/kv | Create a KV store.
8+
[**delete_store**](KvStoreApi.md#delete_store) | **DELETE** /resources/stores/kv/{store_id} | Delete a KV store.
9+
[**get_store**](KvStoreApi.md#get_store) | **GET** /resources/stores/kv/{store_id} | Describe a KV store.
10+
[**get_stores**](KvStoreApi.md#get_stores) | **GET** /resources/stores/kv | List KV stores.
1111

1212

1313
# **create_store**
1414
> StoreResponse create_store()
1515
16-
Create an kv store.
16+
Create a KV store.
1717

18-
Create a new kv store.
18+
Create a new KV store.
1919

2020
### Example
2121

@@ -57,7 +57,7 @@ with fastly.ApiClient(configuration) as api_client:
5757
# example passing only required values which don't have defaults set
5858
# and optional values
5959
try:
60-
# Create an kv store.
60+
# Create a KV store.
6161
api_response = api_instance.create_store(location=location, store=store)
6262
pprint(api_response)
6363
except fastly.ApiException as e:
@@ -97,9 +97,9 @@ Name | Type | Description | Notes
9797
# **delete_store**
9898
> delete_store(store_id)
9999
100-
Delete an kv store.
100+
Delete a KV store.
101101

102-
An kv store must be empty before it can be deleted. Deleting an kv store that still contains keys will result in a `409` (Conflict).
102+
A KV store must be empty before it can be deleted. Deleting a KV store that still contains keys will result in a `409` (Conflict).
103103

104104
### Example
105105

@@ -135,7 +135,7 @@ with fastly.ApiClient(configuration) as api_client:
135135

136136
# example passing only required values which don't have defaults set
137137
try:
138-
# Delete an kv store.
138+
# Delete a KV store.
139139
api_instance.delete_store(store_id)
140140
except fastly.ApiException as e:
141141
print("Exception when calling KvStoreApi->delete_store: %s\n" % e)
@@ -173,9 +173,9 @@ void (empty response body)
173173
# **get_store**
174174
> StoreResponse get_store(store_id)
175175
176-
Describe an kv store.
176+
Describe a KV store.
177177

178-
Get an kv store by ID.
178+
Get a KV store by ID.
179179

180180
### Example
181181

@@ -212,7 +212,7 @@ with fastly.ApiClient(configuration) as api_client:
212212

213213
# example passing only required values which don't have defaults set
214214
try:
215-
# Describe an kv store.
215+
# Describe a KV store.
216216
api_response = api_instance.get_store(store_id)
217217
pprint(api_response)
218218
except fastly.ApiException as e:
@@ -251,7 +251,7 @@ Name | Type | Description | Notes
251251
# **get_stores**
252252
> InlineResponse2003 get_stores()
253253
254-
List kv stores.
254+
List KV stores.
255255

256256
Get all stores for a given customer.
257257

@@ -292,7 +292,7 @@ with fastly.ApiClient(configuration) as api_client:
292292
# example passing only required values which don't have defaults set
293293
# and optional values
294294
try:
295-
# List kv stores.
295+
# List KV stores.
296296
api_response = api_instance.get_stores(cursor=cursor, limit=limit)
297297
pprint(api_response)
298298
except fastly.ApiException as e:

docs/LoggingLogentriesAdditional.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**port** | **int** | The port number. | [optional] if omitted the server will use the default value of 20000
8-
**token** | **str** | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). | [optional]
8+
**token** | **str** | Use token based authentication. | [optional]
99
**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional]
1010
**region** | **str** | The region to which to stream logs. | [optional]
1111
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

docs/LoggingLogentriesApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ with fastly.ApiClient(configuration) as api_client:
5858
format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b"
5959
format_version = 2 # int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional) if omitted the server will use the default value of 2
6060
port = 20000 # int | The port number. (optional) if omitted the server will use the default value of 20000
61-
token = "token_example" # str | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional)
61+
token = "token_example" # str | Use token based authentication. (optional)
6262
use_tls = LoggingUseTls(0) # LoggingUseTls | (optional)
6363
region = "US" # str | The region to which to stream logs. (optional)
6464

@@ -93,7 +93,7 @@ Name | Type | Description | Notes
9393
**format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b"
9494
**format_version** | **int**| The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of 2
9595
**port** | **int**| The port number. | [optional] if omitted the server will use the default value of 20000
96-
**token** | **str**| Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). | [optional]
96+
**token** | **str**| Use token based authentication. | [optional]
9797
**use_tls** | [**LoggingUseTls**](LoggingUseTls.md)| | [optional]
9898
**region** | **str**| The region to which to stream logs. | [optional]
9999

@@ -411,7 +411,7 @@ with fastly.ApiClient(configuration) as api_client:
411411
format = "%h %l %u %t "%r" %>s %b" # str | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (optional) if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b"
412412
format_version = 2 # int | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (optional) if omitted the server will use the default value of 2
413413
port = 20000 # int | The port number. (optional) if omitted the server will use the default value of 20000
414-
token = "token_example" # str | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). (optional)
414+
token = "token_example" # str | Use token based authentication. (optional)
415415
use_tls = LoggingUseTls(0) # LoggingUseTls | (optional)
416416
region = "US" # str | The region to which to stream logs. (optional)
417417

@@ -447,7 +447,7 @@ Name | Type | Description | Notes
447447
**format** | **str**| A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b"
448448
**format_version** | **int**| The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of 2
449449
**port** | **int**| The port number. | [optional] if omitted the server will use the default value of 20000
450-
**token** | **str**| Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). | [optional]
450+
**token** | **str**| Use token based authentication. | [optional]
451451
**use_tls** | [**LoggingUseTls**](LoggingUseTls.md)| | [optional]
452452
**region** | **str**| The region to which to stream logs. | [optional]
453453

docs/LoggingLogentriesResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
1010
**format** | **str** | A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). | [optional] if omitted the server will use the default value of "%h %l %u %t "%r" %>s %b"
1111
**format_version** | **str** | The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. | [optional] if omitted the server will use the default value of "2"
1212
**port** | **int** | The port number. | [optional] if omitted the server will use the default value of 20000
13-
**token** | **str** | Use token based authentication ([https://logentries.com/doc/input-token/](https://logentries.com/doc/input-token/)). | [optional]
13+
**token** | **str** | Use token based authentication. | [optional]
1414
**use_tls** | [**LoggingUseTls**](LoggingUseTls.md) | | [optional]
1515
**region** | **str** | The region to which to stream logs. | [optional]
1616
**created_at** | **datetime, none_type** | Date and time in ISO 8601 format. | [optional] [readonly]

docs/PlatformDdosDataItems.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# PlatformDdosDataItems
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**values** | [**Values**](Values.md) | | [optional]
8+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

0 commit comments

Comments
 (0)