fastly 16.1.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +58 -0
- data/Gemfile.lock +1 -1
- data/README.md +101 -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/DomainOwnershipsApi.md +2 -2
- data/docs/DomainResearchApi.md +2 -2
- data/docs/DraftDiff.md +12 -0
- data/docs/DraftUpdate.md +10 -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/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/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 +34 -3
- data/docs/RealtimeEntryDatacenter.md +345 -0
- data/docs/RealtimeMeasurements.md +34 -3
- data/docs/Report.md +15 -0
- data/docs/RequestBodyForCreate.md +1 -0
- data/docs/RequestBodyForUpdate.md +1 -0
- data/docs/Results.md +34 -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/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_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 +294 -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/draft_diff.rb +244 -0
- data/lib/fastly/models/draft_update.rb +218 -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/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 +344 -34
- data/lib/fastly/models/realtime_entry_datacenter.rb +3577 -0
- data/lib/fastly/models/realtime_measurements.rb +344 -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 +341 -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/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 +77 -0
- data/sig.json +1 -1
- metadata +156 -2
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Fastly API
|
|
3
|
+
|
|
4
|
+
#Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: oss@fastly.com
|
|
8
|
+
|
|
9
|
+
=end
|
|
10
|
+
|
|
11
|
+
require 'date'
|
|
12
|
+
require 'time'
|
|
13
|
+
|
|
14
|
+
module Fastly
|
|
15
|
+
class KvStoreResponseProduct
|
|
16
|
+
attr_accessor :product
|
|
17
|
+
|
|
18
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
19
|
+
def self.attribute_map
|
|
20
|
+
{
|
|
21
|
+
:'product' => :'product'
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Returns all the JSON keys this model knows about
|
|
26
|
+
def self.acceptable_attributes
|
|
27
|
+
attribute_map.values
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Attribute type mapping.
|
|
31
|
+
def self.fastly_types
|
|
32
|
+
{
|
|
33
|
+
:'product' => :'KvStoreResponseProductProduct'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# List of attributes with nullable: true
|
|
38
|
+
def self.fastly_nullable
|
|
39
|
+
Set.new([
|
|
40
|
+
])
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Initializes the object
|
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
45
|
+
def initialize(attributes = {})
|
|
46
|
+
if (!attributes.is_a?(Hash))
|
|
47
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::KvStoreResponseProduct` initialize method"
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
52
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
53
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::KvStoreResponseProduct`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
54
|
+
end
|
|
55
|
+
h[k.to_sym] = v
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if attributes.key?(:'product')
|
|
59
|
+
self.product = attributes[:'product']
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
64
|
+
# @return Array for valid properties with the reasons
|
|
65
|
+
def list_invalid_properties
|
|
66
|
+
invalid_properties = Array.new
|
|
67
|
+
invalid_properties
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Check to see if the all the properties in the model are valid
|
|
71
|
+
# @return true if the model is valid
|
|
72
|
+
def valid?
|
|
73
|
+
true
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Checks equality by comparing each attribute.
|
|
77
|
+
# @param [Object] Object to be compared
|
|
78
|
+
def ==(o)
|
|
79
|
+
return true if self.equal?(o)
|
|
80
|
+
self.class == o.class &&
|
|
81
|
+
product == o.product
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# @see the `==` method
|
|
85
|
+
# @param [Object] Object to be compared
|
|
86
|
+
def eql?(o)
|
|
87
|
+
self == o
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Calculates hash code according to all attributes.
|
|
91
|
+
# @return [Integer] Hash code
|
|
92
|
+
def hash
|
|
93
|
+
[product].hash
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Builds the object from hash
|
|
97
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
98
|
+
# @return [Object] Returns the model itself
|
|
99
|
+
def self.build_from_hash(attributes)
|
|
100
|
+
new.build_from_hash(attributes)
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Builds the object from hash
|
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
105
|
+
# @return [Object] Returns the model itself
|
|
106
|
+
def build_from_hash(attributes)
|
|
107
|
+
return nil unless attributes.is_a?(Hash)
|
|
108
|
+
self.class.fastly_types.each_pair do |key, type|
|
|
109
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
|
|
110
|
+
self.send("#{key}=", nil)
|
|
111
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
112
|
+
# check to ensure the input is an array given that the attribute
|
|
113
|
+
# is documented as an array but the input is not
|
|
114
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
115
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
116
|
+
end
|
|
117
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
118
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
self
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Deserializes the data based on type
|
|
126
|
+
# @param string type Data type
|
|
127
|
+
# @param string value Value to be deserialized
|
|
128
|
+
# @return [Object] Deserialized data
|
|
129
|
+
def _deserialize(type, value)
|
|
130
|
+
case type.to_sym
|
|
131
|
+
when :Time
|
|
132
|
+
Time.parse(value)
|
|
133
|
+
when :Date
|
|
134
|
+
Date.parse(value)
|
|
135
|
+
when :String
|
|
136
|
+
value.to_s
|
|
137
|
+
when :Integer
|
|
138
|
+
value.to_i
|
|
139
|
+
when :Float
|
|
140
|
+
value.to_f
|
|
141
|
+
when :Boolean
|
|
142
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
143
|
+
true
|
|
144
|
+
else
|
|
145
|
+
false
|
|
146
|
+
end
|
|
147
|
+
when :Object
|
|
148
|
+
# generic object (usually a Hash), return directly
|
|
149
|
+
value
|
|
150
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
151
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
152
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
153
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
154
|
+
k_type = Regexp.last_match[:k_type]
|
|
155
|
+
v_type = Regexp.last_match[:v_type]
|
|
156
|
+
{}.tap do |hash|
|
|
157
|
+
value.each do |k, v|
|
|
158
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
else # model
|
|
162
|
+
# models (e.g. Pet) or oneOf
|
|
163
|
+
klass = Fastly.const_get(type)
|
|
164
|
+
klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Returns the string representation of the object
|
|
169
|
+
# @return [String] String presentation of the object
|
|
170
|
+
def to_s
|
|
171
|
+
to_hash.to_s
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
|
176
|
+
def to_body
|
|
177
|
+
to_hash
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Returns the object in the form of hash
|
|
181
|
+
# @return [Hash] Returns the object in the form of hash
|
|
182
|
+
def to_hash
|
|
183
|
+
hash = {}
|
|
184
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
185
|
+
value = self.send(attr)
|
|
186
|
+
if value.nil?
|
|
187
|
+
is_nullable = self.class.fastly_nullable.include?(attr)
|
|
188
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
hash[param] = _to_hash(value)
|
|
192
|
+
end
|
|
193
|
+
hash
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Outputs non-array value in the form of hash
|
|
197
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
198
|
+
# @param [Object] value Any valid value
|
|
199
|
+
# @return [Hash] Returns the value in the form of hash
|
|
200
|
+
def _to_hash(value)
|
|
201
|
+
if value.is_a?(Array)
|
|
202
|
+
value.compact.map { |v| _to_hash(v) }
|
|
203
|
+
elsif value.is_a?(Hash)
|
|
204
|
+
{}.tap do |hash|
|
|
205
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
206
|
+
end
|
|
207
|
+
elsif value.respond_to? :to_hash
|
|
208
|
+
value.to_hash
|
|
209
|
+
else
|
|
210
|
+
value
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
end
|
|
@@ -0,0 +1,227 @@
|
|
|
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 KvStoreResponseProductProduct
|
|
16
|
+
# Product identifier
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
|
|
19
|
+
# Name of the object
|
|
20
|
+
attr_accessor :object
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'id' => :'id',
|
|
26
|
+
:'object' => :'object'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns all the JSON keys this model knows about
|
|
31
|
+
def self.acceptable_attributes
|
|
32
|
+
attribute_map.values
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Attribute type mapping.
|
|
36
|
+
def self.fastly_types
|
|
37
|
+
{
|
|
38
|
+
:'id' => :'String',
|
|
39
|
+
:'object' => :'String'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# List of attributes with nullable: true
|
|
44
|
+
def self.fastly_nullable
|
|
45
|
+
Set.new([
|
|
46
|
+
])
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Initializes the object
|
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
51
|
+
def initialize(attributes = {})
|
|
52
|
+
if (!attributes.is_a?(Hash))
|
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::KvStoreResponseProductProduct` initialize method"
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::KvStoreResponseProductProduct`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
60
|
+
end
|
|
61
|
+
h[k.to_sym] = v
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if attributes.key?(:'id')
|
|
65
|
+
self.id = attributes[:'id']
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
if attributes.key?(:'object')
|
|
69
|
+
self.object = attributes[:'object']
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
74
|
+
# @return Array for valid properties with the reasons
|
|
75
|
+
def list_invalid_properties
|
|
76
|
+
invalid_properties = Array.new
|
|
77
|
+
invalid_properties
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Check to see if the all the properties in the model are valid
|
|
81
|
+
# @return true if the model is valid
|
|
82
|
+
def valid?
|
|
83
|
+
true
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Checks equality by comparing each attribute.
|
|
87
|
+
# @param [Object] Object to be compared
|
|
88
|
+
def ==(o)
|
|
89
|
+
return true if self.equal?(o)
|
|
90
|
+
self.class == o.class &&
|
|
91
|
+
id == o.id &&
|
|
92
|
+
object == o.object
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# @see the `==` method
|
|
96
|
+
# @param [Object] Object to be compared
|
|
97
|
+
def eql?(o)
|
|
98
|
+
self == o
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Calculates hash code according to all attributes.
|
|
102
|
+
# @return [Integer] Hash code
|
|
103
|
+
def hash
|
|
104
|
+
[id, object].hash
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Builds the object from hash
|
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
109
|
+
# @return [Object] Returns the model itself
|
|
110
|
+
def self.build_from_hash(attributes)
|
|
111
|
+
new.build_from_hash(attributes)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Builds the object from hash
|
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
116
|
+
# @return [Object] Returns the model itself
|
|
117
|
+
def build_from_hash(attributes)
|
|
118
|
+
return nil unless attributes.is_a?(Hash)
|
|
119
|
+
self.class.fastly_types.each_pair do |key, type|
|
|
120
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
|
|
121
|
+
self.send("#{key}=", nil)
|
|
122
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
123
|
+
# check to ensure the input is an array given that the attribute
|
|
124
|
+
# is documented as an array but the input is not
|
|
125
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
126
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
127
|
+
end
|
|
128
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
129
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
self
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Deserializes the data based on type
|
|
137
|
+
# @param string type Data type
|
|
138
|
+
# @param string value Value to be deserialized
|
|
139
|
+
# @return [Object] Deserialized data
|
|
140
|
+
def _deserialize(type, value)
|
|
141
|
+
case type.to_sym
|
|
142
|
+
when :Time
|
|
143
|
+
Time.parse(value)
|
|
144
|
+
when :Date
|
|
145
|
+
Date.parse(value)
|
|
146
|
+
when :String
|
|
147
|
+
value.to_s
|
|
148
|
+
when :Integer
|
|
149
|
+
value.to_i
|
|
150
|
+
when :Float
|
|
151
|
+
value.to_f
|
|
152
|
+
when :Boolean
|
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
154
|
+
true
|
|
155
|
+
else
|
|
156
|
+
false
|
|
157
|
+
end
|
|
158
|
+
when :Object
|
|
159
|
+
# generic object (usually a Hash), return directly
|
|
160
|
+
value
|
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
|
167
|
+
{}.tap do |hash|
|
|
168
|
+
value.each do |k, v|
|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
else # model
|
|
173
|
+
# models (e.g. Pet) or oneOf
|
|
174
|
+
klass = Fastly.const_get(type)
|
|
175
|
+
klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Returns the string representation of the object
|
|
180
|
+
# @return [String] String presentation of the object
|
|
181
|
+
def to_s
|
|
182
|
+
to_hash.to_s
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
186
|
+
# @return [Hash] Returns the object in the form of hash
|
|
187
|
+
def to_body
|
|
188
|
+
to_hash
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Returns the object in the form of hash
|
|
192
|
+
# @return [Hash] Returns the object in the form of hash
|
|
193
|
+
def to_hash
|
|
194
|
+
hash = {}
|
|
195
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
196
|
+
value = self.send(attr)
|
|
197
|
+
if value.nil?
|
|
198
|
+
is_nullable = self.class.fastly_nullable.include?(attr)
|
|
199
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
hash[param] = _to_hash(value)
|
|
203
|
+
end
|
|
204
|
+
hash
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Outputs non-array value in the form of hash
|
|
208
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
209
|
+
# @param [Object] value Any valid value
|
|
210
|
+
# @return [Hash] Returns the value in the form of hash
|
|
211
|
+
def _to_hash(value)
|
|
212
|
+
if value.is_a?(Array)
|
|
213
|
+
value.compact.map { |v| _to_hash(v) }
|
|
214
|
+
elsif value.is_a?(Hash)
|
|
215
|
+
{}.tap do |hash|
|
|
216
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
217
|
+
end
|
|
218
|
+
elsif value.respond_to? :to_hash
|
|
219
|
+
value.to_hash
|
|
220
|
+
else
|
|
221
|
+
value
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
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
|