Skip to content

Commit 6c61f14

Browse files
author
github-actions
committed
Generated v4.0.0
1 parent ca28604 commit 6c61f14

File tree

261 files changed

+4266
-2031
lines changed

Some content is hidden

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

261 files changed

+4266
-2031
lines changed

CHANGELOG.md

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

3+
## [v4.0.0](https://github.com/fastly/fastly-rust/releases/tag/release/v4.0.0) (2023-07-31)
4+
5+
**Breaking:**
6+
7+
The following restructures have helped resolve some issues with our OpenAPI schemas but as a side-effect this has resulted in a break to our API client interface as different types are now being generated.
8+
9+
- refactor: general restructure OpenAPI schemas.
10+
- refactor(domain): remove explicit schema type for 'any'.
11+
12+
**Bug fixes:**
13+
14+
- fix: change response `version` type to string.
15+
- fix(cache_settings): change response `stale_ttl` and `ttl` types to strings.
16+
- fix(header): change response `ignore_if_set` and `priority` types to strings.
17+
- fix(logging): change response `period` and `gzip_level` types to strings.
18+
- fix(pool): change response `use_tls`, `max_conn_default`, `first_byte_timeout`, `quorum` and `tls_check_cert` types to strings.
19+
- fix(request_settings): change response `bypass_busy_wait`, `force_miss`, `force_ssl`, `geo_headers`, `max_stale_age` and `timer_support` types to strings.
20+
- fix(response_object): change response `status` type to string.
21+
322
## [v3.0.2](https://github.com/fastly/fastly-rust/releases/tag/release/v3.0.2) (2023-07-13)
423

524
**Bug fixes:**

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 = "3.0.2"
3+
version = "4.0.0"
44
authors = ["Fastly <[email protected]>"]
55
edition = "2021"
66
description = "Fastly API client"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ A Rust client library for interacting with most facets of the [Fastly API](https
44

55
> **NOTE:** This API client is auto-generated from Fastly's OpenAPI specification and may not function correctly when used on the Compute@Edge platform. Support for Compute@Edge is on the roadmap but has not yet been prioritised.
66
7+
78
## Requirements
89

910
Rust 2021 Edition
@@ -13,7 +14,7 @@ Rust 2021 Edition
1314
Add the following to `Cargo.toml` under `[dependencies]`:
1415

1516
```toml
16-
fastly-api = "3.0.2"
17+
fastly-api = "4.0.0"
1718
```
1819

1920
## Usage

docs/CacheSetting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Name | Type | Description | Notes
77
**action** | Option<**String**> | If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. |
88
**cache_condition** | Option<**String**> | Name of the cache condition controlling when this configuration applies. |
99
**name** | Option<**String**> | Name for the cache settings object. |
10-
**stale_ttl** | Option<**i32**> | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). |
11-
**ttl** | Option<**i32**> | Maximum time to consider the object fresh in the cache (the cache 'time to live'). |
10+
**stale_ttl** | Option<**String**> | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). |
11+
**ttl** | Option<**String**> | Maximum time to consider the object fresh in the cache (the cache 'time to live'). |
1212

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

docs/CacheSettingResponse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Name | Type | Description | Notes
77
**action** | Option<**String**> | If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. |
88
**cache_condition** | Option<**String**> | Name of the cache condition controlling when this configuration applies. |
99
**name** | Option<**String**> | Name for the cache settings object. |
10-
**stale_ttl** | Option<**i32**> | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). |
11-
**ttl** | Option<**i32**> | Maximum time to consider the object fresh in the cache (the cache 'time to live'). |
10+
**stale_ttl** | Option<**String**> | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). |
11+
**ttl** | Option<**String**> | Maximum time to consider the object fresh in the cache (the cache 'time to live'). |
1212
**service_id** | Option<**String**> | | [readonly]
13-
**version** | Option<**i32**> | | [readonly]
13+
**version** | Option<**String**> | | [readonly]
1414
**created_at** | Option<**String**> | Date and time in ISO 8601 format. | [readonly]
1515
**deleted_at** | Option<**String**> | Date and time in ISO 8601 format. | [readonly]
1616
**updated_at** | Option<**String**> | Date and time in ISO 8601 format. | [readonly]

docs/CacheSettingsApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Name | Type | Description | Required | Notes
3434
**action** | Option\<**String**> | If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. | |
3535
**cache_condition** | Option\<**String**> | Name of the cache condition controlling when this configuration applies. | |
3636
**name** | Option\<**String**> | Name for the cache settings object. | |
37-
**stale_ttl** | Option\<**i32**> | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). | |
38-
**ttl** | Option\<**i32**> | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | |
37+
**stale_ttl** | Option\<**String**> | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). | |
38+
**ttl** | Option\<**String**> | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | |
3939

4040
### Return type
4141

@@ -186,8 +186,8 @@ Name | Type | Description | Required | Notes
186186
**action** | Option\<**String**> | If set, will cause vcl_fetch to terminate after processing this rule with the return state specified. If not set, other configuration logic in vcl_fetch with a lower priority will run after this rule. | |
187187
**cache_condition** | Option\<**String**> | Name of the cache condition controlling when this configuration applies. | |
188188
**name** | Option\<**String**> | Name for the cache settings object. | |
189-
**stale_ttl** | Option\<**i32**> | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). | |
190-
**ttl** | Option\<**i32**> | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | |
189+
**stale_ttl** | Option\<**String**> | Maximum time in seconds to continue to use a stale version of the object if future requests to your backend server fail (also known as 'stale if error'). | |
190+
**ttl** | Option\<**String**> | Maximum time to consider the object fresh in the cache (the cache 'time to live'). | |
191191

