Skip to content

Commit

Permalink
Generated v4.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 7, 2023
1 parent 5aee24f commit 84af55a
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 6 deletions.
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.1"
version = "4.2.2"
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.1"
fastly-api = "4.2.2"
```

## Usage
Expand Down
5 changes: 4 additions & 1 deletion docs/ConfigStoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ list_config_stores(cfg, params)

### Parameters

This endpoint does not need any parameter.

Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**name** | Option\<**String**> | Returns a one-element array containing the details for the named config store. | |

### Return type

Expand Down
2 changes: 1 addition & 1 deletion sig.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"G": "33163c3c", "D": "2c30aac5"}
{"G": "5c91b697", "D": "e1e39f1b"}
13 changes: 12 additions & 1 deletion src/apis/config_store_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ pub struct ListConfigStoreServicesParams {
pub config_store_id: String
}

/// struct for passing parameters to the method [`list_config_stores`]
#[derive(Clone, Debug, Default)]
pub struct ListConfigStoresParams {
/// Returns a one-element array containing the details for the named config store.
pub name: Option<String>
}

/// struct for passing parameters to the method [`update_config_store`]
#[derive(Clone, Debug, Default)]
pub struct UpdateConfigStoreParams {
Expand Down Expand Up @@ -372,17 +379,21 @@ pub async fn list_config_store_services(configuration: &mut configuration::Confi
}

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

// unbox the parameters
let name = params.name;


let local_var_client = &local_var_configuration.client;

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

if let Some(ref local_var_str) = name {
local_var_req_builder = local_var_req_builder.query(&[("name", &local_var_str.to_string())]);
}
if let Some(ref local_var_user_agent) = local_var_configuration.user_agent {
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
}
Expand Down
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.1/rust".to_owned()),
user_agent: Some("fastly-rust/4.2.2/rust".to_owned()),
client: reqwest::Client::new(),
basic_auth: None,
oauth_access_token: None,
Expand Down

0 comments on commit 84af55a

Please sign in to comment.