fastly 8.10.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +51 -2
- data/Gemfile.lock +3 -3
- data/README.md +63 -45
- data/docs/AccessKey.md +12 -0
- data/docs/AccessKeyResponse.md +15 -0
- data/docs/AclsInComputeApi.md +4 -4
- data/docs/AiAcceleratorResponseBodyEnable.md +12 -0
- data/docs/AiAcceleratorResponseCustomer.md +10 -0
- data/docs/AiAcceleratorResponseCustomerCustomer.md +11 -0
- data/docs/AiAcceleratorResponseLinks.md +10 -0
- data/docs/AiAcceleratorResponseLinksLinks.md +10 -0
- data/docs/AiAcceleratorResponseProduct.md +10 -0
- data/docs/AiAcceleratorResponseProductProduct.md +11 -0
- data/docs/Backend.md +1 -1
- data/docs/BackendApi.md +4 -4
- data/docs/BackendResponse.md +1 -1
- data/docs/BillingUsageMetricsApi.md +17 -23
- data/docs/BotManagementResponseBodyEnable.md +12 -0
- data/docs/BotManagementResponseLinks.md +10 -0
- data/docs/BotManagementResponseLinksLinks.md +11 -0
- data/docs/BotManagementResponseProduct.md +10 -0
- data/docs/BotManagementResponseProductProduct.md +11 -0
- data/docs/BotManagementResponseService.md +10 -0
- data/docs/{EnabledProductResponseService.md → BotManagementResponseServiceService.md} +1 -1
- data/docs/BrotliCompressionResponseBodyEnable.md +12 -0
- data/docs/BrotliCompressionResponseLinks.md +10 -0
- data/docs/BrotliCompressionResponseLinksLinks.md +11 -0
- data/docs/BrotliCompressionResponseProduct.md +10 -0
- data/docs/BrotliCompressionResponseProductProduct.md +11 -0
- data/docs/BrotliCompressionResponseService.md +10 -0
- data/docs/ComputeAclList.md +11 -0
- data/docs/{LegacyWafTag.md → ComputeAclListMeta.md} +2 -2
- data/docs/ComputeAclLookup.md +1 -2
- data/docs/{InlineResponse2004Meta.md → ComputeAclUpdate.md} +2 -3
- data/docs/DdosProtectionRequestUpdateConfiguration.md +10 -0
- data/docs/DdosProtectionResponseConfiguration.md +10 -0
- data/docs/DdosProtectionResponseConfigurationConfiguration.md +10 -0
- data/docs/DdosProtectionResponseConfigure.md +13 -0
- data/docs/DdosProtectionResponseEnable.md +12 -0
- data/docs/DdosProtectionResponseLinks.md +10 -0
- data/docs/DdosProtectionResponseLinksLinks.md +11 -0
- data/docs/DdosProtectionResponseProduct.md +10 -0
- data/docs/DdosProtectionResponseProductProduct.md +11 -0
- data/docs/DdosProtectionResponseService.md +10 -0
- data/docs/DimensionAttributesCountryStats.md +12 -0
- data/docs/DimensionAttributesRate.md +10 -0
- data/docs/DimensionBrowser.md +10 -0
- data/docs/DimensionContentType.md +10 -0
- data/docs/DimensionCountry.md +10 -0
- data/docs/DimensionDevice.md +10 -0
- data/docs/DimensionOs.md +10 -0
- data/docs/DimensionResponse.md +10 -0
- data/docs/DimensionStatusCode.md +10 -0
- data/docs/DimensionUrl.md +10 -0
- data/docs/DomainInspectorMeasurements.md +2 -0
- data/docs/DomainInspectorResponseBodyEnable.md +12 -0
- data/docs/DomainInspectorResponseLinks.md +10 -0
- data/docs/DomainInspectorResponseLinksLinks.md +11 -0
- data/docs/DomainInspectorResponseProduct.md +10 -0
- data/docs/{InlineResponse2003Meta.md → DomainInspectorResponseProductProduct.md} +3 -3
- data/docs/DomainInspectorResponseService.md +10 -0
- data/docs/FanoutResponseBodyEnable.md +12 -0
- data/docs/FanoutResponseLinks.md +10 -0
- data/docs/{EnabledProductResponseLinks.md → FanoutResponseLinksLinks.md} +1 -1
- data/docs/FanoutResponseProduct.md +10 -0
- data/docs/{EnabledProductResponseProduct.md → FanoutResponseProductProduct.md} +1 -1
- data/docs/FanoutResponseService.md +10 -0
- data/docs/FilterFieldItem.md +12 -0
- data/docs/GetLogInsightsResponse.md +11 -0
- data/docs/GetLogRecordsResponse.md +11 -0
- data/docs/GetLogRecordsResponseMeta.md +10 -0
- data/docs/GetLogRecordsResponseMetaFilters.md +16 -0
- data/docs/ImageOptimizerResponseBodyEnable.md +12 -0
- data/docs/ImageOptimizerResponseLinks.md +10 -0
- data/docs/ImageOptimizerResponseLinksLinks.md +11 -0
- data/docs/ImageOptimizerResponseProduct.md +10 -0
- data/docs/ImageOptimizerResponseProductProduct.md +11 -0
- data/docs/ImageOptimizerResponseService.md +10 -0
- data/docs/InlineResponse2003.md +2 -2
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InsightsApi.md +69 -0
- data/docs/KvStoreApi.md +30 -30
- data/docs/{Batch.md → KvStoreBatchResponse.md} +2 -2
- data/docs/{BatchErrors.md → KvStoreBatchResponseErrors.md} +4 -4
- data/docs/{StoreResponse.md → KvStoreDetails.md} +2 -2
- data/docs/KvStoreItemApi.md +55 -50
- data/docs/KvStoreRequestCreate.md +10 -0
- data/docs/KvStoreUpsertBatch.md +14 -0
- data/docs/LogExplorerApi.md +65 -0
- data/docs/LogExplorerInsightsResponseBodyEnable.md +12 -0
- data/docs/LogExplorerInsightsResponseLinks.md +10 -0
- data/docs/LogExplorerInsightsResponseLinksLinks.md +11 -0
- data/docs/LogExplorerInsightsResponseProduct.md +10 -0
- data/docs/LogExplorerInsightsResponseProductProduct.md +11 -0
- data/docs/LogExplorerInsightsResponseService.md +10 -0
- data/docs/LogInsights.md +12 -0
- data/docs/LogInsightsDimensionAttributes.md +49 -0
- data/docs/LogInsightsDimensions.md +61 -0
- data/docs/LogInsightsMeta.md +10 -0
- data/docs/LogInsightsMetaFilter.md +14 -0
- data/docs/LogInsightsValues.md +65 -0
- data/docs/{ReadOnlyServiceId.md → LogPropertyServiceId.md} +1 -1
- data/docs/LogRecord.md +37 -0
- data/docs/LoggingGrafanacloudlogsAdditional.md +14 -0
- data/docs/LoggingGrafanacloudlogsApi.md +259 -0
- data/docs/LoggingGrafanacloudlogsResponse.md +23 -0
- data/docs/{ReadOnlyVersion.md → NgwafRequestEnable.md} +2 -1
- data/docs/NgwafRequestUpdateConfiguration.md +11 -0
- data/docs/NgwafResponseConfiguration.md +10 -0
- data/docs/{ConfiguredProductResponseConfiguration.md → NgwafResponseConfigurationConfiguration.md} +2 -2
- data/docs/NgwafResponseConfigure.md +13 -0
- data/docs/NgwafResponseEnable.md +12 -0
- data/docs/NgwafResponseLinks.md +10 -0
- data/docs/{ConfiguredProductResponseLinks.md → NgwafResponseLinksLinks.md} +1 -1
- data/docs/NgwafResponseProduct.md +10 -0
- data/docs/{ConfiguredProductResponseProduct.md → NgwafResponseProductProduct.md} +1 -1
- data/docs/NgwafResponseService.md +10 -0
- data/docs/ObjectStorageAccessKeysApi.md +163 -0
- data/docs/ObjectStorageResponseBodyEnable.md +12 -0
- data/docs/ObjectStorageResponseCustomer.md +10 -0
- data/docs/ObjectStorageResponseLinks.md +10 -0
- data/docs/ObjectStorageResponseLinksLinks.md +10 -0
- data/docs/ObjectStorageResponseProduct.md +10 -0
- data/docs/ObjectStorageResponseProductProduct.md +11 -0
- data/docs/OriginInspectorMeasurements.md +4 -0
- data/docs/OriginInspectorResponseBodyEnable.md +12 -0
- data/docs/OriginInspectorResponseLinks.md +10 -0
- data/docs/OriginInspectorResponseLinksLinks.md +11 -0
- data/docs/OriginInspectorResponseProduct.md +10 -0
- data/docs/OriginInspectorResponseProductProduct.md +11 -0
- data/docs/OriginInspectorResponseService.md +10 -0
- data/docs/OriginInspectorValues.md +4 -0
- data/docs/ProductAiAcceleratorApi.md +115 -0
- data/docs/ProductBotManagementApi.md +130 -0
- data/docs/ProductBrotliCompressionApi.md +130 -0
- data/docs/ProductDdosProtectionApi.md +208 -0
- data/docs/ProductDomainInspectorApi.md +130 -0
- data/docs/ProductFanoutApi.md +130 -0
- data/docs/ProductImageOptimizerApi.md +130 -0
- data/docs/ProductLogExplorerInsightsApi.md +130 -0
- data/docs/ProductNgwafApi.md +210 -0
- data/docs/ProductObjectStorageApi.md +115 -0
- data/docs/ProductOriginInspectorApi.md +130 -0
- data/docs/ProductWebsocketsApi.md +130 -0
- data/docs/RealtimeEntryAggregated.md +18 -7
- data/docs/RealtimeMeasurements.md +18 -7
- data/docs/Results.md +18 -7
- data/docs/SnippetApi.md +15 -15
- data/docs/Usagemetric.md +18 -0
- data/docs/{Store.md → Usagemetrics.md} +2 -2
- data/docs/ValueField.md +59 -0
- data/docs/Values.md +2 -0
- data/docs/Values503Responses.md +12 -0
- data/docs/ValuesBandwidth.md +11 -0
- data/docs/ValuesBrowser.md +11 -0
- data/docs/ValuesCacheHitRatio.md +10 -0
- data/docs/ValuesCountryStats.md +12 -0
- data/docs/ValuesDuration.md +12 -0
- data/docs/ValuesMisses.md +10 -0
- data/docs/ValuesRate.md +10 -0
- data/docs/ValuesRequests.md +10 -0
- data/docs/ValuesStatusCodes.md +12 -0
- data/docs/WebsocketsResponseBodyEnable.md +12 -0
- data/docs/WebsocketsResponseLinks.md +10 -0
- data/docs/WebsocketsResponseLinksLinks.md +11 -0
- data/docs/WebsocketsResponseProduct.md +10 -0
- data/docs/WebsocketsResponseProductProduct.md +11 -0
- data/docs/WebsocketsResponseService.md +10 -0
- data/lib/fastly/api/acls_in_compute_api.rb +6 -6
- data/lib/fastly/api/backend_api.rb +4 -4
- data/lib/fastly/api/billing_usage_metrics_api.rb +46 -73
- data/lib/fastly/api/insights_api.rb +125 -0
- data/lib/fastly/api/kv_store_api.rb +53 -45
- data/lib/fastly/api/kv_store_item_api.rb +114 -99
- data/lib/fastly/api/log_explorer_api.rb +109 -0
- data/lib/fastly/api/logging_grafanacloudlogs_api.rb +471 -0
- data/lib/fastly/api/object_storage_access_keys_api.rb +263 -0
- data/lib/fastly/api/product_ai_accelerator_api.rb +186 -0
- data/lib/fastly/api/product_bot_management_api.rb +207 -0
- data/lib/fastly/api/product_brotli_compression_api.rb +207 -0
- data/lib/fastly/api/product_ddos_protection_api.rb +340 -0
- data/lib/fastly/api/product_domain_inspector_api.rb +207 -0
- data/lib/fastly/api/product_fanout_api.rb +207 -0
- data/lib/fastly/api/product_image_optimizer_api.rb +207 -0
- data/lib/fastly/api/product_log_explorer_insights_api.rb +207 -0
- data/lib/fastly/api/product_ngwaf_api.rb +347 -0
- data/lib/fastly/api/product_object_storage_api.rb +186 -0
- data/lib/fastly/api/product_origin_inspector_api.rb +207 -0
- data/lib/fastly/api/product_websockets_api.rb +207 -0
- data/lib/fastly/api/snippet_api.rb +35 -35
- data/lib/fastly/configuration.rb +308 -200
- data/lib/fastly/models/access_key.rb +248 -0
- data/lib/fastly/models/{legacy_waf_update_status.rb → access_key_response.rb} +48 -46
- data/lib/fastly/models/ai_accelerator_response_body_enable.rb +243 -0
- data/lib/fastly/models/ai_accelerator_response_customer.rb +216 -0
- data/lib/fastly/models/ai_accelerator_response_customer_customer.rb +227 -0
- data/lib/fastly/models/ai_accelerator_response_links.rb +216 -0
- data/lib/fastly/models/ai_accelerator_response_links_links.rb +217 -0
- data/lib/fastly/models/ai_accelerator_response_product.rb +216 -0
- data/lib/fastly/models/ai_accelerator_response_product_product.rb +227 -0
- data/lib/fastly/models/backend.rb +1 -1
- data/lib/fastly/models/backend_response.rb +1 -1
- data/lib/fastly/models/bot_management_response_body_enable.rb +243 -0
- data/lib/fastly/models/bot_management_response_links.rb +216 -0
- data/lib/fastly/models/bot_management_response_links_links.rb +227 -0
- data/lib/fastly/models/bot_management_response_product.rb +216 -0
- data/lib/fastly/models/bot_management_response_product_product.rb +227 -0
- data/lib/fastly/models/bot_management_response_service.rb +216 -0
- data/lib/fastly/models/{enabled_product_response_service.rb → bot_management_response_service_service.rb} +3 -3
- data/lib/fastly/models/brotli_compression_response_body_enable.rb +243 -0
- data/lib/fastly/models/brotli_compression_response_links.rb +216 -0
- data/lib/fastly/models/brotli_compression_response_links_links.rb +227 -0
- data/lib/fastly/models/brotli_compression_response_product.rb +216 -0
- data/lib/fastly/models/brotli_compression_response_product_product.rb +227 -0
- data/lib/fastly/models/brotli_compression_response_service.rb +216 -0
- data/lib/fastly/models/compute_acl_list.rb +228 -0
- data/lib/fastly/models/compute_acl_list_entries.rb +1 -1
- data/lib/fastly/models/compute_acl_list_meta.rb +218 -0
- data/lib/fastly/models/compute_acl_lookup.rb +3 -13
- data/lib/fastly/models/compute_acl_update.rb +219 -0
- data/lib/fastly/models/compute_acl_update_entry.rb +1 -1
- data/lib/fastly/models/ddos_protection_request_update_configuration.rb +256 -0
- data/lib/fastly/models/ddos_protection_response_configuration.rb +216 -0
- data/lib/fastly/models/ddos_protection_response_configuration_configuration.rb +217 -0
- data/lib/fastly/models/ddos_protection_response_configure.rb +253 -0
- data/lib/fastly/models/ddos_protection_response_enable.rb +243 -0
- data/lib/fastly/models/ddos_protection_response_links.rb +216 -0
- data/lib/fastly/models/ddos_protection_response_links_links.rb +227 -0
- data/lib/fastly/models/ddos_protection_response_product.rb +216 -0
- data/lib/fastly/models/ddos_protection_response_product_product.rb +227 -0
- data/lib/fastly/models/ddos_protection_response_service.rb +216 -0
- data/lib/fastly/models/dimension_attributes_country_stats.rb +237 -0
- data/lib/fastly/models/dimension_attributes_rate.rb +217 -0
- data/lib/fastly/models/dimension_browser.rb +217 -0
- data/lib/fastly/models/dimension_content_type.rb +217 -0
- data/lib/fastly/models/dimension_country.rb +217 -0
- data/lib/fastly/models/dimension_device.rb +217 -0
- data/lib/fastly/models/{store.rb → dimension_os.rb} +11 -11
- data/lib/fastly/models/{read_only_service_id.rb → dimension_response.rb} +15 -5
- data/lib/fastly/models/dimension_status_code.rb +217 -0
- data/lib/fastly/models/{legacy_waf_tag.rb → dimension_url.rb} +11 -11
- data/lib/fastly/models/domain_inspector_measurements.rb +21 -1
- data/lib/fastly/models/domain_inspector_response_body_enable.rb +243 -0
- data/lib/fastly/models/domain_inspector_response_links.rb +216 -0
- data/lib/fastly/models/domain_inspector_response_links_links.rb +227 -0
- data/lib/fastly/models/domain_inspector_response_product.rb +216 -0
- data/lib/fastly/models/domain_inspector_response_product_product.rb +227 -0
- data/lib/fastly/models/domain_inspector_response_service.rb +216 -0
- data/lib/fastly/models/fanout_response_body_enable.rb +243 -0
- data/lib/fastly/models/fanout_response_links.rb +216 -0
- data/lib/fastly/models/{enabled_product_response_links.rb → fanout_response_links_links.rb} +3 -3
- data/lib/fastly/models/fanout_response_product.rb +216 -0
- data/lib/fastly/models/{enabled_product_response_product.rb → fanout_response_product_product.rb} +3 -3
- data/lib/fastly/models/fanout_response_service.rb +216 -0
- data/lib/fastly/models/filter_field_item.rb +271 -0
- data/lib/fastly/models/{inline_response2004_meta.rb → get_log_insights_response.rb} +18 -16
- data/lib/fastly/models/get_log_records_response.rb +227 -0
- data/lib/fastly/models/get_log_records_response_meta.rb +216 -0
- data/lib/fastly/models/{legacy_waf_firewall.rb → get_log_records_response_meta_filters.rb} +80 -70
- data/lib/fastly/models/image_optimizer_response_body_enable.rb +243 -0
- data/lib/fastly/models/image_optimizer_response_links.rb +216 -0
- data/lib/fastly/models/image_optimizer_response_links_links.rb +227 -0
- data/lib/fastly/models/image_optimizer_response_product.rb +216 -0
- data/lib/fastly/models/image_optimizer_response_product_product.rb +227 -0
- data/lib/fastly/models/image_optimizer_response_service.rb +216 -0
- data/lib/fastly/models/inline_response2003.rb +2 -2
- data/lib/fastly/models/inline_response2004.rb +1 -1
- data/lib/fastly/models/{batch.rb → kv_store_batch_response.rb} +5 -5
- data/lib/fastly/models/{batch_errors.rb → kv_store_batch_response_errors.rb} +6 -6
- data/lib/fastly/models/{store_response.rb → kv_store_details.rb} +4 -4
- data/lib/fastly/models/{legacy_waf_configuration_set.rb → kv_store_request_create.rb} +10 -15
- data/lib/fastly/models/kv_store_upsert_batch.rb +269 -0
- data/lib/fastly/models/log_explorer_insights_response_body_enable.rb +243 -0
- data/lib/fastly/models/log_explorer_insights_response_links.rb +216 -0
- data/lib/fastly/models/log_explorer_insights_response_links_links.rb +227 -0
- data/lib/fastly/models/log_explorer_insights_response_product.rb +216 -0
- data/lib/fastly/models/log_explorer_insights_response_product_product.rb +227 -0
- data/lib/fastly/models/log_explorer_insights_response_service.rb +216 -0
- data/lib/fastly/models/log_insights.rb +234 -0
- data/lib/fastly/models/log_insights_dimension_attributes.rb +103 -0
- data/lib/fastly/models/log_insights_dimensions.rb +109 -0
- data/lib/fastly/models/log_insights_meta.rb +217 -0
- data/lib/fastly/models/{inline_response2003_meta.rb → log_insights_meta_filter.rb} +69 -13
- data/lib/fastly/models/log_insights_values.rb +111 -0
- data/lib/fastly/models/{read_only_version.rb → log_property_service_id.rb} +4 -3
- data/lib/fastly/models/log_record.rb +486 -0
- data/lib/fastly/models/logging_grafanacloudlogs_additional.rb +257 -0
- data/lib/fastly/models/logging_grafanacloudlogs_response.rb +408 -0
- data/lib/fastly/models/{set_workspace_id.rb → ngwaf_request_enable.rb} +9 -4
- data/lib/fastly/models/{set_configuration.rb → ngwaf_request_update_configuration.rb} +5 -5
- data/lib/fastly/models/ngwaf_response_configuration.rb +216 -0
- data/lib/fastly/models/{configured_product_response_configuration.rb → ngwaf_response_configuration_configuration.rb} +4 -4
- data/lib/fastly/models/{configured_product_response.rb → ngwaf_response_configure.rb} +17 -7
- data/lib/fastly/models/{enabled_product_response.rb → ngwaf_response_enable.rb} +15 -6
- data/lib/fastly/models/ngwaf_response_links.rb +216 -0
- data/lib/fastly/models/{configured_product_response_links.rb → ngwaf_response_links_links.rb} +3 -3
- data/lib/fastly/models/ngwaf_response_product.rb +216 -0
- data/lib/fastly/models/ngwaf_response_product_product.rb +227 -0
- data/lib/fastly/models/ngwaf_response_service.rb +216 -0
- data/lib/fastly/models/object_storage_response_body_enable.rb +243 -0
- data/lib/fastly/models/object_storage_response_customer.rb +216 -0
- data/lib/fastly/models/object_storage_response_links.rb +216 -0
- data/lib/fastly/models/object_storage_response_links_links.rb +217 -0
- data/lib/fastly/models/object_storage_response_product.rb +216 -0
- data/lib/fastly/models/object_storage_response_product_product.rb +227 -0
- data/lib/fastly/models/origin_inspector_measurements.rb +41 -1
- data/lib/fastly/models/origin_inspector_response_body_enable.rb +243 -0
- data/lib/fastly/models/origin_inspector_response_links.rb +216 -0
- data/lib/fastly/models/origin_inspector_response_links_links.rb +227 -0
- data/lib/fastly/models/origin_inspector_response_product.rb +216 -0
- data/lib/fastly/models/origin_inspector_response_product_product.rb +227 -0
- data/lib/fastly/models/origin_inspector_response_service.rb +216 -0
- data/lib/fastly/models/origin_inspector_values.rb +41 -1
- data/lib/fastly/models/realtime_entry_aggregated.rb +184 -74
- data/lib/fastly/models/realtime_measurements.rb +184 -74
- data/lib/fastly/models/results.rb +181 -71
- data/lib/fastly/models/schemas_snippet_response.rb +1 -0
- data/lib/fastly/models/snippet.rb +1 -0
- data/lib/fastly/models/snippet_common.rb +1 -0
- data/lib/fastly/models/snippet_response.rb +1 -0
- data/lib/fastly/models/snippet_response_post.rb +1 -0
- data/lib/fastly/models/snippet_with_dynamic_number.rb +1 -0
- data/lib/fastly/models/usagemetric.rb +297 -0
- data/lib/fastly/models/usagemetrics.rb +218 -0
- data/lib/fastly/models/value_field.rb +108 -0
- data/lib/fastly/models/values.rb +21 -1
- data/lib/fastly/models/{legacy_waf_rule_status.rb → values503_responses.rb} +25 -25
- data/lib/fastly/models/values_bandwidth.rb +227 -0
- data/lib/fastly/models/values_browser.rb +227 -0
- data/lib/fastly/models/values_cache_hit_ratio.rb +217 -0
- data/lib/fastly/models/values_country_stats.rb +237 -0
- data/lib/fastly/models/{legacy_waf_rule.rb → values_duration.rb} +25 -45
- data/lib/fastly/models/values_misses.rb +217 -0
- data/lib/fastly/models/values_rate.rb +217 -0
- data/lib/fastly/models/values_requests.rb +217 -0
- data/lib/fastly/models/values_status_codes.rb +237 -0
- data/lib/fastly/models/websockets_response_body_enable.rb +243 -0
- data/lib/fastly/models/websockets_response_links.rb +216 -0
- data/lib/fastly/models/websockets_response_links_links.rb +227 -0
- data/lib/fastly/models/websockets_response_product.rb +216 -0
- data/lib/fastly/models/{configured_product_response_product.rb → websockets_response_product_product.rb} +3 -3
- data/lib/fastly/models/websockets_response_service.rb +216 -0
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +147 -35
- data/sig.json +1 -1
- metadata +299 -75
- data/docs/ConfiguredProductResponse.md +0 -13
- data/docs/EnabledProductResponse.md +0 -12
- data/docs/EnabledProductsApi.md +0 -220
- data/docs/LegacyWafConfigurationSet.md +0 -11
- data/docs/LegacyWafConfigurationSetsApi.md +0 -128
- data/docs/LegacyWafFirewall.md +0 -18
- data/docs/LegacyWafFirewallApi.md +0 -355
- data/docs/LegacyWafOwasp.md +0 -38
- data/docs/LegacyWafOwaspApi.md +0 -141
- data/docs/LegacyWafRule.md +0 -14
- data/docs/LegacyWafRuleApi.md +0 -187
- data/docs/LegacyWafRuleStatus.md +0 -12
- data/docs/LegacyWafRuleStatusApi.md +0 -205
- data/docs/LegacyWafRuleset.md +0 -11
- data/docs/LegacyWafRulesetApi.md +0 -139
- data/docs/LegacyWafTagApi.md +0 -61
- data/docs/LegacyWafUpdateStatus.md +0 -15
- data/docs/LegacyWafUpdateStatusApi.md +0 -105
- data/docs/SetConfiguration.md +0 -11
- data/docs/SetWorkspaceId.md +0 -10
- data/lib/fastly/api/enabled_products_api.rb +0 -382
- data/lib/fastly/api/legacy_waf_configuration_sets_api.rb +0 -209
- data/lib/fastly/api/legacy_waf_firewall_api.rb +0 -627
- data/lib/fastly/api/legacy_waf_owasp_api.rb +0 -244
- data/lib/fastly/api/legacy_waf_rule_api.rb +0 -307
- data/lib/fastly/api/legacy_waf_rule_status_api.rb +0 -366
- data/lib/fastly/api/legacy_waf_ruleset_api.rb +0 -237
- data/lib/fastly/api/legacy_waf_tag_api.rb +0 -96
- data/lib/fastly/api/legacy_waf_update_status_api.rb +0 -184
- data/lib/fastly/models/legacy_waf_owasp.rb +0 -527
- data/lib/fastly/models/legacy_waf_ruleset.rb +0 -227
@@ -92,6 +92,9 @@ module Fastly
|
|
92
92
|
# Number of responses received with status code 505 (HTTP Version Not Supported) from origin.
|
93
93
|
attr_accessor :status_505
|
94
94
|
|
95
|
+
# Number of responses received from origin with status code 530.
|
96
|
+
attr_accessor :status_530
|
97
|
+
|
95
98
|
# Number of responses from origin with latency between 0 and 1 millisecond.
|
96
99
|
attr_accessor :latency_0_to_1ms
|
97
100
|
|
@@ -206,6 +209,9 @@ module Fastly
|
|
206
209
|
# Number of responses received with status code 505 (HTTP Version Not Supported) received for origin requests made by the Fastly WAF.
|
207
210
|
attr_accessor :waf_status_505
|
208
211
|
|
212
|
+
# Number of responses received with status code 530 received for origin requests made by the Fastly WAF.
|
213
|
+
attr_accessor :waf_status_530
|
214
|
+
|
209
215
|
# Number of responses with latency between 0 and 1 millisecond received for origin requests made by the Fastly WAF.
|
210
216
|
attr_accessor :waf_latency_0_to_1ms
|
211
217
|
|
@@ -320,6 +326,9 @@ module Fastly
|
|
320
326
|
# Number of responses received with status code 505 (HTTP Version Not Supported) for origin received by the Compute platform.
|
321
327
|
attr_accessor :compute_status_505
|
322
328
|
|
329
|
+
# Number of responses received with status code 530 for origin received by the Compute platform.
|
330
|
+
attr_accessor :compute_status_530
|
331
|
+
|
323
332
|
# Number of responses with latency between 0 and 1 millisecond for origin received by the Compute platform.
|
324
333
|
attr_accessor :compute_latency_0_to_1ms
|
325
334
|
|
@@ -434,6 +443,9 @@ module Fastly
|
|
434
443
|
# Number of responses received with status code 505 (HTTP Version Not Supported) received for origin requests made by all sources.
|
435
444
|
attr_accessor :all_status_505
|
436
445
|
|
446
|
+
# Number of responses received with status code 530 received for origin requests made by all sources.
|
447
|
+
attr_accessor :all_status_530
|
448
|
+
|
437
449
|
# Number of responses with latency between 0 and 1 millisecond received for origin requests made by all sources.
|
438
450
|
attr_accessor :all_latency_0_to_1ms
|
439
451
|
|
@@ -499,6 +511,7 @@ module Fastly
|
|
499
511
|
:'status_503' => :'status_503',
|
500
512
|
:'status_504' => :'status_504',
|
501
513
|
:'status_505' => :'status_505',
|
514
|
+
:'status_530' => :'status_530',
|
502
515
|
:'latency_0_to_1ms' => :'latency_0_to_1ms',
|
503
516
|
:'latency_1_to_5ms' => :'latency_1_to_5ms',
|
504
517
|
:'latency_5_to_10ms' => :'latency_5_to_10ms',
|
@@ -537,6 +550,7 @@ module Fastly
|
|
537
550
|
:'waf_status_503' => :'waf_status_503',
|
538
551
|
:'waf_status_504' => :'waf_status_504',
|
539
552
|
:'waf_status_505' => :'waf_status_505',
|
553
|
+
:'waf_status_530' => :'waf_status_530',
|
540
554
|
:'waf_latency_0_to_1ms' => :'waf_latency_0_to_1ms',
|
541
555
|
:'waf_latency_1_to_5ms' => :'waf_latency_1_to_5ms',
|
542
556
|
:'waf_latency_5_to_10ms' => :'waf_latency_5_to_10ms',
|
@@ -575,6 +589,7 @@ module Fastly
|
|
575
589
|
:'compute_status_503' => :'compute_status_503',
|
576
590
|
:'compute_status_504' => :'compute_status_504',
|
577
591
|
:'compute_status_505' => :'compute_status_505',
|
592
|
+
:'compute_status_530' => :'compute_status_530',
|
578
593
|
:'compute_latency_0_to_1ms' => :'compute_latency_0_to_1ms',
|
579
594
|
:'compute_latency_1_to_5ms' => :'compute_latency_1_to_5ms',
|
580
595
|
:'compute_latency_5_to_10ms' => :'compute_latency_5_to_10ms',
|
@@ -613,6 +628,7 @@ module Fastly
|
|
613
628
|
:'all_status_503' => :'all_status_503',
|
614
629
|
:'all_status_504' => :'all_status_504',
|
615
630
|
:'all_status_505' => :'all_status_505',
|
631
|
+
:'all_status_530' => :'all_status_530',
|
616
632
|
:'all_latency_0_to_1ms' => :'all_latency_0_to_1ms',
|
617
633
|
:'all_latency_1_to_5ms' => :'all_latency_1_to_5ms',
|
618
634
|
:'all_latency_5_to_10ms' => :'all_latency_5_to_10ms',
|
@@ -662,6 +678,7 @@ module Fastly
|
|
662
678
|
:'status_503' => :'Integer',
|
663
679
|
:'status_504' => :'Integer',
|
664
680
|
:'status_505' => :'Integer',
|
681
|
+
:'status_530' => :'Integer',
|
665
682
|
:'latency_0_to_1ms' => :'Integer',
|
666
683
|
:'latency_1_to_5ms' => :'Integer',
|
667
684
|
:'latency_5_to_10ms' => :'Integer',
|
@@ -700,6 +717,7 @@ module Fastly
|
|
700
717
|
:'waf_status_503' => :'Integer',
|
701
718
|
:'waf_status_504' => :'Integer',
|
702
719
|
:'waf_status_505' => :'Integer',
|
720
|
+
:'waf_status_530' => :'Integer',
|
703
721
|
:'waf_latency_0_to_1ms' => :'Integer',
|
704
722
|
:'waf_latency_1_to_5ms' => :'Integer',
|
705
723
|
:'waf_latency_5_to_10ms' => :'Integer',
|
@@ -738,6 +756,7 @@ module Fastly
|
|
738
756
|
:'compute_status_503' => :'Integer',
|
739
757
|
:'compute_status_504' => :'Integer',
|
740
758
|
:'compute_status_505' => :'Integer',
|
759
|
+
:'compute_status_530' => :'Integer',
|
741
760
|
:'compute_latency_0_to_1ms' => :'Integer',
|
742
761
|
:'compute_latency_1_to_5ms' => :'Integer',
|
743
762
|
:'compute_latency_5_to_10ms' => :'Integer',
|
@@ -776,6 +795,7 @@ module Fastly
|
|
776
795
|
:'all_status_503' => :'Integer',
|
777
796
|
:'all_status_504' => :'Integer',
|
778
797
|
:'all_status_505' => :'Integer',
|
798
|
+
:'all_status_530' => :'Integer',
|
779
799
|
:'all_latency_0_to_1ms' => :'Integer',
|
780
800
|
:'all_latency_1_to_5ms' => :'Integer',
|
781
801
|
:'all_latency_5_to_10ms' => :'Integer',
|
@@ -916,6 +936,10 @@ module Fastly
|
|
916
936
|
self.status_505 = attributes[:'status_505']
|
917
937
|
end
|
918
938
|
|
939
|
+
if attributes.key?(:'status_530')
|
940
|
+
self.status_530 = attributes[:'status_530']
|
941
|
+
end
|
942
|
+
|
919
943
|
if attributes.key?(:'latency_0_to_1ms')
|
920
944
|
self.latency_0_to_1ms = attributes[:'latency_0_to_1ms']
|
921
945
|
end
|
@@ -1068,6 +1092,10 @@ module Fastly
|
|
1068
1092
|
self.waf_status_505 = attributes[:'waf_status_505']
|
1069
1093
|
end
|
1070
1094
|
|
1095
|
+
if attributes.key?(:'waf_status_530')
|
1096
|
+
self.waf_status_530 = attributes[:'waf_status_530']
|
1097
|
+
end
|
1098
|
+
|
1071
1099
|
if attributes.key?(:'waf_latency_0_to_1ms')
|
1072
1100
|
self.waf_latency_0_to_1ms = attributes[:'waf_latency_0_to_1ms']
|
1073
1101
|
end
|
@@ -1220,6 +1248,10 @@ module Fastly
|
|
1220
1248
|
self.compute_status_505 = attributes[:'compute_status_505']
|
1221
1249
|
end
|
1222
1250
|
|
1251
|
+
if attributes.key?(:'compute_status_530')
|
1252
|
+
self.compute_status_530 = attributes[:'compute_status_530']
|
1253
|
+
end
|
1254
|
+
|
1223
1255
|
if attributes.key?(:'compute_latency_0_to_1ms')
|
1224
1256
|
self.compute_latency_0_to_1ms = attributes[:'compute_latency_0_to_1ms']
|
1225
1257
|
end
|
@@ -1372,6 +1404,10 @@ module Fastly
|
|
1372
1404
|
self.all_status_505 = attributes[:'all_status_505']
|
1373
1405
|
end
|
1374
1406
|
|
1407
|
+
if attributes.key?(:'all_status_530')
|
1408
|
+
self.all_status_530 = attributes[:'all_status_530']
|
1409
|
+
end
|
1410
|
+
|
1375
1411
|
if attributes.key?(:'all_latency_0_to_1ms')
|
1376
1412
|
self.all_latency_0_to_1ms = attributes[:'all_latency_0_to_1ms']
|
1377
1413
|
end
|
@@ -1465,6 +1501,7 @@ module Fastly
|
|
1465
1501
|
status_503 == o.status_503 &&
|
1466
1502
|
status_504 == o.status_504 &&
|
1467
1503
|
status_505 == o.status_505 &&
|
1504
|
+
status_530 == o.status_530 &&
|
1468
1505
|
latency_0_to_1ms == o.latency_0_to_1ms &&
|
1469
1506
|
latency_1_to_5ms == o.latency_1_to_5ms &&
|
1470
1507
|
latency_5_to_10ms == o.latency_5_to_10ms &&
|
@@ -1503,6 +1540,7 @@ module Fastly
|
|
1503
1540
|
waf_status_503 == o.waf_status_503 &&
|
1504
1541
|
waf_status_504 == o.waf_status_504 &&
|
1505
1542
|
waf_status_505 == o.waf_status_505 &&
|
1543
|
+
waf_status_530 == o.waf_status_530 &&
|
1506
1544
|
waf_latency_0_to_1ms == o.waf_latency_0_to_1ms &&
|
1507
1545
|
waf_latency_1_to_5ms == o.waf_latency_1_to_5ms &&
|
1508
1546
|
waf_latency_5_to_10ms == o.waf_latency_5_to_10ms &&
|
@@ -1541,6 +1579,7 @@ module Fastly
|
|
1541
1579
|
compute_status_503 == o.compute_status_503 &&
|
1542
1580
|
compute_status_504 == o.compute_status_504 &&
|
1543
1581
|
compute_status_505 == o.compute_status_505 &&
|
1582
|
+
compute_status_530 == o.compute_status_530 &&
|
1544
1583
|
compute_latency_0_to_1ms == o.compute_latency_0_to_1ms &&
|
1545
1584
|
compute_latency_1_to_5ms == o.compute_latency_1_to_5ms &&
|
1546
1585
|
compute_latency_5_to_10ms == o.compute_latency_5_to_10ms &&
|
@@ -1579,6 +1618,7 @@ module Fastly
|
|
1579
1618
|
all_status_503 == o.all_status_503 &&
|
1580
1619
|
all_status_504 == o.all_status_504 &&
|
1581
1620
|
all_status_505 == o.all_status_505 &&
|
1621
|
+
all_status_530 == o.all_status_530 &&
|
1582
1622
|
all_latency_0_to_1ms == o.all_latency_0_to_1ms &&
|
1583
1623
|
all_latency_1_to_5ms == o.all_latency_1_to_5ms &&
|
1584
1624
|
all_latency_5_to_10ms == o.all_latency_5_to_10ms &&
|
@@ -1602,7 +1642,7 @@ module Fastly
|
|
1602
1642
|
# Calculates hash code according to all attributes.
|
1603
1643
|
# @return [Integer] Hash code
|
1604
1644
|
def hash
|
1605
|
-
[responses, resp_header_bytes, resp_body_bytes, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, latency_0_to_1ms, latency_1_to_5ms, latency_5_to_10ms, latency_10_to_50ms, latency_50_to_100ms, latency_100_to_250ms, latency_250_to_500ms, latency_500_to_1000ms, latency_1000_to_5000ms, latency_5000_to_10000ms, latency_10000_to_60000ms, latency_60000ms, waf_responses, waf_resp_header_bytes, waf_resp_body_bytes, waf_status_1xx, waf_status_2xx, waf_status_3xx, waf_status_4xx, waf_status_5xx, waf_status_200, waf_status_204, waf_status_206, waf_status_301, waf_status_302, waf_status_304, waf_status_400, waf_status_401, waf_status_403, waf_status_404, waf_status_416, waf_status_429, waf_status_500, waf_status_501, waf_status_502, waf_status_503, waf_status_504, waf_status_505, waf_latency_0_to_1ms, waf_latency_1_to_5ms, waf_latency_5_to_10ms, waf_latency_10_to_50ms, waf_latency_50_to_100ms, waf_latency_100_to_250ms, waf_latency_250_to_500ms, waf_latency_500_to_1000ms, waf_latency_1000_to_5000ms, waf_latency_5000_to_10000ms, waf_latency_10000_to_60000ms, waf_latency_60000ms, compute_responses, compute_resp_header_bytes, compute_resp_body_bytes, compute_status_1xx, compute_status_2xx, compute_status_3xx, compute_status_4xx, compute_status_5xx, compute_status_200, compute_status_204, compute_status_206, compute_status_301, compute_status_302, compute_status_304, compute_status_400, compute_status_401, compute_status_403, compute_status_404, compute_status_416, compute_status_429, compute_status_500, compute_status_501, compute_status_502, compute_status_503, compute_status_504, compute_status_505, compute_latency_0_to_1ms, compute_latency_1_to_5ms, compute_latency_5_to_10ms, compute_latency_10_to_50ms, compute_latency_50_to_100ms, compute_latency_100_to_250ms, compute_latency_250_to_500ms, compute_latency_500_to_1000ms, compute_latency_1000_to_5000ms, compute_latency_5000_to_10000ms, compute_latency_10000_to_60000ms, compute_latency_60000ms, all_responses, all_resp_header_bytes, all_resp_body_bytes, all_status_1xx, all_status_2xx, all_status_3xx, all_status_4xx, all_status_5xx, all_status_200, all_status_204, all_status_206, all_status_301, all_status_302, all_status_304, all_status_400, all_status_401, all_status_403, all_status_404, all_status_416, all_status_429, all_status_500, all_status_501, all_status_502, all_status_503, all_status_504, all_status_505, all_latency_0_to_1ms, all_latency_1_to_5ms, all_latency_5_to_10ms, all_latency_10_to_50ms, all_latency_50_to_100ms, all_latency_100_to_250ms, all_latency_250_to_500ms, all_latency_500_to_1000ms, all_latency_1000_to_5000ms, all_latency_5000_to_10000ms, all_latency_10000_to_60000ms, all_latency_60000ms].hash
|
1645
|
+
[responses, resp_header_bytes, resp_body_bytes, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_530, latency_0_to_1ms, latency_1_to_5ms, latency_5_to_10ms, latency_10_to_50ms, latency_50_to_100ms, latency_100_to_250ms, latency_250_to_500ms, latency_500_to_1000ms, latency_1000_to_5000ms, latency_5000_to_10000ms, latency_10000_to_60000ms, latency_60000ms, waf_responses, waf_resp_header_bytes, waf_resp_body_bytes, waf_status_1xx, waf_status_2xx, waf_status_3xx, waf_status_4xx, waf_status_5xx, waf_status_200, waf_status_204, waf_status_206, waf_status_301, waf_status_302, waf_status_304, waf_status_400, waf_status_401, waf_status_403, waf_status_404, waf_status_416, waf_status_429, waf_status_500, waf_status_501, waf_status_502, waf_status_503, waf_status_504, waf_status_505, waf_status_530, waf_latency_0_to_1ms, waf_latency_1_to_5ms, waf_latency_5_to_10ms, waf_latency_10_to_50ms, waf_latency_50_to_100ms, waf_latency_100_to_250ms, waf_latency_250_to_500ms, waf_latency_500_to_1000ms, waf_latency_1000_to_5000ms, waf_latency_5000_to_10000ms, waf_latency_10000_to_60000ms, waf_latency_60000ms, compute_responses, compute_resp_header_bytes, compute_resp_body_bytes, compute_status_1xx, compute_status_2xx, compute_status_3xx, compute_status_4xx, compute_status_5xx, compute_status_200, compute_status_204, compute_status_206, compute_status_301, compute_status_302, compute_status_304, compute_status_400, compute_status_401, compute_status_403, compute_status_404, compute_status_416, compute_status_429, compute_status_500, compute_status_501, compute_status_502, compute_status_503, compute_status_504, compute_status_505, compute_status_530, compute_latency_0_to_1ms, compute_latency_1_to_5ms, compute_latency_5_to_10ms, compute_latency_10_to_50ms, compute_latency_50_to_100ms, compute_latency_100_to_250ms, compute_latency_250_to_500ms, compute_latency_500_to_1000ms, compute_latency_1000_to_5000ms, compute_latency_5000_to_10000ms, compute_latency_10000_to_60000ms, compute_latency_60000ms, all_responses, all_resp_header_bytes, all_resp_body_bytes, all_status_1xx, all_status_2xx, all_status_3xx, all_status_4xx, all_status_5xx, all_status_200, all_status_204, all_status_206, all_status_301, all_status_302, all_status_304, all_status_400, all_status_401, all_status_403, all_status_404, all_status_416, all_status_429, all_status_500, all_status_501, all_status_502, all_status_503, all_status_504, all_status_505, all_status_530, all_latency_0_to_1ms, all_latency_1_to_5ms, all_latency_5_to_10ms, all_latency_10_to_50ms, all_latency_50_to_100ms, all_latency_100_to_250ms, all_latency_250_to_500ms, all_latency_500_to_1000ms, all_latency_1000_to_5000ms, all_latency_5000_to_10000ms, all_latency_10000_to_60000ms, all_latency_60000ms].hash
|
1606
1646
|
end
|
1607
1647
|
|
1608
1648
|
# Builds the object from hash
|
@@ -0,0 +1,243 @@
|
|
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 'date'
|
12
|
+
require 'time'
|
13
|
+
|
14
|
+
module Fastly
|
15
|
+
class OriginInspectorResponseBodyEnable
|
16
|
+
attr_accessor :product
|
17
|
+
|
18
|
+
attr_accessor :service
|
19
|
+
|
20
|
+
attr_accessor :_links
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'product' => :'product',
|
26
|
+
:'service' => :'service',
|
27
|
+
:'_links' => :'_links'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Returns all the JSON keys this model knows about
|
32
|
+
def self.acceptable_attributes
|
33
|
+
attribute_map.values
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.fastly_types
|
38
|
+
{
|
39
|
+
:'product' => :'OriginInspectorResponseProductProduct',
|
40
|
+
:'service' => :'BotManagementResponseServiceService',
|
41
|
+
:'_links' => :'OriginInspectorResponseLinksLinks'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.fastly_nullable
|
47
|
+
Set.new([
|
48
|
+
])
|
49
|
+
end
|
50
|
+
|
51
|
+
# List of class defined in allOf (OpenAPI v3)
|
52
|
+
def self.fastly_all_of
|
53
|
+
[
|
54
|
+
:'OriginInspectorResponseLinks',
|
55
|
+
:'OriginInspectorResponseProduct',
|
56
|
+
:'OriginInspectorResponseService'
|
57
|
+
]
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
62
|
+
def initialize(attributes = {})
|
63
|
+
if (!attributes.is_a?(Hash))
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::OriginInspectorResponseBodyEnable` initialize method"
|
65
|
+
end
|
66
|
+
|
67
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
68
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
69
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::OriginInspectorResponseBodyEnable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
71
|
+
end
|
72
|
+
h[k.to_sym] = v
|
73
|
+
}
|
74
|
+
|
75
|
+
if attributes.key?(:'product')
|
76
|
+
self.product = attributes[:'product']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.key?(:'service')
|
80
|
+
self.service = attributes[:'service']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.key?(:'_links')
|
84
|
+
self._links = attributes[:'_links']
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
89
|
+
# @return Array for valid properties with the reasons
|
90
|
+
def list_invalid_properties
|
91
|
+
invalid_properties = Array.new
|
92
|
+
invalid_properties
|
93
|
+
end
|
94
|
+
|
95
|
+
# Check to see if the all the properties in the model are valid
|
96
|
+
# @return true if the model is valid
|
97
|
+
def valid?
|
98
|
+
true
|
99
|
+
end
|
100
|
+
|
101
|
+
# Checks equality by comparing each attribute.
|
102
|
+
# @param [Object] Object to be compared
|
103
|
+
def ==(o)
|
104
|
+
return true if self.equal?(o)
|
105
|
+
self.class == o.class &&
|
106
|
+
product == o.product &&
|
107
|
+
service == o.service &&
|
108
|
+
_links == o._links
|
109
|
+
end
|
110
|
+
|
111
|
+
# @see the `==` method
|
112
|
+
# @param [Object] Object to be compared
|
113
|
+
def eql?(o)
|
114
|
+
self == o
|
115
|
+
end
|
116
|
+
|
117
|
+
# Calculates hash code according to all attributes.
|
118
|
+
# @return [Integer] Hash code
|
119
|
+
def hash
|
120
|
+
[product, service, _links].hash
|
121
|
+
end
|
122
|
+
|
123
|
+
# Builds the object from hash
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
125
|
+
# @return [Object] Returns the model itself
|
126
|
+
def self.build_from_hash(attributes)
|
127
|
+
new.build_from_hash(attributes)
|
128
|
+
end
|
129
|
+
|
130
|
+
# Builds the object from hash
|
131
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
132
|
+
# @return [Object] Returns the model itself
|
133
|
+
def build_from_hash(attributes)
|
134
|
+
return nil unless attributes.is_a?(Hash)
|
135
|
+
self.class.fastly_types.each_pair do |key, type|
|
136
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
|
137
|
+
self.send("#{key}=", nil)
|
138
|
+
elsif type =~ /\AArray<(.*)>/i
|
139
|
+
# check to ensure the input is an array given that the attribute
|
140
|
+
# is documented as an array but the input is not
|
141
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
142
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
143
|
+
end
|
144
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
145
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
self
|
150
|
+
end
|
151
|
+
|
152
|
+
# Deserializes the data based on type
|
153
|
+
# @param string type Data type
|
154
|
+
# @param string value Value to be deserialized
|
155
|
+
# @return [Object] Deserialized data
|
156
|
+
def _deserialize(type, value)
|
157
|
+
case type.to_sym
|
158
|
+
when :Time
|
159
|
+
Time.parse(value)
|
160
|
+
when :Date
|
161
|
+
Date.parse(value)
|
162
|
+
when :String
|
163
|
+
value.to_s
|
164
|
+
when :Integer
|
165
|
+
value.to_i
|
166
|
+
when :Float
|
167
|
+
value.to_f
|
168
|
+
when :Boolean
|
169
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
170
|
+
true
|
171
|
+
else
|
172
|
+
false
|
173
|
+
end
|
174
|
+
when :Object
|
175
|
+
# generic object (usually a Hash), return directly
|
176
|
+
value
|
177
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
178
|
+
inner_type = Regexp.last_match[:inner_type]
|
179
|
+
value.map { |v| _deserialize(inner_type, v) }
|
180
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
181
|
+
k_type = Regexp.last_match[:k_type]
|
182
|
+
v_type = Regexp.last_match[:v_type]
|
183
|
+
{}.tap do |hash|
|
184
|
+
value.each do |k, v|
|
185
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
186
|
+
end
|
187
|
+
end
|
188
|
+
else # model
|
189
|
+
# models (e.g. Pet) or oneOf
|
190
|
+
klass = Fastly.const_get(type)
|
191
|
+
klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
# Returns the string representation of the object
|
196
|
+
# @return [String] String presentation of the object
|
197
|
+
def to_s
|
198
|
+
to_hash.to_s
|
199
|
+
end
|
200
|
+
|
201
|
+
# to_body is an alias to to_hash (backward compatibility)
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
203
|
+
def to_body
|
204
|
+
to_hash
|
205
|
+
end
|
206
|
+
|
207
|
+
# Returns the object in the form of hash
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
209
|
+
def to_hash
|
210
|
+
hash = {}
|
211
|
+
self.class.attribute_map.each_pair do |attr, param|
|
212
|
+
value = self.send(attr)
|
213
|
+
if value.nil?
|
214
|
+
is_nullable = self.class.fastly_nullable.include?(attr)
|
215
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
216
|
+
end
|
217
|
+
|
218
|
+
hash[param] = _to_hash(value)
|
219
|
+
end
|
220
|
+
hash
|
221
|
+
end
|
222
|
+
|
223
|
+
# Outputs non-array value in the form of hash
|
224
|
+
# For object, use to_hash. Otherwise, just return the value
|
225
|
+
# @param [Object] value Any valid value
|
226
|
+
# @return [Hash] Returns the value in the form of hash
|
227
|
+
def _to_hash(value)
|
228
|
+
if value.is_a?(Array)
|
229
|
+
value.compact.map { |v| _to_hash(v) }
|
230
|
+
elsif value.is_a?(Hash)
|
231
|
+
{}.tap do |hash|
|
232
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
233
|
+
end
|
234
|
+
elsif value.respond_to? :to_hash
|
235
|
+
value.to_hash
|
236
|
+
else
|
237
|
+
value
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
241
|
+
end
|
242
|
+
|
243
|
+
end
|
@@ -0,0 +1,216 @@
|
|
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 'date'
|
12
|
+
require 'time'
|
13
|
+
|
14
|
+
module Fastly
|
15
|
+
class OriginInspectorResponseLinks
|
16
|
+
attr_accessor :_links
|
17
|
+
|
18
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
19
|
+
def self.attribute_map
|
20
|
+
{
|
21
|
+
:'_links' => :'_links'
|
22
|
+
}
|
23
|
+
end
|
24
|
+
|
25
|
+
# Returns all the JSON keys this model knows about
|
26
|
+
def self.acceptable_attributes
|
27
|
+
attribute_map.values
|
28
|
+
end
|
29
|
+
|
30
|
+
# Attribute type mapping.
|
31
|
+
def self.fastly_types
|
32
|
+
{
|
33
|
+
:'_links' => :'OriginInspectorResponseLinksLinks'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# List of attributes with nullable: true
|
38
|
+
def self.fastly_nullable
|
39
|
+
Set.new([
|
40
|
+
])
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
if (!attributes.is_a?(Hash))
|
47
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::OriginInspectorResponseLinks` initialize method"
|
48
|
+
end
|
49
|
+
|
50
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
52
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
53
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::OriginInspectorResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
54
|
+
end
|
55
|
+
h[k.to_sym] = v
|
56
|
+
}
|
57
|
+
|
58
|
+
if attributes.key?(:'_links')
|
59
|
+
self._links = attributes[:'_links']
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
64
|
+
# @return Array for valid properties with the reasons
|
65
|
+
def list_invalid_properties
|
66
|
+
invalid_properties = Array.new
|
67
|
+
invalid_properties
|
68
|
+
end
|
69
|
+
|
70
|
+
# Check to see if the all the properties in the model are valid
|
71
|
+
# @return true if the model is valid
|
72
|
+
def valid?
|
73
|
+
true
|
74
|
+
end
|
75
|
+
|
76
|
+
# Checks equality by comparing each attribute.
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def ==(o)
|
79
|
+
return true if self.equal?(o)
|
80
|
+
self.class == o.class &&
|
81
|
+
_links == o._links
|
82
|
+
end
|
83
|
+
|
84
|
+
# @see the `==` method
|
85
|
+
# @param [Object] Object to be compared
|
86
|
+
def eql?(o)
|
87
|
+
self == o
|
88
|
+
end
|
89
|
+
|
90
|
+
# Calculates hash code according to all attributes.
|
91
|
+
# @return [Integer] Hash code
|
92
|
+
def hash
|
93
|
+
[_links].hash
|
94
|
+
end
|
95
|
+
|
96
|
+
# Builds the object from hash
|
97
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
98
|
+
# @return [Object] Returns the model itself
|
99
|
+
def self.build_from_hash(attributes)
|
100
|
+
new.build_from_hash(attributes)
|
101
|
+
end
|
102
|
+
|
103
|
+
# Builds the object from hash
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
# @return [Object] Returns the model itself
|
106
|
+
def build_from_hash(attributes)
|
107
|
+
return nil unless attributes.is_a?(Hash)
|
108
|
+
self.class.fastly_types.each_pair do |key, type|
|
109
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
|
110
|
+
self.send("#{key}=", nil)
|
111
|
+
elsif type =~ /\AArray<(.*)>/i
|
112
|
+
# check to ensure the input is an array given that the attribute
|
113
|
+
# is documented as an array but the input is not
|
114
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
115
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
116
|
+
end
|
117
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
118
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
self
|
123
|
+
end
|
124
|
+
|
125
|
+
# Deserializes the data based on type
|
126
|
+
# @param string type Data type
|
127
|
+
# @param string value Value to be deserialized
|
128
|
+
# @return [Object] Deserialized data
|
129
|
+
def _deserialize(type, value)
|
130
|
+
case type.to_sym
|
131
|
+
when :Time
|
132
|
+
Time.parse(value)
|
133
|
+
when :Date
|
134
|
+
Date.parse(value)
|
135
|
+
when :String
|
136
|
+
value.to_s
|
137
|
+
when :Integer
|
138
|
+
value.to_i
|
139
|
+
when :Float
|
140
|
+
value.to_f
|
141
|
+
when :Boolean
|
142
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
143
|
+
true
|
144
|
+
else
|
145
|
+
false
|
146
|
+
end
|
147
|
+
when :Object
|
148
|
+
# generic object (usually a Hash), return directly
|
149
|
+
value
|
150
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
151
|
+
inner_type = Regexp.last_match[:inner_type]
|
152
|
+
value.map { |v| _deserialize(inner_type, v) }
|
153
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
154
|
+
k_type = Regexp.last_match[:k_type]
|
155
|
+
v_type = Regexp.last_match[:v_type]
|
156
|
+
{}.tap do |hash|
|
157
|
+
value.each do |k, v|
|
158
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
else # model
|
162
|
+
# models (e.g. Pet) or oneOf
|
163
|
+
klass = Fastly.const_get(type)
|
164
|
+
klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
# Returns the string representation of the object
|
169
|
+
# @return [String] String presentation of the object
|
170
|
+
def to_s
|
171
|
+
to_hash.to_s
|
172
|
+
end
|
173
|
+
|
174
|
+
# to_body is an alias to to_hash (backward compatibility)
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
176
|
+
def to_body
|
177
|
+
to_hash
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the object in the form of hash
|
181
|
+
# @return [Hash] Returns the object in the form of hash
|
182
|
+
def to_hash
|
183
|
+
hash = {}
|
184
|
+
self.class.attribute_map.each_pair do |attr, param|
|
185
|
+
value = self.send(attr)
|
186
|
+
if value.nil?
|
187
|
+
is_nullable = self.class.fastly_nullable.include?(attr)
|
188
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
189
|
+
end
|
190
|
+
|
191
|
+
hash[param] = _to_hash(value)
|
192
|
+
end
|
193
|
+
hash
|
194
|
+
end
|
195
|
+
|
196
|
+
# Outputs non-array value in the form of hash
|
197
|
+
# For object, use to_hash. Otherwise, just return the value
|
198
|
+
# @param [Object] value Any valid value
|
199
|
+
# @return [Hash] Returns the value in the form of hash
|
200
|
+
def _to_hash(value)
|
201
|
+
if value.is_a?(Array)
|
202
|
+
value.compact.map { |v| _to_hash(v) }
|
203
|
+
elsif value.is_a?(Hash)
|
204
|
+
{}.tap do |hash|
|
205
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
206
|
+
end
|
207
|
+
elsif value.respond_to? :to_hash
|
208
|
+
value.to_hash
|
209
|
+
else
|
210
|
+
value
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
end
|
215
|
+
|
216
|
+
end
|