Skip to content

Commit 2eb0661

Browse files
author
github-actions
committedJun 28, 2024·
Generated v4.7.0
1 parent cfa52f8 commit 2eb0661

13 files changed

+61
-6
lines changed
 

‎CHANGELOG.md

+24
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Changelog
22

3+
## [v4.7.0](https://github.com/fastly/fastly-rust/releases/tag/release/v4.7.0) (2024-06-27)
4+
5+
**Bug fixes:**
6+
7+
- bugfix(alerts-definitions): For Origin derived metrics, correct `all_bandwidth` type to `integer`
8+
9+
**Enhancements:**
10+
11+
- feat(logging-s3): Add `file_max_bytes` configuration field
12+
- feat(alerts-definitions): Add `integration_id` parameter to the List Alert Definitions endpoint
13+
- feat(alerts-definitions): For Origin derived metrics, add `all_status_4xx_excl_404_rate` and `all_status_404_rate` properties
14+
- feat(alerts-definitions): For Domain derived metrics, add `status_4xx_excl_404_rate` and `status_404_rate` properties
15+
- feat(alerts-definitions): For Stats derived metrics, add `status_4xx_excl_404_rate`, `status_404_rate`, `all_status_5xx_rate`,
16+
`all_status_4xx_rate`, `all_status_gte_400_rate`, and `all_status_lt_500_rate` properties
17+
- feat(billing-invoices): For invoice line items, added `ProductLine` property
18+
19+
**Documentation:**
20+
21+
- doc(billing-invoices): "Billing Invoices API" relabeled to "Invoices API"
22+
- doc(billing-invoices): Updated documentation of `billing_start_date` and `billing_end_date` query parameters of
23+
List of invoices endpoint
24+
- doc(alerts-definitions): Updated documentation of several fields
25+
- doc(notification-service): Updated documentation examples for several fields
26+
327
## [v4.6.0](https://github.com/fastly/fastly-rust/releases/tag/release/v4.6.0) (2024-05-24)
428

529
**Bug fixes:**

‎Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fastly-api"
3-
version = "4.6.0"
3+
version = "4.7.0"
44
authors = ["Fastly <oss@fastly.com>"]
55
edition = "2021"
66
description = "Fastly API client"

‎README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Rust 2021 Edition
1515
Add the following to `Cargo.toml` under `[dependencies]`:
1616

1717
```toml
18-
fastly-api = "4.6.0"
18+
fastly-api = "4.7.0"
1919
```
2020

