Skip to content

Commit aae2c01

Browse files
author
github-actions
committed
Generated v2.1.0
1 parent 69010c3 commit aae2c01

31 files changed

+2042
-14
lines changed

CHANGELOG.md

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

3+
## [v2.1.0](https://github.com/fastly/fastly-rust/releases/tag/release/v2.1.0) (2023-05-17)
4+
5+
**Enhancements:**
6+
7+
- feat(config_store): add Config Store endpoints.
8+
39
## [v2.0.0](https://github.com/fastly/fastly-rust/releases/tag/release/v2.0.0) (2023-05-16)
410

511
**Breaking changes:**

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

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Rust 2021 Edition
1313
Add the following to `Cargo.toml` under `[dependencies]`:
1414

1515
```toml
16-
fastly-api = "2.0.0"
16+
fastly-api = "2.1.0"
1717
```
1818

1919
## Usage
@@ -115,6 +115,20 @@ Class | Method | HTTP request | Description
115115
*ConditionApi* | [**get_condition**](docs/ConditionApi.md#get_condition) | **GET** /service/{service_id}/version/{version_id}/condition/{condition_name} | Describe a condition
116116
*ConditionApi* | [**list_conditions**](docs/ConditionApi.md#list_conditions) | **GET** /service/{service_id}/version/{version_id}/condition | List conditions
117117
*ConditionApi* | [**update_condition**](docs/ConditionApi.md#update_condition) | **PUT** /service/{service_id}/version/{version_id}/condition/{condition_name} | Update a condition
118+
*ConfigStoreApi* | [**create_config_store**](docs/ConfigStoreApi.md#create_config_store) | **POST** /resources/stores/config | Create a config store
119+
*ConfigStoreApi* | [**delete_config_store**](docs/ConfigStoreApi.md#delete_config_store) | **DELETE** /resources/stores/config/{config_store_id} | Delete a config store
120+
*ConfigStoreApi* | [**get_config_store**](docs/ConfigStoreApi.md#get_config_store) | **GET** /resources/stores/config/{config_store_id} | Describe a config store
121+
*ConfigStoreApi* | [**get_config_store_info**](docs/ConfigStoreApi.md#get_config_store_info) | **GET** /resources/stores/config/{config_store_id}/info | Get config store metadata
122+
*ConfigStoreApi* | [**list_config_store_services**](docs/ConfigStoreApi.md#list_config_store_services) | **GET** /resources/stores/config/{config_store_id}/services | List linked services
123+
*ConfigStoreApi* | [**list_config_stores**](docs/ConfigStoreApi.md#list_config_stores) | **GET** /resources/stores/config | List config stores
124+
*ConfigStoreApi* | [**update_config_store**](docs/ConfigStoreApi.md#update_config_store) | **PUT** /resources/stores/config/{config_store_id} | Update a config store
125+
*ConfigStoreItemApi* | [**bulk_update_config_store_item**](docs/ConfigStoreItemApi.md#bulk_update_config_store_item) | **PATCH** /resources/stores/config/{config_store_id}/items | Update multiple entries in a config store
126+
*ConfigStoreItemApi* | [**create_config_store_item**](docs/ConfigStoreItemApi.md#create_config_store_item) | **POST** /resources/stores/config/{config_store_id}/item | Create an entry in a config store
127+
*ConfigStoreItemApi* | [**delete_config_store_item**](docs/ConfigStoreItemApi.md#delete_config_store_item) | **DELETE** /resources/stores/config/{config_store_id}/item/{config_store_item_key} | Delete an item from a config store
128+
*ConfigStoreItemApi* | [**get_config_store_item**](docs/ConfigStoreItemApi.md#get_config_store_item) | **GET** /resources/stores/config/{config_store_id}/item/{config_store_item_key} | Get an item from a config store
129+
*ConfigStoreItemApi* | [**list_config_store_items**](docs/ConfigStoreItemApi.md#list_config_store_items) | **GET** /resources/stores/config/{config_store_id}/items | List items in a config store
130+
*ConfigStoreItemApi* | [**update_config_store_item**](docs/ConfigStoreItemApi.md#update_config_store_item) | **PATCH** /resources/stores/config/{config_store_id}/item/{config_store_item_key} | Update an entry in a config store
131+
*ConfigStoreItemApi* | [**upsert_config_store_item**](docs/ConfigStoreItemApi.md#upsert_config_store_item) | **PUT** /resources/stores/config/{config_store_id}/item/{config_store_item_key} | Insert or update an entry in a config store
118132
*ContactApi* | [**delete_contact**](docs/ContactApi.md#delete_contact) | **DELETE** /customer/{customer_id}/contact/{contact_id} | Delete a contact
119133
*ContactApi* | [**list_contacts**](docs/ContactApi.md#list_contacts) | **GET** /customer/{customer_id}/contacts | List contacts
120134
*CustomerApi* | [**delete_customer**](docs/CustomerApi.md#delete_customer) | **DELETE** /customer/{customer_id} | Delete a customer
@@ -481,13 +495,6 @@ The fastly-rust API client currently does not support the following endpoints:
481495
- [`/metrics/domains/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/historical) (GET)
482496
- [`/metrics/origins/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/historical) (GET)
483497
- [`/rate-limiters/{rate_limiter_id}`](https://developer.fastly.com/reference/api/vcl-services/rate-limiter) (PUT)
484-
- [`/resources/stores/config/{config_store_id}/info`](https://developer.fastly.com/reference/api/services/resources/config-store) (GET)
485-
- [`/resources/stores/config/{config_store_id}/item/{config_store_item_key}`](https://developer.fastly.com/reference/api/services/resources/config-store-item) (DELETE, GET, PATCH, PUT)
486-
- [`/resources/stores/config/{config_store_id}/item`](https://developer.fastly.com/reference/api/services/resources/config-store-item) (POST)
487-
- [`/resources/stores/config/{config_store_id}/items`](https://developer.fastly.com/reference/api/services/resources/config-store-item) (GET, PATCH)
488-
- [`/resources/stores/config/{config_store_id}/services`](https://developer.fastly.com/reference/api/services/resources/config-store) (GET)
489-
- [`/resources/stores/config/{config_store_id}`](https://developer.fastly.com/reference/api/services/resources/config-store) (DELETE, GET, PUT)
490-
- [`/resources/stores/config`](https://developer.fastly.com/reference/api/services/resources/config-store) (GET, POST)
491498
- [`/resources/stores/secret/client-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (POST)
492499
- [`/resources/stores/secret/signing-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET)
493500
- [`/resources/stores/secret/{store_id}/secrets/{secret_name}`](https://developer.fastly.com/reference/api/services/resources/secret) (DELETE, GET)

docs/BulkUpdateConfigStoreItem.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# BulkUpdateConfigStoreItem
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**item_key** | Option<**String**> | Item key, maximum 256 characters. |
8+
**item_value** | Option<**String**> | Item value, maximum 8000 characters. |
9+
**op** | Option<**String**> | |
10+
11+
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
13+

docs/BulkUpdateDictionaryItemAllOf.md renamed to docs/BulkUpdateConfigStoreItemAllOf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# BulkUpdateDictionaryItemAllOf
1+
# BulkUpdateConfigStoreItemAllOf
22

33
## Properties
44

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# BulkUpdateConfigStoreListRequest
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**items** | Option<[**Vec&lt;crate::models::BulkUpdateConfigStoreItem&gt;**](BulkUpdateConfigStoreItem.md)> | |
8+
9+
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

docs/ConfigStore.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ConfigStore
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | Option<**String**> | The name of the config store. |
8+
9+
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

docs/ConfigStoreApi.md

Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,258 @@
1+
# ConfigStoreApi
2+
3+
All URIs are relative to *https://api.fastly.com*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**create_config_store**](ConfigStoreApi.md#create_config_store) | **POST** /resources/stores/config | Create a config store
8+
[**delete_config_store**](ConfigStoreApi.md#delete_config_store) | **DELETE** /resources/stores/config/{config_store_id} | Delete a config store
9+
[**get_config_store**](ConfigStoreApi.md#get_config_store) | **GET** /resources/stores/config/{config_store_id} | Describe a config store
10+
[**get_config_store_info**](ConfigStoreApi.md#get_config_store_info) | **GET** /resources/stores/config/{config_store_id}/info | Get config store metadata
11+
[**list_config_store_services**](ConfigStoreApi.md#list_config_store_services) | **GET** /resources/stores/config/{config_store_id}/services | List linked services
12+
[**list_config_stores**](ConfigStoreApi.md#list_config_stores) | **GET** /resources/stores/config | List config stores
13+
[**update_config_store**](ConfigStoreApi.md#update_config_store) | **PUT** /resources/stores/config/{config_store_id} | Update a config store
14+
15+
16+
17+
## create_config_store
18+
19+
Create a config store.
20+
21+
```rust
22+
let cfg = &Configuration::default();
23+
let params = CreateConfigStoreParams {
24+
// parameters
25+
};
26+
create_config_store(cfg, params)
27+
```
28+
29+
### Parameters
30+
31+
32+
Name | Type | Description | Required | Notes
33+
------------- | ------------- | ------------- | ------------- | -------------
34+
**name** | Option\<**String**> | The name of the config store. | |
35+
36+
### Return type
37+
38+
[**crate::models::ConfigStoreResponse**](ConfigStoreResponse.md)
39+
40+
### Authorization
41+
42+
[token](../README.md#token)
43+
44+
### HTTP request headers
45+
46+
- **Content-Type**: application/x-www-form-urlencoded
47+
- **Accept**: application/json
48+
49+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
50+
51+
52+
## delete_config_store
53+
54+
Delete a config store.
55+
56+
```rust
57+
let cfg = &Configuration::default();
58+
let params = DeleteConfigStoreParams {
59+
// parameters
60+
};
61+
delete_config_store(cfg, params)
62+
```
63+
64+
### Parameters
65+
66+
67+
Name | Type | Description | Required | Notes
68+
------------- | ------------- | ------------- | ------------- | -------------
69+
**config_store_id** | **String** | An alphanumeric string identifying the config store. | [required] |
70+
71+
### Return type
72+
73+
[**crate::models::InlineResponse200**](InlineResponse200.md)
74+
75+
### Authorization
76+
77+
[token](../README.md#token)
78+
79+
### HTTP request headers
80+
81+
- **Content-Type**: Not defined
82+
- **Accept**: application/json
83+
84+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
85+
86+
87+
## get_config_store
88+
89+
Describe a config store by its identifier.
90+
91+
```rust
92+
let cfg = &Configuration::default();
93+
let params = GetConfigStoreParams {
94+
// parameters
95+
};
96+
get_config_store(cfg, params)
97+
```
98+
99+
### Parameters
100+
101+
102+
Name | Type | Description | Required | Notes
103+
------------- | ------------- | ------------- | ------------- | -------------
104+
**config_store_id** | **String** | An alphanumeric string identifying the config store. | [required] |
105+
106+
### Return type
107+
108+
[**crate::models::ConfigStoreResponse**](ConfigStoreResponse.md)
109+
110+
### Authorization
111+
112+
[token](../README.md#token)
113+
114+
### HTTP request headers
115+
116+
- **Content-Type**: Not defined
117+
- **Accept**: application/json
118+
119+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
120+
121+
122+
## get_config_store_info
123+
124+
Retrieve metadata for a single config store.
125+
126+
```rust
127+
let cfg = &Configuration::default();
128+
let params = GetConfigStoreInfoParams {
129+
// parameters
130+
};
131+
get_config_store_info(cfg, params)
132+
```
133+
134+
### Parameters
135+
136+
137+
Name | Type | Description | Required | Notes
138+
------------- | ------------- | ------------- | ------------- | -------------
139+
**config_store_id** | **String** | An alphanumeric string identifying the config store. | [required] |
140+
141+
### Return type
142+
143+
[**crate::models::ConfigStoreInfoResponse**](ConfigStoreInfoResponse.md)
144+
145+
### Authorization
146+
147+
[token](../README.md#token)
148+
149+
### HTTP request headers
150+
151+
- **Content-Type**: Not defined
152+
- **Accept**: application/json
153+
154+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
155+
156+
157+
## list_config_store_services
158+
159+
List services linked to a config store
160+
161+
```rust
162+
let cfg = &Configuration::default();
163+
let params = ListConfigStoreServicesParams {
164+
// parameters
165+
};
166+
list_config_store_services(cfg, params)
167+
```
168+
169+
### Parameters
170+
171+
172+
Name | Type | Description | Required | Notes
173+
------------- | ------------- | ------------- | ------------- | -------------
174+
**config_store_id** | **String** | An alphanumeric string identifying the config store. | [required] |
175+
176+
### Return type
177+
178+
[**serde_json::Value**](SerdeJsonValue.md)
179+
180+
### Authorization
181+
182+
[token](../README.md#token)
183+
184+
### HTTP request headers
185+
186+
- **Content-Type**: Not defined
187+
- **Accept**: application/json
188+
189+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
190+
191+
192+
## list_config_stores
193+
194+
List config stores.
195+
196+
```rust
197+
let cfg = &Configuration::default();
198+
let params = ListConfigStoresParams {
199+
// parameters
200+
};
201+
list_config_stores(cfg, params)
202+
```
203+
204+
### Parameters
205+
206+
This endpoint does not need any parameter.
207+
208+
### Return type
209+
210+
[**Vec&lt;crate::models::ConfigStoreResponse&gt;**](ConfigStoreResponse.md)
211+
212+
### Authorization
213+
214+
[token](../README.md#token)
215+
216+
### HTTP request headers
217+
218+
- **Content-Type**: Not defined
219+
- **Accept**: application/json
220+
221+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
222+
223+
224+
## update_config_store
225+
226+
Update a config store.
227+
228+
```rust
229+
let cfg = &Configuration::default();
230+
let params = UpdateConfigStoreParams {
231+
// parameters
232+
};
233+
update_config_store(cfg, params)
234+
```
235+
236+
### Parameters
237+
238+
239+
Name | Type | Description | Required | Notes
240+
------------- | ------------- | ------------- | ------------- | -------------
241+
**config_store_id** | **String** | An alphanumeric string identifying the config store. | [required] |
242+
**name** | Option\<**String**> | The name of the config store. | |
243+
244+
### Return type
245+
246+
[**crate::models::ConfigStoreResponse**](ConfigStoreResponse.md)
247+
248+
### Authorization
249+
250+
[token](../README.md#token)
251+
252+
### HTTP request headers
253+
254+
- **Content-Type**: application/x-www-form-urlencoded
255+
- **Accept**: application/json
256+
257+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
258+

docs/ConfigStoreInfoResponse.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ConfigStoreInfoResponse
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**item_count** | Option<**i32**> | The number of items currently in the config store. |
8+
9+
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

docs/ConfigStoreItem.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ConfigStoreItem
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**item_key** | Option<**String**> | Item key, maximum 256 characters. |
8+
**item_value** | Option<**String**> | Item value, maximum 8000 characters. |
9+
10+
[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

0 commit comments

Comments
 (0)