fastly 17.2.0 → 18.1.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 +74 -0
- data/Gemfile.lock +4 -4
- data/README.md +76 -2
- data/docs/AiRuntimeControlProviderConnectionsApi.md +210 -0
- data/docs/AiRuntimeControlProvidersApi.md +121 -0
- data/docs/AiRuntimeControlResponseBodyEnable.md +12 -0
- data/docs/AiRuntimeControlResponseCustomer.md +10 -0
- data/docs/AiRuntimeControlResponseLinks.md +10 -0
- data/docs/AiRuntimeControlResponseLinksLinks.md +10 -0
- data/docs/AiRuntimeControlResponseProduct.md +10 -0
- data/docs/AiRuntimeControlResponseProductProduct.md +11 -0
- data/docs/AiRuntimeControlSessionsApi.md +69 -0
- data/docs/AiRuntimeControlUsageMetricsApi.md +113 -0
- data/docs/AiRuntimeControlVirtualKeysApi.md +334 -0
- data/docs/ArcBedrockSetupResponse.md +11 -0
- data/docs/ArcCreateVirtualKeyResponse.md +19 -0
- data/docs/ArcError.md +12 -0
- data/docs/ArcFailoverTarget.md +10 -0
- data/docs/ArcGetProviderConnectionResponse.md +19 -0
- data/docs/ArcGetProviderConnectionResponseExtra.md +10 -0
- data/docs/ArcModel.md +12 -0
- data/docs/ArcModelsMeta.md +10 -0
- data/docs/ArcModelsResponse.md +11 -0
- data/docs/ArcProvider.md +13 -0
- data/docs/ArcProviderConnectionApiKey.md +14 -0
- data/docs/ArcProviderConnectionAwsIam.md +14 -0
- data/docs/ArcProviderConnectionListItemResponse.md +19 -0
- data/docs/ArcProviderConnectionListItemResponseExtra.md +10 -0
- data/docs/ArcProviderConnectionRequest.md +49 -0
- data/docs/ArcProviderConnectionResponse.md +18 -0
- data/docs/ArcProviderConnectionsMeta.md +11 -0
- data/docs/ArcProviderConnectionsResponse.md +11 -0
- data/docs/ArcProvidersMeta.md +10 -0
- data/docs/ArcProvidersResponse.md +11 -0
- data/docs/ArcRotateVirtualKeyRequest.md +10 -0
- data/docs/ArcRotateVirtualKeyResponse.md +17 -0
- data/docs/ArcSession.md +28 -0
- data/docs/ArcSessionLogEntry.md +12 -0
- data/docs/ArcSessionsMeta.md +14 -0
- data/docs/ArcSessionsResponse.md +11 -0
- data/docs/ArcUpdateProviderConnectionRequest.md +14 -0
- data/docs/ArcUpdateVirtualKeyRequest.md +16 -0
- data/docs/ArcUpdateVirtualKeyResponse.md +20 -0
- data/docs/ArcUsageMetric.md +18 -0
- data/docs/ArcUsageMetricsMeta.md +11 -0
- data/docs/ArcUsageMetricsResponse.md +11 -0
- data/docs/ArcVirtualKey.md +15 -0
- data/docs/ArcVirtualKeyFailoverRequest.md +13 -0
- data/docs/ArcVirtualKeyFailoverResponse.md +13 -0
- data/docs/ArcVirtualKeyListItemResponse.md +26 -0
- data/docs/ArcVirtualKeyListItemResponseExtra.md +20 -0
- data/docs/ArcVirtualKeyResponse.md +25 -0
- data/docs/ArcVirtualKeyResponseExtra.md +19 -0
- data/docs/ArcVirtualKeysMeta.md +14 -0
- data/docs/ArcVirtualKeysResponse.md +11 -0
- data/docs/AutomationToken.md +6 -2
- data/docs/AutomationTokenCreateRequest.md +10 -1
- data/docs/AutomationTokenCreateResponse.md +6 -2
- data/docs/AutomationTokenResponse.md +5 -1
- data/docs/AutomationTokenRole.md +11 -0
- data/docs/AutomationTokenUnversionedError.md +11 -0
- data/docs/AutomationTokenUnversionedErrorResponse.md +10 -0
- data/docs/AutomationTokenWorkspace.md +11 -0
- data/docs/AutomationTokenWorkspacesMeta.md +12 -0
- data/docs/AutomationTokenWorkspacesResponse.md +12 -0
- data/docs/AutomationTokensApi.md +43 -1
- data/docs/Backend.md +5 -0
- data/docs/BackendApi.md +20 -0
- data/docs/BackendResponse.md +5 -0
- data/docs/BotManagementAction.md +10 -0
- data/docs/BotManagementApi.md +475 -0
- data/docs/BotManagementBot.md +10 -0
- data/docs/BotManagementBotAction.md +10 -0
- data/docs/BotManagementBotResponse.md +12 -0
- data/docs/BotManagementBotResponseExtra.md +11 -0
- data/docs/BotManagementBotsResponse.md +11 -0
- data/docs/BotManagementCategoriesResponse.md +11 -0
- data/docs/BotManagementCategory.md +10 -0
- data/docs/BotManagementCategoryBots.md +10 -0
- data/docs/BotManagementCategoryBotsAction.md +10 -0
- data/docs/BotManagementCategoryResponse.md +13 -0
- data/docs/BotManagementCategoryResponseExtra.md +12 -0
- data/docs/BotManagementError.md +12 -0
- data/docs/BotManagementInvalidRequestError.md +12 -0
- data/docs/BotManagementInvalidRequestErrorExtra.md +12 -0
- data/docs/BotManagementMeta.md +12 -0
- data/docs/BotManagementNotAllowedError.md +12 -0
- data/docs/BotManagementNotAllowedErrorExtra.md +11 -0
- data/docs/BotManagementNotAuthenticatedError.md +12 -0
- data/docs/BotManagementNotAuthenticatedErrorExtra.md +11 -0
- data/docs/BotManagementNotFoundError.md +12 -0
- data/docs/BotManagementNotFoundErrorExtra.md +11 -0
- data/docs/BotManagementProtectionMode.md +9 -0
- data/docs/BotManagementRateLimitError.md +12 -0
- data/docs/BotManagementRateLimitErrorExtra.md +11 -0
- data/docs/BotManagementWorkspace.md +12 -0
- data/docs/BotManagementWorkspaceBotResponse.md +13 -0
- data/docs/BotManagementWorkspaceBotResponseExtra.md +10 -0
- data/docs/BotManagementWorkspaceBotsResponse.md +11 -0
- data/docs/BotManagementWorkspaceResponse.md +16 -0
- data/docs/BotManagementWorkspaceResponseExtra.md +13 -0
- data/docs/BotManagementWorkspacesResponse.md +11 -0
- data/docs/BotRequestMetricsDataItem.md +16 -0
- data/docs/BotRequestMetricsMetadata.md +14 -0
- data/docs/BotRequestMetricsResponse.md +11 -0
- data/docs/BotRequestsMetricsApi.md +77 -0
- data/docs/BulkUpdateDictionaryItem.md +1 -1
- data/docs/DdosProtectionRule.md +2 -1
- data/docs/DdosProtectionRuleAllOf.md +2 -1
- data/docs/DdosProtectionRulePatch.md +1 -1
- data/docs/DdosProtectionRuleWithStats.md +2 -1
- data/docs/DictionaryItem.md +1 -1
- data/docs/DictionaryItemApi.md +14 -14
- data/docs/DictionaryItemResponse.md +1 -1
- data/docs/HistoricalApi.md +10 -10
- data/docs/MetricsPlatformApi.md +69 -13
- data/docs/NetworkProtectApi.md +789 -0
- data/docs/NetworkProtectConflict.md +13 -0
- data/docs/NetworkProtectConflictError.md +11 -0
- data/docs/NetworkProtectEndpoint.md +11 -0
- data/docs/NetworkProtectEndpointCreate.md +11 -0
- data/docs/NetworkProtectEndpointPolicy.md +11 -0
- data/docs/NetworkProtectEndpointResponse.md +14 -0
- data/docs/NetworkProtectEndpointResponseFields.md +12 -0
- data/docs/NetworkProtectEndpointUpdate.md +10 -0
- data/docs/NetworkProtectEndpointsResponse.md +11 -0
- data/docs/NetworkProtectErrorDetail.md +11 -0
- data/docs/NetworkProtectInvalidRequest.md +13 -0
- data/docs/NetworkProtectListMeta.md +11 -0
- data/docs/NetworkProtectLoaStatus.md +9 -0
- data/docs/NetworkProtectNetwork.md +15 -0
- data/docs/NetworkProtectNetworkCreate.md +14 -0
- data/docs/NetworkProtectNetworkResponse.md +22 -0
- data/docs/NetworkProtectNetworkResponseFields.md +16 -0
- data/docs/NetworkProtectNetworkUpdate.md +14 -0
- data/docs/NetworkProtectNetworksResponse.md +11 -0
- data/docs/NetworkProtectPolicyEndpoint.md +13 -0
- data/docs/NetworkProtectPrefixList.md +12 -0
- data/docs/NetworkProtectPrefixListCreate.md +12 -0
- data/docs/NetworkProtectPrefixListFamily.md +9 -0
- data/docs/NetworkProtectPrefixListResponse.md +15 -0
- data/docs/NetworkProtectPrefixListResponseFields.md +12 -0
- data/docs/NetworkProtectPrefixListUpdate.md +11 -0
- data/docs/NetworkProtectPrefixListsResponse.md +11 -0
- data/docs/NetworkProtectRegion.md +9 -0
- data/docs/NetworkProtectRoaStatus.md +9 -0
- data/docs/NetworkProtectRule.md +16 -0
- data/docs/NetworkProtectRuleAction.md +9 -0
- data/docs/NetworkProtectRuleDestinationPorts.md +9 -0
- data/docs/NetworkProtectRuleIpProtocol.md +9 -0
- data/docs/NetworkProtectRuleMatchDestinationIp.md +10 -0
- data/docs/NetworkProtectRuleMatchDestinationPorts.md +10 -0
- data/docs/NetworkProtectRuleMatchIpProtocol.md +10 -0
- data/docs/NetworkProtectRuleMatchSourcePorts.md +10 -0
- data/docs/NetworkProtectRuleMatchSourcePrefixList.md +10 -0
- data/docs/NetworkProtectRuleResponse.md +16 -0
- data/docs/NetworkProtectRuleSet.md +11 -0
- data/docs/NetworkProtectRuleSetCreate.md +11 -0
- data/docs/NetworkProtectRuleSetDefaultAction.md +9 -0
- data/docs/NetworkProtectRuleSetResponse.md +14 -0
- data/docs/NetworkProtectRuleSetResponseFields.md +12 -0
- data/docs/NetworkProtectRuleSetUpdate.md +11 -0
- data/docs/NetworkProtectRuleSetsResponse.md +11 -0
- data/docs/NetworkProtectRuleSourcePorts.md +9 -0
- data/docs/NetworkProtectRuleTimestamps.md +11 -0
- data/docs/PlatformValues.md +359 -16
- data/docs/ProductAiRuntimeControlApi.md +115 -0
- data/docs/PurgeApi.md +6 -0
- data/docs/RealtimeEntryAggregated.md +18 -0
- data/docs/RealtimeEntryDatacenter.md +18 -0
- data/docs/RealtimeMeasurements.md +18 -0
- data/docs/Results.md +18 -0
- data/lib/fastly/api/ai_runtime_control_provider_connections_api.rb +355 -0
- data/lib/fastly/api/ai_runtime_control_providers_api.rb +195 -0
- data/lib/fastly/api/ai_runtime_control_sessions_api.rb +112 -0
- data/lib/fastly/api/ai_runtime_control_usage_metrics_api.rb +176 -0
- data/lib/fastly/api/ai_runtime_control_virtual_keys_api.rb +580 -0
- data/lib/fastly/api/automation_tokens_api.rb +78 -1
- data/lib/fastly/api/backend_api.rb +38 -0
- data/lib/fastly/api/bot_management_api.rb +869 -0
- data/lib/fastly/api/bot_requests_metrics_api.rb +137 -0
- data/lib/fastly/api/dictionary_item_api.rb +14 -14
- data/lib/fastly/api/domain_inspector_historical_api.rb +1 -1
- data/lib/fastly/api/historical_api.rb +15 -15
- data/lib/fastly/api/metrics_platform_api.rb +131 -24
- data/lib/fastly/api/network_protect_api.rb +1420 -0
- data/lib/fastly/api/origin_inspector_historical_api.rb +1 -1
- data/lib/fastly/api/product_ai_runtime_control_api.rb +186 -0
- data/lib/fastly/api/purge_api.rb +21 -0
- data/lib/fastly/configuration.rb +337 -1
- data/lib/fastly/models/ai_runtime_control_response_body_enable.rb +243 -0
- data/lib/fastly/models/ai_runtime_control_response_customer.rb +216 -0
- data/lib/fastly/models/ai_runtime_control_response_links.rb +216 -0
- data/lib/fastly/models/ai_runtime_control_response_links_links.rb +217 -0
- data/lib/fastly/models/ai_runtime_control_response_product.rb +216 -0
- data/lib/fastly/models/ai_runtime_control_response_product_product.rb +227 -0
- data/lib/fastly/models/arc_bedrock_setup_response.rb +237 -0
- data/lib/fastly/models/arc_create_virtual_key_response.rb +346 -0
- data/lib/fastly/models/arc_error.rb +238 -0
- data/lib/fastly/models/arc_failover_target.rb +223 -0
- data/lib/fastly/models/arc_get_provider_connection_response.rb +393 -0
- data/lib/fastly/models/arc_get_provider_connection_response_extra.rb +224 -0
- data/lib/fastly/models/arc_model.rb +253 -0
- data/lib/fastly/models/arc_models_meta.rb +217 -0
- data/lib/fastly/models/arc_models_response.rb +238 -0
- data/lib/fastly/models/arc_provider.rb +270 -0
- data/lib/fastly/models/arc_provider_connection_api_key.rb +335 -0
- data/lib/fastly/models/arc_provider_connection_aws_iam.rb +350 -0
- data/lib/fastly/models/arc_provider_connection_list_item_response.rb +386 -0
- data/lib/fastly/models/arc_provider_connection_list_item_response_extra.rb +217 -0
- data/lib/fastly/models/arc_provider_connection_request.rb +103 -0
- data/lib/fastly/models/arc_provider_connection_response.rb +369 -0
- data/lib/fastly/models/arc_provider_connections_meta.rb +228 -0
- data/lib/fastly/models/arc_provider_connections_response.rb +238 -0
- data/lib/fastly/models/arc_providers_meta.rb +217 -0
- data/lib/fastly/models/arc_providers_response.rb +238 -0
- data/lib/fastly/models/arc_rotate_virtual_key_request.rb +218 -0
- data/lib/fastly/models/arc_rotate_virtual_key_response.rb +324 -0
- data/lib/fastly/models/arc_session.rb +465 -0
- data/lib/fastly/models/arc_session_log_entry.rb +240 -0
- data/lib/fastly/models/arc_sessions_meta.rb +260 -0
- data/lib/fastly/models/arc_sessions_response.rb +238 -0
- data/lib/fastly/models/arc_update_provider_connection_request.rb +275 -0
- data/lib/fastly/models/arc_update_virtual_key_request.rb +345 -0
- data/lib/fastly/models/arc_update_virtual_key_response.rb +352 -0
- data/lib/fastly/models/arc_usage_metric.rb +347 -0
- data/lib/fastly/models/arc_usage_metrics_meta.rb +228 -0
- data/lib/fastly/models/arc_usage_metrics_response.rb +238 -0
- data/lib/fastly/models/arc_virtual_key.rb +342 -0
- data/lib/fastly/models/arc_virtual_key_failover_request.rb +255 -0
- data/lib/fastly/models/arc_virtual_key_failover_response.rb +270 -0
- data/lib/fastly/models/arc_virtual_key_list_item_response.rb +492 -0
- data/lib/fastly/models/arc_virtual_key_list_item_response_extra.rb +350 -0
- data/lib/fastly/models/arc_virtual_key_response.rb +477 -0
- data/lib/fastly/models/arc_virtual_key_response_extra.rb +335 -0
- data/lib/fastly/models/arc_virtual_keys_meta.rb +260 -0
- data/lib/fastly/models/arc_virtual_keys_response.rb +238 -0
- data/lib/fastly/models/automation_token.rb +49 -5
- data/lib/fastly/models/automation_token_create_request.rb +161 -7
- data/lib/fastly/models/automation_token_create_response.rb +49 -5
- data/lib/fastly/models/automation_token_error_response.rb +1 -0
- data/lib/fastly/models/automation_token_response.rb +46 -2
- data/lib/fastly/models/automation_token_role.rb +227 -0
- data/lib/fastly/models/automation_token_unversioned_error.rb +225 -0
- data/lib/fastly/models/automation_token_unversioned_error_response.rb +219 -0
- data/lib/fastly/models/automation_token_workspace.rb +237 -0
- data/lib/fastly/models/automation_token_workspaces_meta.rb +242 -0
- data/lib/fastly/models/automation_token_workspaces_response.rb +253 -0
- data/lib/fastly/models/backend.rb +90 -1
- data/lib/fastly/models/backend_response.rb +90 -1
- data/lib/fastly/models/bot_management_action.rb +257 -0
- data/lib/fastly/models/bot_management_bot.rb +222 -0
- data/lib/fastly/models/bot_management_bot_action.rb +257 -0
- data/lib/fastly/models/bot_management_bot_response.rb +259 -0
- data/lib/fastly/models/bot_management_bot_response_extra.rb +237 -0
- data/lib/fastly/models/bot_management_bots_response.rb +238 -0
- data/lib/fastly/models/bot_management_categories_response.rb +238 -0
- data/lib/fastly/models/bot_management_category.rb +222 -0
- data/lib/fastly/models/bot_management_category_bots.rb +222 -0
- data/lib/fastly/models/bot_management_category_bots_action.rb +257 -0
- data/lib/fastly/models/bot_management_category_response.rb +269 -0
- data/lib/fastly/models/bot_management_category_response_extra.rb +247 -0
- data/lib/fastly/models/bot_management_error.rb +248 -0
- data/lib/fastly/models/bot_management_invalid_request_error.rb +291 -0
- data/lib/fastly/models/bot_management_invalid_request_error_extra.rb +283 -0
- data/lib/fastly/models/bot_management_meta.rb +239 -0
- data/lib/fastly/models/bot_management_not_allowed_error.rb +287 -0
- data/lib/fastly/models/bot_management_not_allowed_error_extra.rb +259 -0
- data/lib/fastly/models/bot_management_not_authenticated_error.rb +287 -0
- data/lib/fastly/models/bot_management_not_authenticated_error_extra.rb +259 -0
- data/lib/fastly/models/bot_management_not_found_error.rb +287 -0
- data/lib/fastly/models/bot_management_not_found_error_extra.rb +259 -0
- data/lib/fastly/models/bot_management_protection_mode.rb +36 -0
- data/lib/fastly/models/bot_management_rate_limit_error.rb +287 -0
- data/lib/fastly/models/bot_management_rate_limit_error_extra.rb +259 -0
- data/lib/fastly/models/bot_management_workspace.rb +276 -0
- data/lib/fastly/models/bot_management_workspace_bot_response.rb +275 -0
- data/lib/fastly/models/bot_management_workspace_bot_response_extra.rb +222 -0
- data/lib/fastly/models/bot_management_workspace_bots_response.rb +238 -0
- data/lib/fastly/models/bot_management_workspace_response.rb +354 -0
- data/lib/fastly/models/bot_management_workspace_response_extra.rb +264 -0
- data/lib/fastly/models/bot_management_workspaces_response.rb +238 -0
- data/lib/fastly/models/bot_request_metrics_data_item.rb +278 -0
- data/lib/fastly/models/bot_request_metrics_metadata.rb +258 -0
- data/lib/fastly/models/bot_request_metrics_response.rb +228 -0
- data/lib/fastly/models/bulk_update_dictionary_item.rb +1 -1
- data/lib/fastly/models/ddos_protection_request_enable_mode.rb +2 -2
- data/lib/fastly/models/ddos_protection_request_update_configuration.rb +2 -2
- data/lib/fastly/models/ddos_protection_rule.rb +13 -2
- data/lib/fastly/models/ddos_protection_rule_all_of.rb +13 -2
- data/lib/fastly/models/ddos_protection_rule_patch.rb +1 -1
- data/lib/fastly/models/ddos_protection_rule_with_stats.rb +13 -2
- data/lib/fastly/models/dictionary_item.rb +1 -1
- data/lib/fastly/models/dictionary_item_response.rb +1 -1
- data/lib/fastly/models/event_attributes.rb +2 -2
- data/lib/fastly/models/network_protect_conflict.rb +299 -0
- data/lib/fastly/models/network_protect_conflict_error.rb +228 -0
- data/lib/fastly/models/network_protect_endpoint.rb +266 -0
- data/lib/fastly/models/network_protect_endpoint_create.rb +266 -0
- data/lib/fastly/models/network_protect_endpoint_policy.rb +255 -0
- data/lib/fastly/models/network_protect_endpoint_response.rb +340 -0
- data/lib/fastly/models/network_protect_endpoint_response_fields.rb +274 -0
- data/lib/fastly/models/network_protect_endpoint_update.rb +251 -0
- data/lib/fastly/models/network_protect_endpoints_response.rb +239 -0
- data/lib/fastly/models/network_protect_error_detail.rb +238 -0
- data/lib/fastly/models/{automation_token_create_request_attributes.rb → network_protect_invalid_request.rb} +63 -75
- data/lib/fastly/models/network_protect_list_meta.rb +263 -0
- data/lib/fastly/models/network_protect_loa_status.rb +36 -0
- data/lib/fastly/models/network_protect_network.rb +363 -0
- data/lib/fastly/models/network_protect_network_create.rb +340 -0
- data/lib/fastly/models/network_protect_network_response.rb +477 -0
- data/lib/fastly/models/network_protect_network_response_fields.rb +314 -0
- data/lib/fastly/models/network_protect_network_update.rb +329 -0
- data/lib/fastly/models/network_protect_networks_response.rb +239 -0
- data/lib/fastly/models/network_protect_policy_endpoint.rb +307 -0
- data/lib/fastly/models/network_protect_prefix_list.rb +282 -0
- data/lib/fastly/models/network_protect_prefix_list_create.rb +301 -0
- data/lib/fastly/models/network_protect_prefix_list_family.rb +35 -0
- data/lib/fastly/models/network_protect_prefix_list_response.rb +356 -0
- data/lib/fastly/models/network_protect_prefix_list_response_fields.rb +274 -0
- data/lib/fastly/models/network_protect_prefix_list_update.rb +269 -0
- data/lib/fastly/models/network_protect_prefix_lists_response.rb +239 -0
- data/lib/fastly/models/network_protect_region.rb +34 -0
- data/lib/fastly/models/network_protect_roa_status.rb +37 -0
- data/lib/fastly/models/network_protect_rule.rb +372 -0
- data/lib/fastly/models/network_protect_rule_action.rb +35 -0
- data/lib/fastly/models/network_protect_rule_destination_ports.rb +208 -0
- data/lib/fastly/models/network_protect_rule_ip_protocol.rb +37 -0
- data/lib/fastly/models/network_protect_rule_match_destination_ip.rb +223 -0
- data/lib/fastly/models/network_protect_rule_match_destination_ports.rb +222 -0
- data/lib/fastly/models/network_protect_rule_match_ip_protocol.rb +222 -0
- data/lib/fastly/models/network_protect_rule_match_source_ports.rb +222 -0
- data/lib/fastly/models/network_protect_rule_match_source_prefix_list.rb +244 -0
- data/lib/fastly/models/network_protect_rule_response.rb +329 -0
- data/lib/fastly/models/network_protect_rule_set.rb +258 -0
- data/lib/fastly/models/network_protect_rule_set_create.rb +249 -0
- data/lib/fastly/models/network_protect_rule_set_default_action.rb +35 -0
- data/lib/fastly/models/network_protect_rule_set_response.rb +332 -0
- data/lib/fastly/models/network_protect_rule_set_response_fields.rb +274 -0
- data/lib/fastly/models/network_protect_rule_set_update.rb +244 -0
- data/lib/fastly/models/network_protect_rule_sets_response.rb +239 -0
- data/lib/fastly/models/network_protect_rule_source_ports.rb +208 -0
- data/lib/fastly/models/network_protect_rule_timestamps.rb +228 -0
- data/lib/fastly/models/platform_values.rb +3568 -137
- data/lib/fastly/models/pop.rb +6 -6
- data/lib/fastly/models/realtime_entry_aggregated.rb +184 -4
- data/lib/fastly/models/realtime_entry_datacenter.rb +184 -4
- data/lib/fastly/models/realtime_measurements.rb +184 -4
- data/lib/fastly/models/results.rb +181 -1
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +145 -1
- data/sig.json +1 -1
- metadata +2502 -2214
- data/docs/AutomationTokenCreateRequestAttributes.md +0 -15
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Fastly API
|
|
3
|
+
|
|
4
|
+
#Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: oss@fastly.com
|
|
8
|
+
|
|
9
|
+
=end
|
|
10
|
+
|
|
11
|
+
require 'cgi'
|
|
12
|
+
|
|
13
|
+
module Fastly
|
|
14
|
+
class BotRequestsMetricsApi
|
|
15
|
+
attr_accessor :api_client
|
|
16
|
+
|
|
17
|
+
def initialize(api_client = ApiClient.default)
|
|
18
|
+
@api_client = api_client
|
|
19
|
+
end
|
|
20
|
+
# Get per-service historical time series metrics for bot requests broken down by bot-type.
|
|
21
|
+
# Return historical time series metrics for bot requests broken down by bot-type.
|
|
22
|
+
# @option opts [String] :granularity Duration of sample windows. (required)
|
|
23
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
24
|
+
# @option opts [String] :from A valid RFC-8339-formatted date and time indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `granularity` value.
|
|
25
|
+
# @option opts [String] :to A valid RFC-8339-formatted date and time indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `granularity` value.
|
|
26
|
+
# @option opts [String] :group_by Field to group by in the query. For example, `group_by=bot_id` will return entries grouped by `timestamp` and `bot_id`.
|
|
27
|
+
# @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
|
|
28
|
+
# @option opts [String] :bot Filter results based by Bot ID.
|
|
29
|
+
# @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
|
|
30
|
+
# @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.
|
|
31
|
+
# @option opts [String] :metric One or more metrics to retrieve. Multiple values should be comma-separated.
|
|
32
|
+
# @option opts [String] :metric_set The metric set to retrieve.
|
|
33
|
+
# @option opts [String] :limit Number of results per page. The maximum is 10000. (default to '1000')
|
|
34
|
+
# @return [BotRequestMetricsResponse]
|
|
35
|
+
def get_bot_request_metrics_service_historical(opts = {})
|
|
36
|
+
data, _status_code, _headers = get_bot_request_metrics_service_historical_with_http_info(opts)
|
|
37
|
+
data
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Get per-service historical time series metrics for bot requests broken down by bot-type.
|
|
41
|
+
# Return historical time series metrics for bot requests broken down by bot-type.
|
|
42
|
+
# @option opts [String] :granularity Duration of sample windows. (required)
|
|
43
|
+
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
44
|
+
# @option opts [String] :from A valid RFC-8339-formatted date and time indicating the inclusive start of the query time range. If not provided, a default is chosen based on the provided `granularity` value.
|
|
45
|
+
# @option opts [String] :to A valid RFC-8339-formatted date and time indicating the exclusive end of the query time range. If not provided, a default is chosen based on the provided `granularity` value.
|
|
46
|
+
# @option opts [String] :group_by Field to group by in the query. For example, `group_by=bot_id` will return entries grouped by `timestamp` and `bot_id`.
|
|
47
|
+
# @option opts [String] :datacenter Limit query to one or more specific POPs. Values should be comma-separated.
|
|
48
|
+
# @option opts [String] :bot Filter results based by Bot ID.
|
|
49
|
+
# @option opts [String] :region Limit query to one or more specific geographic regions. Values should be comma-separated.
|
|
50
|
+
# @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.
|
|
51
|
+
# @option opts [String] :metric One or more metrics to retrieve. Multiple values should be comma-separated.
|
|
52
|
+
# @option opts [String] :metric_set The metric set to retrieve.
|
|
53
|
+
# @option opts [String] :limit Number of results per page. The maximum is 10000. (default to '1000')
|
|
54
|
+
# @return [Array<(BotRequestMetricsResponse, Integer, Hash)>] BotRequestMetricsResponse data, response status code and response headers
|
|
55
|
+
def get_bot_request_metrics_service_historical_with_http_info(opts = {})
|
|
56
|
+
if @api_client.config.debugging
|
|
57
|
+
@api_client.config.logger.debug 'Calling API: BotRequestsMetricsApi.get_bot_request_metrics_service_historical ...'
|
|
58
|
+
end
|
|
59
|
+
# unbox the parameters from the hash
|
|
60
|
+
granularity = opts[:'granularity']
|
|
61
|
+
service_id = opts[:'service_id']
|
|
62
|
+
# verify the required parameter 'granularity' is set
|
|
63
|
+
if @api_client.config.client_side_validation && granularity.nil?
|
|
64
|
+
fail ArgumentError, "Missing the required parameter 'granularity' when calling BotRequestsMetricsApi.get_bot_request_metrics_service_historical"
|
|
65
|
+
end
|
|
66
|
+
# verify enum value
|
|
67
|
+
allowable_values = ["minutely", "hourly", "daily"]
|
|
68
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(granularity)
|
|
69
|
+
fail ArgumentError, "invalid value for \"granularity\", must be one of #{allowable_values}"
|
|
70
|
+
end
|
|
71
|
+
# verify the required parameter 'service_id' is set
|
|
72
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
73
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling BotRequestsMetricsApi.get_bot_request_metrics_service_historical"
|
|
74
|
+
end
|
|
75
|
+
allowable_values = ["datacenter", "bot_id"]
|
|
76
|
+
if @api_client.config.client_side_validation && opts[:'group_by'] && !allowable_values.include?(opts[:'group_by'])
|
|
77
|
+
fail ArgumentError, "invalid value for \"group_by\", must be one of #{allowable_values}"
|
|
78
|
+
end
|
|
79
|
+
allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "saudi_arabia", "europe", "mexico", "southamerica_std", "usa"]
|
|
80
|
+
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
81
|
+
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
82
|
+
end
|
|
83
|
+
allowable_values = ["content_guard"]
|
|
84
|
+
if @api_client.config.client_side_validation && opts[:'metric_set'] && !allowable_values.include?(opts[:'metric_set'])
|
|
85
|
+
fail ArgumentError, "invalid value for \"metric_set\", must be one of #{allowable_values}"
|
|
86
|
+
end
|
|
87
|
+
# resource path
|
|
88
|
+
local_var_path = '/metrics/bots/entities/{service_id}/{granularity}'.sub('{' + 'granularity' + '}', CGI.escape(granularity.to_s)).sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
|
89
|
+
|
|
90
|
+
# query parameters
|
|
91
|
+
query_params = opts[:query_params] || {}
|
|
92
|
+
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
|
93
|
+
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
|
94
|
+
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
|
95
|
+
query_params[:'datacenter'] = opts[:'datacenter'] if !opts[:'datacenter'].nil?
|
|
96
|
+
query_params[:'bot'] = opts[:'bot'] if !opts[:'bot'].nil?
|
|
97
|
+
query_params[:'region'] = opts[:'region'] if !opts[:'region'].nil?
|
|
98
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
99
|
+
query_params[:'metric'] = opts[:'metric'] if !opts[:'metric'].nil?
|
|
100
|
+
query_params[:'metric_set'] = opts[:'metric_set'] if !opts[:'metric_set'].nil?
|
|
101
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
102
|
+
|
|
103
|
+
# header parameters
|
|
104
|
+
header_params = opts[:header_params] || {}
|
|
105
|
+
# HTTP header 'Accept' (if needed)
|
|
106
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
107
|
+
|
|
108
|
+
# form parameters
|
|
109
|
+
form_params = opts[:form_params] || {}
|
|
110
|
+
|
|
111
|
+
# http body (model)
|
|
112
|
+
post_body = opts[:debug_body]
|
|
113
|
+
|
|
114
|
+
# return_type
|
|
115
|
+
return_type = opts[:debug_return_type] || 'BotRequestMetricsResponse'
|
|
116
|
+
|
|
117
|
+
# auth_names
|
|
118
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
119
|
+
|
|
120
|
+
new_options = opts.merge(
|
|
121
|
+
:operation => :"BotRequestsMetricsApi.get_bot_request_metrics_service_historical",
|
|
122
|
+
:header_params => header_params,
|
|
123
|
+
:query_params => query_params,
|
|
124
|
+
:form_params => form_params,
|
|
125
|
+
:body => post_body,
|
|
126
|
+
:auth_names => auth_names,
|
|
127
|
+
:return_type => return_type
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
131
|
+
if @api_client.config.debugging
|
|
132
|
+
@api_client.config.logger.debug "API called: BotRequestsMetricsApi#get_bot_request_metrics_service_historical\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
133
|
+
end
|
|
134
|
+
return data, status_code, headers
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
@@ -98,7 +98,7 @@ module Fastly
|
|
|
98
98
|
# Create DictionaryItem given service, dictionary ID, item key, and item value.
|
|
99
99
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
100
100
|
# @option opts [String] :dictionary_id Alphanumeric string identifying a Dictionary. (required)
|
|
101
|
-
# @option opts [String] :item_key Item key, maximum
|
|
101
|
+
# @option opts [String] :item_key Item key, maximum 255 characters.
|
|
102
102
|
# @option opts [String] :item_value Item value, maximum 8000 characters.
|
|
103
103
|
# @return [DictionaryItemResponse]
|
|
104
104
|
def create_dictionary_item(opts = {})
|
|
@@ -110,7 +110,7 @@ module Fastly
|
|
|
110
110
|
# Create DictionaryItem given service, dictionary ID, item key, and item value.
|
|
111
111
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
112
112
|
# @option opts [String] :dictionary_id Alphanumeric string identifying a Dictionary. (required)
|
|
113
|
-
# @option opts [String] :item_key Item key, maximum
|
|
113
|
+
# @option opts [String] :item_key Item key, maximum 255 characters.
|
|
114
114
|
# @option opts [String] :item_value Item value, maximum 8000 characters.
|
|
115
115
|
# @return [Array<(DictionaryItemResponse, Integer, Hash)>] DictionaryItemResponse data, response status code and response headers
|
|
116
116
|
def create_dictionary_item_with_http_info(opts = {})
|
|
@@ -179,7 +179,7 @@ module Fastly
|
|
|
179
179
|
# Delete DictionaryItem given service, dictionary ID, and item key.
|
|
180
180
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
181
181
|
# @option opts [String] :dictionary_id Alphanumeric string identifying a Dictionary. (required)
|
|
182
|
-
# @option opts [String] :dictionary_item_key Item key, maximum
|
|
182
|
+
# @option opts [String] :dictionary_item_key Item key, maximum 255 characters. (required)
|
|
183
183
|
# @return [InlineResponse200]
|
|
184
184
|
def delete_dictionary_item(opts = {})
|
|
185
185
|
data, _status_code, _headers = delete_dictionary_item_with_http_info(opts)
|
|
@@ -190,7 +190,7 @@ module Fastly
|
|
|
190
190
|
# Delete DictionaryItem given service, dictionary ID, and item key.
|
|
191
191
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
192
192
|
# @option opts [String] :dictionary_id Alphanumeric string identifying a Dictionary. (required)
|
|
193
|
-
# @option opts [String] :dictionary_item_key Item key, maximum
|
|
193
|
+
# @option opts [String] :dictionary_item_key Item key, maximum 255 characters. (required)
|
|
194
194
|
# @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
|
|
195
195
|
def delete_dictionary_item_with_http_info(opts = {})
|
|
196
196
|
if @api_client.config.debugging
|
|
@@ -256,7 +256,7 @@ module Fastly
|
|
|
256
256
|
# Retrieve a single DictionaryItem given service, dictionary ID and item key.
|
|
257
257
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
258
258
|
# @option opts [String] :dictionary_id Alphanumeric string identifying a Dictionary. (required)
|
|
259
|
-
# @option opts [String] :dictionary_item_key Item key, maximum
|
|
259
|
+
# @option opts [String] :dictionary_item_key Item key, maximum 255 characters. (required)
|
|
260
260
|
# @return [DictionaryItemResponse]
|
|
261
261
|
def get_dictionary_item(opts = {})
|
|
262
262
|
data, _status_code, _headers = get_dictionary_item_with_http_info(opts)
|
|
@@ -267,7 +267,7 @@ module Fastly
|
|
|
267
267
|
# Retrieve a single DictionaryItem given service, dictionary ID and item key.
|
|
268
268
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
269
269
|
# @option opts [String] :dictionary_id Alphanumeric string identifying a Dictionary. (required)
|
|
270
|
-
# @option opts [String] :dictionary_item_key Item key, maximum
|
|
270
|
+
# @option opts [String] :dictionary_item_key Item key, maximum 255 characters. (required)
|
|
271
271
|
# @return [Array<(DictionaryItemResponse, Integer, Hash)>] DictionaryItemResponse data, response status code and response headers
|
|
272
272
|
def get_dictionary_item_with_http_info(opts = {})
|
|
273
273
|
if @api_client.config.debugging
|
|
@@ -427,8 +427,8 @@ module Fastly
|
|
|
427
427
|
# Update DictionaryItem given service, dictionary ID, item key, and item value.
|
|
428
428
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
429
429
|
# @option opts [String] :dictionary_id Alphanumeric string identifying a Dictionary. (required)
|
|
430
|
-
# @option opts [String] :dictionary_item_key Item key, maximum
|
|
431
|
-
# @option opts [String] :item_key Item key, maximum
|
|
430
|
+
# @option opts [String] :dictionary_item_key Item key, maximum 255 characters. (required)
|
|
431
|
+
# @option opts [String] :item_key Item key, maximum 255 characters.
|
|
432
432
|
# @option opts [String] :item_value Item value, maximum 8000 characters.
|
|
433
433
|
# @return [DictionaryItemResponse]
|
|
434
434
|
def update_dictionary_item(opts = {})
|
|
@@ -440,8 +440,8 @@ module Fastly
|
|
|
440
440
|
# Update DictionaryItem given service, dictionary ID, item key, and item value.
|
|
441
441
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
442
442
|
# @option opts [String] :dictionary_id Alphanumeric string identifying a Dictionary. (required)
|
|
443
|
-
# @option opts [String] :dictionary_item_key Item key, maximum
|
|
444
|
-
# @option opts [String] :item_key Item key, maximum
|
|
443
|
+
# @option opts [String] :dictionary_item_key Item key, maximum 255 characters. (required)
|
|
444
|
+
# @option opts [String] :item_key Item key, maximum 255 characters.
|
|
445
445
|
# @option opts [String] :item_value Item value, maximum 8000 characters.
|
|
446
446
|
# @return [Array<(DictionaryItemResponse, Integer, Hash)>] DictionaryItemResponse data, response status code and response headers
|
|
447
447
|
def update_dictionary_item_with_http_info(opts = {})
|
|
@@ -515,8 +515,8 @@ module Fastly
|
|
|
515
515
|
# Upsert DictionaryItem given service, dictionary ID, item key, and item value.
|
|
516
516
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
517
517
|
# @option opts [String] :dictionary_id Alphanumeric string identifying a Dictionary. (required)
|
|
518
|
-
# @option opts [String] :dictionary_item_key Item key, maximum
|
|
519
|
-
# @option opts [String] :item_key Item key, maximum
|
|
518
|
+
# @option opts [String] :dictionary_item_key Item key, maximum 255 characters. (required)
|
|
519
|
+
# @option opts [String] :item_key Item key, maximum 255 characters.
|
|
520
520
|
# @option opts [String] :item_value Item value, maximum 8000 characters.
|
|
521
521
|
# @return [DictionaryItemResponse]
|
|
522
522
|
def upsert_dictionary_item(opts = {})
|
|
@@ -528,8 +528,8 @@ module Fastly
|
|
|
528
528
|
# Upsert DictionaryItem given service, dictionary ID, item key, and item value.
|
|
529
529
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
|
530
530
|
# @option opts [String] :dictionary_id Alphanumeric string identifying a Dictionary. (required)
|
|
531
|
-
# @option opts [String] :dictionary_item_key Item key, maximum
|
|
532
|
-
# @option opts [String] :item_key Item key, maximum
|
|
531
|
+
# @option opts [String] :dictionary_item_key Item key, maximum 255 characters. (required)
|
|
532
|
+
# @option opts [String] :item_key Item key, maximum 255 characters.
|
|
533
533
|
# @option opts [String] :item_value Item value, maximum 8000 characters.
|
|
534
534
|
# @return [Array<(DictionaryItemResponse, Integer, Hash)>] DictionaryItemResponse data, response status code and response headers
|
|
535
535
|
def upsert_dictionary_item_with_http_info(opts = {})
|
|
@@ -68,7 +68,7 @@ module Fastly
|
|
|
68
68
|
if @api_client.config.client_side_validation && opts[:'group_by'] && !allowable_values.include?(opts[:'group_by'])
|
|
69
69
|
fail ArgumentError, "invalid value for \"group_by\", must be one of #{allowable_values}"
|
|
70
70
|
end
|
|
71
|
-
allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "europe", "mexico", "southamerica_std", "usa"]
|
|
71
|
+
allowable_values = ["africa_std", "anzac", "asia", "asia_india", "asia_southkorea", "saudi_arabia", "europe", "mexico", "southamerica_std", "usa"]
|
|
72
72
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
73
73
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
74
74
|
end
|
|
@@ -22,7 +22,7 @@ module Fastly
|
|
|
22
22
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
23
23
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
24
24
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
25
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
25
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
26
26
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
27
27
|
# @option opts [String] :services Limit the query to only the specified, comma-separated list of services.
|
|
28
28
|
# @return [HistoricalStatsByServiceResponse]
|
|
@@ -36,7 +36,7 @@ module Fastly
|
|
|
36
36
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
37
37
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
38
38
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
39
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
39
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
40
40
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
41
41
|
# @option opts [String] :services Limit the query to only the specified, comma-separated list of services.
|
|
42
42
|
# @return [Array<(HistoricalStatsByServiceResponse, Integer, Hash)>] HistoricalStatsByServiceResponse data, response status code and response headers
|
|
@@ -49,7 +49,7 @@ module Fastly
|
|
|
49
49
|
if @api_client.config.client_side_validation && opts[:'by'] && !allowable_values.include?(opts[:'by'])
|
|
50
50
|
fail ArgumentError, "invalid value for \"by\", must be one of #{allowable_values}"
|
|
51
51
|
end
|
|
52
|
-
allowable_values = ["usa", "europe", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "southamerica_std"]
|
|
52
|
+
allowable_values = ["usa", "europe", "anzac", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "saudi_arabia", "southamerica_std"]
|
|
53
53
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
54
54
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
55
55
|
end
|
|
@@ -104,7 +104,7 @@ module Fastly
|
|
|
104
104
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
105
105
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
106
106
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
107
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
107
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
108
108
|
# @return [HistoricalStatsAggregatedResponse]
|
|
109
109
|
def get_hist_stats_aggregated(opts = {})
|
|
110
110
|
data, _status_code, _headers = get_hist_stats_aggregated_with_http_info(opts)
|
|
@@ -116,7 +116,7 @@ module Fastly
|
|
|
116
116
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
117
117
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
118
118
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
119
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
119
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
120
120
|
# @return [Array<(HistoricalStatsAggregatedResponse, Integer, Hash)>] HistoricalStatsAggregatedResponse data, response status code and response headers
|
|
121
121
|
def get_hist_stats_aggregated_with_http_info(opts = {})
|
|
122
122
|
if @api_client.config.debugging
|
|
@@ -127,7 +127,7 @@ module Fastly
|
|
|
127
127
|
if @api_client.config.client_side_validation && opts[:'by'] && !allowable_values.include?(opts[:'by'])
|
|
128
128
|
fail ArgumentError, "invalid value for \"by\", must be one of #{allowable_values}"
|
|
129
129
|
end
|
|
130
|
-
allowable_values = ["usa", "europe", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "southamerica_std"]
|
|
130
|
+
allowable_values = ["usa", "europe", "anzac", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "saudi_arabia", "southamerica_std"]
|
|
131
131
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
132
132
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
133
133
|
end
|
|
@@ -181,7 +181,7 @@ module Fastly
|
|
|
181
181
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
182
182
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
183
183
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
184
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
184
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
185
185
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
186
186
|
# @return [HistoricalStatsByServiceResponse]
|
|
187
187
|
def get_hist_stats_field(opts = {})
|
|
@@ -195,7 +195,7 @@ module Fastly
|
|
|
195
195
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
196
196
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
197
197
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
198
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
198
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
199
199
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
200
200
|
# @return [Array<(HistoricalStatsByServiceResponse, Integer, Hash)>] HistoricalStatsByServiceResponse data, response status code and response headers
|
|
201
201
|
def get_hist_stats_field_with_http_info(opts = {})
|
|
@@ -212,7 +212,7 @@ module Fastly
|
|
|
212
212
|
if @api_client.config.client_side_validation && opts[:'by'] && !allowable_values.include?(opts[:'by'])
|
|
213
213
|
fail ArgumentError, "invalid value for \"by\", must be one of #{allowable_values}"
|
|
214
214
|
end
|
|
215
|
-
allowable_values = ["usa", "europe", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "southamerica_std"]
|
|
215
|
+
allowable_values = ["usa", "europe", "anzac", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "saudi_arabia", "southamerica_std"]
|
|
216
216
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
217
217
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
218
218
|
end
|
|
@@ -267,7 +267,7 @@ module Fastly
|
|
|
267
267
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
268
268
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
269
269
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
270
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
270
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
271
271
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
272
272
|
# @return [HistoricalStatsAggregatedResponse]
|
|
273
273
|
def get_hist_stats_service(opts = {})
|
|
@@ -281,7 +281,7 @@ module Fastly
|
|
|
281
281
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
282
282
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
283
283
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
284
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
284
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
285
285
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
286
286
|
# @return [Array<(HistoricalStatsAggregatedResponse, Integer, Hash)>] HistoricalStatsAggregatedResponse data, response status code and response headers
|
|
287
287
|
def get_hist_stats_service_with_http_info(opts = {})
|
|
@@ -298,7 +298,7 @@ module Fastly
|
|
|
298
298
|
if @api_client.config.client_side_validation && opts[:'by'] && !allowable_values.include?(opts[:'by'])
|
|
299
299
|
fail ArgumentError, "invalid value for \"by\", must be one of #{allowable_values}"
|
|
300
300
|
end
|
|
301
|
-
allowable_values = ["usa", "europe", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "southamerica_std"]
|
|
301
|
+
allowable_values = ["usa", "europe", "anzac", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "saudi_arabia", "southamerica_std"]
|
|
302
302
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
303
303
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
304
304
|
end
|
|
@@ -354,7 +354,7 @@ module Fastly
|
|
|
354
354
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
355
355
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
356
356
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
357
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
357
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
358
358
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
359
359
|
# @return [HistoricalStatsAggregatedResponse]
|
|
360
360
|
def get_hist_stats_service_field(opts = {})
|
|
@@ -369,7 +369,7 @@ module Fastly
|
|
|
369
369
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
|
370
370
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
|
371
371
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
|
372
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America.
|
|
372
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `mexico` - Mexico. * `southamerica_std` - South America. * `saudi_arabia` - Saudi Arabia.
|
|
373
373
|
# @option opts [String] :datacenter Limit query to one or more Fastly POPs. For multiple POPs use a comma-seperated list of POPs. These must be all uppercase and be valid codes. A full list of POPs can be obtained from the [POPs endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/).
|
|
374
374
|
# @return [Array<(HistoricalStatsAggregatedResponse, Integer, Hash)>] HistoricalStatsAggregatedResponse data, response status code and response headers
|
|
375
375
|
def get_hist_stats_service_field_with_http_info(opts = {})
|
|
@@ -391,7 +391,7 @@ module Fastly
|
|
|
391
391
|
if @api_client.config.client_side_validation && opts[:'by'] && !allowable_values.include?(opts[:'by'])
|
|
392
392
|
fail ArgumentError, "invalid value for \"by\", must be one of #{allowable_values}"
|
|
393
393
|
end
|
|
394
|
-
allowable_values = ["usa", "europe", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "southamerica_std"]
|
|
394
|
+
allowable_values = ["usa", "europe", "anzac", "asia", "asia_india", "asia_southkorea", "africa_std", "mexico", "saudi_arabia", "southamerica_std"]
|
|
395
395
|
if @api_client.config.client_side_validation && opts[:'region'] && !allowable_values.include?(opts[:'region'])
|
|
396
396
|
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
397
397
|
end
|