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,11 @@
|
|
1
|
+
# Fastly::ValuesBrowser
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **browser_version** | **String** | The version of the client's browser. | [optional] |
|
8
|
+
| **rate** | **Float** | The percentage of requests by this version of the browser specified in the dimension. | [optional] |
|
9
|
+
|
10
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
11
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Fastly::ValuesCacheHitRatio
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **cache_hit_ratio** | **Float** | The cache hit ratio for the URL specified in the dimension. | [optional] |
|
8
|
+
|
9
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
10
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Fastly::ValuesCountryStats
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **region** | **String** | The client's country subdivision code as defined by ISO 3166-2. | [optional] |
|
8
|
+
| **region_chr** | **Float** | The cache hit ratio for the region. | [optional] |
|
9
|
+
| **region_error_rate** | **Float** | The error rate for the region. | [optional] |
|
10
|
+
|
11
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
12
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Fastly::ValuesDuration
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **average_response_time** | **Float** | The average time in seconds to respond to requests to the URL in the current dimension. | [optional] |
|
8
|
+
| **p95_response_time** | **Float** | The P95 time in seconds to respond to requests to the URL in the current dimension. | [optional] |
|
9
|
+
| **response_time_percentage** | **Float** | The total percentage of time to respond to all requests to the URL in the current dimension. | [optional] |
|
10
|
+
|
11
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
12
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Fastly::ValuesMisses
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **miss_rate** | **Float** | The miss rate for requests to the URL in the current dimension. | [optional] |
|
8
|
+
|
9
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
10
|
+
|
data/docs/ValuesRate.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Fastly::ValuesRate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **rate** | **Float** | The percentage of requests matching the value in the current dimension. | [optional] |
|
8
|
+
|
9
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Fastly::ValuesRequests
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **request_percentage** | **Float** | The percentage of all requests made to the URL in the current dimension. | [optional] |
|
8
|
+
|
9
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
10
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Fastly::ValuesStatusCodes
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **url** | **String** | The HTTP request path. | [optional] |
|
8
|
+
| **rate_per_status** | **Float** | The URL accounts for this percentage of the status code in this dimension. | [optional] |
|
9
|
+
| **rate_per_url** | **Float** | The rate at which the status code in this dimension occurs for this URL. | [optional] |
|
10
|
+
|
11
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
12
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Fastly::WebsocketsResponseBodyEnable
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **product** | [**WebsocketsResponseProductProduct**](WebsocketsResponseProductProduct.md) | | [optional] |
|
8
|
+
| **service** | [**BotManagementResponseServiceService**](BotManagementResponseServiceService.md) | | [optional] |
|
9
|
+
| **_links** | [**WebsocketsResponseLinksLinks**](WebsocketsResponseLinksLinks.md) | | [optional] |
|
10
|
+
|
11
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
12
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Fastly::WebsocketsResponseLinks
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **_links** | [**WebsocketsResponseLinksLinks**](WebsocketsResponseLinksLinks.md) | | [optional] |
|
8
|
+
|
9
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
10
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Fastly::WebsocketsResponseLinksLinks
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **_self** | **String** | Location of resource | [optional] |
|
8
|
+
| **service** | **String** | Location of the service resource | [optional] |
|
9
|
+
|
10
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
11
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Fastly::WebsocketsResponseProduct
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **product** | [**WebsocketsResponseProductProduct**](WebsocketsResponseProductProduct.md) | | [optional] |
|
8
|
+
|
9
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
10
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Fastly::WebsocketsResponseProductProduct
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | Product identifier | [optional] |
|
8
|
+
| **object** | **String** | Name of the object | [optional] |
|
9
|
+
|
10
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
11
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Fastly::WebsocketsResponseService
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **service** | [**BotManagementResponseServiceService**](BotManagementResponseServiceService.md) | | [optional] |
|
8
|
+
|
9
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
10
|
+
|
@@ -212,7 +212,7 @@ module Fastly
|
|
212
212
|
|
213
213
|
# List ACLs
|
214
214
|
# List all ACLs.
|
215
|
-
# @return [
|
215
|
+
# @return [ComputeAclList]
|
216
216
|
def compute_acl_list_acls(opts = {})
|
217
217
|
data, _status_code, _headers = compute_acl_list_acls_with_http_info(opts)
|
218
218
|
data
|
@@ -220,7 +220,7 @@ module Fastly
|
|
220
220
|
|
221
221
|
# List ACLs
|
222
222
|
# List all ACLs.
|
223
|
-
# @return [Array<(
|
223
|
+
# @return [Array<(ComputeAclList, Integer, Hash)>] ComputeAclList data, response status code and response headers
|
224
224
|
def compute_acl_list_acls_with_http_info(opts = {})
|
225
225
|
if @api_client.config.debugging
|
226
226
|
@api_client.config.logger.debug 'Calling API: AclsInComputeApi.compute_acl_list_acls ...'
|
@@ -244,7 +244,7 @@ module Fastly
|
|
244
244
|
post_body = opts[:debug_body]
|
245
245
|
|
246
246
|
# return_type
|
247
|
-
return_type = opts[:debug_return_type] || '
|
247
|
+
return_type = opts[:debug_return_type] || 'ComputeAclList'
|
248
248
|
|
249
249
|
# auth_names
|
250
250
|
auth_names = opts[:debug_auth_names] || ['token']
|
@@ -402,7 +402,7 @@ module Fastly
|
|
402
402
|
# Update an ACL
|
403
403
|
# Update an ACL.
|
404
404
|
# @option opts [String] :acl_id (required)
|
405
|
-
# @option opts [
|
405
|
+
# @option opts [ComputeAclUpdate] :compute_acl_update
|
406
406
|
# @return [nil]
|
407
407
|
def compute_acl_update_acls(opts = {})
|
408
408
|
compute_acl_update_acls_with_http_info(opts)
|
@@ -412,7 +412,7 @@ module Fastly
|
|
412
412
|
# Update an ACL
|
413
413
|
# Update an ACL.
|
414
414
|
# @option opts [String] :acl_id (required)
|
415
|
-
# @option opts [
|
415
|
+
# @option opts [ComputeAclUpdate] :compute_acl_update
|
416
416
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
417
417
|
def compute_acl_update_acls_with_http_info(opts = {})
|
418
418
|
if @api_client.config.debugging
|
@@ -442,7 +442,7 @@ module Fastly
|
|
442
442
|
form_params = opts[:form_params] || {}
|
443
443
|
|
444
444
|
# http body (model)
|
445
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
445
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'compute_acl_update'])
|
446
446
|
|
447
447
|
# return_type
|
448
448
|
return_type = opts[:debug_return_type]
|
@@ -32,7 +32,7 @@ module Fastly
|
|
32
32
|
# @option opts [String] :hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location.
|
33
33
|
# @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
|
34
34
|
# @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
|
35
|
-
# @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests.
|
35
|
+
# @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests. By default, Varnish keeps connections open as long as it can.
|
36
36
|
# @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
|
37
37
|
# @option opts [String] :max_tls_version Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
38
38
|
# @option opts [String] :min_tls_version Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
@@ -77,7 +77,7 @@ module Fastly
|
|
77
77
|
# @option opts [String] :hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location.
|
78
78
|
# @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
|
79
79
|
# @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
|
80
|
-
# @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests.
|
80
|
+
# @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests. By default, Varnish keeps connections open as long as it can.
|
81
81
|
# @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
|
82
82
|
# @option opts [String] :max_tls_version Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
83
83
|
# @option opts [String] :min_tls_version Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
@@ -442,7 +442,7 @@ module Fastly
|
|
442
442
|
# @option opts [String] :hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location.
|
443
443
|
# @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
|
444
444
|
# @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
|
445
|
-
# @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests.
|
445
|
+
# @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests. By default, Varnish keeps connections open as long as it can.
|
446
446
|
# @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
|
447
447
|
# @option opts [String] :max_tls_version Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
448
448
|
# @option opts [String] :min_tls_version Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
@@ -488,7 +488,7 @@ module Fastly
|
|
488
488
|
# @option opts [String] :hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location.
|
489
489
|
# @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
|
490
490
|
# @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
|
491
|
-
# @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests.
|
491
|
+
# @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests. By default, Varnish keeps connections open as long as it can.
|
492
492
|
# @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
|
493
493
|
# @option opts [String] :max_tls_version Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
494
494
|
# @option opts [String] :min_tls_version Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
@@ -19,12 +19,8 @@ module Fastly
|
|
19
19
|
end
|
20
20
|
# Retrieve service-level usage metrics for a product.
|
21
21
|
# Returns product usage, broken down by service.
|
22
|
-
# @option opts [String] :
|
23
|
-
# @option opts [String] :
|
24
|
-
# @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., `North America Requests`). This field is not required for CSV requests. (required)
|
25
|
-
# @option opts [String] :time_granularity (required)
|
26
|
-
# @option opts [String] :start_date
|
27
|
-
# @option opts [String] :end_date
|
22
|
+
# @option opts [String] :product_id The product identifier for the metrics returned (e.g., `cdn_usage`).
|
23
|
+
# @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., `North America Requests`).
|
28
24
|
# @option opts [String] :start_month
|
29
25
|
# @option opts [String] :end_month
|
30
26
|
# @option opts [String] :limit Number of results per page. The maximum is 100. (default to '5')
|
@@ -37,12 +33,8 @@ module Fastly
|
|
37
33
|
|
38
34
|
# Retrieve service-level usage metrics for a product.
|
39
35
|
# Returns product usage, broken down by service.
|
40
|
-
# @option opts [String] :
|
41
|
-
# @option opts [String] :
|
42
|
-
# @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., `North America Requests`). This field is not required for CSV requests. (required)
|
43
|
-
# @option opts [String] :time_granularity (required)
|
44
|
-
# @option opts [String] :start_date
|
45
|
-
# @option opts [String] :end_date
|
36
|
+
# @option opts [String] :product_id The product identifier for the metrics returned (e.g., `cdn_usage`).
|
37
|
+
# @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., `North America Requests`).
|
46
38
|
# @option opts [String] :start_month
|
47
39
|
# @option opts [String] :end_month
|
48
40
|
# @option opts [String] :limit Number of results per page. The maximum is 100. (default to '5')
|
@@ -53,41 +45,6 @@ module Fastly
|
|
53
45
|
@api_client.config.logger.debug 'Calling API: BillingUsageMetricsApi.get_service_level_usage ...'
|
54
46
|
end
|
55
47
|
# unbox the parameters from the hash
|
56
|
-
customer_id = opts[:'customer_id']
|
57
|
-
product_id = opts[:'product_id']
|
58
|
-
usage_type_name = opts[:'usage_type_name']
|
59
|
-
time_granularity = opts[:'time_granularity']
|
60
|
-
# verify the required parameter 'customer_id' is set
|
61
|
-
if @api_client.config.client_side_validation && customer_id.nil?
|
62
|
-
fail ArgumentError, "Missing the required parameter 'customer_id' when calling BillingUsageMetricsApi.get_service_level_usage"
|
63
|
-
end
|
64
|
-
# verify the required parameter 'product_id' is set
|
65
|
-
if @api_client.config.client_side_validation && product_id.nil?
|
66
|
-
fail ArgumentError, "Missing the required parameter 'product_id' when calling BillingUsageMetricsApi.get_service_level_usage"
|
67
|
-
end
|
68
|
-
# verify the required parameter 'usage_type_name' is set
|
69
|
-
if @api_client.config.client_side_validation && usage_type_name.nil?
|
70
|
-
fail ArgumentError, "Missing the required parameter 'usage_type_name' when calling BillingUsageMetricsApi.get_service_level_usage"
|
71
|
-
end
|
72
|
-
# verify the required parameter 'time_granularity' is set
|
73
|
-
if @api_client.config.client_side_validation && time_granularity.nil?
|
74
|
-
fail ArgumentError, "Missing the required parameter 'time_granularity' when calling BillingUsageMetricsApi.get_service_level_usage"
|
75
|
-
end
|
76
|
-
pattern = Regexp.new(/^day$|^month$/)
|
77
|
-
if @api_client.config.client_side_validation && time_granularity !~ pattern
|
78
|
-
fail ArgumentError, "invalid value for 'time_granularity' when calling BillingUsageMetricsApi.get_service_level_usage, must conform to the pattern #{pattern}."
|
79
|
-
end
|
80
|
-
|
81
|
-
pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
82
|
-
if @api_client.config.client_side_validation && !opts[:'start_date'].nil? && opts[:'start_date'] !~ pattern
|
83
|
-
fail ArgumentError, "invalid value for 'opts[:\"start_date\"]' when calling BillingUsageMetricsApi.get_service_level_usage, must conform to the pattern #{pattern}."
|
84
|
-
end
|
85
|
-
|
86
|
-
pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/)
|
87
|
-
if @api_client.config.client_side_validation && !opts[:'end_date'].nil? && opts[:'end_date'] !~ pattern
|
88
|
-
fail ArgumentError, "invalid value for 'opts[:\"end_date\"]' when calling BillingUsageMetricsApi.get_service_level_usage, must conform to the pattern #{pattern}."
|
89
|
-
end
|
90
|
-
|
91
48
|
pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}$/)
|
92
49
|
if @api_client.config.client_side_validation && !opts[:'start_month'].nil? && opts[:'start_month'] !~ pattern
|
93
50
|
fail ArgumentError, "invalid value for 'opts[:\"start_month\"]' when calling BillingUsageMetricsApi.get_service_level_usage, must conform to the pattern #{pattern}."
|
@@ -99,15 +56,12 @@ module Fastly
|
|
99
56
|
end
|
100
57
|
|
101
58
|
# resource path
|
102
|
-
local_var_path = '/billing/
|
59
|
+
local_var_path = '/billing/v3/service-usage-metrics'
|
103
60
|
|
104
61
|
# query parameters
|
105
62
|
query_params = opts[:query_params] || {}
|
106
|
-
query_params[:'product_id'] = product_id
|
107
|
-
query_params[:'usage_type_name'] = usage_type_name
|
108
|
-
query_params[:'time_granularity'] = time_granularity
|
109
|
-
query_params[:'start_date'] = opts[:'start_date'] if !opts[:'start_date'].nil?
|
110
|
-
query_params[:'end_date'] = opts[:'end_date'] if !opts[:'end_date'].nil?
|
63
|
+
query_params[:'product_id'] = opts[:'product_id'] if !opts[:'product_id'].nil?
|
64
|
+
query_params[:'usage_type_name'] = opts[:'usage_type_name'] if !opts[:'usage_type_name'].nil?
|
111
65
|
query_params[:'start_month'] = opts[:'start_month'] if !opts[:'start_month'].nil?
|
112
66
|
query_params[:'end_month'] = opts[:'end_month'] if !opts[:'end_month'].nil?
|
113
67
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
@@ -147,34 +101,53 @@ module Fastly
|
|
147
101
|
return data, status_code, headers
|
148
102
|
end
|
149
103
|
|
150
|
-
#
|
151
|
-
# Returns
|
152
|
-
# @option opts [String] :
|
153
|
-
# @
|
154
|
-
|
155
|
-
|
104
|
+
# Get monthly usage metrics
|
105
|
+
# Returns monthly usage metrics for customer by product.
|
106
|
+
# @option opts [String] :start_month (required)
|
107
|
+
# @option opts [String] :end_month (required)
|
108
|
+
# @return [Usagemetric]
|
109
|
+
def get_usage_metrics(opts = {})
|
110
|
+
data, _status_code, _headers = get_usage_metrics_with_http_info(opts)
|
156
111
|
data
|
157
112
|
end
|
158
113
|
|
159
|
-
#
|
160
|
-
# Returns
|
161
|
-
# @option opts [String] :
|
162
|
-
# @
|
163
|
-
|
114
|
+
# Get monthly usage metrics
|
115
|
+
# Returns monthly usage metrics for customer by product.
|
116
|
+
# @option opts [String] :start_month (required)
|
117
|
+
# @option opts [String] :end_month (required)
|
118
|
+
# @return [Array<(Usagemetric, Integer, Hash)>] Usagemetric data, response status code and response headers
|
119
|
+
def get_usage_metrics_with_http_info(opts = {})
|
164
120
|
if @api_client.config.debugging
|
165
|
-
@api_client.config.logger.debug 'Calling API: BillingUsageMetricsApi.
|
121
|
+
@api_client.config.logger.debug 'Calling API: BillingUsageMetricsApi.get_usage_metrics ...'
|
166
122
|
end
|
167
123
|
# unbox the parameters from the hash
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
124
|
+
start_month = opts[:'start_month']
|
125
|
+
end_month = opts[:'end_month']
|
126
|
+
# verify the required parameter 'start_month' is set
|
127
|
+
if @api_client.config.client_side_validation && start_month.nil?
|
128
|
+
fail ArgumentError, "Missing the required parameter 'start_month' when calling BillingUsageMetricsApi.get_usage_metrics"
|
129
|
+
end
|
130
|
+
pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}$/)
|
131
|
+
if @api_client.config.client_side_validation && start_month !~ pattern
|
132
|
+
fail ArgumentError, "invalid value for 'start_month' when calling BillingUsageMetricsApi.get_usage_metrics, must conform to the pattern #{pattern}."
|
133
|
+
end
|
134
|
+
|
135
|
+
# verify the required parameter 'end_month' is set
|
136
|
+
if @api_client.config.client_side_validation && end_month.nil?
|
137
|
+
fail ArgumentError, "Missing the required parameter 'end_month' when calling BillingUsageMetricsApi.get_usage_metrics"
|
138
|
+
end
|
139
|
+
pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}$/)
|
140
|
+
if @api_client.config.client_side_validation && end_month !~ pattern
|
141
|
+
fail ArgumentError, "invalid value for 'end_month' when calling BillingUsageMetricsApi.get_usage_metrics, must conform to the pattern #{pattern}."
|
172
142
|
end
|
143
|
+
|
173
144
|
# resource path
|
174
|
-
local_var_path = '/billing/
|
145
|
+
local_var_path = '/billing/v3/usage-metrics'
|
175
146
|
|
176
147
|
# query parameters
|
177
148
|
query_params = opts[:query_params] || {}
|
149
|
+
query_params[:'start_month'] = start_month
|
150
|
+
query_params[:'end_month'] = end_month
|
178
151
|
|
179
152
|
# header parameters
|
180
153
|
header_params = opts[:header_params] || {}
|
@@ -188,13 +161,13 @@ module Fastly
|
|
188
161
|
post_body = opts[:debug_body]
|
189
162
|
|
190
163
|
# return_type
|
191
|
-
return_type = opts[:debug_return_type] || '
|
164
|
+
return_type = opts[:debug_return_type] || 'Usagemetric'
|
192
165
|
|
193
166
|
# auth_names
|
194
167
|
auth_names = opts[:debug_auth_names] || ['token']
|
195
168
|
|
196
169
|
new_options = opts.merge(
|
197
|
-
:operation => :"BillingUsageMetricsApi.
|
170
|
+
:operation => :"BillingUsageMetricsApi.get_usage_metrics",
|
198
171
|
:header_params => header_params,
|
199
172
|
:query_params => query_params,
|
200
173
|
:form_params => form_params,
|
@@ -205,7 +178,7 @@ module Fastly
|
|
205
178
|
|
206
179
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
207
180
|
if @api_client.config.debugging
|
208
|
-
@api_client.config.logger.debug "API called: BillingUsageMetricsApi#
|
181
|
+
@api_client.config.logger.debug "API called: BillingUsageMetricsApi#get_usage_metrics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
209
182
|
end
|
210
183
|
return data, status_code, headers
|
211
184
|
end
|
@@ -0,0 +1,125 @@
|
|
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 InsightsApi
|
15
|
+
attr_accessor :api_client
|
16
|
+
|
17
|
+
def initialize(api_client = ApiClient.default)
|
18
|
+
@api_client = api_client
|
19
|
+
end
|
20
|
+
# Retrieve log insights
|
21
|
+
# Retrieves statistics from sampled log records.
|
22
|
+
# @option opts [String] :visualization (required)
|
23
|
+
# @option opts [String] :service_id (required)
|
24
|
+
# @option opts [String] :start (required)
|
25
|
+
# @option opts [String] :_end (required)
|
26
|
+
# @option opts [String] :pops
|
27
|
+
# @option opts [String] :domain
|
28
|
+
# @option opts [Boolean] :domain_exact_match
|
29
|
+
# @option opts [Float] :limit
|
30
|
+
# @return [GetLogInsightsResponse]
|
31
|
+
def get_log_insights(opts = {})
|
32
|
+
data, _status_code, _headers = get_log_insights_with_http_info(opts)
|
33
|
+
data
|
34
|
+
end
|
35
|
+
|
36
|
+
# Retrieve log insights
|
37
|
+
# Retrieves statistics from sampled log records.
|
38
|
+
# @option opts [String] :visualization (required)
|
39
|
+
# @option opts [String] :service_id (required)
|
40
|
+
# @option opts [String] :start (required)
|
41
|
+
# @option opts [String] :_end (required)
|
42
|
+
# @option opts [String] :pops
|
43
|
+
# @option opts [String] :domain
|
44
|
+
# @option opts [Boolean] :domain_exact_match
|
45
|
+
# @option opts [Float] :limit
|
46
|
+
# @return [Array<(GetLogInsightsResponse, Integer, Hash)>] GetLogInsightsResponse data, response status code and response headers
|
47
|
+
def get_log_insights_with_http_info(opts = {})
|
48
|
+
if @api_client.config.debugging
|
49
|
+
@api_client.config.logger.debug 'Calling API: InsightsApi.get_log_insights ...'
|
50
|
+
end
|
51
|
+
# unbox the parameters from the hash
|
52
|
+
visualization = opts[:'visualization']
|
53
|
+
service_id = opts[:'service_id']
|
54
|
+
start = opts[:'start']
|
55
|
+
_end = opts[:'_end']
|
56
|
+
# verify the required parameter 'visualization' is set
|
57
|
+
if @api_client.config.client_side_validation && visualization.nil?
|
58
|
+
fail ArgumentError, "Missing the required parameter 'visualization' when calling InsightsApi.get_log_insights"
|
59
|
+
end
|
60
|
+
# verify enum value
|
61
|
+
allowable_values = ["top-url-by-bandwidth", "bottom-url-by-cache-hit-ratio", "top-url-by-cache-hit-ratio", "country-statistics", "top-url-by-duration-sum", "top-4xx-urls", "top-5xx-urls", "top-url-by-misses", "top-url-by-requests", "top-browser-by-requests", "top-content-type-by-requests", "top-device-by-requests", "top-os-by-requests", "response-status-codes", "top-503-responses"]
|
62
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(visualization)
|
63
|
+
fail ArgumentError, "invalid value for \"visualization\", must be one of #{allowable_values}"
|
64
|
+
end
|
65
|
+
# verify the required parameter 'service_id' is set
|
66
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
67
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling InsightsApi.get_log_insights"
|
68
|
+
end
|
69
|
+
# verify the required parameter 'start' is set
|
70
|
+
if @api_client.config.client_side_validation && start.nil?
|
71
|
+
fail ArgumentError, "Missing the required parameter 'start' when calling InsightsApi.get_log_insights"
|
72
|
+
end
|
73
|
+
# verify the required parameter '_end' is set
|
74
|
+
if @api_client.config.client_side_validation && _end.nil?
|
75
|
+
fail ArgumentError, "Missing the required parameter '_end' when calling InsightsApi.get_log_insights"
|
76
|
+
end
|
77
|
+
# resource path
|
78
|
+
local_var_path = '/observability/log-insights'
|
79
|
+
|
80
|
+
# query parameters
|
81
|
+
query_params = opts[:query_params] || {}
|
82
|
+
query_params[:'visualization'] = visualization
|
83
|
+
query_params[:'service_id'] = service_id
|
84
|
+
query_params[:'start'] = start
|
85
|
+
query_params[:'end'] = _end
|
86
|
+
query_params[:'pops'] = opts[:'pops'] if !opts[:'pops'].nil?
|
87
|
+
query_params[:'domain'] = opts[:'domain'] if !opts[:'domain'].nil?
|
88
|
+
query_params[:'domain_exact_match'] = opts[:'domain_exact_match'] if !opts[:'domain_exact_match'].nil?
|
89
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
90
|
+
|
91
|
+
# header parameters
|
92
|
+
header_params = opts[:header_params] || {}
|
93
|
+
# HTTP header 'Accept' (if needed)
|
94
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
95
|
+
|
96
|
+
# form parameters
|
97
|
+
form_params = opts[:form_params] || {}
|
98
|
+
|
99
|
+
# http body (model)
|
100
|
+
post_body = opts[:debug_body]
|
101
|
+
|
102
|
+
# return_type
|
103
|
+
return_type = opts[:debug_return_type] || 'GetLogInsightsResponse'
|
104
|
+
|
105
|
+
# auth_names
|
106
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
107
|
+
|
108
|
+
new_options = opts.merge(
|
109
|
+
:operation => :"InsightsApi.get_log_insights",
|
110
|
+
:header_params => header_params,
|
111
|
+
:query_params => query_params,
|
112
|
+
:form_params => form_params,
|
113
|
+
:body => post_body,
|
114
|
+
:auth_names => auth_names,
|
115
|
+
:return_type => return_type
|
116
|
+
)
|
117
|
+
|
118
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
119
|
+
if @api_client.config.debugging
|
120
|
+
@api_client.config.logger.debug "API called: InsightsApi#get_log_insights\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
121
|
+
end
|
122
|
+
return data, status_code, headers
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|