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
@@ -1,105 +0,0 @@
|
|
1
|
-
# Fastly::LegacyWafUpdateStatusApi
|
2
|
-
|
3
|
-
|
4
|
-
```ruby
|
5
|
-
require 'fastly'
|
6
|
-
api_instance = Fastly::LegacyWafUpdateStatusApi.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
|
-
[**get_waf_update_status**](LegacyWafUpdateStatusApi.md#get_waf_update_status) | **GET** /service/{service_id}/wafs/{firewall_id}/update_statuses/{update_status_id} | Get the status of a WAF update
|
17
|
-
[**list_waf_update_statuses**](LegacyWafUpdateStatusApi.md#list_waf_update_statuses) | **GET** /service/{service_id}/wafs/{firewall_id}/update_statuses | List update statuses
|
18
|
-
|
19
|
-
|
20
|
-
## `get_waf_update_status()`
|
21
|
-
|
22
|
-
```ruby
|
23
|
-
get_waf_update_status(opts): Object # Get the status of a WAF update
|
24
|
-
```
|
25
|
-
|
26
|
-
Get a specific update status object for a particular service and firewall object.
|
27
|
-
|
28
|
-
### Examples
|
29
|
-
|
30
|
-
```ruby
|
31
|
-
api_instance = Fastly::LegacyWafUpdateStatusApi.new
|
32
|
-
opts = {
|
33
|
-
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
34
|
-
firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
|
35
|
-
update_status_id: 'update_status_id_example', # String | Alphanumeric string identifying a WAF update status.
|
36
|
-
}
|
37
|
-
|
38
|
-
begin
|
39
|
-
# Get the status of a WAF update
|
40
|
-
result = api_instance.get_waf_update_status(opts)
|
41
|
-
p result
|
42
|
-
rescue Fastly::ApiError => e
|
43
|
-
puts "Error when calling LegacyWafUpdateStatusApi->get_waf_update_status: #{e}"
|
44
|
-
end
|
45
|
-
```
|
46
|
-
|
47
|
-
### Options
|
48
|
-
|
49
|
-
| Name | Type | Description | Notes |
|
50
|
-
| ---- | ---- | ----------- | ----- |
|
51
|
-
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
52
|
-
| **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
|
53
|
-
| **update_status_id** | **String** | Alphanumeric string identifying a WAF update status. | |
|
54
|
-
|
55
|
-
### Return type
|
56
|
-
|
57
|
-
**Object**
|
58
|
-
|
59
|
-
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
60
|
-
[[Back to README]](../../README.md)
|
61
|
-
## `list_waf_update_statuses()`
|
62
|
-
|
63
|
-
```ruby
|
64
|
-
list_waf_update_statuses(opts): Object # List update statuses
|
65
|
-
```
|
66
|
-
|
67
|
-
List all update statuses for a particular service and firewall object.
|
68
|
-
|
69
|
-
### Examples
|
70
|
-
|
71
|
-
```ruby
|
72
|
-
api_instance = Fastly::LegacyWafUpdateStatusApi.new
|
73
|
-
opts = {
|
74
|
-
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
75
|
-
firewall_id: 'firewall_id_example', # String | Alphanumeric string identifying a Firewall.
|
76
|
-
page_number: 1, # Integer | Current page.
|
77
|
-
page_size: 20, # Integer | Number of records per page.
|
78
|
-
include: 'waf', # String | Include relationships. Optional, comma separated values. Permitted values: `waf`.
|
79
|
-
}
|
80
|
-
|
81
|
-
begin
|
82
|
-
# List update statuses
|
83
|
-
result = api_instance.list_waf_update_statuses(opts)
|
84
|
-
p result
|
85
|
-
rescue Fastly::ApiError => e
|
86
|
-
puts "Error when calling LegacyWafUpdateStatusApi->list_waf_update_statuses: #{e}"
|
87
|
-
end
|
88
|
-
```
|
89
|
-
|
90
|
-
### Options
|
91
|
-
|
92
|
-
| Name | Type | Description | Notes |
|
93
|
-
| ---- | ---- | ----------- | ----- |
|
94
|
-
| **page_number** | **Integer** | Current page. | [optional] |
|
95
|
-
| **page_size** | **Integer** | Number of records per page. | [optional][default to 20] |
|
96
|
-
| **include** | **String** | Include relationships. Optional, comma separated values. Permitted values: `waf`. | [optional] |
|
97
|
-
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
98
|
-
| **firewall_id** | **String** | Alphanumeric string identifying a Firewall. | |
|
99
|
-
|
100
|
-
### Return type
|
101
|
-
|
102
|
-
**Object**
|
103
|
-
|
104
|
-
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
105
|
-
[[Back to README]](../../README.md)
|
data/docs/SetConfiguration.md
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# Fastly::SetConfiguration
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **workspace_id** | **String** | The new workspace_id. Required in the `PUT` request body when `product_id` is `ngwaf`. Optional in the `PATCH` request body for `ngwaf`. | [optional] |
|
8
|
-
| **traffic_ramp** | **String** | The new traffic ramp. Optional in the `PATCH` request body for `ngwaf`. | [optional] |
|
9
|
-
| **mode** | **String** | The new mode to run the product in. One of `block`, `log`, or `off`. Optional in the `PATCH` request body for `ddos_protection`. | [optional] |
|
10
|
-
|
11
|
-
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
12
|
-
|
data/docs/SetWorkspaceId.md
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# Fastly::SetWorkspaceId
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **workspace_id** | **String** | The workspace to link with the Next-Gen WAF product. Note this body is only supported and required when `product_id` is `ngwaf` | [optional] |
|
8
|
-
|
9
|
-
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
10
|
-
|
@@ -1,382 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Fastly API
|
3
|
-
|
4
|
-
#Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.0.0
|
7
|
-
Contact: oss@fastly.com
|
8
|
-
|
9
|
-
=end
|
10
|
-
|
11
|
-
require 'cgi'
|
12
|
-
|
13
|
-
module Fastly
|
14
|
-
class EnabledProductsApi
|
15
|
-
attr_accessor :api_client
|
16
|
-
|
17
|
-
def initialize(api_client = ApiClient.default)
|
18
|
-
@api_client = api_client
|
19
|
-
end
|
20
|
-
# Disable a product
|
21
|
-
# 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`.
|
22
|
-
# @option opts [String] :product_id (required)
|
23
|
-
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
24
|
-
# @return [nil]
|
25
|
-
def disable_product(opts = {})
|
26
|
-
disable_product_with_http_info(opts)
|
27
|
-
nil
|
28
|
-
end
|
29
|
-
|
30
|
-
# Disable a product
|
31
|
-
# 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`.
|
32
|
-
# @option opts [String] :product_id (required)
|
33
|
-
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
34
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
35
|
-
def disable_product_with_http_info(opts = {})
|
36
|
-
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API: EnabledProductsApi.disable_product ...'
|
38
|
-
end
|
39
|
-
# unbox the parameters from the hash
|
40
|
-
product_id = opts[:'product_id']
|
41
|
-
service_id = opts[:'service_id']
|
42
|
-
# verify the required parameter 'product_id' is set
|
43
|
-
if @api_client.config.client_side_validation && product_id.nil?
|
44
|
-
fail ArgumentError, "Missing the required parameter 'product_id' when calling EnabledProductsApi.disable_product"
|
45
|
-
end
|
46
|
-
# verify the required parameter 'service_id' is set
|
47
|
-
if @api_client.config.client_side_validation && service_id.nil?
|
48
|
-
fail ArgumentError, "Missing the required parameter 'service_id' when calling EnabledProductsApi.disable_product"
|
49
|
-
end
|
50
|
-
# resource path
|
51
|
-
local_var_path = '/enabled-products/v1/{product_id}/services/{service_id}'.sub('{' + 'product_id' + '}', CGI.escape(product_id.to_s)).sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
52
|
-
|
53
|
-
# query parameters
|
54
|
-
query_params = opts[:query_params] || {}
|
55
|
-
|
56
|
-
# header parameters
|
57
|
-
header_params = opts[:header_params] || {}
|
58
|
-
|
59
|
-
# form parameters
|
60
|
-
form_params = opts[:form_params] || {}
|
61
|
-
|
62
|
-
# http body (model)
|
63
|
-
post_body = opts[:debug_body]
|
64
|
-
|
65
|
-
# return_type
|
66
|
-
return_type = opts[:debug_return_type]
|
67
|
-
|
68
|
-
# auth_names
|
69
|
-
auth_names = opts[:debug_auth_names] || ['token']
|
70
|
-
|
71
|
-
new_options = opts.merge(
|
72
|
-
:operation => :"EnabledProductsApi.disable_product",
|
73
|
-
:header_params => header_params,
|
74
|
-
:query_params => query_params,
|
75
|
-
:form_params => form_params,
|
76
|
-
:body => post_body,
|
77
|
-
:auth_names => auth_names,
|
78
|
-
:return_type => return_type
|
79
|
-
)
|
80
|
-
|
81
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
82
|
-
if @api_client.config.debugging
|
83
|
-
@api_client.config.logger.debug "API called: EnabledProductsApi#disable_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
|
-
end
|
85
|
-
return data, status_code, headers
|
86
|
-
end
|
87
|
-
|
88
|
-
# Enable a product
|
89
|
-
# 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`.
|
90
|
-
# @option opts [String] :product_id (required)
|
91
|
-
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
92
|
-
# @option opts [SetWorkspaceId] :set_workspace_id
|
93
|
-
# @return [EnabledProductResponse]
|
94
|
-
def enable_product(opts = {})
|
95
|
-
data, _status_code, _headers = enable_product_with_http_info(opts)
|
96
|
-
data
|
97
|
-
end
|
98
|
-
|
99
|
-
# Enable a product
|
100
|
-
# 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`.
|
101
|
-
# @option opts [String] :product_id (required)
|
102
|
-
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
103
|
-
# @option opts [SetWorkspaceId] :set_workspace_id
|
104
|
-
# @return [Array<(EnabledProductResponse, Integer, Hash)>] EnabledProductResponse data, response status code and response headers
|
105
|
-
def enable_product_with_http_info(opts = {})
|
106
|
-
if @api_client.config.debugging
|
107
|
-
@api_client.config.logger.debug 'Calling API: EnabledProductsApi.enable_product ...'
|
108
|
-
end
|
109
|
-
# unbox the parameters from the hash
|
110
|
-
product_id = opts[:'product_id']
|
111
|
-
service_id = opts[:'service_id']
|
112
|
-
# verify the required parameter 'product_id' is set
|
113
|
-
if @api_client.config.client_side_validation && product_id.nil?
|
114
|
-
fail ArgumentError, "Missing the required parameter 'product_id' when calling EnabledProductsApi.enable_product"
|
115
|
-
end
|
116
|
-
# verify the required parameter 'service_id' is set
|
117
|
-
if @api_client.config.client_side_validation && service_id.nil?
|
118
|
-
fail ArgumentError, "Missing the required parameter 'service_id' when calling EnabledProductsApi.enable_product"
|
119
|
-
end
|
120
|
-
# resource path
|
121
|
-
local_var_path = '/enabled-products/v1/{product_id}/services/{service_id}'.sub('{' + 'product_id' + '}', CGI.escape(product_id.to_s)).sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
122
|
-
|
123
|
-
# query parameters
|
124
|
-
query_params = opts[:query_params] || {}
|
125
|
-
|
126
|
-
# header parameters
|
127
|
-
header_params = opts[:header_params] || {}
|
128
|
-
# HTTP header 'Accept' (if needed)
|
129
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
130
|
-
# HTTP header 'Content-Type'
|
131
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
132
|
-
if !content_type.nil?
|
133
|
-
header_params['Content-Type'] = content_type
|
134
|
-
end
|
135
|
-
|
136
|
-
# form parameters
|
137
|
-
form_params = opts[:form_params] || {}
|
138
|
-
|
139
|
-
# http body (model)
|
140
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'set_workspace_id'])
|
141
|
-
|
142
|
-
# return_type
|
143
|
-
return_type = opts[:debug_return_type] || 'EnabledProductResponse'
|
144
|
-
|
145
|
-
# auth_names
|
146
|
-
auth_names = opts[:debug_auth_names] || ['token']
|
147
|
-
|
148
|
-
new_options = opts.merge(
|
149
|
-
:operation => :"EnabledProductsApi.enable_product",
|
150
|
-
:header_params => header_params,
|
151
|
-
:query_params => query_params,
|
152
|
-
:form_params => form_params,
|
153
|
-
:body => post_body,
|
154
|
-
:auth_names => auth_names,
|
155
|
-
:return_type => return_type
|
156
|
-
)
|
157
|
-
|
158
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
159
|
-
if @api_client.config.debugging
|
160
|
-
@api_client.config.logger.debug "API called: EnabledProductsApi#enable_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
161
|
-
end
|
162
|
-
return data, status_code, headers
|
163
|
-
end
|
164
|
-
|
165
|
-
# Get enabled product
|
166
|
-
# 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`.
|
167
|
-
# @option opts [String] :product_id (required)
|
168
|
-
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
169
|
-
# @return [EnabledProductResponse]
|
170
|
-
def get_enabled_product(opts = {})
|
171
|
-
data, _status_code, _headers = get_enabled_product_with_http_info(opts)
|
172
|
-
data
|
173
|
-
end
|
174
|
-
|
175
|
-
# Get enabled product
|
176
|
-
# 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`.
|
177
|
-
# @option opts [String] :product_id (required)
|
178
|
-
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
179
|
-
# @return [Array<(EnabledProductResponse, Integer, Hash)>] EnabledProductResponse data, response status code and response headers
|
180
|
-
def get_enabled_product_with_http_info(opts = {})
|
181
|
-
if @api_client.config.debugging
|
182
|
-
@api_client.config.logger.debug 'Calling API: EnabledProductsApi.get_enabled_product ...'
|
183
|
-
end
|
184
|
-
# unbox the parameters from the hash
|
185
|
-
product_id = opts[:'product_id']
|
186
|
-
service_id = opts[:'service_id']
|
187
|
-
# verify the required parameter 'product_id' is set
|
188
|
-
if @api_client.config.client_side_validation && product_id.nil?
|
189
|
-
fail ArgumentError, "Missing the required parameter 'product_id' when calling EnabledProductsApi.get_enabled_product"
|
190
|
-
end
|
191
|
-
# verify the required parameter 'service_id' is set
|
192
|
-
if @api_client.config.client_side_validation && service_id.nil?
|
193
|
-
fail ArgumentError, "Missing the required parameter 'service_id' when calling EnabledProductsApi.get_enabled_product"
|
194
|
-
end
|
195
|
-
# resource path
|
196
|
-
local_var_path = '/enabled-products/v1/{product_id}/services/{service_id}'.sub('{' + 'product_id' + '}', CGI.escape(product_id.to_s)).sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
197
|
-
|
198
|
-
# query parameters
|
199
|
-
query_params = opts[:query_params] || {}
|
200
|
-
|
201
|
-
# header parameters
|
202
|
-
header_params = opts[:header_params] || {}
|
203
|
-
# HTTP header 'Accept' (if needed)
|
204
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
205
|
-
|
206
|
-
# form parameters
|
207
|
-
form_params = opts[:form_params] || {}
|
208
|
-
|
209
|
-
# http body (model)
|
210
|
-
post_body = opts[:debug_body]
|
211
|
-
|
212
|
-
# return_type
|
213
|
-
return_type = opts[:debug_return_type] || 'EnabledProductResponse'
|
214
|
-
|
215
|
-
# auth_names
|
216
|
-
auth_names = opts[:debug_auth_names] || ['token']
|
217
|
-
|
218
|
-
new_options = opts.merge(
|
219
|
-
:operation => :"EnabledProductsApi.get_enabled_product",
|
220
|
-
:header_params => header_params,
|
221
|
-
:query_params => query_params,
|
222
|
-
:form_params => form_params,
|
223
|
-
:body => post_body,
|
224
|
-
:auth_names => auth_names,
|
225
|
-
:return_type => return_type
|
226
|
-
)
|
227
|
-
|
228
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
229
|
-
if @api_client.config.debugging
|
230
|
-
@api_client.config.logger.debug "API called: EnabledProductsApi#get_enabled_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
231
|
-
end
|
232
|
-
return data, status_code, headers
|
233
|
-
end
|
234
|
-
|
235
|
-
# Get configuration for a product
|
236
|
-
# Get configuration for an enabled product on a service. Supported product IDs: `ngwaf` and `ddos_protection`.
|
237
|
-
# @option opts [String] :product_id (required)
|
238
|
-
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
239
|
-
# @return [ConfiguredProductResponse]
|
240
|
-
def get_product_configuration(opts = {})
|
241
|
-
data, _status_code, _headers = get_product_configuration_with_http_info(opts)
|
242
|
-
data
|
243
|
-
end
|
244
|
-
|
245
|
-
# Get configuration for a product
|
246
|
-
# Get configuration for an enabled product on a service. Supported product IDs: `ngwaf` and `ddos_protection`.
|
247
|
-
# @option opts [String] :product_id (required)
|
248
|
-
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
249
|
-
# @return [Array<(ConfiguredProductResponse, Integer, Hash)>] ConfiguredProductResponse data, response status code and response headers
|
250
|
-
def get_product_configuration_with_http_info(opts = {})
|
251
|
-
if @api_client.config.debugging
|
252
|
-
@api_client.config.logger.debug 'Calling API: EnabledProductsApi.get_product_configuration ...'
|
253
|
-
end
|
254
|
-
# unbox the parameters from the hash
|
255
|
-
product_id = opts[:'product_id']
|
256
|
-
service_id = opts[:'service_id']
|
257
|
-
# verify the required parameter 'product_id' is set
|
258
|
-
if @api_client.config.client_side_validation && product_id.nil?
|
259
|
-
fail ArgumentError, "Missing the required parameter 'product_id' when calling EnabledProductsApi.get_product_configuration"
|
260
|
-
end
|
261
|
-
# verify the required parameter 'service_id' is set
|
262
|
-
if @api_client.config.client_side_validation && service_id.nil?
|
263
|
-
fail ArgumentError, "Missing the required parameter 'service_id' when calling EnabledProductsApi.get_product_configuration"
|
264
|
-
end
|
265
|
-
# resource path
|
266
|
-
local_var_path = '/enabled-products/v1/{product_id}/services/{service_id}/configuration'.sub('{' + 'product_id' + '}', CGI.escape(product_id.to_s)).sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
267
|
-
|
268
|
-
# query parameters
|
269
|
-
query_params = opts[:query_params] || {}
|
270
|
-
|
271
|
-
# header parameters
|
272
|
-
header_params = opts[:header_params] || {}
|
273
|
-
# HTTP header 'Accept' (if needed)
|
274
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
275
|
-
|
276
|
-
# form parameters
|
277
|
-
form_params = opts[:form_params] || {}
|
278
|
-
|
279
|
-
# http body (model)
|
280
|
-
post_body = opts[:debug_body]
|
281
|
-
|
282
|
-
# return_type
|
283
|
-
return_type = opts[:debug_return_type] || 'ConfiguredProductResponse'
|
284
|
-
|
285
|
-
# auth_names
|
286
|
-
auth_names = opts[:debug_auth_names] || ['token']
|
287
|
-
|
288
|
-
new_options = opts.merge(
|
289
|
-
:operation => :"EnabledProductsApi.get_product_configuration",
|
290
|
-
:header_params => header_params,
|
291
|
-
:query_params => query_params,
|
292
|
-
:form_params => form_params,
|
293
|
-
:body => post_body,
|
294
|
-
:auth_names => auth_names,
|
295
|
-
:return_type => return_type
|
296
|
-
)
|
297
|
-
|
298
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
299
|
-
if @api_client.config.debugging
|
300
|
-
@api_client.config.logger.debug "API called: EnabledProductsApi#get_product_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
301
|
-
end
|
302
|
-
return data, status_code, headers
|
303
|
-
end
|
304
|
-
|
305
|
-
# Update configuration for a product
|
306
|
-
# Update configuration for an enabled product on a service. Supported product IDs: `ngwaf` and `ddos_protection`.
|
307
|
-
# @option opts [String] :product_id (required)
|
308
|
-
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
309
|
-
# @option opts [SetConfiguration] :set_configuration
|
310
|
-
# @return [ConfiguredProductResponse]
|
311
|
-
def set_product_configuration(opts = {})
|
312
|
-
data, _status_code, _headers = set_product_configuration_with_http_info(opts)
|
313
|
-
data
|
314
|
-
end
|
315
|
-
|
316
|
-
# Update configuration for a product
|
317
|
-
# Update configuration for an enabled product on a service. Supported product IDs: `ngwaf` and `ddos_protection`.
|
318
|
-
# @option opts [String] :product_id (required)
|
319
|
-
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
320
|
-
# @option opts [SetConfiguration] :set_configuration
|
321
|
-
# @return [Array<(ConfiguredProductResponse, Integer, Hash)>] ConfiguredProductResponse data, response status code and response headers
|
322
|
-
def set_product_configuration_with_http_info(opts = {})
|
323
|
-
if @api_client.config.debugging
|
324
|
-
@api_client.config.logger.debug 'Calling API: EnabledProductsApi.set_product_configuration ...'
|
325
|
-
end
|
326
|
-
# unbox the parameters from the hash
|
327
|
-
product_id = opts[:'product_id']
|
328
|
-
service_id = opts[:'service_id']
|
329
|
-
# verify the required parameter 'product_id' is set
|
330
|
-
if @api_client.config.client_side_validation && product_id.nil?
|
331
|
-
fail ArgumentError, "Missing the required parameter 'product_id' when calling EnabledProductsApi.set_product_configuration"
|
332
|
-
end
|
333
|
-
# verify the required parameter 'service_id' is set
|
334
|
-
if @api_client.config.client_side_validation && service_id.nil?
|
335
|
-
fail ArgumentError, "Missing the required parameter 'service_id' when calling EnabledProductsApi.set_product_configuration"
|
336
|
-
end
|
337
|
-
# resource path
|
338
|
-
local_var_path = '/enabled-products/v1/{product_id}/services/{service_id}/configuration'.sub('{' + 'product_id' + '}', CGI.escape(product_id.to_s)).sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
339
|
-
|
340
|
-
# query parameters
|
341
|
-
query_params = opts[:query_params] || {}
|
342
|
-
|
343
|
-
# header parameters
|
344
|
-
header_params = opts[:header_params] || {}
|
345
|
-
# HTTP header 'Accept' (if needed)
|
346
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
347
|
-
# HTTP header 'Content-Type'
|
348
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
349
|
-
if !content_type.nil?
|
350
|
-
header_params['Content-Type'] = content_type
|
351
|
-
end
|
352
|
-
|
353
|
-
# form parameters
|
354
|
-
form_params = opts[:form_params] || {}
|
355
|
-
|
356
|
-
# http body (model)
|
357
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'set_configuration'])
|
358
|
-
|
359
|
-
# return_type
|
360
|
-
return_type = opts[:debug_return_type] || 'ConfiguredProductResponse'
|
361
|
-
|
362
|
-
# auth_names
|
363
|
-
auth_names = opts[:debug_auth_names] || ['token']
|
364
|
-
|
365
|
-
new_options = opts.merge(
|
366
|
-
:operation => :"EnabledProductsApi.set_product_configuration",
|
367
|
-
:header_params => header_params,
|
368
|
-
:query_params => query_params,
|
369
|
-
:form_params => form_params,
|
370
|
-
:body => post_body,
|
371
|
-
:auth_names => auth_names,
|
372
|
-
:return_type => return_type
|
373
|
-
)
|
374
|
-
|
375
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
376
|
-
if @api_client.config.debugging
|
377
|
-
@api_client.config.logger.debug "API called: EnabledProductsApi#set_product_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
378
|
-
end
|
379
|
-
return data, status_code, headers
|
380
|
-
end
|
381
|
-
end
|
382
|
-
end
|