Skip to content

Commit

Permalink
Generated v4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 30, 2023
1 parent 32f8ff9 commit ac14ed0
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [v4.3.0](https://github.com/fastly/fastly-rust/releases/tag/release/v4.3.0) (2023-11-29)

**Enhancements:**

- feat(stats): expose new `service_id` and `start_time` fields.

## [v4.2.2](https://github.com/fastly/fastly-rust/releases/tag/release/v4.2.2) (2023-11-07)

**Enhancements:**
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastly-api"
version = "4.2.2"
version = "4.3.0"
authors = ["Fastly <[email protected]>"]
edition = "2021"
description = "Fastly API client"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Rust 2021 Edition
Add the following to `Cargo.toml` under `[dependencies]`:

```toml
fastly-api = "4.2.2"
fastly-api = "4.3.0"
```

## Usage
Expand Down
2 changes: 2 additions & 0 deletions docs/Results.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ Name | Type | Description | Notes
**bot_challenges_issued** | Option<**i32**> | The number of challenges issued. For example, the issuance of a CAPTCHA challenge. |
**bot_challenges_succeeded** | Option<**i32**> | The number of successful challenge solutions processed. For example, a correct CAPTCHA solution. |
**bot_challenges_failed** | Option<**i32**> | The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution. |
**service_id** | Option<**String**> | | [readonly]
**start_time** | Option<**i32**> | Timestamp for the start of the time period being reported |

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

Expand Down
2 changes: 1 addition & 1 deletion sig.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"G": "5c91b697", "D": "e1e39f1b"}
{"G": "4ae2b660", "D": "2452c3f1"}
2 changes: 1 addition & 1 deletion src/apis/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl Default for Configuration {

Configuration {
base_path: "https://api.fastly.com".to_owned(),
user_agent: Some("fastly-rust/4.2.2/rust".to_owned()),
user_agent: Some("fastly-rust/4.3.0/rust".to_owned()),
client: reqwest::Client::new(),
basic_auth: None,
oauth_access_token: None,
Expand Down
4 changes: 2 additions & 2 deletions src/models/relationship_mutual_authentication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
*/

/// RelationshipMutualAuthentication : The [Mutual Authentication](/reference/api/tls/mutual-tls/authentication/) for client-to-server authentication. Optional.
/// RelationshipMutualAuthentication : The Mutual Authentication for client-to-server authentication. Optional.



Expand All @@ -16,7 +16,7 @@ pub struct RelationshipMutualAuthentication {
}

impl RelationshipMutualAuthentication {
/// The [Mutual Authentication](/reference/api/tls/mutual-tls/authentication/) for client-to-server authentication. Optional.
/// The Mutual Authentication for client-to-server authentication. Optional.
pub fn new() -> RelationshipMutualAuthentication {
RelationshipMutualAuthentication {
mutual_authentication: None,
Expand Down
4 changes: 2 additions & 2 deletions src/models/relationship_tls_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
*/

/// RelationshipTlsDomain : The [TLS domain](/reference/api/tls/custom-certs/domains/) being enabled for TLS traffic. Required.
/// RelationshipTlsDomain : The TLS domain being enabled for TLS traffic. Required.



Expand All @@ -16,7 +16,7 @@ pub struct RelationshipTlsDomain {
}

impl RelationshipTlsDomain {
/// The [TLS domain](/reference/api/tls/custom-certs/domains/) being enabled for TLS traffic. Required.
/// The TLS domain being enabled for TLS traffic. Required.
pub fn new() -> RelationshipTlsDomain {
RelationshipTlsDomain {
tls_domain: None,
Expand Down
11 changes: 9 additions & 2 deletions src/models/results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
*/

/// Results : The [results](#results-data-model) of the query, grouped by service (and optionally, region), and aggregated over the appropriate time span.
/// Results : The results of stats queries, may be grouped by service depending on endpoint, and aggregated over the appropriate time span.



Expand Down Expand Up @@ -686,10 +686,15 @@ pub struct Results {
/// The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.
#[serde(rename = "bot_challenges_failed", skip_serializing_if = "Option::is_none")]
pub bot_challenges_failed: Option<i32>,
#[serde(rename = "service_id", skip_serializing_if = "Option::is_none")]
pub service_id: Option<Box<String>>,
/// Timestamp for the start of the time period being reported
#[serde(rename = "start_time", skip_serializing_if = "Option::is_none")]
pub start_time: Option<i32>,
}

impl Results {
/// The [results](#results-data-model) of the query, grouped by service (and optionally, region), and aggregated over the appropriate time span.
/// The results of stats queries, may be grouped by service depending on endpoint, and aggregated over the appropriate time span.
pub fn new() -> Results {
Results {
requests: None,
Expand Down Expand Up @@ -917,6 +922,8 @@ impl Results {
bot_challenges_issued: None,
bot_challenges_succeeded: None,
bot_challenges_failed: None,
service_id: None,
start_time: None,
}
}
}
Expand Down

0 comments on commit ac14ed0

Please sign in to comment.