fastly 9.0.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +42 -19
- data/Gemfile.lock +3 -3
- data/README.md +49 -42
- data/docs/AclsInComputeApi.md +2 -2
- data/docs/AiAcceleratorResponseBodyEnable.md +12 -0
- data/docs/AiAcceleratorResponseCustomer.md +10 -0
- data/docs/AiAcceleratorResponseCustomerCustomer.md +11 -0
- data/docs/AiAcceleratorResponseLinks.md +10 -0
- data/docs/AiAcceleratorResponseLinksLinks.md +10 -0
- data/docs/AiAcceleratorResponseProduct.md +10 -0
- data/docs/AiAcceleratorResponseProductProduct.md +11 -0
- data/docs/Backend.md +1 -1
- data/docs/BackendApi.md +4 -4
- data/docs/BackendResponse.md +1 -1
- data/docs/BillingUsageMetricsApi.md +8 -8
- data/docs/BotManagementResponseBodyEnable.md +12 -0
- data/docs/BotManagementResponseLinks.md +10 -0
- data/docs/BotManagementResponseLinksLinks.md +11 -0
- data/docs/BotManagementResponseProduct.md +10 -0
- data/docs/BotManagementResponseProductProduct.md +11 -0
- data/docs/BotManagementResponseService.md +10 -0
- data/docs/{EnabledProductResponseService.md → BotManagementResponseServiceService.md} +1 -1
- data/docs/BrotliCompressionResponseBodyEnable.md +12 -0
- data/docs/BrotliCompressionResponseLinks.md +10 -0
- data/docs/BrotliCompressionResponseLinksLinks.md +11 -0
- data/docs/BrotliCompressionResponseProduct.md +10 -0
- data/docs/BrotliCompressionResponseProductProduct.md +11 -0
- data/docs/BrotliCompressionResponseService.md +10 -0
- data/docs/ComputeAclList.md +11 -0
- data/docs/{ReadOnlyServiceId.md → ComputeAclListMeta.md} +2 -1
- data/docs/ComputeAclLookup.md +1 -2
- data/docs/{ReadOnlyVersion.md → DdosProtectionRequestUpdateConfiguration.md} +2 -1
- data/docs/DdosProtectionResponseConfiguration.md +10 -0
- data/docs/{Store.md → DdosProtectionResponseConfigurationConfiguration.md} +2 -2
- data/docs/DdosProtectionResponseConfigure.md +13 -0
- data/docs/DdosProtectionResponseEnable.md +12 -0
- data/docs/DdosProtectionResponseLinks.md +10 -0
- data/docs/DdosProtectionResponseLinksLinks.md +11 -0
- data/docs/DdosProtectionResponseProduct.md +10 -0
- data/docs/DdosProtectionResponseProductProduct.md +11 -0
- data/docs/DdosProtectionResponseService.md +10 -0
- data/docs/DomainInspectorMeasurements.md +2 -0
- data/docs/DomainInspectorResponseBodyEnable.md +12 -0
- data/docs/DomainInspectorResponseLinks.md +10 -0
- data/docs/DomainInspectorResponseLinksLinks.md +11 -0
- data/docs/DomainInspectorResponseProduct.md +10 -0
- data/docs/{InlineResponse2003Meta.md → DomainInspectorResponseProductProduct.md} +3 -3
- data/docs/DomainInspectorResponseService.md +10 -0
- data/docs/FanoutResponseBodyEnable.md +12 -0
- data/docs/FanoutResponseLinks.md +10 -0
- data/docs/{EnabledProductResponseLinks.md → FanoutResponseLinksLinks.md} +1 -1
- data/docs/FanoutResponseProduct.md +10 -0
- data/docs/{EnabledProductResponseProduct.md → FanoutResponseProductProduct.md} +1 -1
- data/docs/FanoutResponseService.md +10 -0
- data/docs/ImageOptimizerResponseBodyEnable.md +12 -0
- data/docs/ImageOptimizerResponseLinks.md +10 -0
- data/docs/ImageOptimizerResponseLinksLinks.md +11 -0
- data/docs/ImageOptimizerResponseProduct.md +10 -0
- data/docs/ImageOptimizerResponseProductProduct.md +11 -0
- data/docs/ImageOptimizerResponseService.md +10 -0
- data/docs/InlineResponse2003.md +2 -2
- data/docs/InlineResponse2004.md +1 -1
- data/docs/KvStoreApi.md +30 -30
- data/docs/{Batch.md → KvStoreBatchResponse.md} +2 -2
- data/docs/{BatchErrors.md → KvStoreBatchResponseErrors.md} +4 -4
- data/docs/{StoreResponse.md → KvStoreDetails.md} +2 -2
- data/docs/KvStoreItemApi.md +55 -52
- data/docs/KvStoreRequestCreate.md +10 -0
- data/docs/KvStoreUpsertBatch.md +14 -0
- data/docs/LogExplorerInsightsResponseBodyEnable.md +12 -0
- data/docs/LogExplorerInsightsResponseLinks.md +10 -0
- data/docs/LogExplorerInsightsResponseLinksLinks.md +11 -0
- data/docs/LogExplorerInsightsResponseProduct.md +10 -0
- data/docs/LogExplorerInsightsResponseProductProduct.md +11 -0
- data/docs/LogExplorerInsightsResponseService.md +10 -0
- data/docs/{LegacyWafTag.md → NgwafRequestEnable.md} +2 -2
- data/docs/NgwafRequestUpdateConfiguration.md +11 -0
- data/docs/NgwafResponseConfiguration.md +10 -0
- data/docs/{ConfiguredProductResponseConfiguration.md → NgwafResponseConfigurationConfiguration.md} +2 -2
- data/docs/NgwafResponseConfigure.md +13 -0
- data/docs/NgwafResponseEnable.md +12 -0
- data/docs/NgwafResponseLinks.md +10 -0
- data/docs/{ConfiguredProductResponseLinks.md → NgwafResponseLinksLinks.md} +1 -1
- data/docs/{InlineResponse2004Meta.md → NgwafResponseProduct.md} +2 -3
- data/docs/{ConfiguredProductResponseProduct.md → NgwafResponseProductProduct.md} +1 -1
- data/docs/NgwafResponseService.md +10 -0
- data/docs/ObjectStorageResponseBodyEnable.md +12 -0
- data/docs/ObjectStorageResponseCustomer.md +10 -0
- data/docs/ObjectStorageResponseLinks.md +10 -0
- data/docs/ObjectStorageResponseLinksLinks.md +10 -0
- data/docs/ObjectStorageResponseProduct.md +10 -0
- data/docs/ObjectStorageResponseProductProduct.md +11 -0
- data/docs/OriginInspectorMeasurements.md +4 -0
- data/docs/OriginInspectorResponseBodyEnable.md +12 -0
- data/docs/OriginInspectorResponseLinks.md +10 -0
- data/docs/OriginInspectorResponseLinksLinks.md +11 -0
- data/docs/OriginInspectorResponseProduct.md +10 -0
- data/docs/OriginInspectorResponseProductProduct.md +11 -0
- data/docs/OriginInspectorResponseService.md +10 -0
- data/docs/OriginInspectorValues.md +4 -0
- data/docs/ProductAiAcceleratorApi.md +115 -0
- data/docs/ProductBotManagementApi.md +130 -0
- data/docs/ProductBrotliCompressionApi.md +130 -0
- data/docs/ProductDdosProtectionApi.md +208 -0
- data/docs/ProductDomainInspectorApi.md +130 -0
- data/docs/ProductFanoutApi.md +130 -0
- data/docs/ProductImageOptimizerApi.md +130 -0
- data/docs/ProductLogExplorerInsightsApi.md +130 -0
- data/docs/ProductNgwafApi.md +210 -0
- data/docs/ProductObjectStorageApi.md +115 -0
- data/docs/ProductOriginInspectorApi.md +130 -0
- data/docs/ProductWebsocketsApi.md +130 -0
- data/docs/RealtimeEntryAggregated.md +18 -3
- data/docs/RealtimeMeasurements.md +18 -3
- data/docs/Results.md +18 -3
- data/docs/SnippetApi.md +15 -15
- data/docs/Values.md +2 -0
- data/docs/WebsocketsResponseBodyEnable.md +12 -0
- data/docs/WebsocketsResponseLinks.md +10 -0
- data/docs/WebsocketsResponseLinksLinks.md +11 -0
- data/docs/WebsocketsResponseProduct.md +10 -0
- data/docs/WebsocketsResponseProductProduct.md +11 -0
- data/docs/WebsocketsResponseService.md +10 -0
- data/lib/fastly/api/acls_in_compute_api.rb +3 -3
- data/lib/fastly/api/backend_api.rb +4 -4
- data/lib/fastly/api/billing_usage_metrics_api.rb +26 -26
- data/lib/fastly/api/kv_store_api.rb +53 -45
- data/lib/fastly/api/kv_store_item_api.rb +114 -102
- data/lib/fastly/api/product_ai_accelerator_api.rb +186 -0
- data/lib/fastly/api/product_bot_management_api.rb +207 -0
- data/lib/fastly/api/product_brotli_compression_api.rb +207 -0
- data/lib/fastly/api/product_ddos_protection_api.rb +340 -0
- data/lib/fastly/api/product_domain_inspector_api.rb +207 -0
- data/lib/fastly/api/product_fanout_api.rb +207 -0
- data/lib/fastly/api/product_image_optimizer_api.rb +207 -0
- data/lib/fastly/api/product_log_explorer_insights_api.rb +207 -0
- data/lib/fastly/api/product_ngwaf_api.rb +347 -0
- data/lib/fastly/api/product_object_storage_api.rb +186 -0
- data/lib/fastly/api/product_origin_inspector_api.rb +207 -0
- data/lib/fastly/api/product_websockets_api.rb +207 -0
- data/lib/fastly/api/snippet_api.rb +35 -35
- data/lib/fastly/configuration.rb +248 -206
- data/lib/fastly/models/{legacy_waf_rule_status.rb → ai_accelerator_response_body_enable.rb} +31 -25
- data/lib/fastly/models/ai_accelerator_response_customer.rb +216 -0
- data/lib/fastly/models/ai_accelerator_response_customer_customer.rb +227 -0
- data/lib/fastly/models/ai_accelerator_response_links.rb +216 -0
- data/lib/fastly/models/ai_accelerator_response_links_links.rb +217 -0
- data/lib/fastly/models/ai_accelerator_response_product.rb +216 -0
- data/lib/fastly/models/ai_accelerator_response_product_product.rb +227 -0
- data/lib/fastly/models/backend.rb +1 -1
- data/lib/fastly/models/backend_response.rb +1 -1
- data/lib/fastly/models/bot_management_response_body_enable.rb +243 -0
- data/lib/fastly/models/bot_management_response_links.rb +216 -0
- data/lib/fastly/models/bot_management_response_links_links.rb +227 -0
- data/lib/fastly/models/bot_management_response_product.rb +216 -0
- data/lib/fastly/models/bot_management_response_product_product.rb +227 -0
- data/lib/fastly/models/bot_management_response_service.rb +216 -0
- data/lib/fastly/models/{enabled_product_response_service.rb → bot_management_response_service_service.rb} +3 -3
- data/lib/fastly/models/brotli_compression_response_body_enable.rb +243 -0
- data/lib/fastly/models/brotli_compression_response_links.rb +216 -0
- data/lib/fastly/models/brotli_compression_response_links_links.rb +227 -0
- data/lib/fastly/models/brotli_compression_response_product.rb +216 -0
- data/lib/fastly/models/brotli_compression_response_product_product.rb +227 -0
- data/lib/fastly/models/brotli_compression_response_service.rb +216 -0
- data/lib/fastly/models/{inline_response2004_meta.rb → compute_acl_list.rb} +19 -16
- data/lib/fastly/models/compute_acl_list_meta.rb +218 -0
- data/lib/fastly/models/compute_acl_lookup.rb +2 -12
- data/lib/fastly/models/{set_configuration.rb → ddos_protection_request_update_configuration.rb} +43 -24
- data/lib/fastly/models/ddos_protection_response_configuration.rb +216 -0
- data/lib/fastly/models/ddos_protection_response_configuration_configuration.rb +217 -0
- data/lib/fastly/models/ddos_protection_response_configure.rb +253 -0
- data/lib/fastly/models/ddos_protection_response_enable.rb +243 -0
- data/lib/fastly/models/ddos_protection_response_links.rb +216 -0
- data/lib/fastly/models/ddos_protection_response_links_links.rb +227 -0
- data/lib/fastly/models/ddos_protection_response_product.rb +216 -0
- data/lib/fastly/models/ddos_protection_response_product_product.rb +227 -0
- data/lib/fastly/models/ddos_protection_response_service.rb +216 -0
- data/lib/fastly/models/domain_inspector_measurements.rb +21 -1
- data/lib/fastly/models/domain_inspector_response_body_enable.rb +243 -0
- data/lib/fastly/models/domain_inspector_response_links.rb +216 -0
- data/lib/fastly/models/domain_inspector_response_links_links.rb +227 -0
- data/lib/fastly/models/domain_inspector_response_product.rb +216 -0
- data/lib/fastly/models/domain_inspector_response_product_product.rb +227 -0
- data/lib/fastly/models/domain_inspector_response_service.rb +216 -0
- data/lib/fastly/models/fanout_response_body_enable.rb +243 -0
- data/lib/fastly/models/{store.rb → fanout_response_links.rb} +10 -11
- data/lib/fastly/models/{enabled_product_response_links.rb → fanout_response_links_links.rb} +3 -3
- data/lib/fastly/models/fanout_response_product.rb +216 -0
- data/lib/fastly/models/{enabled_product_response_product.rb → fanout_response_product_product.rb} +3 -3
- data/lib/fastly/models/fanout_response_service.rb +216 -0
- data/lib/fastly/models/image_optimizer_response_body_enable.rb +243 -0
- data/lib/fastly/models/image_optimizer_response_links.rb +216 -0
- data/lib/fastly/models/image_optimizer_response_links_links.rb +227 -0
- data/lib/fastly/models/image_optimizer_response_product.rb +216 -0
- data/lib/fastly/models/image_optimizer_response_product_product.rb +227 -0
- data/lib/fastly/models/image_optimizer_response_service.rb +216 -0
- data/lib/fastly/models/inline_response2003.rb +2 -2
- data/lib/fastly/models/inline_response2004.rb +1 -1
- data/lib/fastly/models/{batch.rb → kv_store_batch_response.rb} +5 -5
- data/lib/fastly/models/{batch_errors.rb → kv_store_batch_response_errors.rb} +6 -6
- data/lib/fastly/models/{store_response.rb → kv_store_details.rb} +4 -4
- data/lib/fastly/models/{legacy_waf_configuration_set.rb → kv_store_request_create.rb} +10 -15
- data/lib/fastly/models/{legacy_waf_update_status.rb → kv_store_upsert_batch.rb} +51 -49
- data/lib/fastly/models/log_explorer_insights_response_body_enable.rb +243 -0
- data/lib/fastly/models/log_explorer_insights_response_links.rb +216 -0
- data/lib/fastly/models/log_explorer_insights_response_links_links.rb +227 -0
- data/lib/fastly/models/log_explorer_insights_response_product.rb +216 -0
- data/lib/fastly/models/log_explorer_insights_response_product_product.rb +227 -0
- data/lib/fastly/models/log_explorer_insights_response_service.rb +216 -0
- data/lib/fastly/models/{set_workspace_id.rb → ngwaf_request_enable.rb} +9 -4
- data/lib/fastly/models/ngwaf_request_update_configuration.rb +227 -0
- data/lib/fastly/models/ngwaf_response_configuration.rb +216 -0
- data/lib/fastly/models/{configured_product_response_configuration.rb → ngwaf_response_configuration_configuration.rb} +4 -4
- data/lib/fastly/models/{configured_product_response.rb → ngwaf_response_configure.rb} +17 -7
- data/lib/fastly/models/{enabled_product_response.rb → ngwaf_response_enable.rb} +15 -6
- data/lib/fastly/models/{legacy_waf_tag.rb → ngwaf_response_links.rb} +10 -11
- data/lib/fastly/models/{configured_product_response_links.rb → ngwaf_response_links_links.rb} +3 -3
- data/lib/fastly/models/{read_only_version.rb → ngwaf_response_product.rb} +14 -5
- data/lib/fastly/models/ngwaf_response_product_product.rb +227 -0
- data/lib/fastly/models/ngwaf_response_service.rb +216 -0
- data/lib/fastly/models/object_storage_response_body_enable.rb +243 -0
- data/lib/fastly/models/object_storage_response_customer.rb +216 -0
- data/lib/fastly/models/object_storage_response_links.rb +216 -0
- data/lib/fastly/models/object_storage_response_links_links.rb +217 -0
- data/lib/fastly/models/object_storage_response_product.rb +216 -0
- data/lib/fastly/models/object_storage_response_product_product.rb +227 -0
- data/lib/fastly/models/origin_inspector_measurements.rb +41 -1
- data/lib/fastly/models/origin_inspector_response_body_enable.rb +243 -0
- data/lib/fastly/models/origin_inspector_response_links.rb +216 -0
- data/lib/fastly/models/origin_inspector_response_links_links.rb +227 -0
- data/lib/fastly/models/origin_inspector_response_product.rb +216 -0
- data/lib/fastly/models/origin_inspector_response_product_product.rb +227 -0
- data/lib/fastly/models/origin_inspector_response_service.rb +216 -0
- data/lib/fastly/models/origin_inspector_values.rb +41 -1
- data/lib/fastly/models/realtime_entry_aggregated.rb +169 -19
- data/lib/fastly/models/realtime_measurements.rb +169 -19
- data/lib/fastly/models/results.rb +169 -19
- data/lib/fastly/models/schemas_snippet_response.rb +1 -0
- data/lib/fastly/models/snippet.rb +1 -0
- data/lib/fastly/models/snippet_common.rb +1 -0
- data/lib/fastly/models/snippet_response.rb +1 -0
- data/lib/fastly/models/snippet_response_post.rb +1 -0
- data/lib/fastly/models/snippet_with_dynamic_number.rb +1 -0
- data/lib/fastly/models/values.rb +21 -1
- data/lib/fastly/models/websockets_response_body_enable.rb +243 -0
- data/lib/fastly/models/{read_only_service_id.rb → websockets_response_links.rb} +14 -5
- data/lib/fastly/models/websockets_response_links_links.rb +227 -0
- data/lib/fastly/models/websockets_response_product.rb +216 -0
- data/lib/fastly/models/{configured_product_response_product.rb → websockets_response_product_product.rb} +3 -3
- data/lib/fastly/models/websockets_response_service.rb +216 -0
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +102 -35
- data/sig.json +1 -1
- metadata +209 -75
- data/docs/ConfiguredProductResponse.md +0 -13
- data/docs/EnabledProductResponse.md +0 -12
- data/docs/EnabledProductsApi.md +0 -220
- data/docs/LegacyWafConfigurationSet.md +0 -11
- data/docs/LegacyWafConfigurationSetsApi.md +0 -128
- data/docs/LegacyWafFirewall.md +0 -18
- data/docs/LegacyWafFirewallApi.md +0 -355
- data/docs/LegacyWafOwasp.md +0 -38
- data/docs/LegacyWafOwaspApi.md +0 -141
- data/docs/LegacyWafRule.md +0 -14
- data/docs/LegacyWafRuleApi.md +0 -187
- data/docs/LegacyWafRuleStatus.md +0 -12
- data/docs/LegacyWafRuleStatusApi.md +0 -205
- data/docs/LegacyWafRuleset.md +0 -11
- data/docs/LegacyWafRulesetApi.md +0 -139
- data/docs/LegacyWafTagApi.md +0 -61
- data/docs/LegacyWafUpdateStatus.md +0 -15
- data/docs/LegacyWafUpdateStatusApi.md +0 -105
- data/docs/SetConfiguration.md +0 -12
- data/docs/SetWorkspaceId.md +0 -10
- data/lib/fastly/api/enabled_products_api.rb +0 -382
- data/lib/fastly/api/legacy_waf_configuration_sets_api.rb +0 -209
- data/lib/fastly/api/legacy_waf_firewall_api.rb +0 -627
- data/lib/fastly/api/legacy_waf_owasp_api.rb +0 -244
- data/lib/fastly/api/legacy_waf_rule_api.rb +0 -307
- data/lib/fastly/api/legacy_waf_rule_status_api.rb +0 -366
- data/lib/fastly/api/legacy_waf_ruleset_api.rb +0 -237
- data/lib/fastly/api/legacy_waf_tag_api.rb +0 -96
- data/lib/fastly/api/legacy_waf_update_status_api.rb +0 -184
- data/lib/fastly/models/inline_response2003_meta.rb +0 -228
- data/lib/fastly/models/legacy_waf_firewall.rb +0 -297
- data/lib/fastly/models/legacy_waf_owasp.rb +0 -527
- data/lib/fastly/models/legacy_waf_rule.rb +0 -257
- data/lib/fastly/models/legacy_waf_ruleset.rb +0 -227
data/docs/EnabledProductsApi.md
DELETED
@@ -1,220 +0,0 @@
|
|
1
|
-
# Fastly::EnabledProductsApi
|
2
|
-
|
3
|
-
|
4
|
-
```ruby
|
5
|
-
require 'fastly'
|
6
|
-
api_instance = Fastly::EnabledProductsApi.new
|
7
|
-
```
|
8
|
-
|
9
|
-
## Methods
|
10
|
-
|
11
|
-
> [!NOTE]
|
12
|
-
> All URIs are relative to `https://api.fastly.com`
|
13
|
-
|
14
|
-
Method | HTTP request | Description
|
15
|
-
------ | ------------ | -----------
|
16
|
-
[**disable_product**](EnabledProductsApi.md#disable_product) | **DELETE** /enabled-products/v1/{product_id}/services/{service_id} | Disable a product
|
17
|
-
[**enable_product**](EnabledProductsApi.md#enable_product) | **PUT** /enabled-products/v1/{product_id}/services/{service_id} | Enable a product
|
18
|
-
[**get_enabled_product**](EnabledProductsApi.md#get_enabled_product) | **GET** /enabled-products/v1/{product_id}/services/{service_id} | Get enabled product
|
19
|
-
[**get_product_configuration**](EnabledProductsApi.md#get_product_configuration) | **GET** /enabled-products/v1/{product_id}/services/{service_id}/configuration | Get configuration for a product
|
20
|
-
[**set_product_configuration**](EnabledProductsApi.md#set_product_configuration) | **PATCH** /enabled-products/v1/{product_id}/services/{service_id}/configuration | Update configuration for a product
|
21
|
-
|
22
|
-
|
23
|
-
## `disable_product()`
|
24
|
-
|
25
|
-
```ruby
|
26
|
-
disable_product(opts) # Disable a product
|
27
|
-
```
|
28
|
-
|
29
|
-
Disable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, `websockets`, `bot_management`, `ngwaf`, `ddos_protection`, and `log_explorer_insights`.
|
30
|
-
|
31
|
-
### Examples
|
32
|
-
|
33
|
-
```ruby
|
34
|
-
api_instance = Fastly::EnabledProductsApi.new
|
35
|
-
opts = {
|
36
|
-
product_id: 'ngwaf', # String |
|
37
|
-
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
38
|
-
}
|
39
|
-
|
40
|
-
begin
|
41
|
-
# Disable a product
|
42
|
-
api_instance.disable_product(opts)
|
43
|
-
rescue Fastly::ApiError => e
|
44
|
-
puts "Error when calling EnabledProductsApi->disable_product: #{e}"
|
45
|
-
end
|
46
|
-
```
|
47
|
-
|
48
|
-
### Options
|
49
|
-
|
50
|
-
| Name | Type | Description | Notes |
|
51
|
-
| ---- | ---- | ----------- | ----- |
|
52
|
-
| **product_id** | **String** | | |
|
53
|
-
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
54
|
-
|
55
|
-
### Return type
|
56
|
-
|
57
|
-
nil (empty response body)
|
58
|
-
|
59
|
-
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
60
|
-
[[Back to README]](../../README.md)
|
61
|
-
## `enable_product()`
|
62
|
-
|
63
|
-
```ruby
|
64
|
-
enable_product(opts): <EnabledProductResponse> # Enable a product
|
65
|
-
```
|
66
|
-
|
67
|
-
Enable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, `websockets`, `bot_management`, `ngwaf`, `ddos_protection`, and `log_explorer_insights`.
|
68
|
-
|
69
|
-
### Examples
|
70
|
-
|
71
|
-
```ruby
|
72
|
-
api_instance = Fastly::EnabledProductsApi.new
|
73
|
-
opts = {
|
74
|
-
product_id: 'ngwaf', # String |
|
75
|
-
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
76
|
-
set_workspace_id: Fastly::SetWorkspaceId.new, # SetWorkspaceId |
|
77
|
-
}
|
78
|
-
|
79
|
-
begin
|
80
|
-
# Enable a product
|
81
|
-
result = api_instance.enable_product(opts)
|
82
|
-
p result
|
83
|
-
rescue Fastly::ApiError => e
|
84
|
-
puts "Error when calling EnabledProductsApi->enable_product: #{e}"
|
85
|
-
end
|
86
|
-
```
|
87
|
-
|
88
|
-
### Options
|
89
|
-
|
90
|
-
| Name | Type | Description | Notes |
|
91
|
-
| ---- | ---- | ----------- | ----- |
|
92
|
-
| **product_id** | **String** | | |
|
93
|
-
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
94
|
-
| **set_workspace_id** | [**SetWorkspaceId**](SetWorkspaceId.md) | | [optional] |
|
95
|
-
|
96
|
-
### Return type
|
97
|
-
|
98
|
-
[**EnabledProductResponse**](EnabledProductResponse.md)
|
99
|
-
|
100
|
-
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
101
|
-
[[Back to README]](../../README.md)
|
102
|
-
## `get_enabled_product()`
|
103
|
-
|
104
|
-
```ruby
|
105
|
-
get_enabled_product(opts): <EnabledProductResponse> # Get enabled product
|
106
|
-
```
|
107
|
-
|
108
|
-
Get enabled product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, `websockets`, `bot_management`, `ngwaf`, `ddos_protection`, and `log_explorer_insights`.
|
109
|
-
|
110
|
-
### Examples
|
111
|
-
|
112
|
-
```ruby
|
113
|
-
api_instance = Fastly::EnabledProductsApi.new
|
114
|
-
opts = {
|
115
|
-
product_id: 'ngwaf', # String |
|
116
|
-
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
117
|
-
}
|
118
|
-
|
119
|
-
begin
|
120
|
-
# Get enabled product
|
121
|
-
result = api_instance.get_enabled_product(opts)
|
122
|
-
p result
|
123
|
-
rescue Fastly::ApiError => e
|
124
|
-
puts "Error when calling EnabledProductsApi->get_enabled_product: #{e}"
|
125
|
-
end
|
126
|
-
```
|
127
|
-
|
128
|
-
### Options
|
129
|
-
|
130
|
-
| Name | Type | Description | Notes |
|
131
|
-
| ---- | ---- | ----------- | ----- |
|
132
|
-
| **product_id** | **String** | | |
|
133
|
-
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
134
|
-
|
135
|
-
### Return type
|
136
|
-
|
137
|
-
[**EnabledProductResponse**](EnabledProductResponse.md)
|
138
|
-
|
139
|
-
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
140
|
-
[[Back to README]](../../README.md)
|
141
|
-
## `get_product_configuration()`
|
142
|
-
|
143
|
-
```ruby
|
144
|
-
get_product_configuration(opts): <ConfiguredProductResponse> # Get configuration for a product
|
145
|
-
```
|
146
|
-
|
147
|
-
Get configuration for an enabled product on a service. Supported product IDs: `ngwaf` and `ddos_protection`.
|
148
|
-
|
149
|
-
### Examples
|
150
|
-
|
151
|
-
```ruby
|
152
|
-
api_instance = Fastly::EnabledProductsApi.new
|
153
|
-
opts = {
|
154
|
-
product_id: 'ngwaf', # String |
|
155
|
-
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
156
|
-
}
|
157
|
-
|
158
|
-
begin
|
159
|
-
# Get configuration for a product
|
160
|
-
result = api_instance.get_product_configuration(opts)
|
161
|
-
p result
|
162
|
-
rescue Fastly::ApiError => e
|
163
|
-
puts "Error when calling EnabledProductsApi->get_product_configuration: #{e}"
|
164
|
-
end
|
165
|
-
```
|
166
|
-
|
167
|
-
### Options
|
168
|
-
|
169
|
-
| Name | Type | Description | Notes |
|
170
|
-
| ---- | ---- | ----------- | ----- |
|
171
|
-
| **product_id** | **String** | | |
|
172
|
-
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
173
|
-
|
174
|
-
### Return type
|
175
|
-
|
176
|
-
[**ConfiguredProductResponse**](ConfiguredProductResponse.md)
|
177
|
-
|
178
|
-
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
179
|
-
[[Back to README]](../../README.md)
|
180
|
-
## `set_product_configuration()`
|
181
|
-
|
182
|
-
```ruby
|
183
|
-
set_product_configuration(opts): <ConfiguredProductResponse> # Update configuration for a product
|
184
|
-
```
|
185
|
-
|
186
|
-
Update configuration for an enabled product on a service. Supported product IDs: `ngwaf` and `ddos_protection`.
|
187
|
-
|
188
|
-
### Examples
|
189
|
-
|
190
|
-
```ruby
|
191
|
-
api_instance = Fastly::EnabledProductsApi.new
|
192
|
-
opts = {
|
193
|
-
product_id: 'ngwaf', # String |
|
194
|
-
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
195
|
-
set_configuration: Fastly::SetConfiguration.new, # SetConfiguration |
|
196
|
-
}
|
197
|
-
|
198
|
-
begin
|
199
|
-
# Update configuration for a product
|
200
|
-
result = api_instance.set_product_configuration(opts)
|
201
|
-
p result
|
202
|
-
rescue Fastly::ApiError => e
|
203
|
-
puts "Error when calling EnabledProductsApi->set_product_configuration: #{e}"
|
204
|
-
end
|
205
|
-
```
|
206
|
-
|
207
|
-
### Options
|
208
|
-
|
209
|
-
| Name | Type | Description | Notes |
|
210
|
-
| ---- | ---- | ----------- | ----- |
|
211
|
-
| **product_id** | **String** | | |
|
212
|
-
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
213
|
-
| **set_configuration** | [**SetConfiguration**](SetConfiguration.md) | | [optional] |
|
214
|
-
|
215
|
-
### Return type
|
216
|
-
|
217
|
-
[**ConfiguredProductResponse**](ConfiguredProductResponse.md)
|
218
|
-
|
219
|
-
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
220
|
-
[[Back to README]](../../README.md)
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# Fastly::LegacyWafConfigurationSet
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **active** | **Boolean** | The active configuration set is the default configuration set when creating a new WAF. When Fastly adds configuration sets, the new versions become the default (active). | [optional] |
|
8
|
-
| **name** | **String** | The name of the configuration set. | [optional] |
|
9
|
-
|
10
|
-
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
11
|
-
|
@@ -1,128 +0,0 @@
|
|
1
|
-
# Fastly::LegacyWafConfigurationSetsApi
|
2
|
-
|
3
|
-
|
4
|
-
```ruby
|
5
|
-
require 'fastly'
|
6
|
-
api_instance = Fastly::LegacyWafConfigurationSetsApi.new
|
7
|
-
```
|
8
|
-
|
9
|
-
## Methods
|
10
|
-
|
11
|
-
> [!NOTE]
|
12
|
-
> All URIs are relative to `https://api.fastly.com`
|
13
|
-
|
14
|
-
Method | HTTP request | Description
|
15
|
-
------ | ------------ | -----------
|
16
|
-
[**list_waf_config_sets**](LegacyWafConfigurationSetsApi.md#list_waf_config_sets) | **GET** /wafs/configuration_sets | List configuration sets
|
17
|
-
[**list_wafs_config_set**](LegacyWafConfigurationSetsApi.md#list_wafs_config_set) | **GET** /wafs/configuration_sets/{configuration_set_id}/relationships/wafs | List WAFs currently using a configuration set
|
18
|
-
[**use_waf_config_set**](LegacyWafConfigurationSetsApi.md#use_waf_config_set) | **PATCH** /wafs/configuration_sets/{configuration_set_id}/relationships/wafs | Apply a configuration set to a WAF
|
19
|
-
|
20
|
-
|
21
|
-
## `list_waf_config_sets()`
|
22
|
-
|
23
|
-
```ruby
|
24
|
-
list_waf_config_sets: Object # List configuration sets
|
25
|
-
```
|
26
|
-
|
27
|
-
List all Configuration sets.
|
28
|
-
|
29
|
-
### Examples
|
30
|
-
|
31
|
-
```ruby
|
32
|
-
api_instance = Fastly::LegacyWafConfigurationSetsApi.new
|
33
|
-
|
34
|
-
begin
|
35
|
-
# List configuration sets
|
36
|
-
result = api_instance.list_waf_config_sets
|
37
|
-
p result
|
38
|
-
rescue Fastly::ApiError => e
|
39
|
-
puts "Error when calling LegacyWafConfigurationSetsApi->list_waf_config_sets: #{e}"
|
40
|
-
end
|
41
|
-
```
|
42
|
-
|
43
|
-
### Options
|
44
|
-
|
45
|
-
This endpoint does not need any parameter.
|
46
|
-
|
47
|
-
### Return type
|
48
|
-
|
49
|
-
**Object**
|
50
|
-
|
51
|
-
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
52
|
-
[[Back to README]](../../README.md)
|
53
|
-
## `list_wafs_config_set()`
|
54
|
-
|
55
|
-
```ruby
|
56
|
-
list_wafs_config_set(opts): Object # List WAFs currently using a configuration set
|
57
|
-
```
|
58
|
-
|
59
|
-
List the WAF objects currently using the specified configuration set.
|
60
|
-
|
61
|
-
### Examples
|
62
|
-
|
63
|
-
```ruby
|
64
|
-
api_instance = Fastly::LegacyWafConfigurationSetsApi.new
|
65
|
-
opts = {
|
66
|
-
configuration_set_id: 'configuration_set_id_example', # String | Alphanumeric string identifying a WAF configuration set.
|
67
|
-
}
|
68
|
-
|
69
|
-
begin
|
70
|
-
# List WAFs currently using a configuration set
|
71
|
-
result = api_instance.list_wafs_config_set(opts)
|
72
|
-
p result
|
73
|
-
rescue Fastly::ApiError => e
|
74
|
-
puts "Error when calling LegacyWafConfigurationSetsApi->list_wafs_config_set: #{e}"
|
75
|
-
end
|
76
|
-
```
|
77
|
-
|
78
|
-
### Options
|
79
|
-
|
80
|
-
| Name | Type | Description | Notes |
|
81
|
-
| ---- | ---- | ----------- | ----- |
|
82
|
-
| **configuration_set_id** | **String** | Alphanumeric string identifying a WAF configuration set. | |
|
83
|
-
|
84
|
-
### Return type
|
85
|
-
|
86
|
-
**Object**
|
87
|
-
|
88
|
-
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
89
|
-
[[Back to README]](../../README.md)
|
90
|
-
## `use_waf_config_set()`
|
91
|
-
|
92
|
-
```ruby
|
93
|
-
use_waf_config_set(opts): Object # Apply a configuration set to a WAF
|
94
|
-
```
|
95
|
-
|
96
|
-
Update one or more WAF objects to use the specified configuration set.
|
97
|
-
|
98
|
-
### Examples
|
99
|
-
|
100
|
-
```ruby
|
101
|
-
api_instance = Fastly::LegacyWafConfigurationSetsApi.new
|
102
|
-
opts = {
|
103
|
-
configuration_set_id: 'configuration_set_id_example', # String | Alphanumeric string identifying a WAF configuration set.
|
104
|
-
request_body: { key: 3.56}, # Hash<String, Object> |
|
105
|
-
}
|
106
|
-
|
107
|
-
begin
|
108
|
-
# Apply a configuration set to a WAF
|
109
|
-
result = api_instance.use_waf_config_set(opts)
|
110
|
-
p result
|
111
|
-
rescue Fastly::ApiError => e
|
112
|
-
puts "Error when calling LegacyWafConfigurationSetsApi->use_waf_config_set: #{e}"
|
113
|
-
end
|
114
|
-
```
|
115
|
-
|
116
|
-
### Options
|
117
|
-
|
118
|
-
| Name | Type | Description | Notes |
|
119
|
-
| ---- | ---- | ----------- | ----- |
|
120
|
-
| **configuration_set_id** | **String** | Alphanumeric string identifying a WAF configuration set. | |
|
121
|
-
| **request_body** | [**Hash<String, Object>**](Object.md) | | [optional] |
|
122
|
-
|
123
|
-
### Return type
|
124
|
-
|
125
|
-
**Object**
|
126
|
-
|
127
|
-
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
128
|
-
[[Back to README]](../../README.md)
|
data/docs/LegacyWafFirewall.md
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# Fastly::LegacyWafFirewall
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **last_push** | **String** | Date and time that VCL was last pushed to cache nodes. | [optional] |
|
8
|
-
| **prefetch_condition** | **String** | Name of the corresponding condition object. | [optional] |
|
9
|
-
| **response** | **String** | Name of the corresponding response object. | [optional] |
|
10
|
-
| **version** | [**ReadOnlyVersion**](ReadOnlyVersion.md) | | [optional] |
|
11
|
-
| **service_id** | [**ReadOnlyServiceId**](ReadOnlyServiceId.md) | | [optional] |
|
12
|
-
| **disabled** | **Boolean** | The status of the firewall. | [optional][default to false] |
|
13
|
-
| **rule_statuses_log_count** | **Integer** | The number of rule statuses set to log. | [optional] |
|
14
|
-
| **rule_statuses_block_count** | **Integer** | The number of rule statuses set to block. | [optional] |
|
15
|
-
| **rule_statuses_disabled_count** | **Integer** | The number of rule statuses set to disabled. | [optional] |
|
16
|
-
|
17
|
-
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
18
|
-
|