Skip to content

Commit 84af55a

Browse files
author
github-actions
committed
Generated v4.2.2
1 parent 5aee24f commit 84af55a

File tree

6 files changed

+20
-6
lines changed

6 files changed

+20
-6
lines changed

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.2.1"
3+
version = "4.2.2"
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.2.1"
17+
fastly-api = "4.2.2"
1818
```
1919

2020
## Usage

docs/ConfigStoreApi.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ list_config_stores(cfg, params)
203203

204204
### Parameters
205205

206-
This endpoint does not need any parameter.
206+
207+
Name | Type | Description | Required | Notes
208+
------------- | ------------- | ------------- | ------------- | -------------
209+
**name** | Option\<**String**> | Returns a one-element array containing the details for the named config store. | |
207210

208211
### Return type
209212

sig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"G": "33163c3c", "D": "2c30aac5"}
1+
{"G": "5c91b697", "D": "e1e39f1b"}

src/apis/config_store_api.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ pub struct ListConfigStoreServicesParams {
4646
pub config_store_id: String
4747
}
4848

49+
/// struct for passing parameters to the method [`list_config_stores`]
50+
#[derive(Clone, Debug, Default)]
51+
pub struct ListConfigStoresParams {
52+
/// Returns a one-element array containing the details for the named config store.
53+
pub name: Option<String>
54+
}
55+
4956
/// struct for passing parameters to the method [`update_config_store`]
5057
#[derive(Clone, Debug, Default)]
5158
pub struct UpdateConfigStoreParams {
@@ -372,17 +379,21 @@ pub async fn list_config_store_services(configuration: &mut configuration::Confi
372379
}
373380

374381
/// List config stores.
375-
pub async fn list_config_stores(configuration: &mut configuration::Configuration) -> Result<Vec<crate::models::ConfigStoreResponse>, Error<ListConfigStoresError>> {
382+
pub async fn list_config_stores(configuration: &mut configuration::Configuration, params: ListConfigStoresParams) -> Result<Vec<crate::models::ConfigStoreResponse>, Error<ListConfigStoresError>> {
376383
let local_var_configuration = configuration;
377384

378385
// unbox the parameters
386+
let name = params.name;
379387

380388

381389
let local_var_client = &local_var_configuration.client;
382390

383391
let local_var_uri_str = format!("{}/resources/stores/config", local_var_configuration.base_path);
384392
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
385393

394+
if let Some(ref local_var_str) = name {
395+
local_var_req_builder = local_var_req_builder.query(&[("name", &local_var_str.to_string())]);
396+
}
386397
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
387398
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
388399
}

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

0 commit comments

Comments
 (0)