fastly 16.1.0 → 17.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 +77 -0
- data/Gemfile.lock +1 -1
- data/README.md +102 -58
- data/docs/Action.md +11 -0
- data/docs/ActionType.md +9 -0
- data/docs/AgentKey.md +14 -0
- data/docs/AgentKeyMeta.md +10 -0
- data/docs/Backend.md +3 -1
- data/docs/BackendApi.md +12 -4
- data/docs/BackendResponse.md +3 -1
- data/docs/BotManagementRequestUpdateConfiguration.md +10 -0
- data/docs/BotManagementResponseConfiguration.md +10 -0
- data/docs/BotManagementResponseConfigurationConfiguration.md +10 -0
- data/docs/BotManagementResponseConfigure.md +13 -0
- data/docs/ClientSideProtectionApi.md +821 -0
- data/docs/ConditionOperator.md +9 -0
- data/docs/ConditionType.md +9 -0
- data/docs/DdosProtectionApi.md +4 -4
- data/docs/Directive.md +11 -0
- data/docs/DmDomainsApi.md +2 -2
- data/docs/DmRoutingConfigsApi.md +912 -0
- data/docs/DomainInspectorMeasurements.md +6 -0
- data/docs/DomainOwnershipsApi.md +2 -2
- data/docs/DomainResearchApi.md +2 -2
- data/docs/DraftDiff.md +12 -0
- data/docs/DraftUpdate.md +10 -0
- data/docs/ErrorResponse.md +13 -0
- data/docs/ErrorResponseErrors.md +12 -0
- data/docs/EventsResponse.md +1 -1
- data/docs/HeaderEvent.md +14 -0
- data/docs/InitialVersion.md +12 -0
- data/docs/InitialVersionPath.md +11 -0
- data/docs/InlineResponse20010.md +2 -2
- data/docs/InlineResponse20011.md +2 -2
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +2 -2
- data/docs/InlineResponse20014.md +2 -1
- data/docs/InlineResponse20015.md +10 -0
- data/docs/InlineResponse20016.md +10 -0
- data/docs/InlineResponse20017.md +11 -0
- data/docs/InlineResponse20018.md +11 -0
- data/docs/InlineResponse20019.md +11 -0
- data/docs/InlineResponse20020.md +11 -0
- data/docs/InlineResponse20021.md +11 -0
- data/docs/InlineResponse20022.md +10 -0
- data/docs/InlineResponse2005.md +2 -2
- data/docs/InlineResponse2006.md +2 -2
- data/docs/InlineResponse2007.md +2 -2
- data/docs/InlineResponse2008.md +2 -1
- data/docs/InlineResponse2009.md +2 -1
- data/docs/InvitationsResponse.md +1 -1
- data/docs/KvStoreApi.md +2 -2
- data/docs/KvStoreItemApi.md +2 -2
- data/docs/KvStoreResponseBodyEnable.md +12 -0
- data/docs/KvStoreResponseCustomer.md +10 -0
- data/docs/KvStoreResponseLinks.md +10 -0
- data/docs/KvStoreResponseLinksLinks.md +10 -0
- data/docs/KvStoreResponseProduct.md +10 -0
- data/docs/KvStoreResponseProductProduct.md +11 -0
- data/docs/LogError.md +15 -0
- data/docs/LogErrorBatch.md +11 -0
- data/docs/LoggingAzureblobApi.md +4 -4
- data/docs/LoggingAzureblobResponse.md +1 -1
- data/docs/LoggingCloudfilesApi.md +4 -4
- data/docs/LoggingCloudfilesResponse.md +1 -1
- data/docs/LoggingDigitaloceanApi.md +4 -4
- data/docs/LoggingDigitaloceanResponse.md +1 -1
- data/docs/LoggingEndpointErrorsApi.md +61 -0
- data/docs/LoggingFtpApi.md +4 -4
- data/docs/LoggingFtpResponse.md +1 -1
- data/docs/LoggingGcsApi.md +4 -4
- data/docs/LoggingGcsResponse.md +1 -1
- data/docs/LoggingGenericCommon.md +1 -1
- data/docs/LoggingGenericCommonResponse.md +1 -1
- data/docs/LoggingGenericCommonResponseAllOf.md +1 -1
- data/docs/LoggingHttpsAdditional.md +1 -1
- data/docs/LoggingHttpsApi.md +4 -4
- data/docs/LoggingHttpsResponse.md +1 -1
- data/docs/LoggingOpenstackApi.md +4 -4
- data/docs/LoggingOpenstackResponse.md +1 -1
- data/docs/LoggingS3Api.md +4 -4
- data/docs/LoggingS3Response.md +1 -1
- data/docs/LoggingSftpApi.md +4 -4
- data/docs/LoggingSftpResponse.md +1 -1
- data/docs/LoggingSumologicAdditional.md +1 -1
- data/docs/LoggingSumologicApi.md +4 -4
- data/docs/LoggingSumologicResponse.md +1 -1
- data/docs/LoggingSyslogAdditional.md +1 -1
- data/docs/LoggingSyslogApi.md +4 -4
- data/docs/LoggingSyslogResponse.md +1 -1
- data/docs/MutualAuthenticationsResponse.md +1 -1
- data/docs/NgwafAgentKeysApi.md +55 -0
- data/docs/NgwafSimulateApi.md +61 -0
- data/docs/Notification.md +11 -0
- data/docs/NotificationConfig.md +10 -0
- data/docs/Page.md +17 -0
- data/docs/PageCreate.md +14 -0
- data/docs/PageUpdate.md +14 -0
- data/docs/Pagination.md +1 -1
- data/docs/PaginationMeta.md +4 -4
- data/docs/PaginationMeta1.md +13 -0
- data/docs/PathChange.md +15 -0
- data/docs/PathCreate.md +10 -0
- data/docs/PathResponse.md +14 -0
- data/docs/PathResponseAllOf.md +12 -0
- data/docs/PathUpdate.md +10 -0
- data/docs/PathWithRules.md +11 -0
- data/docs/PathsResponse.md +11 -0
- data/docs/Policy.md +17 -0
- data/docs/PolicyCreate.md +13 -0
- data/docs/PolicyUpdate.md +13 -0
- data/docs/Position.md +11 -0
- data/docs/ProductBotManagementApi.md +78 -0
- data/docs/ProductKvStoreApi.md +115 -0
- data/docs/RealtimeEntry.md +1 -1
- data/docs/RealtimeEntryAggregated.md +36 -3
- data/docs/RealtimeEntryDatacenter.md +347 -0
- data/docs/RealtimeMeasurements.md +36 -3
- data/docs/Report.md +15 -0
- data/docs/RequestBodyForCreate.md +1 -0
- data/docs/RequestBodyForUpdate.md +1 -0
- data/docs/Results.md +36 -3
- data/docs/RoutingConfig.md +11 -0
- data/docs/RoutingConfigCondition.md +13 -0
- data/docs/RoutingConfigResponse.md +16 -0
- data/docs/RoutingConfigResponseAllOf.md +14 -0
- data/docs/RoutingConfigState.md +9 -0
- data/docs/RoutingConfigVersionResponse.md +13 -0
- data/docs/RoutingConfigsResponse.md +11 -0
- data/docs/RuleChange.md +12 -0
- data/docs/RuleCreate.md +12 -0
- data/docs/RuleResponse.md +15 -0
- data/docs/RuleResponseAllOf.md +13 -0
- data/docs/RuleUpdate.md +12 -0
- data/docs/RulesResponse.md +11 -0
- data/docs/Script.md +20 -0
- data/docs/ScriptUpdate.md +12 -0
- data/docs/SecretStoreApi.md +2 -2
- data/docs/SecretStoreItemApi.md +2 -2
- data/docs/SecurityHeader.md +12 -0
- data/docs/ServiceAuthorizationsApi.md +2 -2
- data/docs/ServiceAuthorizationsResponse.md +1 -1
- data/docs/SuccessfulResponseAsObject.md +1 -0
- data/docs/SuccessfulResponseAsObjectAllOf.md +1 -0
- data/docs/TlsActivationsResponse.md +1 -1
- data/docs/TlsBulkCertificatesResponse.md +1 -1
- data/docs/TlsCertificatesResponse.md +1 -1
- data/docs/TlsConfigurationsResponse.md +1 -1
- data/docs/TlsDomainsResponse.md +1 -1
- data/docs/TlsPrivateKeysResponse.md +1 -1
- data/docs/TlsSubscriptionsResponse.md +1 -1
- data/docs/Values.md +6 -0
- data/docs/VersionsResponse.md +11 -0
- data/docs/WafSimulateRequest.md +11 -0
- data/docs/WafSimulateResponse.md +11 -0
- data/docs/WafSimulateSignal.md +16 -0
- data/docs/Website.md +14 -0
- data/docs/WebsiteCreate.md +10 -0
- data/docs/WebsiteUpdate.md +10 -0
- data/lib/fastly/api/backend_api.rb +16 -4
- data/lib/fastly/api/client_side_protection_api.rb +1465 -0
- data/lib/fastly/api/ddos_protection_api.rb +6 -6
- data/lib/fastly/api/dm_domains_api.rb +3 -3
- data/lib/fastly/api/dm_routing_configs_api.rb +1596 -0
- data/lib/fastly/api/domain_ownerships_api.rb +3 -3
- data/lib/fastly/api/domain_research_api.rb +3 -3
- data/lib/fastly/api/kv_store_api.rb +3 -3
- data/lib/fastly/api/kv_store_item_api.rb +3 -3
- data/lib/fastly/api/logging_azureblob_api.rb +6 -6
- data/lib/fastly/api/logging_cloudfiles_api.rb +6 -6
- data/lib/fastly/api/logging_digitalocean_api.rb +6 -6
- data/lib/fastly/api/logging_endpoint_errors_api.rb +92 -0
- data/lib/fastly/api/logging_ftp_api.rb +6 -6
- data/lib/fastly/api/logging_gcs_api.rb +6 -6
- data/lib/fastly/api/logging_https_api.rb +4 -4
- data/lib/fastly/api/logging_openstack_api.rb +6 -6
- data/lib/fastly/api/logging_s3_api.rb +6 -6
- data/lib/fastly/api/logging_sftp_api.rb +6 -6
- data/lib/fastly/api/logging_sumologic_api.rb +4 -4
- data/lib/fastly/api/logging_syslog_api.rb +4 -4
- data/lib/fastly/api/ngwaf_agent_keys_api.rb +83 -0
- data/lib/fastly/api/ngwaf_simulate_api.rb +95 -0
- data/lib/fastly/api/product_bot_management_api.rb +133 -0
- data/lib/fastly/api/product_kv_store_api.rb +186 -0
- data/lib/fastly/api/secret_store_api.rb +3 -3
- data/lib/fastly/api/secret_store_item_api.rb +3 -3
- data/lib/fastly/api/service_authorizations_api.rb +3 -3
- data/lib/fastly/configuration.rb +300 -0
- data/lib/fastly/models/action.rb +237 -0
- data/lib/fastly/models/action_type.rb +34 -0
- data/lib/fastly/models/agent_key.rb +283 -0
- data/lib/fastly/models/agent_key_meta.rb +223 -0
- data/lib/fastly/models/backend.rb +24 -2
- data/lib/fastly/models/backend_response.rb +24 -2
- data/lib/fastly/models/bot_management_request_update_configuration.rb +256 -0
- data/lib/fastly/models/bot_management_response_configuration.rb +216 -0
- data/lib/fastly/models/bot_management_response_configuration_configuration.rb +217 -0
- data/lib/fastly/models/bot_management_response_configure.rb +253 -0
- data/lib/fastly/models/condition_operator.rb +37 -0
- data/lib/fastly/models/condition_type.rb +34 -0
- data/lib/fastly/models/directive.rb +229 -0
- data/lib/fastly/models/domain_inspector_measurements.rb +64 -4
- data/lib/fastly/models/draft_diff.rb +244 -0
- data/lib/fastly/models/draft_update.rb +218 -0
- data/lib/fastly/models/error_response.rb +248 -0
- data/lib/fastly/models/error_response_errors.rb +234 -0
- data/lib/fastly/models/events_response.rb +1 -1
- data/lib/fastly/models/header_event.rb +252 -0
- data/lib/fastly/models/initial_version.rb +242 -0
- data/lib/fastly/models/initial_version_path.rb +254 -0
- data/lib/fastly/models/inline_response20010.rb +2 -2
- data/lib/fastly/models/inline_response20011.rb +2 -2
- data/lib/fastly/models/inline_response20012.rb +1 -1
- data/lib/fastly/models/inline_response20013.rb +11 -1
- data/lib/fastly/models/inline_response20014.rb +15 -4
- data/lib/fastly/models/inline_response20015.rb +217 -0
- data/lib/fastly/models/inline_response20016.rb +218 -0
- data/lib/fastly/models/inline_response20017.rb +227 -0
- data/lib/fastly/models/inline_response20018.rb +227 -0
- data/lib/fastly/models/inline_response20019.rb +228 -0
- data/lib/fastly/models/inline_response20020.rb +227 -0
- data/lib/fastly/models/inline_response20021.rb +227 -0
- data/lib/fastly/models/inline_response20022.rb +218 -0
- data/lib/fastly/models/inline_response2005.rb +2 -2
- data/lib/fastly/models/inline_response2006.rb +2 -12
- data/lib/fastly/models/inline_response2007.rb +2 -4
- data/lib/fastly/models/inline_response2008.rb +18 -8
- data/lib/fastly/models/inline_response2009.rb +17 -8
- data/lib/fastly/models/invitations_response.rb +1 -1
- data/lib/fastly/models/kv_store_response_body_enable.rb +243 -0
- data/lib/fastly/models/kv_store_response_customer.rb +216 -0
- data/lib/fastly/models/kv_store_response_links.rb +216 -0
- data/lib/fastly/models/kv_store_response_links_links.rb +217 -0
- data/lib/fastly/models/kv_store_response_product.rb +216 -0
- data/lib/fastly/models/kv_store_response_product_product.rb +227 -0
- data/lib/fastly/models/log_error.rb +267 -0
- data/lib/fastly/models/log_error_batch.rb +228 -0
- data/lib/fastly/models/logging_azureblob_response.rb +3 -3
- data/lib/fastly/models/logging_cloudfiles_response.rb +3 -3
- data/lib/fastly/models/logging_digitalocean_response.rb +3 -3
- data/lib/fastly/models/logging_ftp_response.rb +3 -3
- data/lib/fastly/models/logging_gcs_response.rb +3 -3
- data/lib/fastly/models/logging_generic_common.rb +3 -3
- data/lib/fastly/models/logging_generic_common_response.rb +3 -3
- data/lib/fastly/models/logging_generic_common_response_all_of.rb +3 -3
- data/lib/fastly/models/logging_https_additional.rb +1 -1
- data/lib/fastly/models/logging_https_response.rb +1 -1
- data/lib/fastly/models/logging_message_type.rb +1 -1
- data/lib/fastly/models/logging_openstack_response.rb +3 -3
- data/lib/fastly/models/logging_s3_response.rb +3 -3
- data/lib/fastly/models/logging_sftp_response.rb +3 -3
- data/lib/fastly/models/logging_sumologic_additional.rb +1 -1
- data/lib/fastly/models/logging_sumologic_response.rb +1 -1
- data/lib/fastly/models/logging_syslog_additional.rb +1 -1
- data/lib/fastly/models/logging_syslog_response.rb +1 -1
- data/lib/fastly/models/mutual_authentications_response.rb +1 -1
- data/lib/fastly/models/notification.rb +270 -0
- data/lib/fastly/models/notification_config.rb +218 -0
- data/lib/fastly/models/page.rb +289 -0
- data/lib/fastly/models/page_create.rb +266 -0
- data/lib/fastly/models/page_update.rb +256 -0
- data/lib/fastly/models/pagination.rb +1 -1
- data/lib/fastly/models/pagination_meta.rb +30 -55
- data/lib/fastly/models/pagination_meta1.rb +273 -0
- data/lib/fastly/models/path_change.rb +274 -0
- data/lib/fastly/models/path_create.rb +242 -0
- data/lib/fastly/models/path_response.rb +285 -0
- data/lib/fastly/models/path_response_all_of.rb +254 -0
- data/lib/fastly/models/path_update.rb +233 -0
- data/lib/fastly/models/path_with_rules.rb +228 -0
- data/lib/fastly/models/paths_response.rb +228 -0
- data/lib/fastly/models/policy.rb +315 -0
- data/lib/fastly/models/policy_create.rb +289 -0
- data/lib/fastly/models/policy_update.rb +279 -0
- data/lib/fastly/models/position.rb +228 -0
- data/lib/fastly/models/realtime_entry.rb +2 -5
- data/lib/fastly/models/realtime_entry_aggregated.rb +364 -34
- data/lib/fastly/models/realtime_entry_datacenter.rb +3597 -0
- data/lib/fastly/models/realtime_measurements.rb +364 -34
- data/lib/fastly/models/report.rb +261 -0
- data/lib/fastly/models/request_body_for_create.rb +12 -1
- data/lib/fastly/models/request_body_for_update.rb +12 -1
- data/lib/fastly/models/results.rb +361 -31
- data/lib/fastly/models/routing_config.rb +251 -0
- data/lib/fastly/models/routing_config_condition.rb +261 -0
- data/lib/fastly/models/routing_config_response.rb +305 -0
- data/lib/fastly/models/routing_config_response_all_of.rb +274 -0
- data/lib/fastly/models/routing_config_state.rb +36 -0
- data/lib/fastly/models/routing_config_version_response.rb +250 -0
- data/lib/fastly/models/routing_configs_response.rb +228 -0
- data/lib/fastly/models/rule_change.rb +236 -0
- data/lib/fastly/models/rule_create.rb +267 -0
- data/lib/fastly/models/rule_response.rb +279 -0
- data/lib/fastly/models/rule_response_all_of.rb +248 -0
- data/lib/fastly/models/rule_update.rb +252 -0
- data/lib/fastly/models/rules_response.rb +228 -0
- data/lib/fastly/models/script.rb +350 -0
- data/lib/fastly/models/script_update.rb +271 -0
- data/lib/fastly/models/security_header.rb +234 -0
- data/lib/fastly/models/service_authorizations_response.rb +1 -1
- data/lib/fastly/models/successful_response_as_object.rb +12 -1
- data/lib/fastly/models/successful_response_as_object_all_of.rb +12 -1
- data/lib/fastly/models/tls_activations_response.rb +1 -1
- data/lib/fastly/models/tls_bulk_certificates_response.rb +1 -1
- data/lib/fastly/models/tls_certificates_response.rb +1 -1
- data/lib/fastly/models/tls_configurations_response.rb +1 -1
- data/lib/fastly/models/tls_domains_response.rb +1 -1
- data/lib/fastly/models/tls_private_keys_response.rb +1 -1
- data/lib/fastly/models/tls_subscriptions_response.rb +1 -1
- data/lib/fastly/models/values.rb +64 -4
- data/lib/fastly/models/versions_response.rb +228 -0
- data/lib/fastly/models/waf_simulate_request.rb +233 -0
- data/lib/fastly/models/waf_simulate_response.rb +240 -0
- data/lib/fastly/models/waf_simulate_signal.rb +344 -0
- data/lib/fastly/models/website.rb +257 -0
- data/lib/fastly/models/website_create.rb +222 -0
- data/lib/fastly/models/website_update.rb +217 -0
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +82 -0
- data/sig.json +1 -1
- metadata +166 -2
|
@@ -19,7 +19,7 @@ module Fastly
|
|
|
19
19
|
end
|
|
20
20
|
# List domain-ownerships
|
|
21
21
|
# List all domain-ownerships.
|
|
22
|
-
# @return [
|
|
22
|
+
# @return [InlineResponse20015]
|
|
23
23
|
def list_domain_ownerships(opts = {})
|
|
24
24
|
data, _status_code, _headers = list_domain_ownerships_with_http_info(opts)
|
|
25
25
|
data
|
|
@@ -27,7 +27,7 @@ module Fastly
|
|
|
27
27
|
|
|
28
28
|
# List domain-ownerships
|
|
29
29
|
# List all domain-ownerships.
|
|
30
|
-
# @return [Array<(
|
|
30
|
+
# @return [Array<(InlineResponse20015, Integer, Hash)>] InlineResponse20015 data, response status code and response headers
|
|
31
31
|
def list_domain_ownerships_with_http_info(opts = {})
|
|
32
32
|
if @api_client.config.debugging
|
|
33
33
|
@api_client.config.logger.debug 'Calling API: DomainOwnershipsApi.list_domain_ownerships ...'
|
|
@@ -51,7 +51,7 @@ module Fastly
|
|
|
51
51
|
post_body = opts[:debug_body]
|
|
52
52
|
|
|
53
53
|
# return_type
|
|
54
|
-
return_type = opts[:debug_return_type] || '
|
|
54
|
+
return_type = opts[:debug_return_type] || 'InlineResponse20015'
|
|
55
55
|
|
|
56
56
|
# auth_names
|
|
57
57
|
auth_names = opts[:debug_auth_names] || ['token']
|
|
@@ -91,7 +91,7 @@ module Fastly
|
|
|
91
91
|
# @option opts [String] :keywords
|
|
92
92
|
# @option opts [String] :location
|
|
93
93
|
# @option opts [String] :vendor
|
|
94
|
-
# @return [
|
|
94
|
+
# @return [InlineResponse20016]
|
|
95
95
|
def suggest_domains(opts = {})
|
|
96
96
|
data, _status_code, _headers = suggest_domains_with_http_info(opts)
|
|
97
97
|
data
|
|
@@ -104,7 +104,7 @@ module Fastly
|
|
|
104
104
|
# @option opts [String] :keywords
|
|
105
105
|
# @option opts [String] :location
|
|
106
106
|
# @option opts [String] :vendor
|
|
107
|
-
# @return [Array<(
|
|
107
|
+
# @return [Array<(InlineResponse20016, Integer, Hash)>] InlineResponse20016 data, response status code and response headers
|
|
108
108
|
def suggest_domains_with_http_info(opts = {})
|
|
109
109
|
if @api_client.config.debugging
|
|
110
110
|
@api_client.config.logger.debug 'Calling API: DomainResearchApi.suggest_domains ...'
|
|
@@ -138,7 +138,7 @@ module Fastly
|
|
|
138
138
|
post_body = opts[:debug_body]
|
|
139
139
|
|
|
140
140
|
# return_type
|
|
141
|
-
return_type = opts[:debug_return_type] || '
|
|
141
|
+
return_type = opts[:debug_return_type] || 'InlineResponse20016'
|
|
142
142
|
|
|
143
143
|
# auth_names
|
|
144
144
|
auth_names = opts[:debug_auth_names] || ['token']
|
|
@@ -216,7 +216,7 @@ module Fastly
|
|
|
216
216
|
# @option opts [String] :cursor
|
|
217
217
|
# @option opts [Integer] :limit (default to 1000)
|
|
218
218
|
# @option opts [String] :name Returns a one-element array containing the details for the named KV store.
|
|
219
|
-
# @return [
|
|
219
|
+
# @return [InlineResponse20017]
|
|
220
220
|
def kv_store_list(opts = {})
|
|
221
221
|
data, _status_code, _headers = kv_store_list_with_http_info(opts)
|
|
222
222
|
data
|
|
@@ -227,7 +227,7 @@ module Fastly
|
|
|
227
227
|
# @option opts [String] :cursor
|
|
228
228
|
# @option opts [Integer] :limit (default to 1000)
|
|
229
229
|
# @option opts [String] :name Returns a one-element array containing the details for the named KV store.
|
|
230
|
-
# @return [Array<(
|
|
230
|
+
# @return [Array<(InlineResponse20017, Integer, Hash)>] InlineResponse20017 data, response status code and response headers
|
|
231
231
|
def kv_store_list_with_http_info(opts = {})
|
|
232
232
|
if @api_client.config.debugging
|
|
233
233
|
@api_client.config.logger.debug 'Calling API: KvStoreApi.kv_store_list ...'
|
|
@@ -258,7 +258,7 @@ module Fastly
|
|
|
258
258
|
post_body = opts[:debug_body]
|
|
259
259
|
|
|
260
260
|
# return_type
|
|
261
|
-
return_type = opts[:debug_return_type] || '
|
|
261
|
+
return_type = opts[:debug_return_type] || 'InlineResponse20017'
|
|
262
262
|
|
|
263
263
|
# auth_names
|
|
264
264
|
auth_names = opts[:debug_auth_names] || ['token']
|
|
@@ -168,7 +168,7 @@ module Fastly
|
|
|
168
168
|
# @option opts [Integer] :limit (default to 100)
|
|
169
169
|
# @option opts [String] :prefix
|
|
170
170
|
# @option opts [String] :consistency (default to 'strong')
|
|
171
|
-
# @return [
|
|
171
|
+
# @return [InlineResponse20018]
|
|
172
172
|
def kv_store_list_item_keys(opts = {})
|
|
173
173
|
data, _status_code, _headers = kv_store_list_item_keys_with_http_info(opts)
|
|
174
174
|
data
|
|
@@ -181,7 +181,7 @@ module Fastly
|
|
|
181
181
|
# @option opts [Integer] :limit (default to 100)
|
|
182
182
|
# @option opts [String] :prefix
|
|
183
183
|
# @option opts [String] :consistency (default to 'strong')
|
|
184
|
-
# @return [Array<(
|
|
184
|
+
# @return [Array<(InlineResponse20018, Integer, Hash)>] InlineResponse20018 data, response status code and response headers
|
|
185
185
|
def kv_store_list_item_keys_with_http_info(opts = {})
|
|
186
186
|
if @api_client.config.debugging
|
|
187
187
|
@api_client.config.logger.debug 'Calling API: KvStoreItemApi.kv_store_list_item_keys ...'
|
|
@@ -222,7 +222,7 @@ module Fastly
|
|
|
222
222
|
post_body = opts[:debug_body]
|
|
223
223
|
|
|
224
224
|
# return_type
|
|
225
|
-
return_type = opts[:debug_return_type] || '
|
|
225
|
+
return_type = opts[:debug_return_type] || 'InlineResponse20018'
|
|
226
226
|
|
|
227
227
|
# auth_names
|
|
228
228
|
auth_names = opts[:debug_auth_names] || ['token']
|
|
@@ -27,7 +27,7 @@ module Fastly
|
|
|
27
27
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
28
28
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
29
29
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to 2)
|
|
30
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
30
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
31
31
|
# @option opts [String] :timestamp_format A timestamp format
|
|
32
32
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
33
33
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -54,7 +54,7 @@ module Fastly
|
|
|
54
54
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
55
55
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
56
56
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to 2)
|
|
57
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
57
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
58
58
|
# @option opts [String] :timestamp_format A timestamp format
|
|
59
59
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
60
60
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -93,7 +93,7 @@ module Fastly
|
|
|
93
93
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
|
94
94
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
|
95
95
|
end
|
|
96
|
-
allowable_values = ["
|
|
96
|
+
allowable_values = ["blank", "classic", "loggly", "logplex"]
|
|
97
97
|
if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
|
|
98
98
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
|
|
99
99
|
end
|
|
@@ -402,7 +402,7 @@ module Fastly
|
|
|
402
402
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
403
403
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
404
404
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
405
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
405
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
406
406
|
# @option opts [String] :timestamp_format A timestamp format
|
|
407
407
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
408
408
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -430,7 +430,7 @@ module Fastly
|
|
|
430
430
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
431
431
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
432
432
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
433
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
433
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
434
434
|
# @option opts [String] :timestamp_format A timestamp format
|
|
435
435
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
436
436
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -474,7 +474,7 @@ module Fastly
|
|
|
474
474
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
|
475
475
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
|
476
476
|
end
|
|
477
|
-
allowable_values = ["
|
|
477
|
+
allowable_values = ["blank", "classic", "loggly", "logplex"]
|
|
478
478
|
if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
|
|
479
479
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
|
|
480
480
|
end
|
|
@@ -27,7 +27,7 @@ module Fastly
|
|
|
27
27
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
28
28
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
29
29
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
30
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
30
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
31
31
|
# @option opts [String] :timestamp_format A timestamp format
|
|
32
32
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
33
33
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -54,7 +54,7 @@ module Fastly
|
|
|
54
54
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
55
55
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
56
56
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
57
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
57
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
58
58
|
# @option opts [String] :timestamp_format A timestamp format
|
|
59
59
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
60
60
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -93,7 +93,7 @@ module Fastly
|
|
|
93
93
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
|
94
94
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
|
95
95
|
end
|
|
96
|
-
allowable_values = ["
|
|
96
|
+
allowable_values = ["blank", "classic", "loggly", "logplex"]
|
|
97
97
|
if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
|
|
98
98
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
|
|
99
99
|
end
|
|
@@ -402,7 +402,7 @@ module Fastly
|
|
|
402
402
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
403
403
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
404
404
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
405
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
405
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
406
406
|
# @option opts [String] :timestamp_format A timestamp format
|
|
407
407
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
408
408
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -430,7 +430,7 @@ module Fastly
|
|
|
430
430
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
431
431
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
432
432
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
433
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
433
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
434
434
|
# @option opts [String] :timestamp_format A timestamp format
|
|
435
435
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
436
436
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -474,7 +474,7 @@ module Fastly
|
|
|
474
474
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
|
475
475
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
|
476
476
|
end
|
|
477
|
-
allowable_values = ["
|
|
477
|
+
allowable_values = ["blank", "classic", "loggly", "logplex"]
|
|
478
478
|
if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
|
|
479
479
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
|
|
480
480
|
end
|
|
@@ -27,7 +27,7 @@ module Fastly
|
|
|
27
27
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
28
28
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
29
29
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
30
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
30
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
31
31
|
# @option opts [String] :timestamp_format A timestamp format
|
|
32
32
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
33
33
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -54,7 +54,7 @@ module Fastly
|
|
|
54
54
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
55
55
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
56
56
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
57
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
57
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
58
58
|
# @option opts [String] :timestamp_format A timestamp format
|
|
59
59
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
60
60
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -93,7 +93,7 @@ module Fastly
|
|
|
93
93
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
|
94
94
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
|
95
95
|
end
|
|
96
|
-
allowable_values = ["
|
|
96
|
+
allowable_values = ["blank", "classic", "loggly", "logplex"]
|
|
97
97
|
if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
|
|
98
98
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
|
|
99
99
|
end
|
|
@@ -398,7 +398,7 @@ module Fastly
|
|
|
398
398
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
399
399
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
400
400
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
401
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
401
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
402
402
|
# @option opts [String] :timestamp_format A timestamp format
|
|
403
403
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
404
404
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -426,7 +426,7 @@ module Fastly
|
|
|
426
426
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
427
427
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
428
428
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
429
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
429
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
430
430
|
# @option opts [String] :timestamp_format A timestamp format
|
|
431
431
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
432
432
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -470,7 +470,7 @@ module Fastly
|
|
|
470
470
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
|
471
471
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
|
472
472
|
end
|
|
473
|
-
allowable_values = ["
|
|
473
|
+
allowable_values = ["blank", "classic", "loggly", "logplex"]
|
|
474
474
|
if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
|
|
475
475
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
|
|
476
476
|
end
|
|
@@ -0,0 +1,92 @@
|
|
|
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 LoggingEndpointErrorsApi
|
|
15
|
+
attr_accessor :api_client
|
|
16
|
+
|
|
17
|
+
def initialize(api_client = ApiClient.default)
|
|
18
|
+
@api_client = api_client
|
|
19
|
+
end
|
|
20
|
+
# Stream Log Endpoint Errors
|
|
21
|
+
# Provides a near real-time stream of log errors through a hybrid short-polling model. A client should make an initial request using the `from` parameter to specify a start time. The `to` parameter should be used alongside the `from` parameter since the default bucket is 10 seconds. For pagination, use the URLs provided in the Link header of the response. These contain updated `from` timestamps for retrieving the next or previous page of logs. Defaults to `application/x-ndjson` format. Use `Accept: application/json` header to request standard JSON array format instead.
|
|
22
|
+
# @option opts [String] :service_id (required)
|
|
23
|
+
# @option opts [Integer] :from
|
|
24
|
+
# @option opts [Integer] :to
|
|
25
|
+
# @option opts [String] :filter_endpoint
|
|
26
|
+
# @return [String]
|
|
27
|
+
def get_log_endpoint_errors(opts = {})
|
|
28
|
+
data, _status_code, _headers = get_log_endpoint_errors_with_http_info(opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Stream Log Endpoint Errors
|
|
33
|
+
# Provides a near real-time stream of log errors through a hybrid short-polling model. A client should make an initial request using the `from` parameter to specify a start time. The `to` parameter should be used alongside the `from` parameter since the default bucket is 10 seconds. For pagination, use the URLs provided in the Link header of the response. These contain updated `from` timestamps for retrieving the next or previous page of logs. Defaults to `application/x-ndjson` format. Use `Accept: application/json` header to request standard JSON array format instead.
|
|
34
|
+
# @option opts [String] :service_id (required)
|
|
35
|
+
# @option opts [Integer] :from
|
|
36
|
+
# @option opts [Integer] :to
|
|
37
|
+
# @option opts [String] :filter_endpoint
|
|
38
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
|
39
|
+
def get_log_endpoint_errors_with_http_info(opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: LoggingEndpointErrorsApi.get_log_endpoint_errors ...'
|
|
42
|
+
end
|
|
43
|
+
# unbox the parameters from the hash
|
|
44
|
+
service_id = opts[:'service_id']
|
|
45
|
+
# verify the required parameter 'service_id' is set
|
|
46
|
+
if @api_client.config.client_side_validation && service_id.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'service_id' when calling LoggingEndpointErrorsApi.get_log_endpoint_errors"
|
|
48
|
+
end
|
|
49
|
+
# resource path
|
|
50
|
+
local_var_path = '/observability/service/{service_id}/logging/errors'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s))
|
|
51
|
+
|
|
52
|
+
# query parameters
|
|
53
|
+
query_params = opts[:query_params] || {}
|
|
54
|
+
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
|
55
|
+
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
|
56
|
+
query_params[:'filter[endpoint]'] = opts[:'filter_endpoint'] if !opts[:'filter_endpoint'].nil?
|
|
57
|
+
|
|
58
|
+
# header parameters
|
|
59
|
+
header_params = opts[:header_params] || {}
|
|
60
|
+
# HTTP header 'Accept' (if needed)
|
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/x-ndjson', 'application/json'])
|
|
62
|
+
|
|
63
|
+
# form parameters
|
|
64
|
+
form_params = opts[:form_params] || {}
|
|
65
|
+
|
|
66
|
+
# http body (model)
|
|
67
|
+
post_body = opts[:debug_body]
|
|
68
|
+
|
|
69
|
+
# return_type
|
|
70
|
+
return_type = opts[:debug_return_type] || 'String'
|
|
71
|
+
|
|
72
|
+
# auth_names
|
|
73
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
|
74
|
+
|
|
75
|
+
new_options = opts.merge(
|
|
76
|
+
:operation => :"LoggingEndpointErrorsApi.get_log_endpoint_errors",
|
|
77
|
+
:header_params => header_params,
|
|
78
|
+
:query_params => query_params,
|
|
79
|
+
:form_params => form_params,
|
|
80
|
+
:body => post_body,
|
|
81
|
+
:auth_names => auth_names,
|
|
82
|
+
:return_type => return_type
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
86
|
+
if @api_client.config.debugging
|
|
87
|
+
@api_client.config.logger.debug "API called: LoggingEndpointErrorsApi#get_log_endpoint_errors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
88
|
+
end
|
|
89
|
+
return data, status_code, headers
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -27,7 +27,7 @@ module Fastly
|
|
|
27
27
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
28
28
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
29
29
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
30
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
30
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
31
31
|
# @option opts [String] :timestamp_format A timestamp format
|
|
32
32
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
33
33
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -56,7 +56,7 @@ module Fastly
|
|
|
56
56
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
57
57
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
58
58
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
59
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
59
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
60
60
|
# @option opts [String] :timestamp_format A timestamp format
|
|
61
61
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
62
62
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -97,7 +97,7 @@ module Fastly
|
|
|
97
97
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
|
98
98
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
|
99
99
|
end
|
|
100
|
-
allowable_values = ["
|
|
100
|
+
allowable_values = ["blank", "classic", "loggly", "logplex"]
|
|
101
101
|
if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
|
|
102
102
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
|
|
103
103
|
end
|
|
@@ -404,7 +404,7 @@ module Fastly
|
|
|
404
404
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
405
405
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
406
406
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
407
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
407
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
408
408
|
# @option opts [String] :timestamp_format A timestamp format
|
|
409
409
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
410
410
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -434,7 +434,7 @@ module Fastly
|
|
|
434
434
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
435
435
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
436
436
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
437
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
437
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
438
438
|
# @option opts [String] :timestamp_format A timestamp format
|
|
439
439
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
440
440
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -480,7 +480,7 @@ module Fastly
|
|
|
480
480
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
|
481
481
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
|
482
482
|
end
|
|
483
|
-
allowable_values = ["
|
|
483
|
+
allowable_values = ["blank", "classic", "loggly", "logplex"]
|
|
484
484
|
if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
|
|
485
485
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
|
|
486
486
|
end
|
|
@@ -27,7 +27,7 @@ module Fastly
|
|
|
27
27
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
28
28
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
29
29
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
30
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
30
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
31
31
|
# @option opts [String] :timestamp_format A timestamp format
|
|
32
32
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
33
33
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -55,7 +55,7 @@ module Fastly
|
|
|
55
55
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
56
56
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
57
57
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
58
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
58
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
59
59
|
# @option opts [String] :timestamp_format A timestamp format
|
|
60
60
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
61
61
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -95,7 +95,7 @@ module Fastly
|
|
|
95
95
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
|
96
96
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
|
97
97
|
end
|
|
98
|
-
allowable_values = ["
|
|
98
|
+
allowable_values = ["blank", "classic", "loggly", "logplex"]
|
|
99
99
|
if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
|
|
100
100
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
|
|
101
101
|
end
|
|
@@ -401,7 +401,7 @@ module Fastly
|
|
|
401
401
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
402
402
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
403
403
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
404
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
404
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
405
405
|
# @option opts [String] :timestamp_format A timestamp format
|
|
406
406
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
407
407
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -430,7 +430,7 @@ module Fastly
|
|
|
430
430
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
431
431
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
432
432
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
433
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
433
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
434
434
|
# @option opts [String] :timestamp_format A timestamp format
|
|
435
435
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
436
436
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -475,7 +475,7 @@ module Fastly
|
|
|
475
475
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
|
476
476
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
|
477
477
|
end
|
|
478
|
-
allowable_values = ["
|
|
478
|
+
allowable_values = ["blank", "classic", "loggly", "logplex"]
|
|
479
479
|
if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
|
|
480
480
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
|
|
481
481
|
end
|
|
@@ -36,7 +36,7 @@ module Fastly
|
|
|
36
36
|
# @option opts [String] :url The URL to send logs to. Must use HTTPS. Required.
|
|
37
37
|
# @option opts [String] :content_type Content type of the header sent with the request. (default to 'null')
|
|
38
38
|
# @option opts [String] :header_name Name of the custom header sent with the request. (default to 'null')
|
|
39
|
-
# @option opts [LoggingMessageType] :message_type (default to '
|
|
39
|
+
# @option opts [LoggingMessageType] :message_type (default to 'blank')
|
|
40
40
|
# @option opts [String] :header_value Value of the custom header sent with the request. (default to 'null')
|
|
41
41
|
# @option opts [String] :method HTTP method used for request. (default to 'POST')
|
|
42
42
|
# @option opts [String] :json_format Enforces valid JSON formatting for log entries.
|
|
@@ -66,7 +66,7 @@ module Fastly
|
|
|
66
66
|
# @option opts [String] :url The URL to send logs to. Must use HTTPS. Required.
|
|
67
67
|
# @option opts [String] :content_type Content type of the header sent with the request. (default to 'null')
|
|
68
68
|
# @option opts [String] :header_name Name of the custom header sent with the request. (default to 'null')
|
|
69
|
-
# @option opts [LoggingMessageType] :message_type (default to '
|
|
69
|
+
# @option opts [LoggingMessageType] :message_type (default to 'blank')
|
|
70
70
|
# @option opts [String] :header_value Value of the custom header sent with the request. (default to 'null')
|
|
71
71
|
# @option opts [String] :method HTTP method used for request. (default to 'POST')
|
|
72
72
|
# @option opts [String] :json_format Enforces valid JSON formatting for log entries.
|
|
@@ -416,7 +416,7 @@ module Fastly
|
|
|
416
416
|
# @option opts [String] :url The URL to send logs to. Must use HTTPS. Required.
|
|
417
417
|
# @option opts [String] :content_type Content type of the header sent with the request. (default to 'null')
|
|
418
418
|
# @option opts [String] :header_name Name of the custom header sent with the request. (default to 'null')
|
|
419
|
-
# @option opts [LoggingMessageType] :message_type (default to '
|
|
419
|
+
# @option opts [LoggingMessageType] :message_type (default to 'blank')
|
|
420
420
|
# @option opts [String] :header_value Value of the custom header sent with the request. (default to 'null')
|
|
421
421
|
# @option opts [String] :method HTTP method used for request. (default to 'POST')
|
|
422
422
|
# @option opts [String] :json_format Enforces valid JSON formatting for log entries.
|
|
@@ -447,7 +447,7 @@ module Fastly
|
|
|
447
447
|
# @option opts [String] :url The URL to send logs to. Must use HTTPS. Required.
|
|
448
448
|
# @option opts [String] :content_type Content type of the header sent with the request. (default to 'null')
|
|
449
449
|
# @option opts [String] :header_name Name of the custom header sent with the request. (default to 'null')
|
|
450
|
-
# @option opts [LoggingMessageType] :message_type (default to '
|
|
450
|
+
# @option opts [LoggingMessageType] :message_type (default to 'blank')
|
|
451
451
|
# @option opts [String] :header_value Value of the custom header sent with the request. (default to 'null')
|
|
452
452
|
# @option opts [String] :method HTTP method used for request. (default to 'POST')
|
|
453
453
|
# @option opts [String] :json_format Enforces valid JSON formatting for log entries.
|
|
@@ -27,7 +27,7 @@ module Fastly
|
|
|
27
27
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
28
28
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
29
29
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
30
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
30
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
31
31
|
# @option opts [String] :timestamp_format A timestamp format
|
|
32
32
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
33
33
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -54,7 +54,7 @@ module Fastly
|
|
|
54
54
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
55
55
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
56
56
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
57
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
57
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
58
58
|
# @option opts [String] :timestamp_format A timestamp format
|
|
59
59
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
60
60
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -93,7 +93,7 @@ module Fastly
|
|
|
93
93
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
|
94
94
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
|
95
95
|
end
|
|
96
|
-
allowable_values = ["
|
|
96
|
+
allowable_values = ["blank", "classic", "loggly", "logplex"]
|
|
97
97
|
if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
|
|
98
98
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
|
|
99
99
|
end
|
|
@@ -398,7 +398,7 @@ module Fastly
|
|
|
398
398
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
399
399
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
400
400
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
401
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
401
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
402
402
|
# @option opts [String] :timestamp_format A timestamp format
|
|
403
403
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
404
404
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -426,7 +426,7 @@ module Fastly
|
|
|
426
426
|
# @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
|
|
427
427
|
# @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
|
|
428
428
|
# @option opts [Integer] :format_version The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`. (default to FORMAT_VERSION::v2)
|
|
429
|
-
# @option opts [String] :message_type How the message should be formatted. (default to '
|
|
429
|
+
# @option opts [String] :message_type How the message should be formatted. (default to 'blank')
|
|
430
430
|
# @option opts [String] :timestamp_format A timestamp format
|
|
431
431
|
# @option opts [String] :compression_codec The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
|
|
432
432
|
# @option opts [Integer] :period How frequently log files are finalized so they can be available for reading (in seconds). (default to 3600)
|
|
@@ -470,7 +470,7 @@ module Fastly
|
|
|
470
470
|
if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
|
|
471
471
|
fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
|
|
472
472
|
end
|
|
473
|
-
allowable_values = ["
|
|
473
|
+
allowable_values = ["blank", "classic", "loggly", "logplex"]
|
|
474
474
|
if @api_client.config.client_side_validation && opts[:'message_type'] && !allowable_values.include?(opts[:'message_type'])
|
|
475
475
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{allowable_values}"
|
|
476
476
|
end
|