Skip to content

Commit 1a10afd

Browse files
author
github-actions
committed
Generated v4.12.0
1 parent d6226af commit 1a10afd

File tree

131 files changed

+2715
-212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+2715
-212
lines changed

CHANGELOG.md

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

3+
## [v4.12.0](https://github.com/fastly/fastly-rust/releases/tag/release/v4.12.0) (2024-09-13)
4+
5+
**Bug fixes:**
6+
7+
- bugfix(rust): Ensure that array parameters are encoded properly in x-www-form-urlencoded bodies
8+
- bugfix(rust): Implement std::fmt::Display instead of std::string::ToString for enum models.
9+
- fix(contact): Corrected endpoint called by `delete-contact` operation
10+
- fix(origin-inspector, domain-inspector): Use integer type for Timestamp.
11+
- fix(billing): Make all fields on billing list item data nullable
12+
13+
**Enhancements:**
14+
15+
- feat(acls-in-compute): Add ACLs in Compute API
16+
- feat(enabled-products): Updated to use `v1` versioned endpoints.
17+
- feat(enabled-products): Added `get-product-configuration`, `set-product-configuration` operations.
18+
- feat(realtime, historical): Added `request_denied_get_head_body` metric.
19+
- feat(tls): Add definitions for values of sort parameter
20+
- feat(staging): Add activate/deactivate endpoints for staging
21+
- feat(customer-addresses): Add Customer Addresses API
22+
23+
**Documentation:**
24+
25+
- doc(enabled-products): Added support for product IDs `bot_management` and `ngwaf`.
26+
327
## [v4.11.0](https://github.com/fastly/fastly-rust/releases/tag/release/v4.11.0) (2024-08-21)
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.11.0"
3+
version = "4.12.0"
44
authors = ["Fastly <[email protected]>"]
55
edition = "2021"
66
description = "Fastly API client"

README.md

