fastly 9.0.0 → 11.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 +66 -19
- data/Gemfile.lock +3 -3
- data/README.md +50 -46
- data/docs/AclsInComputeApi.md +2 -2
- data/docs/AiAcceleratorResponseBodyEnable.md +12 -0
- data/docs/AiAcceleratorResponseCustomer.md +10 -0
- data/docs/AiAcceleratorResponseCustomerCustomer.md +11 -0
- data/docs/AiAcceleratorResponseLinks.md +10 -0
- data/docs/AiAcceleratorResponseLinksLinks.md +10 -0
- data/docs/AiAcceleratorResponseProduct.md +10 -0
- data/docs/AiAcceleratorResponseProductProduct.md +11 -0
- data/docs/AutomationToken.md +1 -1
- data/docs/AutomationTokenCreateRequestAttributes.md +1 -1
- data/docs/AutomationTokenCreateResponse.md +4 -6
- data/docs/AutomationTokenCreateResponseAllOf.md +3 -3
- data/docs/AutomationTokenResponse.md +4 -6
- data/docs/AutomationTokenResponseAllOf.md +4 -4
- data/docs/Backend.md +1 -1
- data/docs/BackendApi.md +4 -4
- data/docs/BackendResponse.md +1 -1
- data/docs/BillingUsageMetricsApi.md +15 -13
- 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/ComputeAclListEntriesMeta.md +1 -1
- data/docs/{LegacyWafTag.md → ComputeAclListMeta.md} +2 -2
- data/docs/ComputeAclLookup.md +1 -2
- data/docs/{BillingEstimateInvoiceId.md → DdosProtectionRequestUpdateConfiguration.md} +2 -2
- data/docs/DdosProtectionResponseConfiguration.md +10 -0
- data/docs/{ReadOnlyServiceId.md → DdosProtectionResponseConfigurationConfiguration.md} +2 -1
- data/docs/DdosProtectionResponseConfigure.md +13 -0
- data/docs/DdosProtectionResponseEnable.md +12 -0
- data/docs/{BillingResponseItemItemsData.md → DdosProtectionResponseLinks.md} +2 -2
- data/docs/DdosProtectionResponseLinksLinks.md +11 -0
- data/docs/DdosProtectionResponseProduct.md +10 -0
- data/docs/DdosProtectionResponseProductProduct.md +11 -0
- data/docs/DdosProtectionResponseService.md +10 -0
- data/docs/DomainInspectorMeasurements.md +2 -0
- data/docs/DomainInspectorResponseBodyEnable.md +12 -0
- data/docs/DomainInspectorResponseLinks.md +10 -0
- data/docs/DomainInspectorResponseLinksLinks.md +11 -0
- data/docs/DomainInspectorResponseProduct.md +10 -0
- data/docs/DomainInspectorResponseProductProduct.md +11 -0
- 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/Header.md +2 -0
- data/docs/HeaderApi.md +8 -8
- data/docs/ImageOptimizerResponseBodyEnable.md +12 -0
- data/docs/ImageOptimizerResponseLinks.md +10 -0
- data/docs/ImageOptimizerResponseLinksLinks.md +11 -0
- data/docs/ImageOptimizerResponseProduct.md +10 -0
- data/docs/ImageOptimizerResponseProductProduct.md +11 -0
- data/docs/ImageOptimizerResponseService.md +10 -0
- data/docs/InlineResponse2003.md +2 -2
- data/docs/InlineResponse2004.md +1 -1
- data/docs/KvStoreApi.md +30 -30
- data/docs/{Batch.md → KvStoreBatchResponse.md} +2 -2
- data/docs/{BatchErrors.md → KvStoreBatchResponseErrors.md} +4 -4
- data/docs/{StoreResponse.md → KvStoreDetails.md} +2 -2
- data/docs/KvStoreItemApi.md +53 -50
- data/docs/KvStoreRequestCreate.md +10 -0
- data/docs/KvStoreUpsertBatch.md +14 -0
- data/docs/LogExplorerInsightsResponseBodyEnable.md +12 -0
- data/docs/LogExplorerInsightsResponseLinks.md +10 -0
- data/docs/LogExplorerInsightsResponseLinksLinks.md +11 -0
- data/docs/{BillingBandwidth.md → LogExplorerInsightsResponseProduct.md} +2 -3
- data/docs/LogExplorerInsightsResponseProductProduct.md +11 -0
- data/docs/LogExplorerInsightsResponseService.md +10 -0
- data/docs/LoggingAzureblobAdditional.md +1 -1
- data/docs/LoggingAzureblobApi.md +4 -4
- data/docs/LoggingAzureblobResponse.md +1 -1
- data/docs/{BillingInvoiceId.md → NgwafRequestEnable.md} +2 -2
- data/docs/NgwafRequestUpdateConfiguration.md +11 -0
- data/docs/NgwafResponseConfiguration.md +10 -0
- data/docs/{ConfiguredProductResponseConfiguration.md → NgwafResponseConfigurationConfiguration.md} +2 -2
- data/docs/NgwafResponseConfigure.md +13 -0
- data/docs/NgwafResponseEnable.md +12 -0
- data/docs/NgwafResponseLinks.md +10 -0
- data/docs/{ConfiguredProductResponseLinks.md → NgwafResponseLinksLinks.md} +1 -1
- data/docs/{InlineResponse2004Meta.md → NgwafResponseProduct.md} +2 -3
- data/docs/{ConfiguredProductResponseProduct.md → NgwafResponseProductProduct.md} +1 -1
- data/docs/NgwafResponseService.md +10 -0
- data/docs/ObjectStorageResponseBodyEnable.md +12 -0
- data/docs/ObjectStorageResponseCustomer.md +10 -0
- data/docs/ObjectStorageResponseLinks.md +10 -0
- data/docs/ObjectStorageResponseLinksLinks.md +10 -0
- data/docs/ObjectStorageResponseProduct.md +10 -0
- data/docs/ObjectStorageResponseProductProduct.md +11 -0
- data/docs/OriginInspectorMeasurements.md +4 -0
- data/docs/OriginInspectorResponseBodyEnable.md +12 -0
- data/docs/OriginInspectorResponseLinks.md +10 -0
- data/docs/OriginInspectorResponseLinksLinks.md +11 -0
- data/docs/OriginInspectorResponseProduct.md +10 -0
- data/docs/OriginInspectorResponseProductProduct.md +11 -0
- data/docs/OriginInspectorResponseService.md +10 -0
- data/docs/OriginInspectorValues.md +4 -0
- data/docs/ProductAiAcceleratorApi.md +115 -0
- data/docs/ProductBotManagementApi.md +130 -0
- data/docs/ProductBrotliCompressionApi.md +130 -0
- data/docs/ProductDdosProtectionApi.md +208 -0
- data/docs/ProductDomainInspectorApi.md +130 -0
- data/docs/ProductFanoutApi.md +130 -0
- data/docs/ProductImageOptimizerApi.md +130 -0
- data/docs/ProductLogExplorerInsightsApi.md +130 -0
- data/docs/ProductNgwafApi.md +210 -0
- data/docs/ProductObjectStorageApi.md +115 -0
- data/docs/ProductOriginInspectorApi.md +130 -0
- data/docs/ProductWebsocketsApi.md +130 -0
- data/docs/RealtimeEntryAggregated.md +18 -3
- data/docs/RealtimeMeasurements.md +18 -3
- data/docs/Results.md +25 -3
- data/docs/SnippetApi.md +17 -17
- data/docs/{SnippetResponseCommonAllOf.md → SnippetResponseAllOf.md} +1 -1
- data/docs/TlsBulkCertificatesApi.md +4 -0
- data/docs/Values.md +2 -0
- data/docs/WebsocketsResponseBodyEnable.md +12 -0
- data/docs/WebsocketsResponseLinks.md +10 -0
- data/docs/WebsocketsResponseLinksLinks.md +11 -0
- data/docs/WebsocketsResponseProduct.md +10 -0
- data/docs/WebsocketsResponseProductProduct.md +11 -0
- data/docs/{BillingEstimateLines.md → WebsocketsResponseService.md} +2 -2
- data/lib/fastly/api/acls_in_compute_api.rb +3 -3
- data/lib/fastly/api/automation_tokens_api.rb +6 -6
- data/lib/fastly/api/backend_api.rb +4 -4
- data/lib/fastly/api/billing_usage_metrics_api.rb +33 -30
- data/lib/fastly/api/header_api.rb +8 -8
- data/lib/fastly/api/kv_store_api.rb +53 -45
- data/lib/fastly/api/kv_store_item_api.rb +112 -100
- data/lib/fastly/api/logging_azureblob_api.rb +4 -4
- 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 +38 -38
- data/lib/fastly/api/tls_bulk_certificates_api.rb +6 -0
- data/lib/fastly/configuration.rb +248 -224
- data/lib/fastly/models/{billing_regions.rb → ai_accelerator_response_body_enable.rb} +31 -31
- 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/{billing_estimate_invoice_id.rb → ai_accelerator_response_links.rb} +10 -10
- data/lib/fastly/models/ai_accelerator_response_links_links.rb +217 -0
- data/lib/fastly/models/{billing_response_item_items_data.rb → ai_accelerator_response_product.rb} +10 -12
- data/lib/fastly/models/ai_accelerator_response_product_product.rb +227 -0
- data/lib/fastly/models/automation_token.rb +1 -1
- data/lib/fastly/models/automation_token_create_request_attributes.rb +1 -1
- data/lib/fastly/models/automation_token_create_response.rb +21 -43
- data/lib/fastly/models/automation_token_create_response_all_of.rb +13 -12
- data/lib/fastly/models/automation_token_response.rb +24 -46
- data/lib/fastly/models/automation_token_response_all_of.rb +11 -10
- 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/{billing_bandwidth.rb → compute_acl_list.rb} +19 -18
- data/lib/fastly/models/compute_acl_list_entries_meta.rb +1 -1
- data/lib/fastly/models/compute_acl_list_meta.rb +218 -0
- data/lib/fastly/models/compute_acl_lookup.rb +2 -12
- data/lib/fastly/models/{snippet_all_of.rb → ddos_protection_request_update_configuration.rb} +24 -19
- data/lib/fastly/models/ddos_protection_response_configuration.rb +216 -0
- data/lib/fastly/models/ddos_protection_response_configuration_configuration.rb +217 -0
- data/lib/fastly/models/ddos_protection_response_configure.rb +253 -0
- data/lib/fastly/models/ddos_protection_response_enable.rb +243 -0
- data/lib/fastly/models/ddos_protection_response_links.rb +216 -0
- data/lib/fastly/models/ddos_protection_response_links_links.rb +227 -0
- data/lib/fastly/models/ddos_protection_response_product.rb +216 -0
- data/lib/fastly/models/ddos_protection_response_product_product.rb +227 -0
- data/lib/fastly/models/ddos_protection_response_service.rb +216 -0
- data/lib/fastly/models/domain_inspector_measurements.rb +21 -1
- data/lib/fastly/models/domain_inspector_response_body_enable.rb +243 -0
- data/lib/fastly/models/domain_inspector_response_links.rb +216 -0
- data/lib/fastly/models/domain_inspector_response_links_links.rb +227 -0
- data/lib/fastly/models/domain_inspector_response_product.rb +216 -0
- data/lib/fastly/models/domain_inspector_response_product_product.rb +227 -0
- data/lib/fastly/models/domain_inspector_response_service.rb +216 -0
- data/lib/fastly/models/fanout_response_body_enable.rb +243 -0
- data/lib/fastly/models/{store.rb → fanout_response_links.rb} +10 -11
- data/lib/fastly/models/{enabled_product_response_links.rb → fanout_response_links_links.rb} +3 -3
- data/lib/fastly/models/fanout_response_product.rb +216 -0
- data/lib/fastly/models/{enabled_product_response_product.rb → fanout_response_product_product.rb} +3 -3
- data/lib/fastly/models/fanout_response_service.rb +216 -0
- data/lib/fastly/models/header.rb +26 -4
- data/lib/fastly/models/header_response.rb +0 -1
- 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/{snippet_common.rb → kv_store_upsert_batch.rb} +55 -69
- 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/logging_azureblob_additional.rb +1 -1
- data/lib/fastly/models/logging_azureblob_response.rb +1 -1
- data/lib/fastly/models/{set_workspace_id.rb → ngwaf_request_enable.rb} +9 -4
- data/lib/fastly/models/ngwaf_request_update_configuration.rb +227 -0
- data/lib/fastly/models/ngwaf_response_configuration.rb +216 -0
- data/lib/fastly/models/{configured_product_response_configuration.rb → ngwaf_response_configuration_configuration.rb} +4 -4
- data/lib/fastly/models/{configured_product_response.rb → ngwaf_response_configure.rb} +17 -7
- data/lib/fastly/models/{enabled_product_response.rb → ngwaf_response_enable.rb} +15 -6
- data/lib/fastly/models/{legacy_waf_tag.rb → ngwaf_response_links.rb} +10 -11
- data/lib/fastly/models/{configured_product_response_links.rb → ngwaf_response_links_links.rb} +3 -3
- data/lib/fastly/models/{billing_invoice_id.rb → ngwaf_response_product.rb} +10 -10
- data/lib/fastly/models/ngwaf_response_product_product.rb +227 -0
- data/lib/fastly/models/{billing_estimate_lines.rb → ngwaf_response_service.rb} +10 -12
- data/lib/fastly/models/{billing_total_extras.rb → object_storage_response_body_enable.rb} +31 -25
- data/lib/fastly/models/object_storage_response_customer.rb +216 -0
- data/lib/fastly/models/object_storage_response_links.rb +216 -0
- data/lib/fastly/models/object_storage_response_links_links.rb +217 -0
- data/lib/fastly/models/object_storage_response_product.rb +216 -0
- data/lib/fastly/models/object_storage_response_product_product.rb +227 -0
- data/lib/fastly/models/origin_inspector_measurements.rb +41 -1
- data/lib/fastly/models/origin_inspector_response_body_enable.rb +243 -0
- data/lib/fastly/models/origin_inspector_response_links.rb +216 -0
- data/lib/fastly/models/origin_inspector_response_links_links.rb +227 -0
- data/lib/fastly/models/origin_inspector_response_product.rb +216 -0
- data/lib/fastly/models/origin_inspector_response_product_product.rb +227 -0
- data/lib/fastly/models/origin_inspector_response_service.rb +216 -0
- data/lib/fastly/models/origin_inspector_values.rb +41 -1
- data/lib/fastly/models/realtime_entry_aggregated.rb +169 -19
- data/lib/fastly/models/realtime_measurements.rb +169 -19
- data/lib/fastly/models/results.rb +239 -19
- data/lib/fastly/models/schemas_snippet_response.rb +4 -2
- data/lib/fastly/models/snippet.rb +1 -8
- data/lib/fastly/models/snippet_response.rb +3 -1
- data/lib/fastly/models/{snippet_response_common_all_of.rb → snippet_response_all_of.rb} +3 -3
- data/lib/fastly/models/values.rb +21 -1
- 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 +103 -61
- data/sig.json +1 -1
- metadata +211 -127
- data/docs/Billing.md +0 -16
- data/docs/BillingApi.md +0 -139
- data/docs/BillingBandwidthTiers.md +0 -14
- data/docs/BillingEstimateLinesLineItems.md +0 -18
- data/docs/BillingEstimateResponse.md +0 -18
- data/docs/BillingRegions.md +0 -13
- data/docs/BillingResponse.md +0 -18
- data/docs/BillingResponseLineItem.md +0 -29
- data/docs/BillingStatus.md +0 -11
- data/docs/BillingTotal.md +0 -25
- data/docs/BillingTotalExtras.md +0 -12
- data/docs/ConfiguredProductResponse.md +0 -13
- data/docs/EnabledProductResponse.md +0 -12
- data/docs/EnabledProductsApi.md +0 -220
- data/docs/HeaderResponseAdditional.md +0 -11
- data/docs/InlineResponse2003Meta.md +0 -11
- 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/LineItemData.md +0 -26
- data/docs/ReadOnlyVersion.md +0 -9
- data/docs/SchemasSnippetResponseCommon.md +0 -15
- data/docs/SetConfiguration.md +0 -12
- data/docs/SetWorkspaceId.md +0 -10
- data/docs/SnippetAllOf.md +0 -10
- data/docs/SnippetCommon.md +0 -13
- data/docs/SnippetResponseCommon.md +0 -15
- data/docs/SnippetResponsePost.md +0 -20
- data/docs/SnippetWithDynamicNumber.md +0 -14
- data/docs/SnippetWithDynamicNumberAllOf.md +0 -10
- data/docs/Store.md +0 -10
- data/lib/fastly/api/billing_api.rb +0 -229
- 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/billing.rb +0 -278
- data/lib/fastly/models/billing_bandwidth_tiers.rb +0 -252
- data/lib/fastly/models/billing_estimate_lines_line_items.rb +0 -288
- data/lib/fastly/models/billing_estimate_response.rb +0 -307
- data/lib/fastly/models/billing_response.rb +0 -307
- data/lib/fastly/models/billing_response_line_item.rb +0 -418
- data/lib/fastly/models/billing_status.rb +0 -262
- data/lib/fastly/models/billing_total.rb +0 -371
- data/lib/fastly/models/header_response_additional.rb +0 -229
- data/lib/fastly/models/inline_response2003_meta.rb +0 -228
- data/lib/fastly/models/inline_response2004_meta.rb +0 -225
- data/lib/fastly/models/legacy_waf_firewall.rb +0 -297
- data/lib/fastly/models/legacy_waf_owasp.rb +0 -527
- data/lib/fastly/models/legacy_waf_rule.rb +0 -257
- data/lib/fastly/models/legacy_waf_rule_status.rb +0 -237
- data/lib/fastly/models/legacy_waf_ruleset.rb +0 -227
- data/lib/fastly/models/legacy_waf_update_status.rb +0 -267
- data/lib/fastly/models/line_item_data.rb +0 -377
- data/lib/fastly/models/read_only_service_id.rb +0 -207
- data/lib/fastly/models/read_only_version.rb +0 -207
- data/lib/fastly/models/schemas_snippet_response_common.rb +0 -276
- data/lib/fastly/models/set_configuration.rb +0 -237
- data/lib/fastly/models/snippet_response_common.rb +0 -276
- data/lib/fastly/models/snippet_response_post.rb +0 -374
- data/lib/fastly/models/snippet_with_dynamic_number.rb +0 -313
- data/lib/fastly/models/snippet_with_dynamic_number_all_of.rb +0 -251
@@ -17,44 +17,50 @@ module Fastly
|
|
17
17
|
def initialize(api_client = ApiClient.default)
|
18
18
|
@api_client = api_client
|
19
19
|
end
|
20
|
-
# Delete
|
21
|
-
# Delete an item
|
20
|
+
# Delete an item.
|
21
|
+
# Delete an item.
|
22
22
|
# @option opts [String] :store_id (required)
|
23
|
-
# @option opts [String] :
|
23
|
+
# @option opts [String] :key (required)
|
24
|
+
# @option opts [Integer] :if_generation_match
|
25
|
+
# @option opts [Boolean] :force (default to false)
|
24
26
|
# @return [nil]
|
25
|
-
def
|
26
|
-
|
27
|
+
def kv_store_delete_item(opts = {})
|
28
|
+
kv_store_delete_item_with_http_info(opts)
|
27
29
|
nil
|
28
30
|
end
|
29
31
|
|
30
|
-
# Delete
|
31
|
-
# Delete an item
|
32
|
+
# Delete an item.
|
33
|
+
# Delete an item.
|
32
34
|
# @option opts [String] :store_id (required)
|
33
|
-
# @option opts [String] :
|
35
|
+
# @option opts [String] :key (required)
|
36
|
+
# @option opts [Integer] :if_generation_match
|
37
|
+
# @option opts [Boolean] :force (default to false)
|
34
38
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
35
|
-
def
|
39
|
+
def kv_store_delete_item_with_http_info(opts = {})
|
36
40
|
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API: KvStoreItemApi.
|
41
|
+
@api_client.config.logger.debug 'Calling API: KvStoreItemApi.kv_store_delete_item ...'
|
38
42
|
end
|
39
43
|
# unbox the parameters from the hash
|
40
44
|
store_id = opts[:'store_id']
|
41
|
-
|
45
|
+
key = opts[:'key']
|
42
46
|
# verify the required parameter 'store_id' is set
|
43
47
|
if @api_client.config.client_side_validation && store_id.nil?
|
44
|
-
fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreItemApi.
|
48
|
+
fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreItemApi.kv_store_delete_item"
|
45
49
|
end
|
46
|
-
# verify the required parameter '
|
47
|
-
if @api_client.config.client_side_validation &&
|
48
|
-
fail ArgumentError, "Missing the required parameter '
|
50
|
+
# verify the required parameter 'key' is set
|
51
|
+
if @api_client.config.client_side_validation && key.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling KvStoreItemApi.kv_store_delete_item"
|
49
53
|
end
|
50
54
|
# resource path
|
51
|
-
local_var_path = '/resources/stores/kv/{store_id}/keys/{
|
55
|
+
local_var_path = '/resources/stores/kv/{store_id}/keys/{key}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key' + '}', CGI.escape(key.to_s))
|
52
56
|
|
53
57
|
# query parameters
|
54
58
|
query_params = opts[:query_params] || {}
|
59
|
+
query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
|
55
60
|
|
56
61
|
# header parameters
|
57
62
|
header_params = opts[:header_params] || {}
|
63
|
+
header_params[:'if-generation-match'] = opts[:'if_generation_match'] if !opts[:'if_generation_match'].nil?
|
58
64
|
|
59
65
|
# form parameters
|
60
66
|
form_params = opts[:form_params] || {}
|
@@ -69,7 +75,7 @@ module Fastly
|
|
69
75
|
auth_names = opts[:debug_auth_names] || ['token']
|
70
76
|
|
71
77
|
new_options = opts.merge(
|
72
|
-
:operation => :"KvStoreItemApi.
|
78
|
+
:operation => :"KvStoreItemApi.kv_store_delete_item",
|
73
79
|
:header_params => header_params,
|
74
80
|
:query_params => query_params,
|
75
81
|
:form_params => form_params,
|
@@ -80,56 +86,51 @@ module Fastly
|
|
80
86
|
|
81
87
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
82
88
|
if @api_client.config.debugging
|
83
|
-
@api_client.config.logger.debug "API called: KvStoreItemApi#
|
89
|
+
@api_client.config.logger.debug "API called: KvStoreItemApi#kv_store_delete_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
90
|
end
|
85
91
|
return data, status_code, headers
|
86
92
|
end
|
87
93
|
|
88
|
-
#
|
89
|
-
#
|
94
|
+
# Get an item.
|
95
|
+
# Get an item, including its value, metadata (if any), and generation marker.
|
90
96
|
# @option opts [String] :store_id (required)
|
91
|
-
# @option opts [String] :
|
92
|
-
# @
|
93
|
-
|
94
|
-
|
95
|
-
# @return [InlineResponse2004]
|
96
|
-
def get_keys(opts = {})
|
97
|
-
data, _status_code, _headers = get_keys_with_http_info(opts)
|
97
|
+
# @option opts [String] :key (required)
|
98
|
+
# @return [String]
|
99
|
+
def kv_store_get_item(opts = {})
|
100
|
+
data, _status_code, _headers = kv_store_get_item_with_http_info(opts)
|
98
101
|
data
|
99
102
|
end
|
100
103
|
|
101
|
-
#
|
102
|
-
#
|
104
|
+
# Get an item.
|
105
|
+
# Get an item, including its value, metadata (if any), and generation marker.
|
103
106
|
# @option opts [String] :store_id (required)
|
104
|
-
# @option opts [String] :
|
105
|
-
# @
|
106
|
-
|
107
|
-
# @option opts [String] :consistency
|
108
|
-
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
109
|
-
def get_keys_with_http_info(opts = {})
|
107
|
+
# @option opts [String] :key (required)
|
108
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
109
|
+
def kv_store_get_item_with_http_info(opts = {})
|
110
110
|
if @api_client.config.debugging
|
111
|
-
@api_client.config.logger.debug 'Calling API: KvStoreItemApi.
|
111
|
+
@api_client.config.logger.debug 'Calling API: KvStoreItemApi.kv_store_get_item ...'
|
112
112
|
end
|
113
113
|
# unbox the parameters from the hash
|
114
114
|
store_id = opts[:'store_id']
|
115
|
+
key = opts[:'key']
|
115
116
|
# verify the required parameter 'store_id' is set
|
116
117
|
if @api_client.config.client_side_validation && store_id.nil?
|
117
|
-
fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreItemApi.
|
118
|
+
fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreItemApi.kv_store_get_item"
|
119
|
+
end
|
120
|
+
# verify the required parameter 'key' is set
|
121
|
+
if @api_client.config.client_side_validation && key.nil?
|
122
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling KvStoreItemApi.kv_store_get_item"
|
118
123
|
end
|
119
124
|
# resource path
|
120
|
-
local_var_path = '/resources/stores/kv/{store_id}/keys'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
|
125
|
+
local_var_path = '/resources/stores/kv/{store_id}/keys/{key}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key' + '}', CGI.escape(key.to_s))
|
121
126
|
|
122
127
|
# query parameters
|
123
128
|
query_params = opts[:query_params] || {}
|
124
|
-
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
125
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
126
|
-
query_params[:'prefix'] = opts[:'prefix'] if !opts[:'prefix'].nil?
|
127
|
-
query_params[:'consistency'] = opts[:'consistency'] if !opts[:'consistency'].nil?
|
128
129
|
|
129
130
|
# header parameters
|
130
131
|
header_params = opts[:header_params] || {}
|
131
132
|
# HTTP header 'Accept' (if needed)
|
132
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
133
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
133
134
|
|
134
135
|
# form parameters
|
135
136
|
form_params = opts[:form_params] || {}
|
@@ -138,13 +139,13 @@ module Fastly
|
|
138
139
|
post_body = opts[:debug_body]
|
139
140
|
|
140
141
|
# return_type
|
141
|
-
return_type = opts[:debug_return_type] || '
|
142
|
+
return_type = opts[:debug_return_type] || 'String'
|
142
143
|
|
143
144
|
# auth_names
|
144
145
|
auth_names = opts[:debug_auth_names] || ['token']
|
145
146
|
|
146
147
|
new_options = opts.merge(
|
147
|
-
:operation => :"KvStoreItemApi.
|
148
|
+
:operation => :"KvStoreItemApi.kv_store_get_item",
|
148
149
|
:header_params => header_params,
|
149
150
|
:query_params => query_params,
|
150
151
|
:form_params => form_params,
|
@@ -155,51 +156,64 @@ module Fastly
|
|
155
156
|
|
156
157
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
157
158
|
if @api_client.config.debugging
|
158
|
-
@api_client.config.logger.debug "API called: KvStoreItemApi#
|
159
|
+
@api_client.config.logger.debug "API called: KvStoreItemApi#kv_store_get_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
159
160
|
end
|
160
161
|
return data, status_code, headers
|
161
162
|
end
|
162
163
|
|
163
|
-
#
|
164
|
-
#
|
164
|
+
# List item keys.
|
165
|
+
# Lists the matching item keys (or all item keys, if no prefix is supplied).
|
165
166
|
# @option opts [String] :store_id (required)
|
166
|
-
# @option opts [String] :
|
167
|
-
# @
|
168
|
-
|
169
|
-
|
167
|
+
# @option opts [String] :cursor
|
168
|
+
# @option opts [Integer] :limit (default to 100)
|
169
|
+
# @option opts [String] :prefix
|
170
|
+
# @option opts [String] :consistency (default to 'strong')
|
171
|
+
# @return [InlineResponse2004]
|
172
|
+
def kv_store_list_item_keys(opts = {})
|
173
|
+
data, _status_code, _headers = kv_store_list_item_keys_with_http_info(opts)
|
170
174
|
data
|
171
175
|
end
|
172
176
|
|
173
|
-
#
|
174
|
-
#
|
177
|
+
# List item keys.
|
178
|
+
# Lists the matching item keys (or all item keys, if no prefix is supplied).
|
175
179
|
# @option opts [String] :store_id (required)
|
176
|
-
# @option opts [String] :
|
177
|
-
# @
|
178
|
-
|
180
|
+
# @option opts [String] :cursor
|
181
|
+
# @option opts [Integer] :limit (default to 100)
|
182
|
+
# @option opts [String] :prefix
|
183
|
+
# @option opts [String] :consistency (default to 'strong')
|
184
|
+
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
185
|
+
def kv_store_list_item_keys_with_http_info(opts = {})
|
179
186
|
if @api_client.config.debugging
|
180
|
-
@api_client.config.logger.debug 'Calling API: KvStoreItemApi.
|
187
|
+
@api_client.config.logger.debug 'Calling API: KvStoreItemApi.kv_store_list_item_keys ...'
|
181
188
|
end
|
182
189
|
# unbox the parameters from the hash
|
183
190
|
store_id = opts[:'store_id']
|
184
|
-
key_name = opts[:'key_name']
|
185
191
|
# verify the required parameter 'store_id' is set
|
186
192
|
if @api_client.config.client_side_validation && store_id.nil?
|
187
|
-
fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreItemApi.
|
193
|
+
fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreItemApi.kv_store_list_item_keys"
|
194
|
+
end
|
195
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
196
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling KvStoreItemApi.kv_store_list_item_keys, must be greater than or equal to 1.'
|
188
197
|
end
|
189
|
-
|
190
|
-
|
191
|
-
|
198
|
+
|
199
|
+
allowable_values = ["strong", "eventual"]
|
200
|
+
if @api_client.config.client_side_validation && opts[:'consistency'] && !allowable_values.include?(opts[:'consistency'])
|
201
|
+
fail ArgumentError, "invalid value for \"consistency\", must be one of #{allowable_values}"
|
192
202
|
end
|
193
203
|
# resource path
|
194
|
-
local_var_path = '/resources/stores/kv/{store_id}/keys
|
204
|
+
local_var_path = '/resources/stores/kv/{store_id}/keys'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
|
195
205
|
|
196
206
|
# query parameters
|
197
207
|
query_params = opts[:query_params] || {}
|
208
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
209
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
210
|
+
query_params[:'prefix'] = opts[:'prefix'] if !opts[:'prefix'].nil?
|
211
|
+
query_params[:'consistency'] = opts[:'consistency'] if !opts[:'consistency'].nil?
|
198
212
|
|
199
213
|
# header parameters
|
200
214
|
header_params = opts[:header_params] || {}
|
201
215
|
# HTTP header 'Accept' (if needed)
|
202
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
216
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
203
217
|
|
204
218
|
# form parameters
|
205
219
|
form_params = opts[:form_params] || {}
|
@@ -208,13 +222,13 @@ module Fastly
|
|
208
222
|
post_body = opts[:debug_body]
|
209
223
|
|
210
224
|
# return_type
|
211
|
-
return_type = opts[:debug_return_type] || '
|
225
|
+
return_type = opts[:debug_return_type] || 'InlineResponse2004'
|
212
226
|
|
213
227
|
# auth_names
|
214
228
|
auth_names = opts[:debug_auth_names] || ['token']
|
215
229
|
|
216
230
|
new_options = opts.merge(
|
217
|
-
:operation => :"KvStoreItemApi.
|
231
|
+
:operation => :"KvStoreItemApi.kv_store_list_item_keys",
|
218
232
|
:header_params => header_params,
|
219
233
|
:query_params => query_params,
|
220
234
|
:form_params => form_params,
|
@@ -225,59 +239,59 @@ module Fastly
|
|
225
239
|
|
226
240
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
227
241
|
if @api_client.config.debugging
|
228
|
-
@api_client.config.logger.debug "API called: KvStoreItemApi#
|
242
|
+
@api_client.config.logger.debug "API called: KvStoreItemApi#kv_store_list_item_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
229
243
|
end
|
230
244
|
return data, status_code, headers
|
231
245
|
end
|
232
246
|
|
233
|
-
# Insert
|
234
|
-
#
|
247
|
+
# Insert or update an item.
|
248
|
+
# Inserts or updates an item's value and metadata.
|
235
249
|
# @option opts [String] :store_id (required)
|
236
|
-
# @option opts [String] :
|
250
|
+
# @option opts [String] :key (required)
|
237
251
|
# @option opts [Integer] :if_generation_match
|
238
252
|
# @option opts [Integer] :time_to_live_sec
|
239
253
|
# @option opts [String] :metadata
|
240
|
-
# @option opts [Boolean] :add
|
241
|
-
# @option opts [Boolean] :append
|
242
|
-
# @option opts [Boolean] :prepend
|
243
|
-
# @option opts [Boolean] :background_fetch
|
254
|
+
# @option opts [Boolean] :add (default to false)
|
255
|
+
# @option opts [Boolean] :append (default to false)
|
256
|
+
# @option opts [Boolean] :prepend (default to false)
|
257
|
+
# @option opts [Boolean] :background_fetch (default to false)
|
244
258
|
# @option opts [String] :body
|
245
|
-
# @return [
|
246
|
-
def
|
247
|
-
|
248
|
-
|
259
|
+
# @return [nil]
|
260
|
+
def kv_store_upsert_item(opts = {})
|
261
|
+
kv_store_upsert_item_with_http_info(opts)
|
262
|
+
nil
|
249
263
|
end
|
250
264
|
|
251
|
-
# Insert
|
252
|
-
#
|
265
|
+
# Insert or update an item.
|
266
|
+
# Inserts or updates an item's value and metadata.
|
253
267
|
# @option opts [String] :store_id (required)
|
254
|
-
# @option opts [String] :
|
268
|
+
# @option opts [String] :key (required)
|
255
269
|
# @option opts [Integer] :if_generation_match
|
256
270
|
# @option opts [Integer] :time_to_live_sec
|
257
271
|
# @option opts [String] :metadata
|
258
|
-
# @option opts [Boolean] :add
|
259
|
-
# @option opts [Boolean] :append
|
260
|
-
# @option opts [Boolean] :prepend
|
261
|
-
# @option opts [Boolean] :background_fetch
|
272
|
+
# @option opts [Boolean] :add (default to false)
|
273
|
+
# @option opts [Boolean] :append (default to false)
|
274
|
+
# @option opts [Boolean] :prepend (default to false)
|
275
|
+
# @option opts [Boolean] :background_fetch (default to false)
|
262
276
|
# @option opts [String] :body
|
263
|
-
# @return [Array<(
|
264
|
-
def
|
277
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
278
|
+
def kv_store_upsert_item_with_http_info(opts = {})
|
265
279
|
if @api_client.config.debugging
|
266
|
-
@api_client.config.logger.debug 'Calling API: KvStoreItemApi.
|
280
|
+
@api_client.config.logger.debug 'Calling API: KvStoreItemApi.kv_store_upsert_item ...'
|
267
281
|
end
|
268
282
|
# unbox the parameters from the hash
|
269
283
|
store_id = opts[:'store_id']
|
270
|
-
|
284
|
+
key = opts[:'key']
|
271
285
|
# verify the required parameter 'store_id' is set
|
272
286
|
if @api_client.config.client_side_validation && store_id.nil?
|
273
|
-
fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreItemApi.
|
287
|
+
fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreItemApi.kv_store_upsert_item"
|
274
288
|
end
|
275
|
-
# verify the required parameter '
|
276
|
-
if @api_client.config.client_side_validation &&
|
277
|
-
fail ArgumentError, "Missing the required parameter '
|
289
|
+
# verify the required parameter 'key' is set
|
290
|
+
if @api_client.config.client_side_validation && key.nil?
|
291
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling KvStoreItemApi.kv_store_upsert_item"
|
278
292
|
end
|
279
293
|
# resource path
|
280
|
-
local_var_path = '/resources/stores/kv/{store_id}/keys/{
|
294
|
+
local_var_path = '/resources/stores/kv/{store_id}/keys/{key}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key' + '}', CGI.escape(key.to_s))
|
281
295
|
|
282
296
|
# query parameters
|
283
297
|
query_params = opts[:query_params] || {}
|
@@ -288,8 +302,6 @@ module Fastly
|
|
288
302
|
|
289
303
|
# header parameters
|
290
304
|
header_params = opts[:header_params] || {}
|
291
|
-
# HTTP header 'Accept' (if needed)
|
292
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
293
305
|
# HTTP header 'Content-Type'
|
294
306
|
content_type = @api_client.select_header_content_type(['application/octet-stream'])
|
295
307
|
if !content_type.nil?
|
@@ -306,13 +318,13 @@ module Fastly
|
|
306
318
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
|
307
319
|
|
308
320
|
# return_type
|
309
|
-
return_type = opts[:debug_return_type]
|
321
|
+
return_type = opts[:debug_return_type]
|
310
322
|
|
311
323
|
# auth_names
|
312
324
|
auth_names = opts[:debug_auth_names] || ['token']
|
313
325
|
|
314
326
|
new_options = opts.merge(
|
315
|
-
:operation => :"KvStoreItemApi.
|
327
|
+
:operation => :"KvStoreItemApi.kv_store_upsert_item",
|
316
328
|
:header_params => header_params,
|
317
329
|
:query_params => query_params,
|
318
330
|
:form_params => form_params,
|
@@ -323,7 +335,7 @@ module Fastly
|
|
323
335
|
|
324
336
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
325
337
|
if @api_client.config.debugging
|
326
|
-
@api_client.config.logger.debug "API called: KvStoreItemApi#
|
338
|
+
@api_client.config.logger.debug "API called: KvStoreItemApi#kv_store_upsert_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
327
339
|
end
|
328
340
|
return data, status_code, headers
|
329
341
|
end
|
@@ -36,7 +36,7 @@ module Fastly
|
|
36
36
|
# @option opts [String] :container The name of the Azure Blob Storage container in which to store logs. Required.
|
37
37
|
# @option opts [String] :sas_token The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required.
|
38
38
|
# @option opts [String] :public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (default to 'null')
|
39
|
-
# @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
|
39
|
+
# @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs=microsoft-entra-id#remarks).
|
40
40
|
# @return [LoggingAzureblobResponse]
|
41
41
|
def create_log_azure(opts = {})
|
42
42
|
data, _status_code, _headers = create_log_azure_with_http_info(opts)
|
@@ -62,7 +62,7 @@ module Fastly
|
|
62
62
|
# @option opts [String] :container The name of the Azure Blob Storage container in which to store logs. Required.
|
63
63
|
# @option opts [String] :sas_token The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required.
|
64
64
|
# @option opts [String] :public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (default to 'null')
|
65
|
-
# @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
|
65
|
+
# @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs=microsoft-entra-id#remarks).
|
66
66
|
# @return [Array<(LoggingAzureblobResponse, Integer, Hash)>] LoggingAzureblobResponse data, response status code and response headers
|
67
67
|
def create_log_azure_with_http_info(opts = {})
|
68
68
|
if @api_client.config.debugging
|
@@ -404,7 +404,7 @@ module Fastly
|
|
404
404
|
# @option opts [String] :container The name of the Azure Blob Storage container in which to store logs. Required.
|
405
405
|
# @option opts [String] :sas_token The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required.
|
406
406
|
# @option opts [String] :public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (default to 'null')
|
407
|
-
# @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
|
407
|
+
# @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs=microsoft-entra-id#remarks).
|
408
408
|
# @return [LoggingAzureblobResponse]
|
409
409
|
def update_log_azure(opts = {})
|
410
410
|
data, _status_code, _headers = update_log_azure_with_http_info(opts)
|
@@ -431,7 +431,7 @@ module Fastly
|
|
431
431
|
# @option opts [String] :container The name of the Azure Blob Storage container in which to store logs. Required.
|
432
432
|
# @option opts [String] :sas_token The Azure shared access signature providing write access to the blob service objects. Be sure to update your token before it expires or the logging functionality will not work. Required.
|
433
433
|
# @option opts [String] :public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (default to 'null')
|
434
|
-
# @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB.)
|
434
|
+
# @option opts [Integer] :file_max_bytes The maximum number of bytes for each uploaded file. A value of 0 can be used to indicate there is no limit on the size of uploaded files, otherwise the minimum value is 1048576 bytes (1 MiB). Note that Microsoft Azure Storage has [block size limits](https://learn.microsoft.com/en-us/rest/api/storageservices/put-block?tabs=microsoft-entra-id#remarks).
|
435
435
|
# @return [Array<(LoggingAzureblobResponse, Integer, Hash)>] LoggingAzureblobResponse data, response status code and response headers
|
436
436
|
def update_log_azure_with_http_info(opts = {})
|
437
437
|
if @api_client.config.debugging
|
@@ -0,0 +1,186 @@
|
|
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 ProductAiAcceleratorApi
|
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 AI Accelerator product
|
22
|
+
# @return [nil]
|
23
|
+
def disable_product_ai_accelerator(opts = {})
|
24
|
+
disable_product_ai_accelerator_with_http_info(opts)
|
25
|
+
nil
|
26
|
+
end
|
27
|
+
|
28
|
+
# Disable product
|
29
|
+
# Disable the AI Accelerator product
|
30
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
31
|
+
def disable_product_ai_accelerator_with_http_info(opts = {})
|
32
|
+
if @api_client.config.debugging
|
33
|
+
@api_client.config.logger.debug 'Calling API: ProductAiAcceleratorApi.disable_product_ai_accelerator ...'
|
34
|
+
end
|
35
|
+
# unbox the parameters from the hash
|
36
|
+
# resource path
|
37
|
+
local_var_path = '/enabled-products/v1/ai_accelerator'
|
38
|
+
|
39
|
+
# query parameters
|
40
|
+
query_params = opts[:query_params] || {}
|
41
|
+
|
42
|
+
# header parameters
|
43
|
+
header_params = opts[:header_params] || {}
|
44
|
+
|
45
|
+
# form parameters
|
46
|
+
form_params = opts[:form_params] || {}
|
47
|
+
|
48
|
+
# http body (model)
|
49
|
+
post_body = opts[:debug_body]
|
50
|
+
|
51
|
+
# return_type
|
52
|
+
return_type = opts[:debug_return_type]
|
53
|
+
|
54
|
+
# auth_names
|
55
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
56
|
+
|
57
|
+
new_options = opts.merge(
|
58
|
+
:operation => :"ProductAiAcceleratorApi.disable_product_ai_accelerator",
|
59
|
+
:header_params => header_params,
|
60
|
+
:query_params => query_params,
|
61
|
+
:form_params => form_params,
|
62
|
+
:body => post_body,
|
63
|
+
:auth_names => auth_names,
|
64
|
+
:return_type => return_type
|
65
|
+
)
|
66
|
+
|
67
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
68
|
+
if @api_client.config.debugging
|
69
|
+
@api_client.config.logger.debug "API called: ProductAiAcceleratorApi#disable_product_ai_accelerator\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
70
|
+
end
|
71
|
+
return data, status_code, headers
|
72
|
+
end
|
73
|
+
|
74
|
+
# Enable product
|
75
|
+
# Enable the AI Accelerator product
|
76
|
+
# @return [AiAcceleratorResponseBodyEnable]
|
77
|
+
def enable_ai_accelerator(opts = {})
|
78
|
+
data, _status_code, _headers = enable_ai_accelerator_with_http_info(opts)
|
79
|
+
data
|
80
|
+
end
|
81
|
+
|
82
|
+
# Enable product
|
83
|
+
# Enable the AI Accelerator product
|
84
|
+
# @return [Array<(AiAcceleratorResponseBodyEnable, Integer, Hash)>] AiAcceleratorResponseBodyEnable data, response status code and response headers
|
85
|
+
def enable_ai_accelerator_with_http_info(opts = {})
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug 'Calling API: ProductAiAcceleratorApi.enable_ai_accelerator ...'
|
88
|
+
end
|
89
|
+
# unbox the parameters from the hash
|
90
|
+
# resource path
|
91
|
+
local_var_path = '/enabled-products/v1/ai_accelerator'
|
92
|
+
|
93
|
+
# query parameters
|
94
|
+
query_params = opts[:query_params] || {}
|
95
|
+
|
96
|
+
# header parameters
|
97
|
+
header_params = opts[:header_params] || {}
|
98
|
+
# HTTP header 'Accept' (if needed)
|
99
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
100
|
+
|
101
|
+
# form parameters
|
102
|
+
form_params = opts[:form_params] || {}
|
103
|
+
|
104
|
+
# http body (model)
|
105
|
+
post_body = opts[:debug_body]
|
106
|
+
|
107
|
+
# return_type
|
108
|
+
return_type = opts[:debug_return_type] || 'AiAcceleratorResponseBodyEnable'
|
109
|
+
|
110
|
+
# auth_names
|
111
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
112
|
+
|
113
|
+
new_options = opts.merge(
|
114
|
+
:operation => :"ProductAiAcceleratorApi.enable_ai_accelerator",
|
115
|
+
:header_params => header_params,
|
116
|
+
:query_params => query_params,
|
117
|
+
:form_params => form_params,
|
118
|
+
:body => post_body,
|
119
|
+
:auth_names => auth_names,
|
120
|
+
:return_type => return_type
|
121
|
+
)
|
122
|
+
|
123
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
124
|
+
if @api_client.config.debugging
|
125
|
+
@api_client.config.logger.debug "API called: ProductAiAcceleratorApi#enable_ai_accelerator\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
126
|
+
end
|
127
|
+
return data, status_code, headers
|
128
|
+
end
|
129
|
+
|
130
|
+
# Get product enablement status
|
131
|
+
# Get the enablement status of the AI Accelerator product
|
132
|
+
# @return [AiAcceleratorResponseBodyEnable]
|
133
|
+
def get_ai_accelerator(opts = {})
|
134
|
+
data, _status_code, _headers = get_ai_accelerator_with_http_info(opts)
|
135
|
+
data
|
136
|
+
end
|
137
|
+
|
138
|
+
# Get product enablement status
|
139
|
+
# Get the enablement status of the AI Accelerator product
|
140
|
+
# @return [Array<(AiAcceleratorResponseBodyEnable, Integer, Hash)>] AiAcceleratorResponseBodyEnable data, response status code and response headers
|
141
|
+
def get_ai_accelerator_with_http_info(opts = {})
|
142
|
+
if @api_client.config.debugging
|
143
|
+
@api_client.config.logger.debug 'Calling API: ProductAiAcceleratorApi.get_ai_accelerator ...'
|
144
|
+
end
|
145
|
+
# unbox the parameters from the hash
|
146
|
+
# resource path
|
147
|
+
local_var_path = '/enabled-products/v1/ai_accelerator'
|
148
|
+
|
149
|
+
# query parameters
|
150
|
+
query_params = opts[:query_params] || {}
|
151
|
+
|
152
|
+
# header parameters
|
153
|
+
header_params = opts[:header_params] || {}
|
154
|
+
# HTTP header 'Accept' (if needed)
|
155
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
156
|
+
|
157
|
+
# form parameters
|
158
|
+
form_params = opts[:form_params] || {}
|
159
|
+
|
160
|
+
# http body (model)
|
161
|
+
post_body = opts[:debug_body]
|
162
|
+
|
163
|
+
# return_type
|
164
|
+
return_type = opts[:debug_return_type] || 'AiAcceleratorResponseBodyEnable'
|
165
|
+
|
166
|
+
# auth_names
|
167
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
168
|
+
|
169
|
+
new_options = opts.merge(
|
170
|
+
:operation => :"ProductAiAcceleratorApi.get_ai_accelerator",
|
171
|
+
:header_params => header_params,
|
172
|
+
:query_params => query_params,
|
173
|
+
:form_params => form_params,
|
174
|
+
:body => post_body,
|
175
|
+
:auth_names => auth_names,
|
176
|
+
:return_type => return_type
|
177
|
+
)
|
178
|
+
|
179
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
180
|
+
if @api_client.config.debugging
|
181
|
+
@api_client.config.logger.debug "API called: ProductAiAcceleratorApi#get_ai_accelerator\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
182
|
+
end
|
183
|
+
return data, status_code, headers
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|