192192
### Return type
193193

docs/DomainApi.md

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

3737
### Return type
3838

39-
[**Vec&lt;crate::models::DomainCheckItem&gt;**](DomainCheckItem.md)
39+
[**Vec&lt;serde_json::Value&gt;**](SerdeJsonValue.md)
4040

4141
### Authorization
4242

docs/GzipResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**extensions** | Option<**String**> | Space-separated list of file extensions to compress. If you omit this field a default list will be used. |
1010
**name** | Option<**String**> | Name of the gzip configuration. |
1111
**service_id** | Option<**String**> | | [readonly]
12-
**version** | Option<**i32**> | | [readonly]
12+
**version** | Option<**String**> | | [readonly]
1313
**created_at** | Option<**String**> | Date and time in ISO 8601 format. | [readonly]
1414
**deleted_at** | Option<**String**> | Date and time in ISO 8601 format. | [readonly]
1515
**updated_at** | Option<**String**> | Date and time in ISO 8601 format. | [readonly]

docs/Header.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ Name | Type | Description | Notes
77
**action** | Option<**String**> | Accepts a string value. |
88
**cache_condition** | Option<**String**> | Name of the cache condition controlling when this configuration applies. |
99
**dst** | Option<**String**> | Header to set. |
10-
**ignore_if_set** | Option<**i32**> | Don't add the header if it is added already. Only applies to 'set' action. |
1110
**name** | Option<**String**> | A handle to refer to this Header object. |
12-
**priority** | Option<**i32**> | Priority determines execution order. Lower numbers execute first. | [default to 100]
1311
**regex** | Option<**String**> | Regular expression to use. Only applies to `regex` and `regex_repeat` actions. |
1412
**request_condition** | Option<**String**> | Condition which, if met, will select this configuration during a request. Optional. |
1513
**response_condition** | Option<**String**> | Optional name of a response condition to apply. |

docs/HeaderApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ Name | Type | Description | Required | Notes
3434
**action** | Option\<**String**> | Accepts a string value. | |
3535
**cache_condition** | Option\<**String**> | Name of the cache condition controlling when this configuration applies. | |
3636
**dst** | Option\<**String**> | Header to set. | |
37-
**ignore_if_set** | Option\<**i32**> | Don't add the header if it is added already. Only applies to 'set' action. | |
3837
**name** | Option\<**String**> | A handle to refer to this Header object. | |
39-
**priority** | Option\<**i32**> | Priority determines execution order. Lower numbers execute first. | |[default to 100]
4038
**regex** | Option\<**String**> | Regular expression to use. Only applies to `regex` and `regex_repeat` actions. | |
4139
**request_condition** | Option\<**String**> | Condition which, if met, will select this configuration during a request. Optional. | |
4240
**response_condition** | Option\<**String**> | Optional name of a response condition to apply. | |
4341
**src** | Option\<**String**> | Variable to be used as a source for the header content. Does not apply to `delete` action. | |
4442
**substitution** | Option\<**String**> | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. | |
4543
**_type** | Option\<**String**> | Accepts a string value. | |
44+
**ignore_if_set** | Option\<**i32**> | Don't add the header if it is added already. Only applies to 'set' action. | |
45+
**priority** | Option\<**i32**> | Priority determines execution order. Lower numbers execute first. | |[default to 100]
4646

4747
### Return type
4848

@@ -193,15 +193,15 @@ Name | Type | Description | Required | Notes
193193
**action** | Option\<**String**> | Accepts a string value. | |
194194
**cache_condition** | Option\<**String**> | Name of the cache condition controlling when this configuration applies. | |
195195
**dst** | Option\<**String**> | Header to set. | |
196-
**ignore_if_set** | Option\<**i32**> | Don't add the header if it is added already. Only applies to 'set' action. | |
197196
**name** | Option\<**String**> | A handle to refer to this Header object. | |
198-
**priority** | Option\<**i32**> | Priority determines execution order. Lower numbers execute first. | |[default to 100]
199197
**regex** | Option\<**String**> | Regular expression to use. Only applies to `regex` and `regex_repeat` actions. | |
200198
**request_condition** | Option\<**String**> | Condition which, if met, will select this configuration during a request. Optional. | |
201199
**response_condition** | Option\<**String**> | Optional name of a response condition to apply. | |
202200
**src** | Option\<**String**> | Variable to be used as a source for the header content. Does not apply to `delete` action. | |
203201
**substitution** | Option\<**String**> | Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions. | |
204202
**_type** | Option\<**String**> | Accepts a string value. | |
203+
**ignore_if_set** | Option\<**i32**> | Don't add the header if it is added already. Only applies to 'set' action. | |
204+
**priority** | Option\<**i32**> | Priority determines execution order. Lower numbers execute first. | |[default to 100]
205205

206206
### Return type
207207

0 commit comments

Comments
 (0)