Skip to content

Commit

Permalink
Generated v4.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 13, 2024
1 parent d6226af commit 1a10afd
Show file tree
Hide file tree
Showing 131 changed files with 2,715 additions and 212 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## [v4.12.0](https://github.com/fastly/fastly-rust/releases/tag/release/v4.12.0) (2024-09-13)

**Bug fixes:**

- bugfix(rust): Ensure that array parameters are encoded properly in x-www-form-urlencoded bodies
- bugfix(rust): Implement std::fmt::Display instead of std::string::ToString for enum models.
- fix(contact): Corrected endpoint called by `delete-contact` operation
- fix(origin-inspector, domain-inspector): Use integer type for Timestamp.
- fix(billing): Make all fields on billing list item data nullable

**Enhancements:**

- feat(acls-in-compute): Add ACLs in Compute API
- feat(enabled-products): Updated to use `v1` versioned endpoints.
- feat(enabled-products): Added `get-product-configuration`, `set-product-configuration` operations.
- feat(realtime, historical): Added `request_denied_get_head_body` metric.
- feat(tls): Add definitions for values of sort parameter
- feat(staging): Add activate/deactivate endpoints for staging
- feat(customer-addresses): Add Customer Addresses API

**Documentation:**

- doc(enabled-products): Added support for product IDs `bot_management` and `ngwaf`.

## [v4.11.0](https://github.com/fastly/fastly-rust/releases/tag/release/v4.11.0) (2024-08-21)

**Bug fixes:**
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.11.0"
version = "4.12.0"
authors = ["Fastly <[email protected]>"]
edition = "2021"
description = "Fastly API client"
Expand Down
33 changes: 30 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Rust 2021 Edition
Add the following to `Cargo.toml` under `[dependencies]`:

```toml
fastly-api = "4.11.0"
fastly-api = "4.12.0"
```

