fastly 8.4.0 → 8.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/Gemfile.lock +1 -1
- data/README.md +15 -2
- data/docs/{RelationshipTlsDnsRecord.md → AsyncResponse.md} +3 -2
- data/docs/BillingInvoicesApi.md +37 -4
- data/docs/BillingUsageMetricsApi.md +111 -0
- data/docs/ContentApi.md +1 -1
- data/docs/CreateDashboardRequest.md +12 -0
- data/docs/Dashboard.md +17 -0
- data/docs/DashboardItem.md +15 -0
- data/docs/DashboardItemPropertyDataSource.md +11 -0
- data/docs/DashboardItemPropertyDataSourcePropertyConfig.md +10 -0
- data/docs/DashboardItemPropertyVisualization.md +11 -0
- data/docs/DashboardItemPropertyVisualizationPropertyConfig.md +12 -0
- data/docs/{RelationshipTlsDnsRecords.md → DashboardPropertyCreatedBy.md} +1 -2
- data/docs/{RelationshipTlsDnsRecordDnsRecord.md → DashboardPropertyUpdatedBy.md} +1 -2
- data/docs/DomainInspectorMeasurements.md +1 -1
- data/docs/{InvoiceResponse.md → EomInvoiceResponse.md} +1 -1
- data/docs/GetServiceLevelUsageResponse.md +10 -0
- data/docs/GetServiceLevelUsageTypesResponse.md +10 -0
- data/docs/IncludedWithTlsConfiguration.md +10 -0
- data/docs/IncludedWithTlsConfigurationItem.md +12 -0
- data/docs/ListDashboardsResponse.md +11 -0
- data/docs/{ListInvoicesResponse.md → ListEomInvoicesResponse.md} +1 -1
- data/docs/LoggingKafkaAdditional.md +1 -1
- data/docs/LoggingKafkaApi.md +2 -2
- data/docs/LoggingKafkaResponse.md +1 -1
- data/docs/LoggingKafkaResponsePost.md +1 -1
- data/docs/LoggingLogentriesAdditional.md +1 -1
- data/docs/LoggingLogentriesApi.md +4 -4
- data/docs/LoggingLogentriesResponse.md +1 -1
- data/docs/LoggingSplunkAdditional.md +1 -1
- data/docs/LoggingSplunkApi.md +4 -4
- data/docs/LoggingSplunkResponse.md +1 -1
- data/docs/LoggingSyslogAdditional.md +1 -1
- data/docs/LoggingSyslogApi.md +4 -4
- data/docs/LoggingSyslogResponse.md +1 -1
- data/docs/{LoggingUseTls.md → LoggingUseTlsString.md} +1 -1
- data/docs/MtdInvoiceResponse.md +15 -0
- data/docs/Mtdinvoice.md +15 -0
- data/docs/Mtdlineitems.md +18 -0
- data/docs/ObservabilityCustomDashboardsApi.md +203 -0
- data/docs/RealtimeEntryAggregated.md +1 -0
- data/docs/RealtimeMeasurements.md +1 -0
- data/docs/RelationshipDefaultEcdsaTlsCertificate.md +10 -0
- data/docs/RelationshipDefaultEcdsaTlsCertificateDefaultEcdsaCertificate.md +10 -0
- data/docs/RelationshipDefaultEcdsaTlsCertificateDefaultEcdsaCertificateData.md +11 -0
- data/docs/RelationshipDefaultTlsCertificate.md +10 -0
- data/docs/RelationshipDefaultTlsCertificateDefaultCertificate.md +10 -0
- data/docs/RelationshipDefaultTlsCertificateDefaultCertificateData.md +11 -0
- data/docs/RelationshipTlsDnsRecordsRequest.md +10 -0
- data/docs/RelationshipTlsDnsRecordsRequestDnsRecords.md +10 -0
- data/docs/RelationshipTlsDnsRecordsRequestDnsRecordsData.md +11 -0
- data/docs/RelationshipTlsDnsRecordsResponse.md +10 -0
- data/docs/RelationshipTlsDnsRecordsResponseDnsRecords.md +10 -0
- data/docs/{RelationshipMemberTlsDnsRecord.md → RelationshipTlsDnsRecordsResponseDnsRecordsData.md} +1 -1
- data/docs/Results.md +1 -0
- data/docs/Serviceusagemetric.md +13 -0
- data/docs/Serviceusagemetrics.md +10 -0
- data/docs/ServiceusagemetricsData.md +16 -0
- data/docs/Serviceusagetype.md +11 -0
- data/docs/Serviceusagetypes.md +10 -0
- data/docs/TlsCertificateBlobResponse.md +10 -0
- data/docs/TlsCertificatesApi.md +38 -0
- data/docs/TlsDnsRecord.md +1 -2
- data/docs/UpdateDashboardRequest.md +12 -0
- data/docs/Values.md +1 -1
- data/lib/fastly/api/billing_invoices_api.rb +62 -6
- data/lib/fastly/api/billing_usage_metrics_api.rb +213 -0
- data/lib/fastly/api/content_api.rb +2 -2
- data/lib/fastly/api/logging_datadog_api.rb +2 -2
- data/lib/fastly/api/logging_kafka_api.rb +2 -2
- data/lib/fastly/api/logging_logentries_api.rb +4 -4
- data/lib/fastly/api/logging_splunk_api.rb +4 -4
- data/lib/fastly/api/logging_syslog_api.rb +4 -4
- data/lib/fastly/api/observability_custom_dashboards_api.rb +333 -0
- data/lib/fastly/api/tls_certificates_api.rb +63 -0
- data/lib/fastly/configuration.rb +54 -0
- data/lib/fastly/models/async_response.rb +225 -0
- data/lib/fastly/models/create_dashboard_request.rb +245 -0
- data/lib/fastly/models/dashboard.rb +290 -0
- data/lib/fastly/models/dashboard_item.rb +368 -0
- data/lib/fastly/models/dashboard_item_property_data_source.rb +271 -0
- data/lib/fastly/models/dashboard_item_property_data_source_property_config.rb +244 -0
- data/lib/fastly/models/dashboard_item_property_visualization.rb +271 -0
- data/lib/fastly/models/dashboard_item_property_visualization_property_config.rb +303 -0
- data/lib/fastly/models/dashboard_property_created_by.rb +208 -0
- data/lib/fastly/models/dashboard_property_updated_by.rb +208 -0
- data/lib/fastly/models/domain_inspector_measurements.rb +1 -1
- data/lib/fastly/models/{invoice_response.rb → eom_invoice_response.rb} +3 -3
- data/lib/fastly/models/get_service_level_usage_response.rb +223 -0
- data/lib/fastly/models/get_service_level_usage_types_response.rb +225 -0
- data/lib/fastly/models/included_with_tls_configuration.rb +218 -0
- data/lib/fastly/models/included_with_tls_configuration_item.rb +237 -0
- data/lib/fastly/models/invoicelineitems.rb +5 -5
- data/lib/fastly/models/list_dashboards_response.rb +229 -0
- data/lib/fastly/models/{list_invoices_response.rb → list_eom_invoices_response.rb} +3 -3
- data/lib/fastly/models/logging_datadog_additional.rb +2 -2
- data/lib/fastly/models/logging_datadog_response.rb +2 -2
- data/lib/fastly/models/logging_kafka_additional.rb +2 -2
- data/lib/fastly/models/logging_kafka_response.rb +2 -2
- data/lib/fastly/models/logging_kafka_response_post.rb +2 -2
- data/lib/fastly/models/logging_logentries_additional.rb +2 -2
- data/lib/fastly/models/logging_logentries_response.rb +2 -2
- data/lib/fastly/models/logging_splunk_additional.rb +2 -2
- data/lib/fastly/models/logging_splunk_response.rb +2 -2
- data/lib/fastly/models/logging_syslog_additional.rb +2 -2
- data/lib/fastly/models/logging_syslog_response.rb +2 -2
- data/lib/fastly/models/{logging_use_tls.rb → logging_use_tls_string.rb} +5 -5
- data/lib/fastly/models/mtd_invoice_response.rb +275 -0
- data/lib/fastly/models/mtdinvoice.rb +268 -0
- data/lib/fastly/models/mtdlineitems.rb +297 -0
- data/lib/fastly/models/realtime_entry_aggregated.rb +14 -4
- data/lib/fastly/models/realtime_measurements.rb +14 -4
- data/lib/fastly/models/relationship_default_ecdsa_tls_certificate.rb +216 -0
- data/lib/fastly/models/relationship_default_ecdsa_tls_certificate_default_ecdsa_certificate.rb +216 -0
- data/lib/fastly/models/relationship_default_ecdsa_tls_certificate_default_ecdsa_certificate_data.rb +228 -0
- data/lib/fastly/models/relationship_default_tls_certificate.rb +216 -0
- data/lib/fastly/models/relationship_default_tls_certificate_default_certificate.rb +216 -0
- data/lib/fastly/models/relationship_default_tls_certificate_default_certificate_data.rb +228 -0
- data/lib/fastly/models/{relationship_tls_dns_records.rb → relationship_tls_dns_records_request.rb} +4 -4
- data/lib/fastly/models/relationship_tls_dns_records_request_dns_records.rb +218 -0
- data/lib/fastly/models/{relationship_member_tls_dns_record.rb → relationship_tls_dns_records_request_dns_records_data.rb} +3 -3
- data/lib/fastly/models/relationship_tls_dns_records_response.rb +216 -0
- data/lib/fastly/models/relationship_tls_dns_records_response_dns_records.rb +218 -0
- data/lib/fastly/models/relationship_tls_dns_records_response_dns_records_data.rb +227 -0
- data/lib/fastly/models/relationships_for_tls_configuration.rb +1 -1
- data/lib/fastly/models/results.rb +11 -1
- data/lib/fastly/models/serviceusagemetric.rb +246 -0
- data/lib/fastly/models/{relationship_tls_dns_record.rb → serviceusagemetrics.rb} +10 -10
- data/lib/fastly/models/serviceusagemetrics_data.rb +276 -0
- data/lib/fastly/models/serviceusagetype.rb +227 -0
- data/lib/fastly/models/{relationship_tls_dns_record_dns_record.rb → serviceusagetypes.rb} +4 -4
- data/lib/fastly/models/tls_certificate_blob_response.rb +217 -0
- data/lib/fastly/models/tls_dns_record.rb +48 -12
- data/lib/fastly/models/update_dashboard_request.rb +240 -0
- data/lib/fastly/models/values.rb +1 -1
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +42 -7
- data/sig.json +1 -1
- metadata +86 -16
@@ -0,0 +1,229 @@
|
|
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 ListDashboardsResponse
|
16
|
+
attr_accessor :data
|
17
|
+
|
18
|
+
# Meta for the pagination.
|
19
|
+
attr_accessor :meta
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'data' => :'data',
|
25
|
+
:'meta' => :'meta'
|
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
|
+
:'data' => :'Array<Dashboard>',
|
38
|
+
:'meta' => :'Object'
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# List of attributes with nullable: true
|
43
|
+
def self.fastly_nullable
|
44
|
+
Set.new([
|
45
|
+
:'meta'
|
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::ListDashboardsResponse` 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::ListDashboardsResponse`. 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?(:'data')
|
65
|
+
if (value = attributes[:'data']).is_a?(Array)
|
66
|
+
self.data = value
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.key?(:'meta')
|
71
|
+
self.meta = attributes[:'meta']
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
76
|
+
# @return Array for valid properties with the reasons
|
77
|
+
def list_invalid_properties
|
78
|
+
invalid_properties = Array.new
|
79
|
+
invalid_properties
|
80
|
+
end
|
81
|
+
|
82
|
+
# Check to see if the all the properties in the model are valid
|
83
|
+
# @return true if the model is valid
|
84
|
+
def valid?
|
85
|
+
true
|
86
|
+
end
|
87
|
+
|
88
|
+
# Checks equality by comparing each attribute.
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def ==(o)
|
91
|
+
return true if self.equal?(o)
|
92
|
+
self.class == o.class &&
|
93
|
+
data == o.data &&
|
94
|
+
meta == o.meta
|
95
|
+
end
|
96
|
+
|
97
|
+
# @see the `==` method
|
98
|
+
# @param [Object] Object to be compared
|
99
|
+
def eql?(o)
|
100
|
+
self == o
|
101
|
+
end
|
102
|
+
|
103
|
+
# Calculates hash code according to all attributes.
|
104
|
+
# @return [Integer] Hash code
|
105
|
+
def hash
|
106
|
+
[data, meta].hash
|
107
|
+
end
|
108
|
+
|
109
|
+
# Builds the object from hash
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
+
# @return [Object] Returns the model itself
|
112
|
+
def self.build_from_hash(attributes)
|
113
|
+
new.build_from_hash(attributes)
|
114
|
+
end
|
115
|
+
|
116
|
+
# Builds the object from hash
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
+
# @return [Object] Returns the model itself
|
119
|
+
def build_from_hash(attributes)
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
121
|
+
self.class.fastly_types.each_pair do |key, type|
|
122
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
|
123
|
+
self.send("#{key}=", nil)
|
124
|
+
elsif type =~ /\AArray<(.*)>/i
|
125
|
+
# check to ensure the input is an array given that the attribute
|
126
|
+
# is documented as an array but the input is not
|
127
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
129
|
+
end
|
130
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
131
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
self
|
136
|
+
end
|
137
|
+
|
138
|
+
# Deserializes the data based on type
|
139
|
+
# @param string type Data type
|
140
|
+
# @param string value Value to be deserialized
|
141
|
+
# @return [Object] Deserialized data
|
142
|
+
def _deserialize(type, value)
|
143
|
+
case type.to_sym
|
144
|
+
when :Time
|
145
|
+
Time.parse(value)
|
146
|
+
when :Date
|
147
|
+
Date.parse(value)
|
148
|
+
when :String
|
149
|
+
value.to_s
|
150
|
+
when :Integer
|
151
|
+
value.to_i
|
152
|
+
when :Float
|
153
|
+
value.to_f
|
154
|
+
when :Boolean
|
155
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
156
|
+
true
|
157
|
+
else
|
158
|
+
false
|
159
|
+
end
|
160
|
+
when :Object
|
161
|
+
# generic object (usually a Hash), return directly
|
162
|
+
value
|
163
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
164
|
+
inner_type = Regexp.last_match[:inner_type]
|
165
|
+
value.map { |v| _deserialize(inner_type, v) }
|
166
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
167
|
+
k_type = Regexp.last_match[:k_type]
|
168
|
+
v_type = Regexp.last_match[:v_type]
|
169
|
+
{}.tap do |hash|
|
170
|
+
value.each do |k, v|
|
171
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
else # model
|
175
|
+
# models (e.g. Pet) or oneOf
|
176
|
+
klass = Fastly.const_get(type)
|
177
|
+
klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the string representation of the object
|
182
|
+
# @return [String] String presentation of the object
|
183
|
+
def to_s
|
184
|
+
to_hash.to_s
|
185
|
+
end
|
186
|
+
|
187
|
+
# to_body is an alias to to_hash (backward compatibility)
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_body
|
190
|
+
to_hash
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the object in the form of hash
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
195
|
+
def to_hash
|
196
|
+
hash = {}
|
197
|
+
self.class.attribute_map.each_pair do |attr, param|
|
198
|
+
value = self.send(attr)
|
199
|
+
if value.nil?
|
200
|
+
is_nullable = self.class.fastly_nullable.include?(attr)
|
201
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
202
|
+
end
|
203
|
+
|
204
|
+
hash[param] = _to_hash(value)
|
205
|
+
end
|
206
|
+
hash
|
207
|
+
end
|
208
|
+
|
209
|
+
# Outputs non-array value in the form of hash
|
210
|
+
# For object, use to_hash. Otherwise, just return the value
|
211
|
+
# @param [Object] value Any valid value
|
212
|
+
# @return [Hash] Returns the value in the form of hash
|
213
|
+
def _to_hash(value)
|
214
|
+
if value.is_a?(Array)
|
215
|
+
value.compact.map { |v| _to_hash(v) }
|
216
|
+
elsif value.is_a?(Hash)
|
217
|
+
{}.tap do |hash|
|
218
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
219
|
+
end
|
220
|
+
elsif value.respond_to? :to_hash
|
221
|
+
value.to_hash
|
222
|
+
else
|
223
|
+
value
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
end
|
228
|
+
|
229
|
+
end
|
@@ -12,7 +12,7 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
15
|
+
class ListEomInvoicesResponse
|
16
16
|
attr_accessor :data
|
17
17
|
|
18
18
|
attr_accessor :meta
|
@@ -55,13 +55,13 @@ module Fastly
|
|
55
55
|
# @param [Hash] attributes Model attributes in the form of hash
|
56
56
|
def initialize(attributes = {})
|
57
57
|
if (!attributes.is_a?(Hash))
|
58
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::ListEomInvoicesResponse` initialize method"
|
59
59
|
end
|
60
60
|
|
61
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
62
62
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
63
63
|
if (!self.class.attribute_map.key?(k.to_sym))
|
64
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::
|
64
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::ListEomInvoicesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
65
65
|
end
|
66
66
|
h[k.to_sym] = v
|
67
67
|
}
|
@@ -115,7 +115,7 @@ module Fastly
|
|
115
115
|
# Check to see if the all the properties in the model are valid
|
116
116
|
# @return true if the model is valid
|
117
117
|
def valid?
|
118
|
-
region_validator = EnumAttributeValidator.new('String', ["US", "EU"])
|
118
|
+
region_validator = EnumAttributeValidator.new('String', ["US", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"])
|
119
119
|
return false unless region_validator.valid?(@region)
|
120
120
|
true
|
121
121
|
end
|
@@ -123,7 +123,7 @@ module Fastly
|
|
123
123
|
# Custom attribute writer method checking allowed values (enum).
|
124
124
|
# @param [Object] region Object to be assigned
|
125
125
|
def region=(region)
|
126
|
-
validator = EnumAttributeValidator.new('String', ["US", "EU"])
|
126
|
+
validator = EnumAttributeValidator.new('String', ["US", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"])
|
127
127
|
unless validator.valid?(region)
|
128
128
|
fail ArgumentError, "invalid value for \"region\", must be one of #{validator.allowable_values}."
|
129
129
|
end
|
@@ -215,7 +215,7 @@ module Fastly
|
|
215
215
|
return false unless placement_validator.valid?(@placement)
|
216
216
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
217
217
|
return false unless format_version_validator.valid?(@format_version)
|
218
|
-
region_validator = EnumAttributeValidator.new('String', ["US", "EU"])
|
218
|
+
region_validator = EnumAttributeValidator.new('String', ["US", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"])
|
219
219
|
return false unless region_validator.valid?(@region)
|
220
220
|
true
|
221
221
|
end
|
@@ -243,7 +243,7 @@ module Fastly
|
|
243
243
|
# Custom attribute writer method checking allowed values (enum).
|
244
244
|
# @param [Object] region Object to be assigned
|
245
245
|
def region=(region)
|
246
|
-
validator = EnumAttributeValidator.new('String', ["US", "EU"])
|
246
|
+
validator = EnumAttributeValidator.new('String', ["US", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"])
|
247
247
|
unless validator.valid?(region)
|
248
248
|
fail ArgumentError, "invalid value for \"region\", must be one of #{validator.allowable_values}."
|
249
249
|
end
|
@@ -97,7 +97,7 @@ module Fastly
|
|
97
97
|
:'auth_method' => :'String',
|
98
98
|
:'user' => :'String',
|
99
99
|
:'password' => :'String',
|
100
|
-
:'use_tls' => :'
|
100
|
+
:'use_tls' => :'LoggingUseTlsString'
|
101
101
|
}
|
102
102
|
end
|
103
103
|
|
@@ -166,7 +166,7 @@ module Fastly
|
|
166
166
|
if attributes.key?(:'use_tls')
|
167
167
|
self.use_tls = attributes[:'use_tls']
|
168
168
|
else
|
169
|
-
self.use_tls =
|
169
|
+
self.use_tls = '0'
|
170
170
|
end
|
171
171
|
end
|
172
172
|
|
@@ -165,7 +165,7 @@ module Fastly
|
|
165
165
|
:'auth_method' => :'String',
|
166
166
|
:'user' => :'String',
|
167
167
|
:'password' => :'String',
|
168
|
-
:'use_tls' => :'
|
168
|
+
:'use_tls' => :'LoggingUseTlsString'
|
169
169
|
}
|
170
170
|
end
|
171
171
|
|
@@ -322,7 +322,7 @@ module Fastly
|
|
322
322
|
if attributes.key?(:'use_tls')
|
323
323
|
self.use_tls = attributes[:'use_tls']
|
324
324
|
else
|
325
|
-
self.use_tls =
|
325
|
+
self.use_tls = '0'
|
326
326
|
end
|
327
327
|
end
|
328
328
|
|
@@ -165,7 +165,7 @@ module Fastly
|
|
165
165
|
:'auth_method' => :'String',
|
166
166
|
:'user' => :'String',
|
167
167
|
:'password' => :'String',
|
168
|
-
:'use_tls' => :'
|
168
|
+
:'use_tls' => :'LoggingUseTlsString'
|
169
169
|
}
|
170
170
|
end
|
171
171
|
|
@@ -323,7 +323,7 @@ module Fastly
|
|
323
323
|
if attributes.key?(:'use_tls')
|
324
324
|
self.use_tls = attributes[:'use_tls']
|
325
325
|
else
|
326
|
-
self.use_tls =
|
326
|
+
self.use_tls = '0'
|
327
327
|
end
|
328
328
|
end
|
329
329
|
|
@@ -66,7 +66,7 @@ module Fastly
|
|
66
66
|
{
|
67
67
|
:'port' => :'Integer',
|
68
68
|
:'token' => :'String',
|
69
|
-
:'use_tls' => :'
|
69
|
+
:'use_tls' => :'LoggingUseTlsString',
|
70
70
|
:'region' => :'String'
|
71
71
|
}
|
72
72
|
end
|
@@ -105,7 +105,7 @@ module Fastly
|
|
105
105
|
if attributes.key?(:'use_tls')
|
106
106
|
self.use_tls = attributes[:'use_tls']
|
107
107
|
else
|
108
|
-
self.use_tls =
|
108
|
+
self.use_tls = '0'
|
109
109
|
end
|
110
110
|
|
111
111
|
if attributes.key?(:'region')
|
@@ -109,7 +109,7 @@ module Fastly
|
|
109
109
|
:'format_version' => :'String',
|
110
110
|
:'port' => :'Integer',
|
111
111
|
:'token' => :'String',
|
112
|
-
:'use_tls' => :'
|
112
|
+
:'use_tls' => :'LoggingUseTlsString',
|
113
113
|
:'region' => :'String',
|
114
114
|
:'created_at' => :'Time',
|
115
115
|
:'deleted_at' => :'Time',
|
@@ -192,7 +192,7 @@ module Fastly
|
|
192
192
|
if attributes.key?(:'use_tls')
|
193
193
|
self.use_tls = attributes[:'use_tls']
|
194
194
|
else
|
195
|
-
self.use_tls =
|
195
|
+
self.use_tls = '0'
|
196
196
|
end
|
197
197
|
|
198
198
|
if attributes.key?(:'region')
|
@@ -40,7 +40,7 @@ module Fastly
|
|
40
40
|
{
|
41
41
|
:'url' => :'String',
|
42
42
|
:'token' => :'String',
|
43
|
-
:'use_tls' => :'
|
43
|
+
:'use_tls' => :'LoggingUseTlsString'
|
44
44
|
}
|
45
45
|
end
|
46
46
|
|
@@ -76,7 +76,7 @@ module Fastly
|
|
76
76
|
if attributes.key?(:'use_tls')
|
77
77
|
self.use_tls = attributes[:'use_tls']
|
78
78
|
else
|
79
|
-
self.use_tls =
|
79
|
+
self.use_tls = '0'
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
@@ -135,7 +135,7 @@ module Fastly
|
|
135
135
|
:'request_max_bytes' => :'Integer',
|
136
136
|
:'url' => :'String',
|
137
137
|
:'token' => :'String',
|
138
|
-
:'use_tls' => :'
|
138
|
+
:'use_tls' => :'LoggingUseTlsString',
|
139
139
|
:'created_at' => :'Time',
|
140
140
|
:'deleted_at' => :'Time',
|
141
141
|
:'updated_at' => :'Time',
|
@@ -257,7 +257,7 @@ module Fastly
|
|
257
257
|
if attributes.key?(:'use_tls')
|
258
258
|
self.use_tls = attributes[:'use_tls']
|
259
259
|
else
|
260
|
-
self.use_tls =
|
260
|
+
self.use_tls = '0'
|
261
261
|
end
|
262
262
|
|
263
263
|
if attributes.key?(:'created_at')
|
@@ -49,7 +49,7 @@ module Fastly
|
|
49
49
|
:'hostname' => :'String',
|
50
50
|
:'ipv4' => :'String',
|
51
51
|
:'token' => :'String',
|
52
|
-
:'use_tls' => :'
|
52
|
+
:'use_tls' => :'LoggingUseTlsString'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
@@ -99,7 +99,7 @@ module Fastly
|
|
99
99
|
if attributes.key?(:'use_tls')
|
100
100
|
self.use_tls = attributes[:'use_tls']
|
101
101
|
else
|
102
|
-
self.use_tls =
|
102
|
+
self.use_tls = '0'
|
103
103
|
end
|
104
104
|
end
|
105
105
|
|
@@ -144,7 +144,7 @@ module Fastly
|
|
144
144
|
:'hostname' => :'String',
|
145
145
|
:'ipv4' => :'String',
|
146
146
|
:'token' => :'String',
|
147
|
-
:'use_tls' => :'
|
147
|
+
:'use_tls' => :'LoggingUseTlsString',
|
148
148
|
:'created_at' => :'Time',
|
149
149
|
:'deleted_at' => :'Time',
|
150
150
|
:'updated_at' => :'Time',
|
@@ -278,7 +278,7 @@ module Fastly
|
|
278
278
|
if attributes.key?(:'use_tls')
|
279
279
|
self.use_tls = attributes[:'use_tls']
|
280
280
|
else
|
281
|
-
self.use_tls =
|
281
|
+
self.use_tls = '0'
|
282
282
|
end
|
283
283
|
|
284
284
|
if attributes.key?(:'created_at')
|
@@ -12,9 +12,9 @@ require 'date'
|
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Fastly
|
15
|
-
class
|
16
|
-
no_tls = 0.freeze
|
17
|
-
use_tls = 1.freeze
|
15
|
+
class LoggingUseTlsString
|
16
|
+
no_tls = "0".freeze
|
17
|
+
use_tls = "1".freeze
|
18
18
|
|
19
19
|
# Builds the enum from string
|
20
20
|
# @param [String] The enum value in the form of the string
|
@@ -27,8 +27,8 @@ module Fastly
|
|
27
27
|
# @param [String] The enum value in the form of the string
|
28
28
|
# @return [String] The enum value
|
29
29
|
def build_from_hash(value)
|
30
|
-
constantValues =
|
31
|
-
raise "Invalid ENUM value #{value} for class #
|
30
|
+
constantValues = LoggingUseTlsString.constants.select { |c| LoggingUseTlsString::const_get(c) == value }
|
31
|
+
raise "Invalid ENUM value #{value} for class #LoggingUseTlsString" if constantValues.empty?
|
32
32
|
value
|
33
33
|
end
|
34
34
|
end
|