Skip to content

Commit

Permalink
Generated v2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jul 5, 2023
1 parent cee2082 commit 8762cde
Show file tree
Hide file tree
Showing 45 changed files with 2,053 additions and 36 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [v2.5.0](https://github.com/fastly/fastly-rust/releases/tag/release/v2.5.0) (2023-07-05)

**Enhancements:**

- feat(vcl): support all vcl endpoints.

**Bug fixes:**

- fix(snippet): dynamic field switched from int to string.

## [v2.4.0](https://github.com/fastly/fastly-rust/releases/tag/release/v2.4.0) (2023-06-27)

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

```toml
fastly-api = "2.4.0"
fastly-api = "2.5.0"
```

## Usage
Expand Down Expand Up @@ -446,6 +446,19 @@ Class | Method | HTTP request | Description
*UserApi* | [**request_password_reset**](docs/UserApi.md#request_password_reset) | **POST** /user/{user_login}/password/request_reset | Request a password reset
*UserApi* | [**update_user**](docs/UserApi.md#update_user) | **PUT** /user/{user_id} | Update a user
*UserApi* | [**update_user_password**](docs/UserApi.md#update_user_password) | **POST** /current_user/password | Update the user's password
*VclApi* | [**create_custom_vcl**](docs/VclApi.md#create_custom_vcl) | **POST** /service/{service_id}/version/{version_id}/vcl | Create a custom VCL file
*VclApi* | [**delete_custom_vcl**](docs/VclApi.md#delete_custom_vcl) | **DELETE** /service/{service_id}/version/{version_id}/vcl/{vcl_name} | Delete a custom VCL file
*VclApi* | [**get_custom_vcl**](docs/VclApi.md#get_custom_vcl) | **GET** /service/{service_id}/version/{version_id}/vcl/{vcl_name} | Get a custom VCL file
*VclApi* | [**get_custom_vcl_boilerplate**](docs/VclApi.md#get_custom_vcl_boilerplate) | **GET** /service/{service_id}/version/{version_id}/boilerplate | Get boilerplate VCL
*VclApi* | [**get_custom_vcl_generated**](docs/VclApi.md#get_custom_vcl_generated) | **GET** /service/{service_id}/version/{version_id}/generated_vcl | Get the generated VCL for a service
*VclApi* | [**get_custom_vcl_generated_highlighted**](docs/VclApi.md#get_custom_vcl_generated_highlighted) | **GET** /service/{service_id}/version/{version_id}/generated_vcl/content | Get the generated VCL with syntax highlighting
*VclApi* | [**get_custom_vcl_highlighted**](docs/VclApi.md#get_custom_vcl_highlighted) | **GET** /service/{service_id}/version/{version_id}/vcl/{vcl_name}/content | Get a custom VCL file with syntax highlighting
*VclApi* | [**get_custom_vcl_raw**](docs/VclApi.md#get_custom_vcl_raw) | **GET** /service/{service_id}/version/{version_id}/vcl/{vcl_name}/download | Download a custom VCL file
*VclApi* | [**lint_vcl_default**](docs/VclApi.md#lint_vcl_default) | **POST** /vcl_lint | Lint (validate) VCL using a default set of flags.
*VclApi* | [**lint_vcl_for_service**](docs/VclApi.md#lint_vcl_for_service) | **POST** /service/{service_id}/lint | Lint (validate) VCL using flags set for the service.
*VclApi* | [**list_custom_vcl**](docs/VclApi.md#list_custom_vcl) | **GET** /service/{service_id}/version/{version_id}/vcl | List custom VCL files
*VclApi* | [**set_custom_vcl_main**](docs/VclApi.md#set_custom_vcl_main) | **PUT** /service/{service_id}/version/{version_id}/vcl/{vcl_name}/main | Set a custom VCL file as main
*VclApi* | [**update_custom_vcl**](docs/VclApi.md#update_custom_vcl) | **PUT** /service/{service_id}/version/{version_id}/vcl/{vcl_name} | Update a custom VCL file
*VclDiffApi* | [**vcl_diff_service_versions**](docs/VclDiffApi.md#vcl_diff_service_versions) | **GET** /service/{service_id}/vcl/diff/from/{from_version_id}/to/{to_version_id} | Get a comparison of the VCL changes between two service versions
*VersionApi* | [**activate_service_version**](docs/VersionApi.md#activate_service_version) | **PUT** /service/{service_id}/version/{version_id}/activate | Activate a service version
*VersionApi* | [**clone_service_version**](docs/VersionApi.md#clone_service_version) | **PUT** /service/{service_id}/version/{version_id}/clone | Clone a service version
Expand Down Expand Up @@ -496,6 +509,7 @@ The fastly-rust API client currently does not support the following endpoints:
- [`/events`](https://developer.fastly.com/reference/api/account/events) (GET)
- [`/metrics/domains/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/historical) (GET)
- [`/metrics/origins/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/historical) (GET)
- [`/resources/stores/kv/{store_id}/batch`](https://developer.fastly.com/reference/api/services/resources/kv-store-item) (PUT)
- [`/resources/stores/secret/client-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (POST)
- [`/resources/stores/secret/signing-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET)
- [`/resources/stores/secret/{store_id}/secrets/{secret_name}`](https://developer.fastly.com/reference/api/services/resources/secret) (DELETE, GET)
Expand All @@ -509,25 +523,16 @@ The fastly-rust API client currently does not support the following endpoints:
- [`/service-groups/{service_group_id}/services`](https://developer.fastly.com/reference/api/account/service-groups) (DELETE, POST)
- [`/service-groups/{service_group_id}`](https://developer.fastly.com/reference/api/account/service-groups) (PATCH)
- [`/service-groups`](https://developer.fastly.com/reference/api/account/service-groups) (POST)
- [`/service/{service_id}/lint`](https://developer.fastly.com/reference/api/vcl-services/vcl) (POST)
- [`/service/{service_id}/version/{version_id}/apex-redirects`](https://developer.fastly.com/reference/api/vcl-services/apex-redirect) (POST)
- [`/service/{service_id}/version/{version_id}/boilerplate`](https://developer.fastly.com/reference/api/vcl-services/vcl) (GET)
- [`/service/{service_id}/version/{version_id}/director/{director_name}`](https://developer.fastly.com/reference/api/load-balancing/directors/director) (PUT)
- [`/service/{service_id}/version/{version_id}/director`](https://developer.fastly.com/reference/api/load-balancing/directors/director) (POST)
- [`/service/{service_id}/version/{version_id}/generated_vcl/content`](https://developer.fastly.com/reference/api/vcl-services/vcl) (GET)
- [`/service/{service_id}/version/{version_id}/generated_vcl`](https://developer.fastly.com/reference/api/vcl-services/vcl) (GET)
- [`/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}`](https://developer.fastly.com/reference/api/logging/kafka) (PUT)
- [`/service/{service_id}/version/{version_id}/logging/kinesis/{logging_kinesis_name}`](https://developer.fastly.com/reference/api/logging/kinesis) (PUT)
- [`/service/{service_id}/version/{version_id}/package`](https://developer.fastly.com/reference/api/services/package) (PUT)
- [`/service/{service_id}/version/{version_id}/request_settings`](https://developer.fastly.com/reference/api/vcl-services/request-settings) (POST)
- [`/service/{service_id}/version/{version_id}/response_object/{response_object_name}`](https://developer.fastly.com/reference/api/vcl-services/response-object) (PUT)
- [`/service/{service_id}/version/{version_id}/response_object`](https://developer.fastly.com/reference/api/vcl-services/response-object) (POST)
- [`/service/{service_id}/version/{version_id}/snippet/{snippet_name}`](https://developer.fastly.com/reference/api/vcl-services/snippet) (PUT)
- [`/service/{service_id}/version/{version_id}/vcl/{vcl_name}/content`](https://developer.fastly.com/reference/api/vcl-services/vcl) (GET)
- [`/service/{service_id}/version/{version_id}/vcl/{vcl_name}/download`](https://developer.fastly.com/reference/api/vcl-services/vcl) (GET)
- [`/service/{service_id}/version/{version_id}/vcl/{vcl_name}/main`](https://developer.fastly.com/reference/api/vcl-services/vcl) (PUT)
- [`/service/{service_id}/version/{version_id}/vcl/{vcl_name}`](https://developer.fastly.com/reference/api/vcl-services/vcl) (DELETE, GET, PUT)
- [`/service/{service_id}/version/{version_id}/vcl`](https://developer.fastly.com/reference/api/vcl-services/vcl) (GET, POST)
- [`/service/{service_id}/version/{version_id}/wafs/{firewall_id}`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET, PATCH)
- [`/service/{service_id}/version/{version_id}/wafs`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET, POST)
- [`/service/{service_id}/wafs/{firewall_id}/owasp`](https://developer.fastly.com/reference/api/legacy-waf/owasp) (GET, PATCH, POST)
Expand Down Expand Up @@ -567,7 +572,6 @@ The fastly-rust API client currently does not support the following endpoints:
- [`/v1/origins/{service_id}/ts/h/limit/{max_entries}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/real-time) (GET)
- [`/v1/origins/{service_id}/ts/h`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/real-time) (GET)
- [`/v1/origins/{service_id}/ts/{start_timestamp}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/real-time) (GET)
- [`/vcl_lint`](https://developer.fastly.com/reference/api/vcl-services/vcl) (POST)
- [`/waf/firewalls/{firewall_id}/versions/{version_id}/active-rules`](https://developer.fastly.com/reference/api/waf/rules/active) (DELETE)
- [`/wafs/configuration_sets/{configuration_set_id}/relationships/wafs`](https://developer.fastly.com/reference/api/legacy-waf/configuration-set) (GET, PATCH)
- [`/wafs/configuration_sets`](https://developer.fastly.com/reference/api/legacy-waf/configuration-set) (GET)
Expand Down
13 changes: 13 additions & 0 deletions docs/Batch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Batch

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**title** | Option<**String**> | A descriptor for the response of the entire batch |
**_type** | Option<**String**> | If an error is present in any of the requests, this field will describe that error |
**errors** | Option<[**Vec&lt;crate::models::BatchErrors&gt;**](BatchErrors.md)> | Per-key errors which failed to parse, validate, or otherwise transmit |

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


14 changes: 14 additions & 0 deletions docs/BatchErrors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# BatchErrors

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**key** | Option<**String**> | The key that the error corresponds to. This field will be empty if the object or one of its fields was unable to be parsed. |
**index** | Option<**i32**> | The line number of the payload on which the error occurred (starting from 0 for the first line). |
**code** | Option<**String**> | The HTTP response code for the request, or a 400 if the request was not able to be completed. |
**reason** | Option<**String**> | A descriptor of this particular item's error. |

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


11 changes: 11 additions & 0 deletions docs/InlineObject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# InlineObject

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**vcl** | **String** | |

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


11 changes: 11 additions & 0 deletions docs/InlineObject1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# InlineObject1

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**vcl** | **String** | |

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


2 changes: 1 addition & 1 deletion docs/SchemasSnippetResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | Option<**String**> | The name for the snippet. |
**dynamic** | Option<**i32**> | Sets the snippet version. |
**dynamic** | Option<**String**> | Sets the snippet version. |
**_type** | Option<**String**> | The location in generated VCL where the snippet should be placed. |
**content** | Option<**String**> | The VCL code that specifies exactly what the snippet does. |
**priority** | Option<**String**> | Priority determines execution order. Lower numbers execute first. | [default to 100]
Expand Down
18 changes: 18 additions & 0 deletions docs/SchemasVclResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# SchemasVclResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**content** | Option<**String**> | The VCL code to be included. |
**main** | Option<**bool**> | Set to `true` when this is the main VCL, otherwise `false`. |
**name** | Option<**String**> | The name of this VCL. |
**service_id** | Option<**String**> | | [readonly]
**version** | Option<**i32**> | | [readonly]
**created_at** | Option<**String**> | Date and time in ISO 8601 format. | [readonly]
**deleted_at** | Option<**String**> | Date and time in ISO 8601 format. | [readonly]
**updated_at** | Option<**String**> | Date and time in ISO 8601 format. | [readonly]

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


2 changes: 1 addition & 1 deletion docs/ServiceVersionDetail.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Name | Type | Description | Notes
**response_objects** | Option<[**Vec&lt;crate::models::ResponseObjectResponse&gt;**](ResponseObjectResponse.md)> | List of response objects for this service. |
**settings** | Option<[**crate::models::VersionDetailSettings**](VersionDetailSettings.md)> | |
**snippets** | Option<[**Vec&lt;crate::models::SchemasSnippetResponse&gt;**](SchemasSnippetResponse.md)> | List of VCL snippets for this service. |
**vcls** | Option<[**Vec&lt;crate::models::VclResponse&gt;**](VclResponse.md)> | List of VCL files for this service. |
**vcls** | Option<[**Vec&lt;crate::models::SchemasVclResponse&gt;**](SchemasVclResponse.md)> | List of VCL files for this service. |
**wordpress** | Option<[**Vec&lt;serde_json::Value&gt;**](SerdeJsonValue.md)> | A list of Wordpress rules with this service. |

[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/ServiceVersionDetailOrNull.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Name | Type | Description | Notes
**response_objects** | Option<[**Vec&lt;crate::models::ResponseObjectResponse&gt;**](ResponseObjectResponse.md)> | List of response objects for this service. |
**settings** | Option<[**crate::models::VersionDetailSettings**](VersionDetailSettings.md)> | |
**snippets** | Option<[**Vec&lt;crate::models::SchemasSnippetResponse&gt;**](SchemasSnippetResponse.md)> | List of VCL snippets for this service. |
**vcls** | Option<[**Vec&lt;crate::models::VclResponse&gt;**](VclResponse.md)> | List of VCL files for this service. |
**vcls** | Option<[**Vec&lt;crate::models::SchemasVclResponse&gt;**](SchemasVclResponse.md)> | List of VCL files for this service. |
**wordpress** | Option<[**Vec&lt;serde_json::Value&gt;**](SerdeJsonValue.md)> | A list of Wordpress rules with this service. |

[[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/Snippet.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | Option<**String**> | The name for the snippet. |
**dynamic** | Option<**i32**> | Sets the snippet version. |
**dynamic** | Option<**String**> | Sets the snippet version. |
**_type** | Option<**String**> | The location in generated VCL where the snippet should be placed. |
**content** | Option<**String**> | The VCL code that specifies exactly what the snippet does. |
**priority** | Option<**String**> | Priority determines execution order. Lower numbers execute first. | [default to 100]
Expand Down
4 changes: 2 additions & 2 deletions docs/SnippetApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Name | Type | Description | Required | Notes
**service_id** | **String** | Alphanumeric string identifying the service. | [required] |
**version_id** | **i32** | Integer identifying a service version. | [required] |
**name** | Option\<**String**> | The name for the snippet. | |
**dynamic** | Option\<**i32**> | Sets the snippet version. | |
**dynamic** | Option\<**String**> | Sets the snippet version. | |
**_type** | Option\<**String**> | The location in generated VCL where the snippet should be placed. | |
**content** | Option\<**String**> | The VCL code that specifies exactly what the snippet does. | |
**priority** | Option\<**String**> | Priority determines execution order. Lower numbers execute first. | |[default to 100]
Expand Down Expand Up @@ -220,7 +220,7 @@ Name | Type | Description | Required | Notes
**service_id** | **String** | Alphanumeric string identifying the service. | [required] |
**snippet_id** | **String** | Alphanumeric string identifying a VCL Snippet. | [required] |
**name** | Option\<**String**> | The name for the snippet. | |
**dynamic** | Option\<**i32**> | Sets the snippet version. | |
**dynamic** | Option\<**String**> | Sets the snippet version. | |
**_type** | Option\<**String**> | The location in generated VCL where the snippet should be placed. | |
**content** | Option\<**String**> | The VCL code that specifies exactly what the snippet does. | |
**priority** | Option\<**String**> | Priority determines execution order. Lower numbers execute first. | |[default to 100]
Expand Down
2 changes: 1 addition & 1 deletion docs/SnippetResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | Option<**String**> | The name for the snippet. |
**dynamic** | Option<**i32**> | Sets the snippet version. |
**dynamic** | Option<**String**> | Sets the snippet version. |
**_type** | Option<**String**> | The location in generated VCL where the snippet should be placed. |
**content** | Option<**String**> | The VCL code that specifies exactly what the snippet does. |
**priority** | Option<**String**> | Priority determines execution order. Lower numbers execute first. | [default to 100]
Expand Down
10 changes: 10 additions & 0 deletions docs/TokensAdditionalProps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# TokensAdditionalProps

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

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


11 changes: 11 additions & 0 deletions docs/ValidatorResult.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ValidatorResult

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | Option<[**crate::models::ValidatorResultData**](ValidatorResultData.md)> | |

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


13 changes: 13 additions & 0 deletions docs/ValidatorResultData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ValidatorResultData

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | Option<**String**> | |
**_type** | Option<**String**> | |
**attributes** | Option<[**crate::models::ValidatorResultDataAttributes**](ValidatorResultDataAttributes.md)> | |

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


15 changes: 15 additions & 0 deletions docs/ValidatorResultDataAttributes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ValidatorResultDataAttributes

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**msg** | Option<**String**> | |
**status** | Option<**String**> | |
**errors** | Option<**Vec<String>**> | |
**warnings** | Option<**Vec<String>**> | |
**messages** | Option<[**Vec&lt;crate::models::ValidatorResultDataAttributesMessages&gt;**](ValidatorResultDataAttributesMessages.md)> | |

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


14 changes: 14 additions & 0 deletions docs/ValidatorResultDataAttributesMessages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ValidatorResultDataAttributesMessages

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_type** | **String** | |
**warning** | **bool** | |
**message** | **String** | |
**tokens** | [**Vec&lt;::std::collections::HashMap&lt;String, crate::models::TokensAdditionalProps&gt;&gt;**](Map.md) | |

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


Loading

0 comments on commit 8762cde

Please sign in to comment.