Skip to content

Commit 252abc9

Browse files
author
github-actions
committed
Generated v4.1.1
1 parent 50501d3 commit 252abc9

File tree

7 files changed

+39
-4
lines changed

7 files changed

+39
-4
lines changed

CHANGELOG.md

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

3+
## [v4.1.1](https://github.com/fastly/fastly-rust/releases/tag/release/v4.1.1) (2023-09-01)
4+
5+
**Enhancements:**
6+
7+
- feat(events): support extra created_at filters.
8+
39
## [v4.1.0](https://github.com/fastly/fastly-rust/releases/tag/release/v4.1.0) (2023-09-01)
410

511
**Bug fixes:**
@@ -9,6 +15,7 @@
915
**Enhancements:**
1016

1117
- feat(backend): support share_key field.
18+
- feat(events): support extra created_at filters.
1219
- feat(logging/newrelic): add OTLP endpoints.
1320
- feat(tls/subscriptions): support self_managed_http_challenge field.
1421

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Rust 2021 Edition
1414
Add the following to `Cargo.toml` under `[dependencies]`:
1515

1616
```toml
17-
fastly-api = "4.1.0"
17+
fastly-api = "4.1.1"
1818
```
1919

2020
## Usage

docs/EventsApi.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ Name | Type | Description | Required | Notes
6767
**filter_user_id** | Option\<**String**> | Limit the results returned to a specific user. | |
6868
**filter_token_id** | Option\<**String**> | Limit the returned events to a specific token. | |
6969
**filter_created_at** | Option\<**String**> | 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). | |
70+
**filter_created_at_lte** | Option\<**String**> | Return events on and before a date and time in ISO 8601 format. | |
71+
**filter_created_at_lt** | Option\<**String**> | Return events before a date and time in ISO 8601 format. | |
72+
**filter_created_at_gte** | Option\<**String**> | Return events on and after a date and time in ISO 8601 format. | |
73+
**filter_created_at_gt** | Option\<**String**> | Return events after a date and time in ISO 8601 format. | |
7074
**page_number** | Option\<**i32**> | Current page. | |
7175
**page_size** | Option\<**i32**> | Number of records per page. | |[default to 20]
7276
**sort** | Option\<**String**> | The order in which to list the results by creation date. | |[default to created_at]

sig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"G": "a5d4c17e", "D": "6ddfaf95"}
1+
{"G": "95706192", "D": "691cfbf5"}

src/apis/configuration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl Default for Configuration {
4949

5050
Configuration {
5151
base_path: "https://api.fastly.com".to_owned(),
52-
user_agent: Some("fastly-rust/4.1.0/rust".to_owned()),
52+
user_agent: Some("fastly-rust/4.1.1/rust".to_owned()),
5353
client: reqwest::Client::new(),
5454
basic_auth: None,
5555
oauth_access_token: None,

src/apis/events_api.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ pub struct ListEventsParams {
3333
pub filter_token_id: Option<String>,
3434
/// 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).
3535
pub filter_created_at: Option<String>,
36+
/// Return events on and before a date and time in ISO 8601 format.
37+
pub filter_created_at_lte: Option<String>,
38+
/// Return events before a date and time in ISO 8601 format.
39+
pub filter_created_at_lt: Option<String>,
40+
/// Return events on and after a date and time in ISO 8601 format.
41+
pub filter_created_at_gte: Option<String>,
42+
/// Return events after a date and time in ISO 8601 format.
43+
pub filter_created_at_gt: Option<String>,
3644
/// Current page.
3745
pub page_number: Option<i32>,
3846
/// Number of records per page.
@@ -120,6 +128,10 @@ pub async fn list_events(configuration: &mut configuration::Configuration, param
120128
let filter_user_id = params.filter_user_id;
121129
let filter_token_id = params.filter_token_id;
122130
let filter_created_at = params.filter_created_at;
131+
let filter_created_at_lte = params.filter_created_at_lte;
132+
let filter_created_at_lt = params.filter_created_at_lt;
133+
let filter_created_at_gte = params.filter_created_at_gte;
134+
let filter_created_at_gt = params.filter_created_at_gt;
123135
let page_number = params.page_number;
124136
let page_size = params.page_size;
125137
let sort = params.sort;
@@ -148,6 +160,18 @@ pub async fn list_events(configuration: &mut configuration::Configuration, param
148160
if let Some(ref local_var_str) = filter_created_at {
149161
local_var_req_builder = local_var_req_builder.query(&[("filter[created_at]", &local_var_str.to_string())]);
150162
}
163+
if let Some(ref local_var_str) = filter_created_at_lte {
164+
local_var_req_builder = local_var_req_builder.query(&[("filter[created_at][lte]", &local_var_str.to_string())]);
165+
}
166+
if let Some(ref local_var_str) = filter_created_at_lt {
167+
local_var_req_builder = local_var_req_builder.query(&[("filter[created_at][lt]", &local_var_str.to_string())]);
168+
}
169+
if let Some(ref local_var_str) = filter_created_at_gte {
170+
local_var_req_builder = local_var_req_builder.query(&[("filter[created_at][gte]", &local_var_str.to_string())]);
171+
}
172+
if let Some(ref local_var_str) = filter_created_at_gt {
173+
local_var_req_builder = local_var_req_builder.query(&[("filter[created_at][gt]", &local_var_str.to_string())]);
174+
}
151175
if let Some(ref local_var_str) = page_number {
152176
local_var_req_builder = local_var_req_builder.query(&[("page[number]", &local_var_str.to_string())]);
153177
}

0 commit comments

Comments
 (0)