docs/VclApi.md in fastly-4.0.0.alpha4 vs docs/VclApi.md in fastly-4.0.0
- old
+ new
@@ -16,10 +16,12 @@
| [**get_custom_vcl_boilerplate**](VclApi.md#get_custom_vcl_boilerplate) | **GET** /service/{service_id}/version/{version_id}/boilerplate | Get boilerplate VCL |
| [**get_custom_vcl_generated**](VclApi.md#get_custom_vcl_generated) | **GET** /service/{service_id}/version/{version_id}/generated_vcl | Get the generated VCL for a service |
| [**get_custom_vcl_generated_highlighted**](VclApi.md#get_custom_vcl_generated_highlighted) | **GET** /service/{service_id}/version/{version_id}/generated_vcl/content | Get the generated VCL with syntax highlighting |
| [**get_custom_vcl_highlighted**](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 |
| [**get_custom_vcl_raw**](VclApi.md#get_custom_vcl_raw) | **GET** /service/{service_id}/version/{version_id}/vcl/{vcl_name}/download | Download a custom VCL file |
+| [**lint_vcl_default**](VclApi.md#lint_vcl_default) | **POST** /vcl_lint | Lint (validate) VCL using a default set of flags. |
+| [**lint_vcl_for_service**](VclApi.md#lint_vcl_for_service) | **POST** /service/{service_id}/lint | Lint (validate) VCL using flags set for the service. |
| [**list_custom_vcl**](VclApi.md#list_custom_vcl) | **GET** /service/{service_id}/version/{version_id}/vcl | List custom VCL files |
| [**set_custom_vcl_main**](VclApi.md#set_custom_vcl_main) | **PUT** /service/{service_id}/version/{version_id}/vcl/{vcl_name}/main | Set a custom VCL file as main |
| [**update_custom_vcl**](VclApi.md#update_custom_vcl) | **PUT** /service/{service_id}/version/{version_id}/vcl/{vcl_name} | Update a custom VCL file |
@@ -344,9 +346,85 @@
| **vcl_name** | **String** | The name of this VCL. | |
### Return type
**String**
+
+[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
+[[Back to README]](../../README.md)
+## `lint_vcl_default()`
+
+```ruby
+lint_vcl_default(opts): <ValidatorResult> # Lint (validate) VCL using a default set of flags.
+```
+
+This endpoint validates the submitted VCL against a default set of enabled flags. Consider using the `/service/{service_id}/lint` operation to validate VCL in the context of a specific service.
+
+### Examples
+
+```ruby
+api_instance = Fastly::VclApi.new
+opts = {
+ inline_object1: Fastly::InlineObject1.new({vcl: 'vcl_example'}), # InlineObject1 |
+}
+
+begin
+ # Lint (validate) VCL using a default set of flags.
+ result = api_instance.lint_vcl_default(opts)
+ p result
+rescue Fastly::ApiError => e
+ puts "Error when calling VclApi->lint_vcl_default: #{e}"
+end
+```
+
+### Options
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **inline_object1** | [**InlineObject1**](InlineObject1.md) | | |
+
+### Return type
+
+[**ValidatorResult**](ValidatorResult.md)
+
+[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
+[[Back to README]](../../README.md)
+## `lint_vcl_for_service()`
+
+```ruby
+lint_vcl_for_service(opts): <ValidatorResult> # Lint (validate) VCL using flags set for the service.
+```
+
+Services may have flags set by a Fastly employee or by the purchase of products as addons to the service, which modify the way VCL is interpreted by that service. This endpoint validates the submitted VCL in the context of the specified service.
+
+### Examples
+
+```ruby
+api_instance = Fastly::VclApi.new
+opts = {
+ service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
+ inline_object: Fastly::InlineObject.new({vcl: 'vcl_example'}), # InlineObject |
+}
+
+begin
+ # Lint (validate) VCL using flags set for the service.
+ result = api_instance.lint_vcl_for_service(opts)
+ p result
+rescue Fastly::ApiError => e
+ puts "Error when calling VclApi->lint_vcl_for_service: #{e}"
+end
+```
+
+### Options
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **service_id** | **String** | Alphanumeric string identifying the service. | |
+| **inline_object** | [**InlineObject**](InlineObject.md) | | |
+
+### Return type
+
+[**ValidatorResult**](ValidatorResult.md)
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to README]](../../README.md)
## `list_custom_vcl()`