Skip to content

Commit cee2082

Browse files
author
github-actions
committed
Generated v2.4.0
1 parent 7a8213d commit cee2082

Some content is hidden

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

51 files changed

+523
-922
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+
## [v2.4.0](https://github.com/fastly/fastly-rust/releases/tag/release/v2.4.0) (2023-06-27)
4+
5+
**Enhancements:**
6+
7+
- feat(rate_limiter): implement POST/PUT endpoints.
8+
9+
**Bug fixes:**
10+
11+
- fix(automation_tokens): generate explicit error response type.
12+
- remove(historical_stats): remove feature as generated code is invalid.
13+
314
## [v2.3.0](https://github.com/fastly/fastly-rust/releases/tag/release/v2.3.0) (2023-06-23)
415

516
**Enhancements:**

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fastly-api"
3-
version = "2.3.0"
3+
version = "2.4.0"
44
authors = ["Fastly <[email protected]>"]
55
edition = "2021"
66
description = "Fastly API client"

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Rust 2021 Edition
1212
Add the following to `Cargo.toml` under `[dependencies]`:
1313

1414
```toml
15-
fastly-api = "2.3.0"
15+
fastly-api = "2.4.0"
1616
```
1717

1818
## Usage
@@ -180,15 +180,6 @@ Class | Method | HTTP request | Description
180180
*HealthcheckApi* | [**get_healthcheck**](docs/HealthcheckApi.md#get_healthcheck) | **GET** /service/{service_id}/version/{version_id}/healthcheck/{healthcheck_name} | Get a health check
181181
*HealthcheckApi* | [**list_healthchecks**](docs/HealthcheckApi.md#list_healthchecks) | **GET** /service/{service_id}/version/{version_id}/healthcheck | List health checks
182182
*HealthcheckApi* | [**update_healthcheck**](docs/HealthcheckApi.md#update_healthcheck) | **PUT** /service/{service_id}/version/{version_id}/healthcheck/{healthcheck_name} | Update a health check
183-
*HistoricalApi* | [**get_hist_stats**](docs/HistoricalApi.md#get_hist_stats) | **GET** /stats | Get historical stats
184-
*HistoricalApi* | [**get_hist_stats_aggregated**](docs/HistoricalApi.md#get_hist_stats_aggregated) | **GET** /stats/aggregate | Get aggregated historical stats
185-
*HistoricalApi* | [**get_hist_stats_field**](docs/HistoricalApi.md#get_hist_stats_field) | **GET** /stats/field/{field} | Get historical stats for a single field
186-
*HistoricalApi* | [**get_hist_stats_service**](docs/HistoricalApi.md#get_hist_stats_service) | **GET** /stats/service/{service_id} | Get historical stats for a single service
187-
*HistoricalApi* | [**get_hist_stats_service_field**](docs/HistoricalApi.md#get_hist_stats_service_field) | **GET** /stats/service/{service_id}/field/{field} | Get historical stats for a single service/field combination
188-
*HistoricalApi* | [**get_regions**](docs/HistoricalApi.md#get_regions) | **GET** /stats/regions | Get region codes
189-
*HistoricalApi* | [**get_usage**](docs/HistoricalApi.md#get_usage) | **GET** /stats/usage | Get usage statistics
190-
*HistoricalApi* | [**get_usage_month**](docs/HistoricalApi.md#get_usage_month) | **GET** /stats/usage_by_month | Get month-to-date usage statistics
191-
*HistoricalApi* | [**get_usage_service**](docs/HistoricalApi.md#get_usage_service) | **GET** /stats/usage_by_service | Get usage statistics per service
192183
*Http3Api* | [**create_http3**](docs/Http3Api.md#create_http3) | **POST** /service/{service_id}/version/{version_id}/http3 | Enable support for HTTP/3
193184
*Http3Api* | [**delete_http3**](docs/Http3Api.md#delete_http3) | **DELETE** /service/{service_id}/version/{version_id}/http3 | Disable support for HTTP/3
194185
*Http3Api* | [**get_http3**](docs/Http3Api.md#get_http3) | **GET** /service/{service_id}/version/{version_id}/http3 | Get HTTP/3 status
@@ -364,9 +355,11 @@ Class | Method | HTTP request | Description
364355
*PurgeApi* | [**purge_all**](docs/PurgeApi.md#purge_all) | **POST** /service/{service_id}/purge_all | Purge everything from a service
365356
*PurgeApi* | [**purge_single_url**](docs/PurgeApi.md#purge_single_url) | **POST** /purge/{cached_url} | Purge a URL
366357
*PurgeApi* | [**purge_tag**](docs/PurgeApi.md#purge_tag) | **POST** /service/{service_id}/purge/{surrogate_key} | Purge by surrogate key tag
358+
*RateLimiterApi* | [**create_rate_limiter**](docs/RateLimiterApi.md#create_rate_limiter) | **POST** /service/{service_id}/version/{version_id}/rate-limiters | Create a rate limiter
367359
*RateLimiterApi* | [**delete_rate_limiter**](docs/RateLimiterApi.md#delete_rate_limiter) | **DELETE** /rate-limiters/{rate_limiter_id} | Delete a rate limiter
368360
*RateLimiterApi* | [**get_rate_limiter**](docs/RateLimiterApi.md#get_rate_limiter) | **GET** /rate-limiters/{rate_limiter_id} | Get a rate limiter
369361
*RateLimiterApi* | [**list_rate_limiters**](docs/RateLimiterApi.md#list_rate_limiters) | **GET** /service/{service_id}/version/{version_id}/rate-limiters | List rate limiters
362+
*RateLimiterApi* | [**update_rate_limiter**](docs/RateLimiterApi.md#update_rate_limiter) | **PUT** /rate-limiters/{rate_limiter_id} | Update a rate limiter
370363
*RequestSettingsApi* | [**delete_request_settings**](docs/RequestSettingsApi.md#delete_request_settings) | **DELETE** /service/{service_id}/version/{version_id}/request_settings/{request_settings_name} | Delete a Request Settings object
371364
*RequestSettingsApi* | [**get_request_settings**](docs/RequestSettingsApi.md#get_request_settings) | **GET** /service/{service_id}/version/{version_id}/request_settings/{request_settings_name} | Get a Request Settings object
372365
*RequestSettingsApi* | [**list_request_settings**](docs/RequestSettingsApi.md#list_request_settings) | **GET** /service/{service_id}/version/{version_id}/request_settings | List Request Settings objects
@@ -503,7 +496,6 @@ The fastly-rust API client currently does not support the following endpoints:
503496
- [`/events`](https://developer.fastly.com/reference/api/account/events) (GET)
504497
- [`/metrics/domains/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/historical) (GET)
505498
- [`/metrics/origins/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/historical) (GET)
506-
- [`/rate-limiters/{rate_limiter_id}`](https://developer.fastly.com/reference/api/vcl-services/rate-limiter) (PUT)
507499
- [`/resources/stores/secret/client-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (POST)
508500
- [`/resources/stores/secret/signing-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET)
509501
- [`/resources/stores/secret/{store_id}/secrets/{secret_name}`](https://developer.fastly.com/reference/api/services/resources/secret) (DELETE, GET)
@@ -527,7 +519,6 @@ The fastly-rust API client currently does not support the following endpoints:
527519
- [`/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}`](https://developer.fastly.com/reference/api/logging/kafka) (PUT)
528520
- [`/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}`](https://developer.fastly.com/reference/api/logging/kinesis) (PUT)
529521
- [`/service/{service_id}/version/{version_id}/package`](https://developer.fastly.com/reference/api/services/package) (PUT)
530-
- [`/service/{service_id}/version/{version_id}/rate-limiters`](https://developer.fastly.com/reference/api/vcl-services/rate-limiter) (POST)
531522
- [`/service/{service_id}/version/{version_id}/request_settings`](https://developer.fastly.com/reference/api/vcl-services/request-settings) (POST)
532523
- [`/service/{service_id}/version/{version_id}/response_object/{response_object_name}`](https://developer.fastly.com/reference/api/vcl-services/response-object) (PUT)
533524
- [`/service/{service_id}/version/{version_id}/response_object`](https://developer.fastly.com/reference/api/vcl-services/response-object) (POST)
@@ -546,6 +537,15 @@ The fastly-rust API client currently does not support the following endpoints:
546537
- [`/service/{service_id}/wafs/{firewall_id}/ruleset`](https://developer.fastly.com/reference/api/legacy-waf/ruleset) (GET, PATCH)
547538
- [`/service/{service_id}/wafs/{firewall_id}/update_statuses/{update_status_id}`](https://developer.fastly.com/reference/api/legacy-waf/update-status) (GET)
548539
- [`/service/{service_id}/wafs/{firewall_id}/update_statuses`](https://developer.fastly.com/reference/api/legacy-waf/update-status) (GET)
540+
- [`/stats/aggregate`](https://developer.fastly.com/reference/api/metrics-stats/historical-stats) (GET)
541+
- [`/stats/field/{field}`](https://developer.fastly.com/reference/api/metrics-stats/historical-stats) (GET)
542+
- [`/stats/regions`](https://developer.fastly.com/reference/api/metrics-stats/historical-stats) (GET)
543+
- [`/stats/service/{service_id}/field/{field}`](https://developer.fastly.com/reference/api/metrics-stats/historical-stats) (GET)
544+
- [`/stats/service/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/historical-stats) (GET)
545+
- [`/stats/usage_by_month`](https://developer.fastly.com/reference/api/metrics-stats/historical-stats) (GET)
546+
- [`/stats/usage_by_service`](https://developer.fastly.com/reference/api/metrics-stats/historical-stats) (GET)
547+
- [`/stats/usage`](https://developer.fastly.com/reference/api/metrics-stats/historical-stats) (GET)
548+
- [`/stats`](https://developer.fastly.com/reference/api/metrics-stats/historical-stats) (GET)
549549
- [`/sudo`](https://developer.fastly.com/reference/api/utils/sudo) (POST)
550550
- [`/tls/activations/{tls_activation_id}`](https://developer.fastly.com/reference/api/tls/mutual-tls/activations) (GET, PATCH)
551551
- [`/tls/activations`](https://developer.fastly.com/reference/api/tls/mutual-tls/activations) (GET)

docs/AutomationTokenCreateResponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
1212
**created_at** | Option<**String**> | A UTC time-stamp of when the token was created. | [readonly]
1313
**deleted_at** | Option<**String**> | Date and time in ISO 8601 format. | [readonly]
1414
**updated_at** | Option<**String**> | Date and time in ISO 8601 format. | [readonly]
15-
**id** | Option<**String**> | | [readonly]
16-
**user_id** | Option<**String**> | | [readonly]
17-
**customer_id** | Option<**String**> | | [readonly]
15+
**id** | Option<[**crate::models::ReadOnlyId**](ReadOnlyId.md)> | |
16+
**user_id** | Option<[**crate::models::ReadOnlyUserId**](ReadOnlyUserId.md)> | |
17+
**customer_id** | Option<[**crate::models::ReadOnlyCustomerId**](ReadOnlyCustomerId.md)> | |
1818
**sudo_expires_at** | Option<**String**> | | [readonly]
1919
**access_token** | Option<**String**> | | [readonly]
2020
**last_used_at** | Option<**String**> | A UTC time-stamp of when the token was last used. | [readonly]

docs/AutomationTokenCreateResponseAllOf.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**id** | Option<**String**> | | [readonly]
8-
**user_id** | Option<**String**> | | [readonly]
9-
**customer_id** | Option<**String**> | | [readonly]
7+
**id** | Option<[**crate::models::ReadOnlyId**](ReadOnlyId.md)> | |
8+
**user_id** | Option<[**crate::models::ReadOnlyUserId**](ReadOnlyUserId.md)> | |
9+
**customer_id** | Option<[**crate::models::ReadOnlyCustomerId**](ReadOnlyCustomerId.md)> | |
1010
**sudo_expires_at** | Option<**String**> | | [readonly]
1111
**created_at** | Option<**String**> | A UTC time-stamp of when the token was created. | [readonly]
1212
**access_token** | Option<**String**> | | [readonly]

docs/AutomationTokenResponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Name | Type | Description | Notes
1212
**created_at** | Option<**String**> | A UTC time-stamp of when the token was created. |
1313
**deleted_at** | Option<**String**> | Date and time in ISO 8601 format. | [readonly]
1414
**updated_at** | Option<**String**> | Date and time in ISO 8601 format. | [readonly]
15-
**id** | Option<**String**> | | [readonly]
16-
**customer_id** | Option<**String**> | | [readonly]
15+
**id** | Option<[**crate::models::ReadOnlyId**](ReadOnlyId.md)> | |
16+
**customer_id** | Option<[**crate::models::ReadOnlyCustomerId**](ReadOnlyCustomerId.md)> | |
1717
**ip** | Option<**String**> | The IP address of the client that last used the token. |
1818
**user_agent** | Option<**String**> | The User-Agent header of the client that last used the token. |
1919
**sudo_expires_at** | Option<**String**> | | [readonly]

docs/AutomationTokenResponseAllOf.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**id** | Option<**String**> | | [readonly]
8-
**customer_id** | Option<**String**> | | [readonly]
7+
**id** | Option<[**crate::models::ReadOnlyId**](ReadOnlyId.md)> | |
8+
**customer_id** | Option<[**crate::models::ReadOnlyCustomerId**](ReadOnlyCustomerId.md)> | |
99
**role** | Option<**String**> | |
1010
**ip** | Option<**String**> | The IP address of the client that last used the token. |
1111
**user_agent** | Option<**String**> | The User-Agent header of the client that last used the token. |

docs/AutomationTokensApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Name | Type | Description | Required | Notes
176176

177177
### Return type
178178

179-
(empty response body)
179+
[**crate::models::ErrorResponse**](ErrorResponse.md)
180180

181181
### Authorization
182182

docs/HistoricalFieldResultsAttributesAllOf.md renamed to docs/ErrorResponse.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
# HistoricalFieldResultsAttributesAllOf
1+
# ErrorResponse
22

33
## Properties
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**service_id** | Option<**String**> | | [readonly]
8-
**start_time** | Option<**i32**> | |
7+
**detail** | Option<**String**> | |
8+
**errors** | Option<[**Vec&lt;serde_json::Value&gt;**](SerdeJsonValue.md)> | |
9+
**status** | Option<**i32**> | |
10+
**title** | Option<**String**> | |
911

1012
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1113

docs/Historical.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)