+30-3
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.11.0"
18+
fastly-api = "4.12.0"
1919
```
2020

2121
## Usage
@@ -93,6 +93,13 @@ Class | Method | Description
9393
*AclEntryApi* | [**get_acl_entry**](docs/AclEntryApi.md#get_acl_entry) | Describe an ACL entry
9494
*AclEntryApi* | [**list_acl_entries**](docs/AclEntryApi.md#list_acl_entries) | List ACL entries
9595
*AclEntryApi* | [**update_acl_entry**](docs/AclEntryApi.md#update_acl_entry) | Update an ACL entry
96+
*AclsInComputeApi* | [**compute_acl_create_acls**](docs/AclsInComputeApi.md#compute_acl_create_acls) | Create a new ACL
97+
*AclsInComputeApi* | [**compute_acl_delete_s_acl_id**](docs/AclsInComputeApi.md#compute_acl_delete_s_acl_id) | Delete an ACL
98+
*AclsInComputeApi* | [**compute_acl_list_acl_entries**](docs/AclsInComputeApi.md#compute_acl_list_acl_entries) | List an ACL
99+
*AclsInComputeApi* | [**compute_acl_list_acls**](docs/AclsInComputeApi.md#compute_acl_list_acls) | List ACLs
100+
*AclsInComputeApi* | [**compute_acl_list_acls_s_acl_id**](docs/AclsInComputeApi.md#compute_acl_list_acls_s_acl_id) | Describe an ACL
101+
*AclsInComputeApi* | [**compute_acl_lookup_acls**](docs/AclsInComputeApi.md#compute_acl_lookup_acls) | Lookup an ACL
102+
*AclsInComputeApi* | [**compute_acl_update_acls**](docs/AclsInComputeApi.md#compute_acl_update_acls) | Update an ACL
96103
*ApexRedirectApi* | [**create_apex_redirect**](docs/ApexRedirectApi.md#create_apex_redirect) | Create an apex redirect
97104
*ApexRedirectApi* | [**delete_apex_redirect**](docs/ApexRedirectApi.md#delete_apex_redirect) | Delete an apex redirect
98105
*ApexRedirectApi* | [**get_apex_redirect**](docs/ApexRedirectApi.md#get_apex_redirect) | Get an apex redirect
@@ -153,6 +160,9 @@ Class | Method | Description
153160
*CustomerApi* | [**get_logged_in_customer**](docs/CustomerApi.md#get_logged_in_customer) | Get the logged in customer
154161
*CustomerApi* | [**list_users**](docs/CustomerApi.md#list_users) | List users
155162
*CustomerApi* | [**update_customer**](docs/CustomerApi.md#update_customer) | Update a customer
163+
*CustomerAddressesApi* | [**create_customer_address**](docs/CustomerAddressesApi.md#create_customer_address) | Creates an address associated with a customer account.
164+
*CustomerAddressesApi* | [**list_customer_addresses**](docs/CustomerAddressesApi.md#list_customer_addresses) | Return the list of addresses associated with a customer account.
165+
*CustomerAddressesApi* | [**update_customer_address**](docs/CustomerAddressesApi.md#update_customer_address) | Updates an address associated with a customer account.
156166
*DictionaryApi* | [**create_dictionary**](docs/DictionaryApi.md#create_dictionary) | Create an edge dictionary
157167
*DictionaryApi* | [**delete_dictionary**](docs/DictionaryApi.md#delete_dictionary) | Delete an edge dictionary
158168
*DictionaryApi* | [**get_dictionary**](docs/DictionaryApi.md#get_dictionary) | Get an edge dictionary
@@ -188,6 +198,8 @@ Class | Method | Description
188198
*EnabledProductsApi* | [**disable_product**](docs/EnabledProductsApi.md#disable_product) | Disable a product
189199
*EnabledProductsApi* | [**enable_product**](docs/EnabledProductsApi.md#enable_product) | Enable a product
190200
*EnabledProductsApi* | [**get_enabled_product**](docs/EnabledProductsApi.md#get_enabled_product) | Get enabled product
201+
*EnabledProductsApi* | [**get_product_configuration**](docs/EnabledProductsApi.md#get_product_configuration) | Get configuration for a product
202+
*EnabledProductsApi* | [**set_product_configuration**](docs/EnabledProductsApi.md#set_product_configuration) | Update configuration for a product
191203
*EventsApi* | [**get_event**](docs/EventsApi.md#get_event) | Get an event
192204
*EventsApi* | [**list_events**](docs/EventsApi.md#list_events) | List events
193205
*GzipApi* | [**create_gzip_config**](docs/GzipApi.md#create_gzip_config) | Create a gzip configuration
@@ -575,9 +587,11 @@ Class | Method | Description
575587
*VclApi* | [**update_custom_vcl**](docs/VclApi.md#update_custom_vcl) | Update a custom VCL file
576588
*VclDiffApi* | [**vcl_diff_service_versions**](docs/VclDiffApi.md#vcl_diff_service_versions) | Get a comparison of the VCL changes between two service versions
577589
*VersionApi* | [**activate_service_version**](docs/VersionApi.md#activate_service_version) | Activate a service version
590+
*VersionApi* | [**activate_service_version_environment**](docs/VersionApi.md#activate_service_version_environment) | Activate a service version on the specified environment
578591
*VersionApi* | [**clone_service_version**](docs/VersionApi.md#clone_service_version) | Clone a service version
579592
*VersionApi* | [**create_service_version**](docs/VersionApi.md#create_service_version) | Create a service version
580593
*VersionApi* | [**deactivate_service_version**](docs/VersionApi.md#deactivate_service_version) | Deactivate a service version
594+
*VersionApi* | [**deactivate_service_version_environment**](docs/VersionApi.md#deactivate_service_version_environment) | Deactivate a service version on an environment
581595
*VersionApi* | [**get_service_version**](docs/VersionApi.md#get_service_version) | Get a version of a service
582596
*VersionApi* | [**list_service_versions**](docs/VersionApi.md#list_service_versions) | List versions of a service
583597
*VersionApi* | [**lock_service_version**](docs/VersionApi.md#lock_service_version) | Lock a service version
@@ -626,13 +640,28 @@ The fastly-rust API client currently does not support the following endpoints:
626640
- [`/alerts/history`](https://www.fastly.com/documentation/reference/api/observability/alerts/history) (GET)
627641
- [`/dns/configurations/{dns_configuration_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
628642
- [`/dns/configurations`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
643+
- [`/domains/{domain_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
644+
- [`/domains`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
629645
- [`/notifications/integration-types`](https://developer.fastly.com/reference/api/observability/notification) (GET)
630646
- [`/notifications/integrations/{integration_id}/rotateSigningKey`](https://developer.fastly.com/reference/api/observability/notification) (POST)
631647
- [`/notifications/integrations/{integration_id}/signingKey`](https://developer.fastly.com/reference/api/observability/notification) (GET)
632648
- [`/notifications/integrations/{integration_id}`](https://developer.fastly.com/reference/api/observability/notification) (DELETE, GET, PATCH)
633649
- [`/notifications/integrations`](https://developer.fastly.com/reference/api/observability/notification) (GET, POST)
634650
- [`/notifications/mailinglist-confirmations`](https://developer.fastly.com/reference/api/observability/notification) (POST)
635651
- [`/resources/stores/kv/{store_id}/batch`](https://www.fastly.com/documentation/reference/api/services/resources/kv-store-item) (PUT)
652+
- [`/security/workspaces/{workspace_id}/events/{event_id}`](https://docs.fastly.com/en/ngwaf/) (GET, PATCH)
653+
- [`/security/workspaces/{workspace_id}/events`](https://docs.fastly.com/en/ngwaf/) (GET)
654+
- [`/security/workspaces/{workspace_id}/redactions/{redaction_id}`](https://docs.fastly.com/en/ngwaf/) (DELETE, GET, PATCH)
655+
- [`/security/workspaces/{workspace_id}/redactions`](https://docs.fastly.com/en/ngwaf/) (GET, POST)
656+
- [`/security/workspaces/{workspace_id}/requests/{request_id}`](https://docs.fastly.com/en/ngwaf/) (GET)
657+
- [`/security/workspaces/{workspace_id}/requests`](https://docs.fastly.com/en/ngwaf/) (GET)
658+
- [`/security/workspaces/{workspace_id}/rules/{rule_id}`](https://docs.fastly.com/en/ngwaf/) (DELETE, GET, PATCH)
659+
- [`/security/workspaces/{workspace_id}/rules`](https://docs.fastly.com/en/ngwaf/) (GET, POST)
660+
- [`/security/workspaces/{workspace_id}/timeseries`](https://docs.fastly.com/en/ngwaf/) (GET)
661+
- [`/security/workspaces/{workspace_id}/virtual-patches/{virtual_patch_id}`](https://docs.fastly.com/en/ngwaf/) (GET, PATCH)
662+
- [`/security/workspaces/{workspace_id}/virtual-patches`](https://docs.fastly.com/en/ngwaf/) (GET)
663+
- [`/security/workspaces/{workspace_id}`](https://docs.fastly.com/en/ngwaf/) (DELETE, GET, PATCH)
664+
- [`/security/workspaces`](https://docs.fastly.com/en/ngwaf/) (GET, POST)
636665
- [`/service/{service_id}/version/{version_id}/director`](https://www.fastly.com/documentation/reference/api/load-balancing/directors/director) (POST)
637666
- [`/stats/aggregate`](https://www.fastly.com/documentation/reference/api/metrics-stats/historical-stats) (GET)
638667
- [`/stats/field/{field}`](https://www.fastly.com/documentation/reference/api/metrics-stats/historical-stats) (GET)
@@ -647,8 +676,6 @@ The fastly-rust API client currently does not support the following endpoints:
647676
- [`/tls/activations`](https://www.fastly.com/documentation/reference/api/tls/mutual-tls/activations) (GET)
648677
- [`/tls/configurations/{tls_configuration_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
649678
- [`/tls/configurations`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
650-
- [`/tls/preview/domains/{domain_id}`](https://www.fastly.com/documentation/reference/api/) (GET, PATCH)
651-
- [`/tls/preview/domains`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
652679
- [`/v1/channel/{service_id}/ts/h/limit/{max_entries}`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
653680
- [`/v1/channel/{service_id}/ts/h`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
654681
- [`/v1/channel/{service_id}/ts/{start_timestamp}`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)

docs/AclsInComputeApi.md

+262
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,262 @@
1+
# AclsInComputeApi
2+
3+
> [!NOTE]
4+
> All URIs are relative to `https://api.fastly.com`
5+
6+
Method | HTTP request | Description
7+
------ | ------------ | -----------
8+
[**compute_acl_create_acls**](AclsInComputeApi.md#compute_acl_create_acls) | **POST** /resources/acls | Create a new ACL
9+
[**compute_acl_delete_s_acl_id**](AclsInComputeApi.md#compute_acl_delete_s_acl_id) | **DELETE** /resources/acls/{acl_id} | Delete an ACL
10+
[**compute_acl_list_acl_entries**](AclsInComputeApi.md#compute_acl_list_acl_entries) | **GET** /resources/acls/{acl_id}/entries | List an ACL
11+
[**compute_acl_list_acls**](AclsInComputeApi.md#compute_acl_list_acls) | **GET** /resources/acls | List ACLs
12+
[**compute_acl_list_acls_s_acl_id**](AclsInComputeApi.md#compute_acl_list_acls_s_acl_id) | **GET** /resources/acls/{acl_id} | Describe an ACL
13+
[**compute_acl_lookup_acls**](AclsInComputeApi.md#compute_acl_lookup_acls) | **GET** /resources/acls/{acl_id}/entry/{acl_ip} | Lookup an ACL
14+
[**compute_acl_update_acls**](AclsInComputeApi.md#compute_acl_update_acls) | **PATCH** /resources/acls/{acl_id}/entries | Update an ACL
15+
16+
17+
18+
## compute_acl_create_acls
19+
20+
Create a new ACL.
21+
22+
```rust
23+
let cfg = &Configuration::default();
24+
let params = ComputeAclCreateAclsParams {
25+
// parameters
26+
};
27+
compute_acl_create_acls(cfg, params)
28+
```
29+
30+
### Parameters
31+
32+
33+
Name | Type | Description | Required | Notes
34+
------------- | ------------- | ------------- | ------------- | -------------
35+
**compute_acl_create_acls_request** | Option\<[**ComputeAclCreateAclsRequest**](ComputeAclCreateAclsRequest.md)> | | |
36+
37+
### Return type
38+
39+
[**crate::models::ComputeAclCreateAclsResponse**](ComputeAclCreateAclsResponse.md)
40+
41+
### Authorization
42+
43+
[token](../README.md#token)
44+
45+
### HTTP request headers
46+
47+
- **Content-Type**: application/json
48+
- **Accept**: application/json
49+
50+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
51+
52+
53+
## compute_acl_delete_s_acl_id
54+
55+
Delete an ACL.
56+
57+
```rust
58+
let cfg = &Configuration::default();
59+
let params = ComputeAclDeleteSAclIdParams {
60+
// parameters
61+
};
62+
compute_acl_delete_s_acl_id(cfg, params)
63+
```
64+
65+
### Parameters
66+
67+
68+
Name | Type | Description | Required | Notes
69+
------------- | ------------- | ------------- | ------------- | -------------
70+
**acl_id** | **String** | | [required] |
71+
72+
### Return type
73+
74+
(empty response body)
75+
76+
### Authorization
77+
78+
[token](../README.md#token)
79+
80+
### HTTP request headers
81+
82+
- **Content-Type**: Not defined
83+
- **Accept**: Not defined
84+
85+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
86+
87+
88+
## compute_acl_list_acl_entries
89+
90+
List an ACL.
91+
92+
```rust
93+
let cfg = &Configuration::default();
94+
let params = ComputeAclListAclEntriesParams {
95+
// parameters
96+
};
97+
compute_acl_list_acl_entries(cfg, params)
98+
```
99+
100+
### Parameters
101+
102+
103+
Name | Type | Description | Required | Notes
104+
------------- | ------------- | ------------- | ------------- | -------------
105+
**acl_id** | **String** | | [required] |
106+
**cursor** | Option\<**String**> | | |
107+
**limit** | Option\<**i32**> | | |[default to 100]
108+
109+
### Return type
110+
111+
[**crate::models::ComputeAclListEntries**](ComputeAclListEntries.md)
112+
113+
### Authorization
114+
115+
[token](../README.md#token)
116+
117+
### HTTP request headers
118+
119+
- **Content-Type**: Not defined
120+
- **Accept**: application/json
121+
122+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
123+
124+
125+
## compute_acl_list_acls
126+
127+
List all ACLs.
128+
129+
```rust
130+
let cfg = &Configuration::default();
131+
let params = ComputeAclListAclsParams {
132+
// parameters
133+
};
134+
compute_acl_list_acls(cfg, params)
135+
```
136+
137+
### Parameters
138+
139+
This endpoint does not need any parameter.
140+
141+
### Return type
142+
143+
[**Vec&lt;crate::models::ComputeAclCreateAclsResponse&gt;**](ComputeAclCreateAclsResponse.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+
## compute_acl_list_acls_s_acl_id
158+
159+
Describe an ACL.
160+
161+
```rust
162+
let cfg = &Configuration::default();
163+
let params = ComputeAclListAclsSAclIdParams {
164+
// parameters
165+
};
166+
compute_acl_list_acls_s_acl_id(cfg, params)
167+
```
168+
169+
### Parameters
170+
171+
172+
Name | Type | Description | Required | Notes
173+
------------- | ------------- | ------------- | ------------- | -------------
174+
**acl_id** | **String** | | [required] |
175+
176+
### Return type
177+
178+
[**crate::models::ComputeAclCreateAclsResponse**](ComputeAclCreateAclsResponse.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+
## compute_acl_lookup_acls
193+
194+
Find a matching ACL entry for an IP address.
195+
196+
```rust
197+
let cfg = &Configuration::default();
198+
let params = ComputeAclLookupAclsParams {
199+
// parameters
200+
};
201+
compute_acl_lookup_acls(cfg, params)
202+
```
203+
204+
### Parameters
205+
206+
207+
Name | Type | Description | Required | Notes
208+
------------- | ------------- | ------------- | ------------- | -------------
209+
**acl_id** | **String** | | [required] |
210+
**acl_ip** | **String** | | [required] |
211+
212+
### Return type
213+
214+
[**crate::models::ComputeAclLookup**](ComputeAclLookup.md)
215+
216+
### Authorization
217+
218+
[token](../README.md#token)
219+
220+
### HTTP request headers
221+
222+
- **Content-Type**: Not defined
223+
- **Accept**: application/json
224+
225+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
226+
227+
228+
## compute_acl_update_acls
229+
230+
Update an ACL.
231+
232+
```rust
233+
let cfg = &Configuration::default();
234+
let params = ComputeAclUpdateAclsParams {
235+
// parameters
236+
};
237+
compute_acl_update_acls(cfg, params)
238+
```
239+
240+
### Parameters
241+
242+
243+
Name | Type | Description | Required | Notes
244+
------------- | ------------- | ------------- | ------------- | -------------
245+
**acl_id** | **String** | | [required] |
246+
**compute_acl_update_entry** | Option\<[**Vec&lt;crate::models::ComputeAclUpdateEntry&gt;**](compute-acl-update-entry.md)> | | |
247+
248+
### Return type
249+
250+
(empty response body)
251+
252+
### Authorization
253+
254+
[token](../README.md#token)
255+
256+
### HTTP request headers
257+
258+
- **Content-Type**: application/json
259+
- **Accept**: Not defined
260+
261+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
262+

0 commit comments

Comments
 (0)