fastly 8.10.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 +51 -2
- data/Gemfile.lock +3 -3
- data/README.md +63 -45
- data/docs/AccessKey.md +12 -0
- data/docs/AccessKeyResponse.md +15 -0
- data/docs/AclsInComputeApi.md +4 -4
- 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 +17 -23
- 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/{LegacyWafTag.md → ComputeAclListMeta.md} +2 -2
- data/docs/ComputeAclLookup.md +1 -2
- data/docs/{InlineResponse2004Meta.md → ComputeAclUpdate.md} +2 -3
- data/docs/DdosProtectionRequestUpdateConfiguration.md +10 -0
- data/docs/DdosProtectionResponseConfiguration.md +10 -0
- data/docs/DdosProtectionResponseConfigurationConfiguration.md +10 -0
- 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/DimensionAttributesCountryStats.md +12 -0
- data/docs/DimensionAttributesRate.md +10 -0
- data/docs/DimensionBrowser.md +10 -0
- data/docs/DimensionContentType.md +10 -0
- data/docs/DimensionCountry.md +10 -0
- data/docs/DimensionDevice.md +10 -0
- data/docs/DimensionOs.md +10 -0
- data/docs/DimensionResponse.md +10 -0
- data/docs/DimensionStatusCode.md +10 -0
- data/docs/DimensionUrl.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/FilterFieldItem.md +12 -0
- data/docs/GetLogInsightsResponse.md +11 -0
- data/docs/GetLogRecordsResponse.md +11 -0
- data/docs/GetLogRecordsResponseMeta.md +10 -0
- data/docs/GetLogRecordsResponseMetaFilters.md +16 -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/InsightsApi.md +69 -0
- 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 -50
- data/docs/KvStoreRequestCreate.md +10 -0
- data/docs/KvStoreUpsertBatch.md +14 -0
- data/docs/LogExplorerApi.md +65 -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/LogInsights.md +12 -0
- data/docs/LogInsightsDimensionAttributes.md +49 -0
- data/docs/LogInsightsDimensions.md +61 -0
- data/docs/LogInsightsMeta.md +10 -0
- data/docs/LogInsightsMetaFilter.md +14 -0
- data/docs/LogInsightsValues.md +65 -0
- data/docs/{ReadOnlyServiceId.md → LogPropertyServiceId.md} +1 -1
- data/docs/LogRecord.md +37 -0
- data/docs/LoggingGrafanacloudlogsAdditional.md +14 -0
- data/docs/LoggingGrafanacloudlogsApi.md +259 -0
- data/docs/LoggingGrafanacloudlogsResponse.md +23 -0
- data/docs/{ReadOnlyVersion.md → NgwafRequestEnable.md} +2 -1
- 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/NgwafResponseProduct.md +10 -0
- data/docs/{ConfiguredProductResponseProduct.md → NgwafResponseProductProduct.md} +1 -1
- data/docs/NgwafResponseService.md +10 -0
- data/docs/ObjectStorageAccessKeysApi.md +163 -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 -7
- data/docs/RealtimeMeasurements.md +18 -7
- data/docs/Results.md +18 -7
- data/docs/SnippetApi.md +15 -15
- data/docs/Usagemetric.md +18 -0
- data/docs/{Store.md → Usagemetrics.md} +2 -2
- data/docs/ValueField.md +59 -0
- data/docs/Values.md +2 -0
- data/docs/Values503Responses.md +12 -0
- data/docs/ValuesBandwidth.md +11 -0
- data/docs/ValuesBrowser.md +11 -0
- data/docs/ValuesCacheHitRatio.md +10 -0
- data/docs/ValuesCountryStats.md +12 -0
- data/docs/ValuesDuration.md +12 -0
- data/docs/ValuesMisses.md +10 -0
- data/docs/ValuesRate.md +10 -0
- data/docs/ValuesRequests.md +10 -0
- data/docs/ValuesStatusCodes.md +12 -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 +6 -6
- data/lib/fastly/api/backend_api.rb +4 -4
- data/lib/fastly/api/billing_usage_metrics_api.rb +46 -73
- data/lib/fastly/api/insights_api.rb +125 -0
- data/lib/fastly/api/kv_store_api.rb +53 -45
- data/lib/fastly/api/kv_store_item_api.rb +114 -99
- data/lib/fastly/api/log_explorer_api.rb +109 -0
- data/lib/fastly/api/logging_grafanacloudlogs_api.rb +471 -0
- data/lib/fastly/api/object_storage_access_keys_api.rb +263 -0
- 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 +308 -200
- data/lib/fastly/models/access_key.rb +248 -0
- data/lib/fastly/models/{legacy_waf_update_status.rb → access_key_response.rb} +48 -46
- data/lib/fastly/models/ai_accelerator_response_body_enable.rb +243 -0
- 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/compute_acl_list.rb +228 -0
- data/lib/fastly/models/compute_acl_list_entries.rb +1 -1
- data/lib/fastly/models/compute_acl_list_meta.rb +218 -0
- data/lib/fastly/models/compute_acl_lookup.rb +3 -13
- data/lib/fastly/models/compute_acl_update.rb +219 -0
- data/lib/fastly/models/compute_acl_update_entry.rb +1 -1
- data/lib/fastly/models/ddos_protection_request_update_configuration.rb +256 -0
- 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/dimension_attributes_country_stats.rb +237 -0
- data/lib/fastly/models/dimension_attributes_rate.rb +217 -0
- data/lib/fastly/models/dimension_browser.rb +217 -0
- data/lib/fastly/models/dimension_content_type.rb +217 -0
- data/lib/fastly/models/dimension_country.rb +217 -0
- data/lib/fastly/models/dimension_device.rb +217 -0
- data/lib/fastly/models/{store.rb → dimension_os.rb} +11 -11
- data/lib/fastly/models/{read_only_service_id.rb → dimension_response.rb} +15 -5
- data/lib/fastly/models/dimension_status_code.rb +217 -0
- data/lib/fastly/models/{legacy_waf_tag.rb → dimension_url.rb} +11 -11
- 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/fanout_response_links.rb +216 -0
- 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/filter_field_item.rb +271 -0
- data/lib/fastly/models/{inline_response2004_meta.rb → get_log_insights_response.rb} +18 -16
- data/lib/fastly/models/get_log_records_response.rb +227 -0
- data/lib/fastly/models/get_log_records_response_meta.rb +216 -0
- data/lib/fastly/models/{legacy_waf_firewall.rb → get_log_records_response_meta_filters.rb} +80 -70
- 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/kv_store_upsert_batch.rb +269 -0
- 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/log_insights.rb +234 -0
- data/lib/fastly/models/log_insights_dimension_attributes.rb +103 -0
- data/lib/fastly/models/log_insights_dimensions.rb +109 -0
- data/lib/fastly/models/log_insights_meta.rb +217 -0
- data/lib/fastly/models/{inline_response2003_meta.rb → log_insights_meta_filter.rb} +69 -13
- data/lib/fastly/models/log_insights_values.rb +111 -0
- data/lib/fastly/models/{read_only_version.rb → log_property_service_id.rb} +4 -3
- data/lib/fastly/models/log_record.rb +486 -0
- data/lib/fastly/models/logging_grafanacloudlogs_additional.rb +257 -0
- data/lib/fastly/models/logging_grafanacloudlogs_response.rb +408 -0
- data/lib/fastly/models/{set_workspace_id.rb → ngwaf_request_enable.rb} +9 -4
- data/lib/fastly/models/{set_configuration.rb → ngwaf_request_update_configuration.rb} +5 -5
- 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/ngwaf_response_links.rb +216 -0
- data/lib/fastly/models/{configured_product_response_links.rb → ngwaf_response_links_links.rb} +3 -3
- data/lib/fastly/models/ngwaf_response_product.rb +216 -0
- 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 +184 -74
- data/lib/fastly/models/realtime_measurements.rb +184 -74
- data/lib/fastly/models/results.rb +181 -71
- 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/usagemetric.rb +297 -0
- data/lib/fastly/models/usagemetrics.rb +218 -0
- data/lib/fastly/models/value_field.rb +108 -0
- data/lib/fastly/models/values.rb +21 -1
- data/lib/fastly/models/{legacy_waf_rule_status.rb → values503_responses.rb} +25 -25
- data/lib/fastly/models/values_bandwidth.rb +227 -0
- data/lib/fastly/models/values_browser.rb +227 -0
- data/lib/fastly/models/values_cache_hit_ratio.rb +217 -0
- data/lib/fastly/models/values_country_stats.rb +237 -0
- data/lib/fastly/models/{legacy_waf_rule.rb → values_duration.rb} +25 -45
- data/lib/fastly/models/values_misses.rb +217 -0
- data/lib/fastly/models/values_rate.rb +217 -0
- data/lib/fastly/models/values_requests.rb +217 -0
- data/lib/fastly/models/values_status_codes.rb +237 -0
- data/lib/fastly/models/websockets_response_body_enable.rb +243 -0
- data/lib/fastly/models/websockets_response_links.rb +216 -0
- 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 +147 -35
- data/sig.json +1 -1
- metadata +299 -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 -11
- 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/legacy_waf_owasp.rb +0 -527
- data/lib/fastly/models/legacy_waf_ruleset.rb +0 -227
@@ -0,0 +1,207 @@
|
|
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 ProductLogExplorerInsightsApi
|
15
|
+
attr_accessor :api_client
|
16
|
+
|
17
|
+
def initialize(api_client = ApiClient.default)
|
18
|
+
@api_client = api_client
|
19
|
+
end
|
20
|
+
# Disable product
|
21
|
+
# Disable the Log Explorer & Insights product on a service.
|
22
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
23
|
+
# @return [nil]
|
24
|
+
def disable_product_log_explorer_insights(opts = {})
|
25
|
+
disable_product_log_explorer_insights_with_http_info(opts)
|
26
|
+
nil
|
27
|
+
end
|
28
|
+
|
29
|
+
# Disable product
|
30
|
+
# Disable the Log Explorer & Insights product on a service.
|
31
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
32
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
33
|
+
def disable_product_log_explorer_insights_with_http_info(opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: ProductLogExplorerInsightsApi.disable_product_log_explorer_insights ...'
|
36
|
+
end
|
37
|
+
# unbox the parameters from the hash
|
38
|
+
service_id = opts[:'service_id']
|
39
|
+
# verify the required parameter 'service_id' is set
|
40
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ProductLogExplorerInsightsApi.disable_product_log_explorer_insights"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/enabled-products/v1/log_explorer_insights/services/{service_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
|
52
|
+
# form parameters
|
53
|
+
form_params = opts[:form_params] || {}
|
54
|
+
|
55
|
+
# http body (model)
|
56
|
+
post_body = opts[:debug_body]
|
57
|
+
|
58
|
+
# return_type
|
59
|
+
return_type = opts[:debug_return_type]
|
60
|
+
|
61
|
+
# auth_names
|
62
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
63
|
+
|
64
|
+
new_options = opts.merge(
|
65
|
+
:operation => :"ProductLogExplorerInsightsApi.disable_product_log_explorer_insights",
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => return_type
|
72
|
+
)
|
73
|
+
|
74
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
75
|
+
if @api_client.config.debugging
|
76
|
+
@api_client.config.logger.debug "API called: ProductLogExplorerInsightsApi#disable_product_log_explorer_insights\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
77
|
+
end
|
78
|
+
return data, status_code, headers
|
79
|
+
end
|
80
|
+
|
81
|
+
# Enable product
|
82
|
+
# Enable the Log Explorer & Insights product on a service.
|
83
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
84
|
+
# @return [LogExplorerInsightsResponseBodyEnable]
|
85
|
+
def enable_product_log_explorer_insights(opts = {})
|
86
|
+
data, _status_code, _headers = enable_product_log_explorer_insights_with_http_info(opts)
|
87
|
+
data
|
88
|
+
end
|
89
|
+
|
90
|
+
# Enable product
|
91
|
+
# Enable the Log Explorer & Insights product on a service.
|
92
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
93
|
+
# @return [Array<(LogExplorerInsightsResponseBodyEnable, Integer, Hash)>] LogExplorerInsightsResponseBodyEnable data, response status code and response headers
|
94
|
+
def enable_product_log_explorer_insights_with_http_info(opts = {})
|
95
|
+
if @api_client.config.debugging
|
96
|
+
@api_client.config.logger.debug 'Calling API: ProductLogExplorerInsightsApi.enable_product_log_explorer_insights ...'
|
97
|
+
end
|
98
|
+
# unbox the parameters from the hash
|
99
|
+
service_id = opts[:'service_id']
|
100
|
+
# verify the required parameter 'service_id' is set
|
101
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
102
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ProductLogExplorerInsightsApi.enable_product_log_explorer_insights"
|
103
|
+
end
|
104
|
+
# resource path
|
105
|
+
local_var_path = '/enabled-products/v1/log_explorer_insights/services/{service_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
106
|
+
|
107
|
+
# query parameters
|
108
|
+
query_params = opts[:query_params] || {}
|
109
|
+
|
110
|
+
# header parameters
|
111
|
+
header_params = opts[:header_params] || {}
|
112
|
+
# HTTP header 'Accept' (if needed)
|
113
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
114
|
+
|
115
|
+
# form parameters
|
116
|
+
form_params = opts[:form_params] || {}
|
117
|
+
|
118
|
+
# http body (model)
|
119
|
+
post_body = opts[:debug_body]
|
120
|
+
|
121
|
+
# return_type
|
122
|
+
return_type = opts[:debug_return_type] || 'LogExplorerInsightsResponseBodyEnable'
|
123
|
+
|
124
|
+
# auth_names
|
125
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
126
|
+
|
127
|
+
new_options = opts.merge(
|
128
|
+
:operation => :"ProductLogExplorerInsightsApi.enable_product_log_explorer_insights",
|
129
|
+
:header_params => header_params,
|
130
|
+
:query_params => query_params,
|
131
|
+
:form_params => form_params,
|
132
|
+
:body => post_body,
|
133
|
+
:auth_names => auth_names,
|
134
|
+
:return_type => return_type
|
135
|
+
)
|
136
|
+
|
137
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
138
|
+
if @api_client.config.debugging
|
139
|
+
@api_client.config.logger.debug "API called: ProductLogExplorerInsightsApi#enable_product_log_explorer_insights\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
140
|
+
end
|
141
|
+
return data, status_code, headers
|
142
|
+
end
|
143
|
+
|
144
|
+
# Get product enablement status
|
145
|
+
# Get the enablement status of the Log Explorer & Insights product on a service.
|
146
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
147
|
+
# @return [LogExplorerInsightsResponseBodyEnable]
|
148
|
+
def get_product_log_explorer_insights(opts = {})
|
149
|
+
data, _status_code, _headers = get_product_log_explorer_insights_with_http_info(opts)
|
150
|
+
data
|
151
|
+
end
|
152
|
+
|
153
|
+
# Get product enablement status
|
154
|
+
# Get the enablement status of the Log Explorer & Insights product on a service.
|
155
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
156
|
+
# @return [Array<(LogExplorerInsightsResponseBodyEnable, Integer, Hash)>] LogExplorerInsightsResponseBodyEnable data, response status code and response headers
|
157
|
+
def get_product_log_explorer_insights_with_http_info(opts = {})
|
158
|
+
if @api_client.config.debugging
|
159
|
+
@api_client.config.logger.debug 'Calling API: ProductLogExplorerInsightsApi.get_product_log_explorer_insights ...'
|
160
|
+
end
|
161
|
+
# unbox the parameters from the hash
|
162
|
+
service_id = opts[:'service_id']
|
163
|
+
# verify the required parameter 'service_id' is set
|
164
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
165
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ProductLogExplorerInsightsApi.get_product_log_explorer_insights"
|
166
|
+
end
|
167
|
+
# resource path
|
168
|
+
local_var_path = '/enabled-products/v1/log_explorer_insights/services/{service_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
169
|
+
|
170
|
+
# query parameters
|
171
|
+
query_params = opts[:query_params] || {}
|
172
|
+
|
173
|
+
# header parameters
|
174
|
+
header_params = opts[:header_params] || {}
|
175
|
+
# HTTP header 'Accept' (if needed)
|
176
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
177
|
+
|
178
|
+
# form parameters
|
179
|
+
form_params = opts[:form_params] || {}
|
180
|
+
|
181
|
+
# http body (model)
|
182
|
+
post_body = opts[:debug_body]
|
183
|
+
|
184
|
+
# return_type
|
185
|
+
return_type = opts[:debug_return_type] || 'LogExplorerInsightsResponseBodyEnable'
|
186
|
+
|
187
|
+
# auth_names
|
188
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
189
|
+
|
190
|
+
new_options = opts.merge(
|
191
|
+
:operation => :"ProductLogExplorerInsightsApi.get_product_log_explorer_insights",
|
192
|
+
:header_params => header_params,
|
193
|
+
:query_params => query_params,
|
194
|
+
:form_params => form_params,
|
195
|
+
:body => post_body,
|
196
|
+
:auth_names => auth_names,
|
197
|
+
:return_type => return_type
|
198
|
+
)
|
199
|
+
|
200
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
201
|
+
if @api_client.config.debugging
|
202
|
+
@api_client.config.logger.debug "API called: ProductLogExplorerInsightsApi#get_product_log_explorer_insights\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
203
|
+
end
|
204
|
+
return data, status_code, headers
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
@@ -0,0 +1,347 @@
|
|
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 ProductNgwafApi
|
15
|
+
attr_accessor :api_client
|
16
|
+
|
17
|
+
def initialize(api_client = ApiClient.default)
|
18
|
+
@api_client = api_client
|
19
|
+
end
|
20
|
+
# Disable product
|
21
|
+
# Disable the Next-Gen WAF product on a service.
|
22
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
23
|
+
# @return [nil]
|
24
|
+
def disable_product_ngwaf(opts = {})
|
25
|
+
disable_product_ngwaf_with_http_info(opts)
|
26
|
+
nil
|
27
|
+
end
|
28
|
+
|
29
|
+
# Disable product
|
30
|
+
# Disable the Next-Gen WAF product on a service.
|
31
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
32
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
33
|
+
def disable_product_ngwaf_with_http_info(opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: ProductNgwafApi.disable_product_ngwaf ...'
|
36
|
+
end
|
37
|
+
# unbox the parameters from the hash
|
38
|
+
service_id = opts[:'service_id']
|
39
|
+
# verify the required parameter 'service_id' is set
|
40
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ProductNgwafApi.disable_product_ngwaf"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/enabled-products/v1/ngwaf/services/{service_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
|
52
|
+
# form parameters
|
53
|
+
form_params = opts[:form_params] || {}
|
54
|
+
|
55
|
+
# http body (model)
|
56
|
+
post_body = opts[:debug_body]
|
57
|
+
|
58
|
+
# return_type
|
59
|
+
return_type = opts[:debug_return_type]
|
60
|
+
|
61
|
+
# auth_names
|
62
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
63
|
+
|
64
|
+
new_options = opts.merge(
|
65
|
+
:operation => :"ProductNgwafApi.disable_product_ngwaf",
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => return_type
|
72
|
+
)
|
73
|
+
|
74
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
75
|
+
if @api_client.config.debugging
|
76
|
+
@api_client.config.logger.debug "API called: ProductNgwafApi#disable_product_ngwaf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
77
|
+
end
|
78
|
+
return data, status_code, headers
|
79
|
+
end
|
80
|
+
|
81
|
+
# Enable product
|
82
|
+
# Enable the Next-Gen WAF product on a service.
|
83
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
84
|
+
# @option opts [NgwafRequestEnable] :ngwaf_request_enable
|
85
|
+
# @return [NgwafResponseEnable]
|
86
|
+
def enable_product_ngwaf(opts = {})
|
87
|
+
data, _status_code, _headers = enable_product_ngwaf_with_http_info(opts)
|
88
|
+
data
|
89
|
+
end
|
90
|
+
|
91
|
+
# Enable product
|
92
|
+
# Enable the Next-Gen WAF product on a service.
|
93
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
94
|
+
# @option opts [NgwafRequestEnable] :ngwaf_request_enable
|
95
|
+
# @return [Array<(NgwafResponseEnable, Integer, Hash)>] NgwafResponseEnable data, response status code and response headers
|
96
|
+
def enable_product_ngwaf_with_http_info(opts = {})
|
97
|
+
if @api_client.config.debugging
|
98
|
+
@api_client.config.logger.debug 'Calling API: ProductNgwafApi.enable_product_ngwaf ...'
|
99
|
+
end
|
100
|
+
# unbox the parameters from the hash
|
101
|
+
service_id = opts[:'service_id']
|
102
|
+
# verify the required parameter 'service_id' is set
|
103
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
104
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ProductNgwafApi.enable_product_ngwaf"
|
105
|
+
end
|
106
|
+
# resource path
|
107
|
+
local_var_path = '/enabled-products/v1/ngwaf/services/{service_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
108
|
+
|
109
|
+
# query parameters
|
110
|
+
query_params = opts[:query_params] || {}
|
111
|
+
|
112
|
+
# header parameters
|
113
|
+
header_params = opts[:header_params] || {}
|
114
|
+
# HTTP header 'Accept' (if needed)
|
115
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
116
|
+
# HTTP header 'Content-Type'
|
117
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
118
|
+
if !content_type.nil?
|
119
|
+
header_params['Content-Type'] = content_type
|
120
|
+
end
|
121
|
+
|
122
|
+
# form parameters
|
123
|
+
form_params = opts[:form_params] || {}
|
124
|
+
|
125
|
+
# http body (model)
|
126
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'ngwaf_request_enable'])
|
127
|
+
|
128
|
+
# return_type
|
129
|
+
return_type = opts[:debug_return_type] || 'NgwafResponseEnable'
|
130
|
+
|
131
|
+
# auth_names
|
132
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
133
|
+
|
134
|
+
new_options = opts.merge(
|
135
|
+
:operation => :"ProductNgwafApi.enable_product_ngwaf",
|
136
|
+
:header_params => header_params,
|
137
|
+
:query_params => query_params,
|
138
|
+
:form_params => form_params,
|
139
|
+
:body => post_body,
|
140
|
+
:auth_names => auth_names,
|
141
|
+
:return_type => return_type
|
142
|
+
)
|
143
|
+
|
144
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
145
|
+
if @api_client.config.debugging
|
146
|
+
@api_client.config.logger.debug "API called: ProductNgwafApi#enable_product_ngwaf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
147
|
+
end
|
148
|
+
return data, status_code, headers
|
149
|
+
end
|
150
|
+
|
151
|
+
# Get product enablement status
|
152
|
+
# Get the enablement status of the Next-Gen WAF product on a service.
|
153
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
154
|
+
# @return [NgwafResponseEnable]
|
155
|
+
def get_product_ngwaf(opts = {})
|
156
|
+
data, _status_code, _headers = get_product_ngwaf_with_http_info(opts)
|
157
|
+
data
|
158
|
+
end
|
159
|
+
|
160
|
+
# Get product enablement status
|
161
|
+
# Get the enablement status of the Next-Gen WAF product on a service.
|
162
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
163
|
+
# @return [Array<(NgwafResponseEnable, Integer, Hash)>] NgwafResponseEnable data, response status code and response headers
|
164
|
+
def get_product_ngwaf_with_http_info(opts = {})
|
165
|
+
if @api_client.config.debugging
|
166
|
+
@api_client.config.logger.debug 'Calling API: ProductNgwafApi.get_product_ngwaf ...'
|
167
|
+
end
|
168
|
+
# unbox the parameters from the hash
|
169
|
+
service_id = opts[:'service_id']
|
170
|
+
# verify the required parameter 'service_id' is set
|
171
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
172
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ProductNgwafApi.get_product_ngwaf"
|
173
|
+
end
|
174
|
+
# resource path
|
175
|
+
local_var_path = '/enabled-products/v1/ngwaf/services/{service_id}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
176
|
+
|
177
|
+
# query parameters
|
178
|
+
query_params = opts[:query_params] || {}
|
179
|
+
|
180
|
+
# header parameters
|
181
|
+
header_params = opts[:header_params] || {}
|
182
|
+
# HTTP header 'Accept' (if needed)
|
183
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
184
|
+
|
185
|
+
# form parameters
|
186
|
+
form_params = opts[:form_params] || {}
|
187
|
+
|
188
|
+
# http body (model)
|
189
|
+
post_body = opts[:debug_body]
|
190
|
+
|
191
|
+
# return_type
|
192
|
+
return_type = opts[:debug_return_type] || 'NgwafResponseEnable'
|
193
|
+
|
194
|
+
# auth_names
|
195
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
196
|
+
|
197
|
+
new_options = opts.merge(
|
198
|
+
:operation => :"ProductNgwafApi.get_product_ngwaf",
|
199
|
+
:header_params => header_params,
|
200
|
+
:query_params => query_params,
|
201
|
+
:form_params => form_params,
|
202
|
+
:body => post_body,
|
203
|
+
:auth_names => auth_names,
|
204
|
+
:return_type => return_type
|
205
|
+
)
|
206
|
+
|
207
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
208
|
+
if @api_client.config.debugging
|
209
|
+
@api_client.config.logger.debug "API called: ProductNgwafApi#get_product_ngwaf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
210
|
+
end
|
211
|
+
return data, status_code, headers
|
212
|
+
end
|
213
|
+
|
214
|
+
# Get configuration
|
215
|
+
# Get configuration of the Next-Gen WAF product on a service.
|
216
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
217
|
+
# @return [NgwafResponseConfigure]
|
218
|
+
def get_product_ngwaf_configuration(opts = {})
|
219
|
+
data, _status_code, _headers = get_product_ngwaf_configuration_with_http_info(opts)
|
220
|
+
data
|
221
|
+
end
|
222
|
+
|
223
|
+
# Get configuration
|
224
|
+
# Get configuration of the Next-Gen WAF product on a service.
|
225
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
226
|
+
# @return [Array<(NgwafResponseConfigure, Integer, Hash)>] NgwafResponseConfigure data, response status code and response headers
|
227
|
+
def get_product_ngwaf_configuration_with_http_info(opts = {})
|
228
|
+
if @api_client.config.debugging
|
229
|
+
@api_client.config.logger.debug 'Calling API: ProductNgwafApi.get_product_ngwaf_configuration ...'
|
230
|
+
end
|
231
|
+
# unbox the parameters from the hash
|
232
|
+
service_id = opts[:'service_id']
|
233
|
+
# verify the required parameter 'service_id' is set
|
234
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
235
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ProductNgwafApi.get_product_ngwaf_configuration"
|
236
|
+
end
|
237
|
+
# resource path
|
238
|
+
local_var_path = '/enabled-products/v1/ngwaf/services/{service_id}/configuration'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
239
|
+
|
240
|
+
# query parameters
|
241
|
+
query_params = opts[:query_params] || {}
|
242
|
+
|
243
|
+
# header parameters
|
244
|
+
header_params = opts[:header_params] || {}
|
245
|
+
# HTTP header 'Accept' (if needed)
|
246
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
247
|
+
|
248
|
+
# form parameters
|
249
|
+
form_params = opts[:form_params] || {}
|
250
|
+
|
251
|
+
# http body (model)
|
252
|
+
post_body = opts[:debug_body]
|
253
|
+
|
254
|
+
# return_type
|
255
|
+
return_type = opts[:debug_return_type] || 'NgwafResponseConfigure'
|
256
|
+
|
257
|
+
# auth_names
|
258
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
259
|
+
|
260
|
+
new_options = opts.merge(
|
261
|
+
:operation => :"ProductNgwafApi.get_product_ngwaf_configuration",
|
262
|
+
:header_params => header_params,
|
263
|
+
:query_params => query_params,
|
264
|
+
:form_params => form_params,
|
265
|
+
:body => post_body,
|
266
|
+
:auth_names => auth_names,
|
267
|
+
:return_type => return_type
|
268
|
+
)
|
269
|
+
|
270
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
271
|
+
if @api_client.config.debugging
|
272
|
+
@api_client.config.logger.debug "API called: ProductNgwafApi#get_product_ngwaf_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
273
|
+
end
|
274
|
+
return data, status_code, headers
|
275
|
+
end
|
276
|
+
|
277
|
+
# Update configuration
|
278
|
+
# Update configuration of the Next-Gen WAF product on a service.
|
279
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
280
|
+
# @option opts [NgwafRequestUpdateConfiguration] :ngwaf_request_update_configuration
|
281
|
+
# @return [NgwafResponseConfigure]
|
282
|
+
def set_product_ngwaf_configuration(opts = {})
|
283
|
+
data, _status_code, _headers = set_product_ngwaf_configuration_with_http_info(opts)
|
284
|
+
data
|
285
|
+
end
|
286
|
+
|
287
|
+
# Update configuration
|
288
|
+
# Update configuration of the Next-Gen WAF product on a service.
|
289
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
290
|
+
# @option opts [NgwafRequestUpdateConfiguration] :ngwaf_request_update_configuration
|
291
|
+
# @return [Array<(NgwafResponseConfigure, Integer, Hash)>] NgwafResponseConfigure data, response status code and response headers
|
292
|
+
def set_product_ngwaf_configuration_with_http_info(opts = {})
|
293
|
+
if @api_client.config.debugging
|
294
|
+
@api_client.config.logger.debug 'Calling API: ProductNgwafApi.set_product_ngwaf_configuration ...'
|
295
|
+
end
|
296
|
+
# unbox the parameters from the hash
|
297
|
+
service_id = opts[:'service_id']
|
298
|
+
# verify the required parameter 'service_id' is set
|
299
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
300
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling ProductNgwafApi.set_product_ngwaf_configuration"
|
301
|
+
end
|
302
|
+
# resource path
|
303
|
+
local_var_path = '/enabled-products/v1/ngwaf/services/{service_id}/configuration'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
304
|
+
|
305
|
+
# query parameters
|
306
|
+
query_params = opts[:query_params] || {}
|
307
|
+
|
308
|
+
# header parameters
|
309
|
+
header_params = opts[:header_params] || {}
|
310
|
+
# HTTP header 'Accept' (if needed)
|
311
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
312
|
+
# HTTP header 'Content-Type'
|
313
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
314
|
+
if !content_type.nil?
|
315
|
+
header_params['Content-Type'] = content_type
|
316
|
+
end
|
317
|
+
|
318
|
+
# form parameters
|
319
|
+
form_params = opts[:form_params] || {}
|
320
|
+
|
321
|
+
# http body (model)
|
322
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'ngwaf_request_update_configuration'])
|
323
|
+
|
324
|
+
# return_type
|
325
|
+
return_type = opts[:debug_return_type] || 'NgwafResponseConfigure'
|
326
|
+
|
327
|
+
# auth_names
|
328
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
329
|
+
|
330
|
+
new_options = opts.merge(
|
331
|
+
:operation => :"ProductNgwafApi.set_product_ngwaf_configuration",
|
332
|
+
:header_params => header_params,
|
333
|
+
:query_params => query_params,
|
334
|
+
:form_params => form_params,
|
335
|
+
:body => post_body,
|
336
|
+
:auth_names => auth_names,
|
337
|
+
:return_type => return_type
|
338
|
+
)
|
339
|
+
|
340
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
341
|
+
if @api_client.config.debugging
|
342
|
+
@api_client.config.logger.debug "API called: ProductNgwafApi#set_product_ngwaf_configuration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
343
|
+
end
|
344
|
+
return data, status_code, headers
|
345
|
+
end
|
346
|
+
end
|
347
|
+
end
|