2121
## Usage
@@ -634,6 +634,8 @@ The fastly-rust API client currently does not support the following endpoints:
634634
- [`/stats`](https://www.fastly.com/documentation/reference/api/metrics-stats/historical-stats) (GET)
635635
- [`/tls/activations/{tls_activation_id}`](https://www.fastly.com/documentation/reference/api/tls/mutual-tls/activations) (GET, PATCH)
636636
- [`/tls/activations`](https://www.fastly.com/documentation/reference/api/tls/mutual-tls/activations) (GET)
637+
- [`/tls/preview/domains/{tls_preview_domain_id}`](https://www.fastly.com/documentation/reference/api/) (GET, PATCH)
638+
- [`/tls/preview/domains`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
637639
- [`/v1/channel/{service_id}/ts/h/limit/{max_entries}`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
638640
- [`/v1/channel/{service_id}/ts/h`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
639641
- [`/v1/channel/{service_id}/ts/{start_timestamp}`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)

‎docs/Invoicelineitems.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**units** | Option<**f32**> | Total number of units of usage. |
1212
**product_name** | Option<**String**> | The name of the product. |
1313
**product_group** | Option<**String**> | The broader classification of the product (e.g., `Compute` or `Full-Site Delivery`). |
14+
**product_line** | Option<**String**> | The broader classification of the product (e.g., `Network Services` or `Security`). |
1415
**region** | Option<**String**> | The geographical area applicable for regionally based products. |
1516
**usage_type** | Option<**String**> | The unit of measure (e.g., `requests` or `bandwidth`). |
1617

‎docs/LoggingS3Additional.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**secret_key** | Option<**String**> | The secret key for your S3 account. Not required if `iam_role` is provided. |
1616
**server_side_encryption_kms_key_id** | Option<**String**> | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. | [default to null]
1717
**server_side_encryption** | Option<**String**> | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. | [default to null]
18+
**file_max_bytes** | Option<**i32**> | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) |
1819

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

‎docs/LoggingS3Api.md

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Name | Type | Description | Required | Notes
5353
**secret_key** | Option\<**String**> | The secret key for your S3 account. Not required if `iam_role` is provided. | |
5454
**server_side_encryption_kms_key_id** | Option\<**String**> | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. | |[default to null]
5555
**server_side_encryption** | Option\<**String**> | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. | |[default to null]
56+
**file_max_bytes** | Option\<**i32**> | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) | |
5657

5758
### Return type
5859

@@ -221,6 +222,7 @@ Name | Type | Description | Required | Notes
221222
**secret_key** | Option\<**String**> | The secret key for your S3 account. Not required if `iam_role` is provided. | |
222223
**server_side_encryption_kms_key_id** | Option\<**String**> | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. | |[default to null]
223224
**server_side_encryption** | Option\<**String**> | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. | |[default to null]
225+
**file_max_bytes** | Option\<**i32**> | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) | |
224226

225227
### Return type
226228

‎docs/LoggingS3Response.md

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Name | Type | Description | Notes
3030
**secret_key** | Option<**String**> | The secret key for your S3 account. Not required if `iam_role` is provided. |
3131
**server_side_encryption_kms_key_id** | Option<**String**> | Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`. | [default to null]
3232
**server_side_encryption** | Option<**String**> | Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption. | [default to null]
33+
**file_max_bytes** | Option<**i32**> | The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.) |
3334

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

‎sig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"G": "12e42c04", "D": "dd010b17"}
1+
{"G": "5a2ccc65", "D": "ec7f026b"}

‎src/apis/configuration.rs

+1-1
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.6.0/rust".to_owned()),
52+
user_agent: Some("fastly-rust/4.7.0/rust".to_owned()),
5353
client: reqwest::Client::new(),
5454
basic_auth: None,
5555
oauth_access_token: None,

‎src/apis/logging_s3_api.rs

+14-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ pub struct CreateLogAwsS3Params {
5959
/// Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`.
6060
pub server_side_encryption_kms_key_id: Option<String>,
6161
/// Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption.
62-
pub server_side_encryption: Option<String>
62+
pub server_side_encryption: Option<String>,
63+
/// The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
64+
pub file_max_bytes: Option<i32>
6365
}
6466

6567
/// struct for passing parameters to the method [`delete_log_aws_s3`]
@@ -143,7 +145,9 @@ pub struct UpdateLogAwsS3Params {
143145
/// Optional server-side KMS Key Id. Must be set if `server_side_encryption` is set to `aws:kms` or `AES256`.
144146
pub server_side_encryption_kms_key_id: Option<String>,
145147
/// Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption.
146-
pub server_side_encryption: Option<String>
148+
pub server_side_encryption: Option<String>,
149+
/// The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
150+
pub file_max_bytes: Option<i32>
147151
}
148152

149153

@@ -211,6 +215,7 @@ pub async fn create_log_aws_s3(configuration: &mut configuration::Configuration,
211215
let secret_key = params.secret_key;
212216
let server_side_encryption_kms_key_id = params.server_side_encryption_kms_key_id;
213217
let server_side_encryption = params.server_side_encryption;
218+
let file_max_bytes = params.file_max_bytes;
214219

215220

216221
let local_var_client = &local_var_configuration.client;
@@ -293,6 +298,9 @@ pub async fn create_log_aws_s3(configuration: &mut configuration::Configuration,
293298
if let Some(local_var_param_value) = server_side_encryption {
294299
local_var_form_params.insert("server_side_encryption", local_var_param_value.to_string());
295300
}
301+
if let Some(local_var_param_value) = file_max_bytes {
302+
local_var_form_params.insert("file_max_bytes", local_var_param_value.to_string());
303+
}
296304
local_var_req_builder = local_var_req_builder.form(&local_var_form_params);
297305

298306
let local_var_req = local_var_req_builder.build()?;
@@ -512,6 +520,7 @@ pub async fn update_log_aws_s3(configuration: &mut configuration::Configuration,
512520
let secret_key = params.secret_key;
513521
let server_side_encryption_kms_key_id = params.server_side_encryption_kms_key_id;
514522
let server_side_encryption = params.server_side_encryption;
523+
let file_max_bytes = params.file_max_bytes;
515524

516525

517526
let local_var_client = &local_var_configuration.client;
@@ -594,6 +603,9 @@ pub async fn update_log_aws_s3(configuration: &mut configuration::Configuration,
594603
if let Some(local_var_param_value) = server_side_encryption {
595604
local_var_form_params.insert("server_side_encryption", local_var_param_value.to_string());
596605
}
606+
if let Some(local_var_param_value) = file_max_bytes {
607+
local_var_form_params.insert("file_max_bytes", local_var_param_value.to_string());
608+
}
597609
local_var_req_builder = local_var_req_builder.form(&local_var_form_params);
598610

599611
let local_var_req = local_var_req_builder.build()?;

‎src/models/invoicelineitems.rs

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ pub struct Invoicelineitems {
3131
/// The broader classification of the product (e.g., `Compute` or `Full-Site Delivery`).
3232
#[serde(rename = "ProductGroup", skip_serializing_if = "Option::is_none")]
3333
pub product_group: Option<String>,
34+
/// The broader classification of the product (e.g., `Network Services` or `Security`).
35+
#[serde(rename = "ProductLine", skip_serializing_if = "Option::is_none")]
36+
pub product_line: Option<String>,
3437
/// The geographical area applicable for regionally based products.
3538
#[serde(rename = "Region", skip_serializing_if = "Option::is_none")]
3639
pub region: Option<String>,
@@ -49,6 +52,7 @@ impl Invoicelineitems {
4952
units: None,
5053
product_name: None,
5154
product_group: None,
55+
product_line: None,
5256
region: None,
5357
usage_type: None,
5458
}

‎src/models/logging_s3_additional.rs

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ pub struct LoggingS3Additional {
4343
/// Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption.
4444
#[serde(rename = "server_side_encryption", skip_serializing_if = "Option::is_none")]
4545
pub server_side_encryption: Option<String>,
46+
/// The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
47+
#[serde(rename = "file_max_bytes", skip_serializing_if = "Option::is_none")]
48+
pub file_max_bytes: Option<i32>,
4649
}
4750

4851
impl LoggingS3Additional {
@@ -59,6 +62,7 @@ impl LoggingS3Additional {
5962
secret_key: None,
6063
server_side_encryption_kms_key_id: None,
6164
server_side_encryption: None,
65+
file_max_bytes: None,
6266
}
6367
}
6468
}

‎src/models/logging_s3_response.rs

+4
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ pub struct LoggingS3Response {
8686
/// Set this to `AES256` or `aws:kms` to enable S3 Server Side Encryption.
8787
#[serde(rename = "server_side_encryption", skip_serializing_if = "Option::is_none")]
8888
pub server_side_encryption: Option<String>,
89+
/// The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
90+
#[serde(rename = "file_max_bytes", skip_serializing_if = "Option::is_none")]
91+
pub file_max_bytes: Option<i32>,
8992
}
9093

9194
impl LoggingS3Response {
@@ -117,6 +120,7 @@ impl LoggingS3Response {
117120
secret_key: None,
118121
server_side_encryption_kms_key_id: None,
119122
server_side_encryption: None,
123+
file_max_bytes: None,
120124
}
121125
}
122126
}

0 commit comments

Comments
 (0)
Please sign in to comment.