## Usage
Expand Down Expand Up @@ -93,6 +93,13 @@ Class | Method | Description
*AclEntryApi* | [**get_acl_entry**](docs/AclEntryApi.md#get_acl_entry) | Describe an ACL entry
*AclEntryApi* | [**list_acl_entries**](docs/AclEntryApi.md#list_acl_entries) | List ACL entries
*AclEntryApi* | [**update_acl_entry**](docs/AclEntryApi.md#update_acl_entry) | Update an ACL entry
*AclsInComputeApi* | [**compute_acl_create_acls**](docs/AclsInComputeApi.md#compute_acl_create_acls) | Create a new ACL
*AclsInComputeApi* | [**compute_acl_delete_s_acl_id**](docs/AclsInComputeApi.md#compute_acl_delete_s_acl_id) | Delete an ACL
*AclsInComputeApi* | [**compute_acl_list_acl_entries**](docs/AclsInComputeApi.md#compute_acl_list_acl_entries) | List an ACL
*AclsInComputeApi* | [**compute_acl_list_acls**](docs/AclsInComputeApi.md#compute_acl_list_acls) | List ACLs
*AclsInComputeApi* | [**compute_acl_list_acls_s_acl_id**](docs/AclsInComputeApi.md#compute_acl_list_acls_s_acl_id) | Describe an ACL
*AclsInComputeApi* | [**compute_acl_lookup_acls**](docs/AclsInComputeApi.md#compute_acl_lookup_acls) | Lookup an ACL
*AclsInComputeApi* | [**compute_acl_update_acls**](docs/AclsInComputeApi.md#compute_acl_update_acls) | Update an ACL
*ApexRedirectApi* | [**create_apex_redirect**](docs/ApexRedirectApi.md#create_apex_redirect) | Create an apex redirect
*ApexRedirectApi* | [**delete_apex_redirect**](docs/ApexRedirectApi.md#delete_apex_redirect) | Delete an apex redirect
*ApexRedirectApi* | [**get_apex_redirect**](docs/ApexRedirectApi.md#get_apex_redirect) | Get an apex redirect
Expand Down Expand Up @@ -153,6 +160,9 @@ Class | Method | Description
*CustomerApi* | [**get_logged_in_customer**](docs/CustomerApi.md#get_logged_in_customer) | Get the logged in customer
*CustomerApi* | [**list_users**](docs/CustomerApi.md#list_users) | List users
*CustomerApi* | [**update_customer**](docs/CustomerApi.md#update_customer) | Update a customer
*CustomerAddressesApi* | [**create_customer_address**](docs/CustomerAddressesApi.md#create_customer_address) | Creates an address associated with a customer account.
*CustomerAddressesApi* | [**list_customer_addresses**](docs/CustomerAddressesApi.md#list_customer_addresses) | Return the list of addresses associated with a customer account.
*CustomerAddressesApi* | [**update_customer_address**](docs/CustomerAddressesApi.md#update_customer_address) | Updates an address associated with a customer account.
*DictionaryApi* | [**create_dictionary**](docs/DictionaryApi.md#create_dictionary) | Create an edge dictionary
*DictionaryApi* | [**delete_dictionary**](docs/DictionaryApi.md#delete_dictionary) | Delete an edge dictionary
*DictionaryApi* | [**get_dictionary**](docs/DictionaryApi.md#get_dictionary) | Get an edge dictionary
Expand Down Expand Up @@ -188,6 +198,8 @@ Class | Method | Description
*EnabledProductsApi* | [**disable_product**](docs/EnabledProductsApi.md#disable_product) | Disable a product
*EnabledProductsApi* | [**enable_product**](docs/EnabledProductsApi.md#enable_product) | Enable a product
*EnabledProductsApi* | [**get_enabled_product**](docs/EnabledProductsApi.md#get_enabled_product) | Get enabled product
*EnabledProductsApi* | [**get_product_configuration**](docs/EnabledProductsApi.md#get_product_configuration) | Get configuration for a product
*EnabledProductsApi* | [**set_product_configuration**](docs/EnabledProductsApi.md#set_product_configuration) | Update configuration for a product
*EventsApi* | [**get_event**](docs/EventsApi.md#get_event) | Get an event
*EventsApi* | [**list_events**](docs/EventsApi.md#list_events) | List events
*GzipApi* | [**create_gzip_config**](docs/GzipApi.md#create_gzip_config) | Create a gzip configuration
Expand Down Expand Up @@ -575,9 +587,11 @@ Class | Method | Description
*VclApi* | [**update_custom_vcl**](docs/VclApi.md#update_custom_vcl) | Update a custom VCL file
*VclDiffApi* | [**vcl_diff_service_versions**](docs/VclDiffApi.md#vcl_diff_service_versions) | Get a comparison of the VCL changes between two service versions
*VersionApi* | [**activate_service_version**](docs/VersionApi.md#activate_service_version) | Activate a service version
*VersionApi* | [**activate_service_version_environment**](docs/VersionApi.md#activate_service_version_environment) | Activate a service version on the specified environment
*VersionApi* | [**clone_service_version**](docs/VersionApi.md#clone_service_version) | Clone a service version
*VersionApi* | [**create_service_version**](docs/VersionApi.md#create_service_version) | Create a service version
*VersionApi* | [**deactivate_service_version**](docs/VersionApi.md#deactivate_service_version) | Deactivate a service version
*VersionApi* | [**deactivate_service_version_environment**](docs/VersionApi.md#deactivate_service_version_environment) | Deactivate a service version on an environment
*VersionApi* | [**get_service_version**](docs/VersionApi.md#get_service_version) | Get a version of a service
*VersionApi* | [**list_service_versions**](docs/VersionApi.md#list_service_versions) | List versions of a service
*VersionApi* | [**lock_service_version**](docs/VersionApi.md#lock_service_version) | Lock a service version
Expand Down Expand Up @@ -626,13 +640,28 @@ The fastly-rust API client currently does not support the following endpoints:
- [`/alerts/history`](https://www.fastly.com/documentation/reference/api/observability/alerts/history) (GET)
- [`/dns/configurations/{dns_configuration_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
- [`/dns/configurations`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
- [`/domains/{domain_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
- [`/domains`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
- [`/notifications/integration-types`](https://developer.fastly.com/reference/api/observability/notification) (GET)
- [`/notifications/integrations/{integration_id}/rotateSigningKey`](https://developer.fastly.com/reference/api/observability/notification) (POST)
- [`/notifications/integrations/{integration_id}/signingKey`](https://developer.fastly.com/reference/api/observability/notification) (GET)
- [`/notifications/integrations/{integration_id}`](https://developer.fastly.com/reference/api/observability/notification) (DELETE, GET, PATCH)
- [`/notifications/integrations`](https://developer.fastly.com/reference/api/observability/notification) (GET, POST)
- [`/notifications/mailinglist-confirmations`](https://developer.fastly.com/reference/api/observability/notification) (POST)
- [`/resources/stores/kv/{store_id}/batch`](https://www.fastly.com/documentation/reference/api/services/resources/kv-store-item) (PUT)
- [`/security/workspaces/{workspace_id}/events/{event_id}`](https://docs.fastly.com/en/ngwaf/) (GET, PATCH)
- [`/security/workspaces/{workspace_id}/events`](https://docs.fastly.com/en/ngwaf/) (GET)
- [`/security/workspaces/{workspace_id}/redactions/{redaction_id}`](https://docs.fastly.com/en/ngwaf/) (DELETE, GET, PATCH)
- [`/security/workspaces/{workspace_id}/redactions`](https://docs.fastly.com/en/ngwaf/) (GET, POST)
- [`/security/workspaces/{workspace_id}/requests/{request_id}`](https://docs.fastly.com/en/ngwaf/) (GET)
- [`/security/workspaces/{workspace_id}/requests`](https://docs.fastly.com/en/ngwaf/) (GET)
- [`/security/workspaces/{workspace_id}/rules/{rule_id}`](https://docs.fastly.com/en/ngwaf/) (DELETE, GET, PATCH)
- [`/security/workspaces/{workspace_id}/rules`](https://docs.fastly.com/en/ngwaf/) (GET, POST)
- [`/security/workspaces/{workspace_id}/timeseries`](https://docs.fastly.com/en/ngwaf/) (GET)
- [`/security/workspaces/{workspace_id}/virtual-patches/{virtual_patch_id}`](https://docs.fastly.com/en/ngwaf/) (GET, PATCH)
- [`/security/workspaces/{workspace_id}/virtual-patches`](https://docs.fastly.com/en/ngwaf/) (GET)
- [`/security/workspaces/{workspace_id}`](https://docs.fastly.com/en/ngwaf/) (DELETE, GET, PATCH)
- [`/security/workspaces`](https://docs.fastly.com/en/ngwaf/) (GET, POST)
- [`/service/{service_id}/version/{version_id}/director`](https://www.fastly.com/documentation/reference/api/load-balancing/directors/director) (POST)
- [`/stats/aggregate`](https://www.fastly.com/documentation/reference/api/metrics-stats/historical-stats) (GET)
- [`/stats/field/{field}`](https://www.fastly.com/documentation/reference/api/metrics-stats/historical-stats) (GET)
Expand All @@ -647,8 +676,6 @@ The fastly-rust API client currently does not support the following endpoints:
- [`/tls/activations`](https://www.fastly.com/documentation/reference/api/tls/mutual-tls/activations) (GET)
- [`/tls/configurations/{tls_configuration_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
- [`/tls/configurations`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
- [`/tls/preview/domains/{domain_id}`](https://www.fastly.com/documentation/reference/api/) (GET, PATCH)
- [`/tls/preview/domains`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
- [`/v1/channel/{service_id}/ts/h/limit/{max_entries}`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
- [`/v1/channel/{service_id}/ts/h`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
- [`/v1/channel/{service_id}/ts/{start_timestamp}`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
Expand Down
262 changes: 262 additions & 0 deletions docs/AclsInComputeApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,262 @@
# AclsInComputeApi

> [!NOTE]
> All URIs are relative to `https://api.fastly.com`
Method | HTTP request | Description
------ | ------------ | -----------
[**compute_acl_create_acls**](AclsInComputeApi.md#compute_acl_create_acls) | **POST** /resources/acls | Create a new ACL
[**compute_acl_delete_s_acl_id**](AclsInComputeApi.md#compute_acl_delete_s_acl_id) | **DELETE** /resources/acls/{acl_id} | Delete an ACL
[**compute_acl_list_acl_entries**](AclsInComputeApi.md#compute_acl_list_acl_entries) | **GET** /resources/acls/{acl_id}/entries | List an ACL
[**compute_acl_list_acls**](AclsInComputeApi.md#compute_acl_list_acls) | **GET** /resources/acls | List ACLs
[**compute_acl_list_acls_s_acl_id**](AclsInComputeApi.md#compute_acl_list_acls_s_acl_id) | **GET** /resources/acls/{acl_id} | Describe an ACL
[**compute_acl_lookup_acls**](AclsInComputeApi.md#compute_acl_lookup_acls) | **GET** /resources/acls/{acl_id}/entry/{acl_ip} | Lookup an ACL
[**compute_acl_update_acls**](AclsInComputeApi.md#compute_acl_update_acls) | **PATCH** /resources/acls/{acl_id}/entries | Update an ACL



## compute_acl_create_acls

Create a new ACL.

```rust
let cfg = &Configuration::default();
let params = ComputeAclCreateAclsParams {
// parameters
};
compute_acl_create_acls(cfg, params)
```

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**compute_acl_create_acls_request** | Option\<[**ComputeAclCreateAclsRequest**](ComputeAclCreateAclsRequest.md)> | | |

### Return type

[**crate::models::ComputeAclCreateAclsResponse**](ComputeAclCreateAclsResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

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


## compute_acl_delete_s_acl_id

Delete an ACL.

```rust
let cfg = &Configuration::default();
let params = ComputeAclDeleteSAclIdParams {
// parameters
};
compute_acl_delete_s_acl_id(cfg, params)
```

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**acl_id** | **String** | | [required] |

### Return type

(empty response body)

### Authorization

[token](../README.md#token)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

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


## compute_acl_list_acl_entries

List an ACL.

```rust
let cfg = &Configuration::default();
let params = ComputeAclListAclEntriesParams {
// parameters
};
compute_acl_list_acl_entries(cfg, params)
```

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**acl_id** | **String** | | [required] |
**cursor** | Option\<**String**> | | |
**limit** | Option\<**i32**> | | |[default to 100]

### Return type

[**crate::models::ComputeAclListEntries**](ComputeAclListEntries.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## compute_acl_list_acls

List all ACLs.

```rust
let cfg = &Configuration::default();
let params = ComputeAclListAclsParams {
// parameters
};
compute_acl_list_acls(cfg, params)
```

### Parameters

This endpoint does not need any parameter.

### Return type

[**Vec&lt;crate::models::ComputeAclCreateAclsResponse&gt;**](ComputeAclCreateAclsResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## compute_acl_list_acls_s_acl_id

Describe an ACL.

```rust
let cfg = &Configuration::default();
let params = ComputeAclListAclsSAclIdParams {
// parameters
};
compute_acl_list_acls_s_acl_id(cfg, params)
```

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**acl_id** | **String** | | [required] |

### Return type

[**crate::models::ComputeAclCreateAclsResponse**](ComputeAclCreateAclsResponse.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## compute_acl_lookup_acls

Find a matching ACL entry for an IP address.

```rust
let cfg = &Configuration::default();
let params = ComputeAclLookupAclsParams {
// parameters
};
compute_acl_lookup_acls(cfg, params)
```

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**acl_id** | **String** | | [required] |
**acl_ip** | **String** | | [required] |

### Return type

[**crate::models::ComputeAclLookup**](ComputeAclLookup.md)

### Authorization

[token](../README.md#token)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

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


## compute_acl_update_acls

Update an ACL.

```rust
let cfg = &Configuration::default();
let params = ComputeAclUpdateAclsParams {
// parameters
};
compute_acl_update_acls(cfg, params)
```

### Parameters


Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**acl_id** | **String** | | [required] |
**compute_acl_update_entry** | Option\<[**Vec&lt;crate::models::ComputeAclUpdateEntry&gt;**](compute-acl-update-entry.md)> | | |

### Return type

(empty response body)

### Authorization

[token](../README.md#token)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: Not defined

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

Loading

0 comments on commit 1a10afd

Please sign in to comment.