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,13 +17,14 @@ module Fastly
|
|
17
17
|
def initialize(api_client = ApiClient.default)
|
18
18
|
@api_client = api_client
|
19
19
|
end
|
20
|
-
# Retrieve service-level usage metrics for
|
20
|
+
# Retrieve service-level usage metrics for services with non-zero usage units.
|
21
21
|
# Returns product usage, broken down by service.
|
22
|
-
# @option opts [String] :product_id The product identifier for the metrics returned (e.g., `cdn_usage`). This
|
23
|
-
# @option opts [String] :
|
22
|
+
# @option opts [String] :product_id The product identifier for the metrics returned (e.g., `cdn_usage`). This should be used along with `usage_type_name`.
|
23
|
+
# @option opts [String] :service The service identifier for the metrics being requested.
|
24
|
+
# @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., `North America Requests`). This should be used along with `product_id`.
|
24
25
|
# @option opts [String] :start_month
|
25
26
|
# @option opts [String] :end_month
|
26
|
-
# @option opts [String] :limit Number of results per page. The maximum is
|
27
|
+
# @option opts [String] :limit Number of results per page. The maximum is 10000. (default to '1000')
|
27
28
|
# @option opts [String] :cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
|
28
29
|
# @return [Serviceusagemetrics]
|
29
30
|
def get_service_level_usage(opts = {})
|
@@ -31,13 +32,14 @@ module Fastly
|
|
31
32
|
data
|
32
33
|
end
|
33
34
|
|
34
|
-
# Retrieve service-level usage metrics for
|
35
|
+
# Retrieve service-level usage metrics for services with non-zero usage units.
|
35
36
|
# Returns product usage, broken down by service.
|
36
|
-
# @option opts [String] :product_id The product identifier for the metrics returned (e.g., `cdn_usage`). This
|
37
|
-
# @option opts [String] :
|
37
|
+
# @option opts [String] :product_id The product identifier for the metrics returned (e.g., `cdn_usage`). This should be used along with `usage_type_name`.
|
38
|
+
# @option opts [String] :service The service identifier for the metrics being requested.
|
39
|
+
# @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., `North America Requests`). This should be used along with `product_id`.
|
38
40
|
# @option opts [String] :start_month
|
39
41
|
# @option opts [String] :end_month
|
40
|
-
# @option opts [String] :limit Number of results per page. The maximum is
|
42
|
+
# @option opts [String] :limit Number of results per page. The maximum is 10000. (default to '1000')
|
41
43
|
# @option opts [String] :cursor Cursor value from the `next_cursor` field of a previous response, used to retrieve the next page. To request the first page, this should be empty.
|
42
44
|
# @return [Array<(Serviceusagemetrics, Integer, Hash)>] Serviceusagemetrics data, response status code and response headers
|
43
45
|
def get_service_level_usage_with_http_info(opts = {})
|
@@ -45,16 +47,6 @@ module Fastly
|
|
45
47
|
@api_client.config.logger.debug 'Calling API: BillingUsageMetricsApi.get_service_level_usage ...'
|
46
48
|
end
|
47
49
|
# unbox the parameters from the hash
|
48
|
-
product_id = opts[:'product_id']
|
49
|
-
usage_type_name = opts[:'usage_type_name']
|
50
|
-
# verify the required parameter 'product_id' is set
|
51
|
-
if @api_client.config.client_side_validation && product_id.nil?
|
52
|
-
fail ArgumentError, "Missing the required parameter 'product_id' when calling BillingUsageMetricsApi.get_service_level_usage"
|
53
|
-
end
|
54
|
-
# verify the required parameter 'usage_type_name' is set
|
55
|
-
if @api_client.config.client_side_validation && usage_type_name.nil?
|
56
|
-
fail ArgumentError, "Missing the required parameter 'usage_type_name' when calling BillingUsageMetricsApi.get_service_level_usage"
|
57
|
-
end
|
58
50
|
pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}$/)
|
59
51
|
if @api_client.config.client_side_validation && !opts[:'start_month'].nil? && opts[:'start_month'] !~ pattern
|
60
52
|
fail ArgumentError, "invalid value for 'opts[:\"start_month\"]' when calling BillingUsageMetricsApi.get_service_level_usage, must conform to the pattern #{pattern}."
|
@@ -70,8 +62,9 @@ module Fastly
|
|
70
62
|
|
71
63
|
# query parameters
|
72
64
|
query_params = opts[:query_params] || {}
|
73
|
-
query_params[:'product_id'] = product_id
|
74
|
-
query_params[:'
|
65
|
+
query_params[:'product_id'] = opts[:'product_id'] if !opts[:'product_id'].nil?
|
66
|
+
query_params[:'service'] = opts[:'service'] if !opts[:'service'].nil?
|
67
|
+
query_params[:'usage_type_name'] = opts[:'usage_type_name'] if !opts[:'usage_type_name'].nil?
|
75
68
|
query_params[:'start_month'] = opts[:'start_month'] if !opts[:'start_month'].nil?
|
76
69
|
query_params[:'end_month'] = opts[:'end_month'] if !opts[:'end_month'].nil?
|
77
70
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
@@ -113,8 +106,8 @@ module Fastly
|
|
113
106
|
|
114
107
|
# Get monthly usage metrics
|
115
108
|
# Returns monthly usage metrics for customer by product.
|
116
|
-
# @option opts [String] :start_month
|
117
|
-
# @option opts [String] :end_month
|
109
|
+
# @option opts [String] :start_month (required)
|
110
|
+
# @option opts [String] :end_month (required)
|
118
111
|
# @return [Usagemetric]
|
119
112
|
def get_usage_metrics(opts = {})
|
120
113
|
data, _status_code, _headers = get_usage_metrics_with_http_info(opts)
|
@@ -123,22 +116,32 @@ module Fastly
|
|
123
116
|
|
124
117
|
# Get monthly usage metrics
|
125
118
|
# Returns monthly usage metrics for customer by product.
|
126
|
-
# @option opts [String] :start_month
|
127
|
-
# @option opts [String] :end_month
|
119
|
+
# @option opts [String] :start_month (required)
|
120
|
+
# @option opts [String] :end_month (required)
|
128
121
|
# @return [Array<(Usagemetric, Integer, Hash)>] Usagemetric data, response status code and response headers
|
129
122
|
def get_usage_metrics_with_http_info(opts = {})
|
130
123
|
if @api_client.config.debugging
|
131
124
|
@api_client.config.logger.debug 'Calling API: BillingUsageMetricsApi.get_usage_metrics ...'
|
132
125
|
end
|
133
126
|
# unbox the parameters from the hash
|
127
|
+
start_month = opts[:'start_month']
|
128
|
+
end_month = opts[:'end_month']
|
129
|
+
# verify the required parameter 'start_month' is set
|
130
|
+
if @api_client.config.client_side_validation && start_month.nil?
|
131
|
+
fail ArgumentError, "Missing the required parameter 'start_month' when calling BillingUsageMetricsApi.get_usage_metrics"
|
132
|
+
end
|
134
133
|
pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}$/)
|
135
|
-
if @api_client.config.client_side_validation &&
|
136
|
-
fail ArgumentError, "invalid value for '
|
134
|
+
if @api_client.config.client_side_validation && start_month !~ pattern
|
135
|
+
fail ArgumentError, "invalid value for 'start_month' when calling BillingUsageMetricsApi.get_usage_metrics, must conform to the pattern #{pattern}."
|
137
136
|
end
|
138
137
|
|
138
|
+
# verify the required parameter 'end_month' is set
|
139
|
+
if @api_client.config.client_side_validation && end_month.nil?
|
140
|
+
fail ArgumentError, "Missing the required parameter 'end_month' when calling BillingUsageMetricsApi.get_usage_metrics"
|
141
|
+
end
|
139
142
|
pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}$/)
|
140
|
-
if @api_client.config.client_side_validation &&
|
141
|
-
fail ArgumentError, "invalid value for '
|
143
|
+
if @api_client.config.client_side_validation && end_month !~ pattern
|
144
|
+
fail ArgumentError, "invalid value for 'end_month' when calling BillingUsageMetricsApi.get_usage_metrics, must conform to the pattern #{pattern}."
|
142
145
|
end
|
143
146
|
|
144
147
|
# resource path
|
@@ -146,8 +149,8 @@ module Fastly
|
|
146
149
|
|
147
150
|
# query parameters
|
148
151
|
query_params = opts[:query_params] || {}
|
149
|
-
query_params[:'start_month'] =
|
150
|
-
query_params[:'end_month'] =
|
152
|
+
query_params[:'start_month'] = start_month
|
153
|
+
query_params[:'end_month'] = end_month
|
151
154
|
|
152
155
|
# header parameters
|
153
156
|
header_params = opts[:header_params] || {}
|
@@ -31,8 +31,8 @@ module Fastly
|
|
31
31
|
# @option opts [String] :src Variable to be used as a source for the header content. Does not apply to `delete` action.
|
32
32
|
# @option opts [String] :substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions.
|
33
33
|
# @option opts [String] :type Accepts a string value.
|
34
|
-
# @option opts [
|
35
|
-
# @option opts [
|
34
|
+
# @option opts [String] :ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\\\"0\\\" = false, \\\"1\\\" = true)
|
35
|
+
# @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
|
36
36
|
# @return [HeaderResponse]
|
37
37
|
def create_header_object(opts = {})
|
38
38
|
data, _status_code, _headers = create_header_object_with_http_info(opts)
|
@@ -53,8 +53,8 @@ module Fastly
|
|
53
53
|
# @option opts [String] :src Variable to be used as a source for the header content. Does not apply to `delete` action.
|
54
54
|
# @option opts [String] :substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions.
|
55
55
|
# @option opts [String] :type Accepts a string value.
|
56
|
-
# @option opts [
|
57
|
-
# @option opts [
|
56
|
+
# @option opts [String] :ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\\\"0\\\" = false, \\\"1\\\" = true)
|
57
|
+
# @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
|
58
58
|
# @return [Array<(HeaderResponse, Integer, Hash)>] HeaderResponse data, response status code and response headers
|
59
59
|
def create_header_object_with_http_info(opts = {})
|
60
60
|
if @api_client.config.debugging
|
@@ -375,8 +375,8 @@ module Fastly
|
|
375
375
|
# @option opts [String] :src Variable to be used as a source for the header content. Does not apply to `delete` action.
|
376
376
|
# @option opts [String] :substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions.
|
377
377
|
# @option opts [String] :type Accepts a string value.
|
378
|
-
# @option opts [
|
379
|
-
# @option opts [
|
378
|
+
# @option opts [String] :ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\\\"0\\\" = false, \\\"1\\\" = true)
|
379
|
+
# @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
|
380
380
|
# @return [HeaderResponse]
|
381
381
|
def update_header_object(opts = {})
|
382
382
|
data, _status_code, _headers = update_header_object_with_http_info(opts)
|
@@ -398,8 +398,8 @@ module Fastly
|
|
398
398
|
# @option opts [String] :src Variable to be used as a source for the header content. Does not apply to `delete` action.
|
399
399
|
# @option opts [String] :substitution Value to substitute in place of regular expression. Only applies to `regex` and `regex_repeat` actions.
|
400
400
|
# @option opts [String] :type Accepts a string value.
|
401
|
-
# @option opts [
|
402
|
-
# @option opts [
|
401
|
+
# @option opts [String] :ignore_if_set Don't add the header if it is added already. Only applies to 'set' action. Numerical value (\\\"0\\\" = false, \\\"1\\\" = true)
|
402
|
+
# @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
|
403
403
|
# @return [Array<(HeaderResponse, Integer, Hash)>] HeaderResponse data, response status code and response headers
|
404
404
|
def update_header_object_with_http_info(opts = {})
|
405
405
|
if @api_client.config.debugging
|
@@ -18,25 +18,29 @@ module Fastly
|
|
18
18
|
@api_client = api_client
|
19
19
|
end
|
20
20
|
# Create a KV store.
|
21
|
-
# Create a
|
21
|
+
# Create a KV store.
|
22
22
|
# @option opts [String] :location
|
23
|
-
# @option opts [
|
24
|
-
# @return [
|
25
|
-
def
|
26
|
-
data, _status_code, _headers =
|
23
|
+
# @option opts [KvStoreRequestCreate] :kv_store_request_create
|
24
|
+
# @return [KvStoreDetails]
|
25
|
+
def kv_store_create(opts = {})
|
26
|
+
data, _status_code, _headers = kv_store_create_with_http_info(opts)
|
27
27
|
data
|
28
28
|
end
|
29
29
|
|
30
30
|
# Create a KV store.
|
31
|
-
# Create a
|
31
|
+
# Create a KV store.
|
32
32
|
# @option opts [String] :location
|
33
|
-
# @option opts [
|
34
|
-
# @return [Array<(
|
35
|
-
def
|
33
|
+
# @option opts [KvStoreRequestCreate] :kv_store_request_create
|
34
|
+
# @return [Array<(KvStoreDetails, Integer, Hash)>] KvStoreDetails data, response status code and response headers
|
35
|
+
def kv_store_create_with_http_info(opts = {})
|
36
36
|
if @api_client.config.debugging
|
37
|
-
@api_client.config.logger.debug 'Calling API: KvStoreApi.
|
37
|
+
@api_client.config.logger.debug 'Calling API: KvStoreApi.kv_store_create ...'
|
38
38
|
end
|
39
39
|
# unbox the parameters from the hash
|
40
|
+
allowable_values = ["US", "EU", "ASIA", "AUS"]
|
41
|
+
if @api_client.config.client_side_validation && opts[:'location'] && !allowable_values.include?(opts[:'location'])
|
42
|
+
fail ArgumentError, "invalid value for \"location\", must be one of #{allowable_values}"
|
43
|
+
end
|
40
44
|
# resource path
|
41
45
|
local_var_path = '/resources/stores/kv'
|
42
46
|
|
@@ -58,16 +62,16 @@ module Fastly
|
|
58
62
|
form_params = opts[:form_params] || {}
|
59
63
|
|
60
64
|
# http body (model)
|
61
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'kv_store_request_create'])
|
62
66
|
|
63
67
|
# return_type
|
64
|
-
return_type = opts[:debug_return_type] || '
|
68
|
+
return_type = opts[:debug_return_type] || 'KvStoreDetails'
|
65
69
|
|
66
70
|
# auth_names
|
67
71
|
auth_names = opts[:debug_auth_names] || ['token']
|
68
72
|
|
69
73
|
new_options = opts.merge(
|
70
|
-
:operation => :"KvStoreApi.
|
74
|
+
:operation => :"KvStoreApi.kv_store_create",
|
71
75
|
:header_params => header_params,
|
72
76
|
:query_params => query_params,
|
73
77
|
:form_params => form_params,
|
@@ -78,33 +82,33 @@ module Fastly
|
|
78
82
|
|
79
83
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
84
|
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called: KvStoreApi#
|
85
|
+
@api_client.config.logger.debug "API called: KvStoreApi#kv_store_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
86
|
end
|
83
87
|
return data, status_code, headers
|
84
88
|
end
|
85
89
|
|
86
90
|
# Delete a KV store.
|
87
|
-
# A KV store must be empty before it can be deleted.
|
91
|
+
# A KV store must be empty before it can be deleted. Attempting to delete a KV store that contains items will result in a response with a `409` status code.
|
88
92
|
# @option opts [String] :store_id (required)
|
89
93
|
# @return [nil]
|
90
|
-
def
|
91
|
-
|
94
|
+
def kv_store_delete(opts = {})
|
95
|
+
kv_store_delete_with_http_info(opts)
|
92
96
|
nil
|
93
97
|
end
|
94
98
|
|
95
99
|
# Delete a KV store.
|
96
|
-
# A KV store must be empty before it can be deleted.
|
100
|
+
# A KV store must be empty before it can be deleted. Attempting to delete a KV store that contains items will result in a response with a `409` status code.
|
97
101
|
# @option opts [String] :store_id (required)
|
98
102
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
99
|
-
def
|
103
|
+
def kv_store_delete_with_http_info(opts = {})
|
100
104
|
if @api_client.config.debugging
|
101
|
-
@api_client.config.logger.debug 'Calling API: KvStoreApi.
|
105
|
+
@api_client.config.logger.debug 'Calling API: KvStoreApi.kv_store_delete ...'
|
102
106
|
end
|
103
107
|
# unbox the parameters from the hash
|
104
108
|
store_id = opts[:'store_id']
|
105
109
|
# verify the required parameter 'store_id' is set
|
106
110
|
if @api_client.config.client_side_validation && store_id.nil?
|
107
|
-
fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreApi.
|
111
|
+
fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreApi.kv_store_delete"
|
108
112
|
end
|
109
113
|
# resource path
|
110
114
|
local_var_path = '/resources/stores/kv/{store_id}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
|
@@ -128,7 +132,7 @@ module Fastly
|
|
128
132
|
auth_names = opts[:debug_auth_names] || ['token']
|
129
133
|
|
130
134
|
new_options = opts.merge(
|
131
|
-
:operation => :"KvStoreApi.
|
135
|
+
:operation => :"KvStoreApi.kv_store_delete",
|
132
136
|
:header_params => header_params,
|
133
137
|
:query_params => query_params,
|
134
138
|
:form_params => form_params,
|
@@ -139,33 +143,33 @@ module Fastly
|
|
139
143
|
|
140
144
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
141
145
|
if @api_client.config.debugging
|
142
|
-
@api_client.config.logger.debug "API called: KvStoreApi#
|
146
|
+
@api_client.config.logger.debug "API called: KvStoreApi#kv_store_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
143
147
|
end
|
144
148
|
return data, status_code, headers
|
145
149
|
end
|
146
150
|
|
147
151
|
# Describe a KV store.
|
148
|
-
# Get a KV store
|
152
|
+
# Get details of a KV store.
|
149
153
|
# @option opts [String] :store_id (required)
|
150
|
-
# @return [
|
151
|
-
def
|
152
|
-
data, _status_code, _headers =
|
154
|
+
# @return [KvStoreDetails]
|
155
|
+
def kv_store_get(opts = {})
|
156
|
+
data, _status_code, _headers = kv_store_get_with_http_info(opts)
|
153
157
|
data
|
154
158
|
end
|
155
159
|
|
156
160
|
# Describe a KV store.
|
157
|
-
# Get a KV store
|
161
|
+
# Get details of a KV store.
|
158
162
|
# @option opts [String] :store_id (required)
|
159
|
-
# @return [Array<(
|
160
|
-
def
|
163
|
+
# @return [Array<(KvStoreDetails, Integer, Hash)>] KvStoreDetails data, response status code and response headers
|
164
|
+
def kv_store_get_with_http_info(opts = {})
|
161
165
|
if @api_client.config.debugging
|
162
|
-
@api_client.config.logger.debug 'Calling API: KvStoreApi.
|
166
|
+
@api_client.config.logger.debug 'Calling API: KvStoreApi.kv_store_get ...'
|
163
167
|
end
|
164
168
|
# unbox the parameters from the hash
|
165
169
|
store_id = opts[:'store_id']
|
166
170
|
# verify the required parameter 'store_id' is set
|
167
171
|
if @api_client.config.client_side_validation && store_id.nil?
|
168
|
-
fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreApi.
|
172
|
+
fail ArgumentError, "Missing the required parameter 'store_id' when calling KvStoreApi.kv_store_get"
|
169
173
|
end
|
170
174
|
# resource path
|
171
175
|
local_var_path = '/resources/stores/kv/{store_id}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
|
@@ -185,13 +189,13 @@ module Fastly
|
|
185
189
|
post_body = opts[:debug_body]
|
186
190
|
|
187
191
|
# return_type
|
188
|
-
return_type = opts[:debug_return_type] || '
|
192
|
+
return_type = opts[:debug_return_type] || 'KvStoreDetails'
|
189
193
|
|
190
194
|
# auth_names
|
191
195
|
auth_names = opts[:debug_auth_names] || ['token']
|
192
196
|
|
193
197
|
new_options = opts.merge(
|
194
|
-
:operation => :"KvStoreApi.
|
198
|
+
:operation => :"KvStoreApi.kv_store_get",
|
195
199
|
:header_params => header_params,
|
196
200
|
:query_params => query_params,
|
197
201
|
:form_params => form_params,
|
@@ -202,31 +206,35 @@ module Fastly
|
|
202
206
|
|
203
207
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
204
208
|
if @api_client.config.debugging
|
205
|
-
@api_client.config.logger.debug "API called: KvStoreApi#
|
209
|
+
@api_client.config.logger.debug "API called: KvStoreApi#kv_store_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
206
210
|
end
|
207
211
|
return data, status_code, headers
|
208
212
|
end
|
209
213
|
|
210
|
-
# List KV stores.
|
211
|
-
#
|
214
|
+
# List all KV stores.
|
215
|
+
# List all KV stores.
|
212
216
|
# @option opts [String] :cursor
|
213
217
|
# @option opts [Integer] :limit (default to 1000)
|
214
218
|
# @return [InlineResponse2003]
|
215
|
-
def
|
216
|
-
data, _status_code, _headers =
|
219
|
+
def kv_store_list(opts = {})
|
220
|
+
data, _status_code, _headers = kv_store_list_with_http_info(opts)
|
217
221
|
data
|
218
222
|
end
|
219
223
|
|
220
|
-
# List KV stores.
|
221
|
-
#
|
224
|
+
# List all KV stores.
|
225
|
+
# List all KV stores.
|
222
226
|
# @option opts [String] :cursor
|
223
227
|
# @option opts [Integer] :limit (default to 1000)
|
224
228
|
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
225
|
-
def
|
229
|
+
def kv_store_list_with_http_info(opts = {})
|
226
230
|
if @api_client.config.debugging
|
227
|
-
@api_client.config.logger.debug 'Calling API: KvStoreApi.
|
231
|
+
@api_client.config.logger.debug 'Calling API: KvStoreApi.kv_store_list ...'
|
228
232
|
end
|
229
233
|
# unbox the parameters from the hash
|
234
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
235
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling KvStoreApi.kv_store_list, must be greater than or equal to 1.'
|
236
|
+
end
|
237
|
+
|
230
238
|
# resource path
|
231
239
|
local_var_path = '/resources/stores/kv'
|
232
240
|
|
@@ -253,7 +261,7 @@ module Fastly
|
|
253
261
|
auth_names = opts[:debug_auth_names] || ['token']
|
254
262
|
|
255
263
|
new_options = opts.merge(
|
256
|
-
:operation => :"KvStoreApi.
|
264
|
+
:operation => :"KvStoreApi.kv_store_list",
|
257
265
|
:header_params => header_params,
|
258
266
|
:query_params => query_params,
|
259
267
|
:form_params => form_params,
|
@@ -264,7 +272,7 @@ module Fastly
|
|
264
272
|
|
265
273
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
266
274
|
if @api_client.config.debugging
|
267
|
-
@api_client.config.logger.debug "API called: KvStoreApi#
|
275
|
+
@api_client.config.logger.debug "API called: KvStoreApi#kv_store_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
268
276
|
end
|
269
277
|
return data, status_code, headers
|
270
278
|
end
|