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
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Fastly API
|
|
3
|
+
|
|
4
|
+
#Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: oss@fastly.com
|
|
8
|
+
|
|
9
|
+
=end
|
|
10
|
+
|
|
11
|
+
require 'date'
|
|
12
|
+
require 'time'
|
|
13
|
+
|
|
14
|
+
module Fastly
|
|
15
|
+
class LogErrorBatch
|
|
16
|
+
# Unique identifier for this batch of logs.
|
|
17
|
+
attr_accessor :batch_id
|
|
18
|
+
|
|
19
|
+
attr_accessor :logs
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'batch_id' => :'batch_id',
|
|
25
|
+
:'logs' => :'logs'
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Returns all the JSON keys this model knows about
|
|
30
|
+
def self.acceptable_attributes
|
|
31
|
+
attribute_map.values
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Attribute type mapping.
|
|
35
|
+
def self.fastly_types
|
|
36
|
+
{
|
|
37
|
+
:'batch_id' => :'String',
|
|
38
|
+
:'logs' => :'Array<LogError>'
|
|
39
|
+
}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# List of attributes with nullable: true
|
|
43
|
+
def self.fastly_nullable
|
|
44
|
+
Set.new([
|
|
45
|
+
])
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Initializes the object
|
|
49
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
50
|
+
def initialize(attributes = {})
|
|
51
|
+
if (!attributes.is_a?(Hash))
|
|
52
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LogErrorBatch` initialize method"
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
57
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
58
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LogErrorBatch`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
59
|
+
end
|
|
60
|
+
h[k.to_sym] = v
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if attributes.key?(:'batch_id')
|
|
64
|
+
self.batch_id = attributes[:'batch_id']
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
if attributes.key?(:'logs')
|
|
68
|
+
if (value = attributes[:'logs']).is_a?(Array)
|
|
69
|
+
self.logs = value
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
75
|
+
# @return Array for valid properties with the reasons
|
|
76
|
+
def list_invalid_properties
|
|
77
|
+
invalid_properties = Array.new
|
|
78
|
+
invalid_properties
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Check to see if the all the properties in the model are valid
|
|
82
|
+
# @return true if the model is valid
|
|
83
|
+
def valid?
|
|
84
|
+
true
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Checks equality by comparing each attribute.
|
|
88
|
+
# @param [Object] Object to be compared
|
|
89
|
+
def ==(o)
|
|
90
|
+
return true if self.equal?(o)
|
|
91
|
+
self.class == o.class &&
|
|
92
|
+
batch_id == o.batch_id &&
|
|
93
|
+
logs == o.logs
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# @see the `==` method
|
|
97
|
+
# @param [Object] Object to be compared
|
|
98
|
+
def eql?(o)
|
|
99
|
+
self == o
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Calculates hash code according to all attributes.
|
|
103
|
+
# @return [Integer] Hash code
|
|
104
|
+
def hash
|
|
105
|
+
[batch_id, logs].hash
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Builds the object from hash
|
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
110
|
+
# @return [Object] Returns the model itself
|
|
111
|
+
def self.build_from_hash(attributes)
|
|
112
|
+
new.build_from_hash(attributes)
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Builds the object from hash
|
|
116
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
117
|
+
# @return [Object] Returns the model itself
|
|
118
|
+
def build_from_hash(attributes)
|
|
119
|
+
return nil unless attributes.is_a?(Hash)
|
|
120
|
+
self.class.fastly_types.each_pair do |key, type|
|
|
121
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
|
|
122
|
+
self.send("#{key}=", nil)
|
|
123
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
124
|
+
# check to ensure the input is an array given that the attribute
|
|
125
|
+
# is documented as an array but the input is not
|
|
126
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
127
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
128
|
+
end
|
|
129
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
130
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
self
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Deserializes the data based on type
|
|
138
|
+
# @param string type Data type
|
|
139
|
+
# @param string value Value to be deserialized
|
|
140
|
+
# @return [Object] Deserialized data
|
|
141
|
+
def _deserialize(type, value)
|
|
142
|
+
case type.to_sym
|
|
143
|
+
when :Time
|
|
144
|
+
Time.parse(value)
|
|
145
|
+
when :Date
|
|
146
|
+
Date.parse(value)
|
|
147
|
+
when :String
|
|
148
|
+
value.to_s
|
|
149
|
+
when :Integer
|
|
150
|
+
value.to_i
|
|
151
|
+
when :Float
|
|
152
|
+
value.to_f
|
|
153
|
+
when :Boolean
|
|
154
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
155
|
+
true
|
|
156
|
+
else
|
|
157
|
+
false
|
|
158
|
+
end
|
|
159
|
+
when :Object
|
|
160
|
+
# generic object (usually a Hash), return directly
|
|
161
|
+
value
|
|
162
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
163
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
164
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
165
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
166
|
+
k_type = Regexp.last_match[:k_type]
|
|
167
|
+
v_type = Regexp.last_match[:v_type]
|
|
168
|
+
{}.tap do |hash|
|
|
169
|
+
value.each do |k, v|
|
|
170
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
else # model
|
|
174
|
+
# models (e.g. Pet) or oneOf
|
|
175
|
+
klass = Fastly.const_get(type)
|
|
176
|
+
klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Returns the string representation of the object
|
|
181
|
+
# @return [String] String presentation of the object
|
|
182
|
+
def to_s
|
|
183
|
+
to_hash.to_s
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
|
188
|
+
def to_body
|
|
189
|
+
to_hash
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Returns the object in the form of hash
|
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
|
194
|
+
def to_hash
|
|
195
|
+
hash = {}
|
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
197
|
+
value = self.send(attr)
|
|
198
|
+
if value.nil?
|
|
199
|
+
is_nullable = self.class.fastly_nullable.include?(attr)
|
|
200
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
hash[param] = _to_hash(value)
|
|
204
|
+
end
|
|
205
|
+
hash
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Outputs non-array value in the form of hash
|
|
209
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
210
|
+
# @param [Object] value Any valid value
|
|
211
|
+
# @return [Hash] Returns the value in the form of hash
|
|
212
|
+
def _to_hash(value)
|
|
213
|
+
if value.is_a?(Array)
|
|
214
|
+
value.compact.map { |v| _to_hash(v) }
|
|
215
|
+
elsif value.is_a?(Hash)
|
|
216
|
+
{}.tap do |hash|
|
|
217
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
218
|
+
end
|
|
219
|
+
elsif value.respond_to? :to_hash
|
|
220
|
+
value.to_hash
|
|
221
|
+
else
|
|
222
|
+
value
|
|
223
|
+
end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
end
|
|
@@ -233,7 +233,7 @@ module Fastly
|
|
|
233
233
|
if attributes.key?(:'message_type')
|
|
234
234
|
self.message_type = attributes[:'message_type']
|
|
235
235
|
else
|
|
236
|
-
self.message_type = '
|
|
236
|
+
self.message_type = 'blank'
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
if attributes.key?(:'timestamp_format')
|
|
@@ -325,7 +325,7 @@ module Fastly
|
|
|
325
325
|
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
|
326
326
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
|
327
327
|
return false unless format_version_validator.valid?(@format_version)
|
|
328
|
-
message_type_validator = EnumAttributeValidator.new('String', ["
|
|
328
|
+
message_type_validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
329
329
|
return false unless message_type_validator.valid?(@message_type)
|
|
330
330
|
compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
|
331
331
|
return false unless compression_codec_validator.valid?(@compression_codec)
|
|
@@ -366,7 +366,7 @@ module Fastly
|
|
|
366
366
|
# Custom attribute writer method checking allowed values (enum).
|
|
367
367
|
# @param [Object] message_type Object to be assigned
|
|
368
368
|
def message_type=(message_type)
|
|
369
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
369
|
+
validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
370
370
|
unless validator.valid?(message_type)
|
|
371
371
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{validator.allowable_values}."
|
|
372
372
|
end
|
|
@@ -234,7 +234,7 @@ module Fastly
|
|
|
234
234
|
if attributes.key?(:'message_type')
|
|
235
235
|
self.message_type = attributes[:'message_type']
|
|
236
236
|
else
|
|
237
|
-
self.message_type = '
|
|
237
|
+
self.message_type = 'blank'
|
|
238
238
|
end
|
|
239
239
|
|
|
240
240
|
if attributes.key?(:'timestamp_format')
|
|
@@ -322,7 +322,7 @@ module Fastly
|
|
|
322
322
|
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
|
323
323
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
|
324
324
|
return false unless format_version_validator.valid?(@format_version)
|
|
325
|
-
message_type_validator = EnumAttributeValidator.new('String', ["
|
|
325
|
+
message_type_validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
326
326
|
return false unless message_type_validator.valid?(@message_type)
|
|
327
327
|
compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
|
328
328
|
return false unless compression_codec_validator.valid?(@compression_codec)
|
|
@@ -364,7 +364,7 @@ module Fastly
|
|
|
364
364
|
# Custom attribute writer method checking allowed values (enum).
|
|
365
365
|
# @param [Object] message_type Object to be assigned
|
|
366
366
|
def message_type=(message_type)
|
|
367
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
367
|
+
validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
368
368
|
unless validator.valid?(message_type)
|
|
369
369
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{validator.allowable_values}."
|
|
370
370
|
end
|
|
@@ -233,7 +233,7 @@ module Fastly
|
|
|
233
233
|
if attributes.key?(:'message_type')
|
|
234
234
|
self.message_type = attributes[:'message_type']
|
|
235
235
|
else
|
|
236
|
-
self.message_type = '
|
|
236
|
+
self.message_type = 'blank'
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
if attributes.key?(:'timestamp_format')
|
|
@@ -323,7 +323,7 @@ module Fastly
|
|
|
323
323
|
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
|
324
324
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
|
325
325
|
return false unless format_version_validator.valid?(@format_version)
|
|
326
|
-
message_type_validator = EnumAttributeValidator.new('String', ["
|
|
326
|
+
message_type_validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
327
327
|
return false unless message_type_validator.valid?(@message_type)
|
|
328
328
|
compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
|
329
329
|
return false unless compression_codec_validator.valid?(@compression_codec)
|
|
@@ -363,7 +363,7 @@ module Fastly
|
|
|
363
363
|
# Custom attribute writer method checking allowed values (enum).
|
|
364
364
|
# @param [Object] message_type Object to be assigned
|
|
365
365
|
def message_type=(message_type)
|
|
366
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
366
|
+
validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
367
367
|
unless validator.valid?(message_type)
|
|
368
368
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{validator.allowable_values}."
|
|
369
369
|
end
|
|
@@ -243,7 +243,7 @@ module Fastly
|
|
|
243
243
|
if attributes.key?(:'message_type')
|
|
244
244
|
self.message_type = attributes[:'message_type']
|
|
245
245
|
else
|
|
246
|
-
self.message_type = '
|
|
246
|
+
self.message_type = 'blank'
|
|
247
247
|
end
|
|
248
248
|
|
|
249
249
|
if attributes.key?(:'timestamp_format')
|
|
@@ -339,7 +339,7 @@ module Fastly
|
|
|
339
339
|
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
|
340
340
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
|
341
341
|
return false unless format_version_validator.valid?(@format_version)
|
|
342
|
-
message_type_validator = EnumAttributeValidator.new('String', ["
|
|
342
|
+
message_type_validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
343
343
|
return false unless message_type_validator.valid?(@message_type)
|
|
344
344
|
compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
|
345
345
|
return false unless compression_codec_validator.valid?(@compression_codec)
|
|
@@ -379,7 +379,7 @@ module Fastly
|
|
|
379
379
|
# Custom attribute writer method checking allowed values (enum).
|
|
380
380
|
# @param [Object] message_type Object to be assigned
|
|
381
381
|
def message_type=(message_type)
|
|
382
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
382
|
+
validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
383
383
|
unless validator.valid?(message_type)
|
|
384
384
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{validator.allowable_values}."
|
|
385
385
|
end
|
|
@@ -237,7 +237,7 @@ module Fastly
|
|
|
237
237
|
if attributes.key?(:'message_type')
|
|
238
238
|
self.message_type = attributes[:'message_type']
|
|
239
239
|
else
|
|
240
|
-
self.message_type = '
|
|
240
|
+
self.message_type = 'blank'
|
|
241
241
|
end
|
|
242
242
|
|
|
243
243
|
if attributes.key?(:'timestamp_format')
|
|
@@ -329,7 +329,7 @@ module Fastly
|
|
|
329
329
|
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
|
330
330
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
|
331
331
|
return false unless format_version_validator.valid?(@format_version)
|
|
332
|
-
message_type_validator = EnumAttributeValidator.new('String', ["
|
|
332
|
+
message_type_validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
333
333
|
return false unless message_type_validator.valid?(@message_type)
|
|
334
334
|
compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
|
335
335
|
return false unless compression_codec_validator.valid?(@compression_codec)
|
|
@@ -369,7 +369,7 @@ module Fastly
|
|
|
369
369
|
# Custom attribute writer method checking allowed values (enum).
|
|
370
370
|
# @param [Object] message_type Object to be assigned
|
|
371
371
|
def message_type=(message_type)
|
|
372
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
372
|
+
validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
373
373
|
unless validator.valid?(message_type)
|
|
374
374
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{validator.allowable_values}."
|
|
375
375
|
end
|
|
@@ -92,7 +92,7 @@ module Fastly
|
|
|
92
92
|
if attributes.key?(:'message_type')
|
|
93
93
|
self.message_type = attributes[:'message_type']
|
|
94
94
|
else
|
|
95
|
-
self.message_type = '
|
|
95
|
+
self.message_type = 'blank'
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
if attributes.key?(:'timestamp_format')
|
|
@@ -114,7 +114,7 @@ module Fastly
|
|
|
114
114
|
# Check to see if the all the properties in the model are valid
|
|
115
115
|
# @return true if the model is valid
|
|
116
116
|
def valid?
|
|
117
|
-
message_type_validator = EnumAttributeValidator.new('String', ["
|
|
117
|
+
message_type_validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
118
118
|
return false unless message_type_validator.valid?(@message_type)
|
|
119
119
|
compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
|
120
120
|
return false unless compression_codec_validator.valid?(@compression_codec)
|
|
@@ -124,7 +124,7 @@ module Fastly
|
|
|
124
124
|
# Custom attribute writer method checking allowed values (enum).
|
|
125
125
|
# @param [Object] message_type Object to be assigned
|
|
126
126
|
def message_type=(message_type)
|
|
127
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
127
|
+
validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
128
128
|
unless validator.valid?(message_type)
|
|
129
129
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{validator.allowable_values}."
|
|
130
130
|
end
|
|
@@ -110,7 +110,7 @@ module Fastly
|
|
|
110
110
|
if attributes.key?(:'message_type')
|
|
111
111
|
self.message_type = attributes[:'message_type']
|
|
112
112
|
else
|
|
113
|
-
self.message_type = '
|
|
113
|
+
self.message_type = 'blank'
|
|
114
114
|
end
|
|
115
115
|
|
|
116
116
|
if attributes.key?(:'timestamp_format')
|
|
@@ -144,7 +144,7 @@ module Fastly
|
|
|
144
144
|
# Check to see if the all the properties in the model are valid
|
|
145
145
|
# @return true if the model is valid
|
|
146
146
|
def valid?
|
|
147
|
-
message_type_validator = EnumAttributeValidator.new('String', ["
|
|
147
|
+
message_type_validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
148
148
|
return false unless message_type_validator.valid?(@message_type)
|
|
149
149
|
compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
|
150
150
|
return false unless compression_codec_validator.valid?(@compression_codec)
|
|
@@ -154,7 +154,7 @@ module Fastly
|
|
|
154
154
|
# Custom attribute writer method checking allowed values (enum).
|
|
155
155
|
# @param [Object] message_type Object to be assigned
|
|
156
156
|
def message_type=(message_type)
|
|
157
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
157
|
+
validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
158
158
|
unless validator.valid?(message_type)
|
|
159
159
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{validator.allowable_values}."
|
|
160
160
|
end
|
|
@@ -92,7 +92,7 @@ module Fastly
|
|
|
92
92
|
if attributes.key?(:'message_type')
|
|
93
93
|
self.message_type = attributes[:'message_type']
|
|
94
94
|
else
|
|
95
|
-
self.message_type = '
|
|
95
|
+
self.message_type = 'blank'
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
if attributes.key?(:'timestamp_format')
|
|
@@ -114,7 +114,7 @@ module Fastly
|
|
|
114
114
|
# Check to see if the all the properties in the model are valid
|
|
115
115
|
# @return true if the model is valid
|
|
116
116
|
def valid?
|
|
117
|
-
message_type_validator = EnumAttributeValidator.new('String', ["
|
|
117
|
+
message_type_validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
118
118
|
return false unless message_type_validator.valid?(@message_type)
|
|
119
119
|
compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
|
120
120
|
return false unless compression_codec_validator.valid?(@compression_codec)
|
|
@@ -124,7 +124,7 @@ module Fastly
|
|
|
124
124
|
# Custom attribute writer method checking allowed values (enum).
|
|
125
125
|
# @param [Object] message_type Object to be assigned
|
|
126
126
|
def message_type=(message_type)
|
|
127
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
127
|
+
validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
128
128
|
unless validator.valid?(message_type)
|
|
129
129
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{validator.allowable_values}."
|
|
130
130
|
end
|
|
@@ -13,10 +13,10 @@ require 'time'
|
|
|
13
13
|
|
|
14
14
|
module Fastly
|
|
15
15
|
class LoggingMessageType
|
|
16
|
+
BLANK = "blank".freeze
|
|
16
17
|
CLASSIC = "classic".freeze
|
|
17
18
|
LOGGLY = "loggly".freeze
|
|
18
19
|
LOGPLEX = "logplex".freeze
|
|
19
|
-
BLANK = "blank".freeze
|
|
20
20
|
|
|
21
21
|
# Builds the enum from string
|
|
22
22
|
# @param [String] The enum value in the form of the string
|
|
@@ -233,7 +233,7 @@ module Fastly
|
|
|
233
233
|
if attributes.key?(:'message_type')
|
|
234
234
|
self.message_type = attributes[:'message_type']
|
|
235
235
|
else
|
|
236
|
-
self.message_type = '
|
|
236
|
+
self.message_type = 'blank'
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
if attributes.key?(:'timestamp_format')
|
|
@@ -321,7 +321,7 @@ module Fastly
|
|
|
321
321
|
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
|
322
322
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
|
323
323
|
return false unless format_version_validator.valid?(@format_version)
|
|
324
|
-
message_type_validator = EnumAttributeValidator.new('String', ["
|
|
324
|
+
message_type_validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
325
325
|
return false unless message_type_validator.valid?(@message_type)
|
|
326
326
|
compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
|
327
327
|
return false unless compression_codec_validator.valid?(@compression_codec)
|
|
@@ -361,7 +361,7 @@ module Fastly
|
|
|
361
361
|
# Custom attribute writer method checking allowed values (enum).
|
|
362
362
|
# @param [Object] message_type Object to be assigned
|
|
363
363
|
def message_type=(message_type)
|
|
364
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
364
|
+
validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
365
365
|
unless validator.valid?(message_type)
|
|
366
366
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{validator.allowable_values}."
|
|
367
367
|
end
|
|
@@ -269,7 +269,7 @@ module Fastly
|
|
|
269
269
|
if attributes.key?(:'message_type')
|
|
270
270
|
self.message_type = attributes[:'message_type']
|
|
271
271
|
else
|
|
272
|
-
self.message_type = '
|
|
272
|
+
self.message_type = 'blank'
|
|
273
273
|
end
|
|
274
274
|
|
|
275
275
|
if attributes.key?(:'timestamp_format')
|
|
@@ -391,7 +391,7 @@ module Fastly
|
|
|
391
391
|
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
|
392
392
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
|
393
393
|
return false unless format_version_validator.valid?(@format_version)
|
|
394
|
-
message_type_validator = EnumAttributeValidator.new('String', ["
|
|
394
|
+
message_type_validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
395
395
|
return false unless message_type_validator.valid?(@message_type)
|
|
396
396
|
compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
|
397
397
|
return false unless compression_codec_validator.valid?(@compression_codec)
|
|
@@ -432,7 +432,7 @@ module Fastly
|
|
|
432
432
|
# Custom attribute writer method checking allowed values (enum).
|
|
433
433
|
# @param [Object] message_type Object to be assigned
|
|
434
434
|
def message_type=(message_type)
|
|
435
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
435
|
+
validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
436
436
|
unless validator.valid?(message_type)
|
|
437
437
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{validator.allowable_values}."
|
|
438
438
|
end
|
|
@@ -245,7 +245,7 @@ module Fastly
|
|
|
245
245
|
if attributes.key?(:'message_type')
|
|
246
246
|
self.message_type = attributes[:'message_type']
|
|
247
247
|
else
|
|
248
|
-
self.message_type = '
|
|
248
|
+
self.message_type = 'blank'
|
|
249
249
|
end
|
|
250
250
|
|
|
251
251
|
if attributes.key?(:'timestamp_format')
|
|
@@ -345,7 +345,7 @@ module Fastly
|
|
|
345
345
|
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
|
346
346
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
|
347
347
|
return false unless format_version_validator.valid?(@format_version)
|
|
348
|
-
message_type_validator = EnumAttributeValidator.new('String', ["
|
|
348
|
+
message_type_validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
349
349
|
return false unless message_type_validator.valid?(@message_type)
|
|
350
350
|
compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
|
|
351
351
|
return false unless compression_codec_validator.valid?(@compression_codec)
|
|
@@ -385,7 +385,7 @@ module Fastly
|
|
|
385
385
|
# Custom attribute writer method checking allowed values (enum).
|
|
386
386
|
# @param [Object] message_type Object to be assigned
|
|
387
387
|
def message_type=(message_type)
|
|
388
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
388
|
+
validator = EnumAttributeValidator.new('String', ["blank", "classic", "loggly", "logplex"])
|
|
389
389
|
unless validator.valid?(message_type)
|
|
390
390
|
fail ArgumentError, "invalid value for \"message_type\", must be one of #{validator.allowable_values}."
|
|
391
391
|
end
|