fastly 8.0.0 → 8.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +205 -130
  3. data/Gemfile.lock +1 -1
  4. data/README.md +13 -7
  5. data/docs/{ErrorResponse.md → AutomationTokenErrorResponse.md} +1 -1
  6. data/docs/AutomationTokensApi.md +2 -2
  7. data/docs/Backend.md +1 -1
  8. data/docs/BackendApi.md +4 -4
  9. data/docs/BackendResponse.md +1 -1
  10. data/docs/BillingInvoicesApi.md +96 -0
  11. data/docs/CreateResponseObjectRequest.md +16 -0
  12. data/docs/Director.md +1 -1
  13. data/docs/DirectorApi.md +2 -2
  14. data/docs/DirectorResponse.md +1 -1
  15. data/docs/DomainInspectorHistoricalApi.md +4 -4
  16. data/docs/DomainInspectorRealtimeEntry.md +1 -1
  17. data/docs/Error.md +13 -0
  18. data/docs/ErrorResponseData.md +11 -0
  19. data/docs/Invoice.md +18 -0
  20. data/docs/InvoiceResponse.md +18 -0
  21. data/docs/Invoicelineitems.md +18 -0
  22. data/docs/KvStoreApi.md +1 -1
  23. data/docs/ListInvoicesResponse.md +11 -0
  24. data/docs/Listinvoices.md +11 -0
  25. data/docs/LoggingScalyrAdditional.md +1 -1
  26. data/docs/LoggingScalyrApi.md +4 -4
  27. data/docs/LoggingScalyrResponse.md +1 -1
  28. data/docs/Metadata.md +13 -0
  29. data/docs/OriginInspectorHistoricalApi.md +4 -4
  30. data/docs/OriginInspectorRealtimeEntry.md +1 -1
  31. data/docs/PoolAdditional.md +1 -1
  32. data/docs/PoolApi.md +4 -4
  33. data/docs/PoolResponse.md +1 -1
  34. data/docs/PoolResponsePost.md +1 -1
  35. data/docs/Pop.md +2 -2
  36. data/docs/PublishApi.md +1 -1
  37. data/docs/RealtimeEntry.md +1 -1
  38. data/docs/ResponseObjectApi.md +4 -0
  39. data/docs/Results.md +2 -0
  40. data/docs/SecretStoreApi.md +4 -2
  41. data/docs/SecretStoreItemApi.md +2 -2
  42. data/docs/ServiceDetail.md +1 -1
  43. data/docs/ServiceListResponse.md +2 -2
  44. data/docs/ServiceListResponseAllOf.md +2 -2
  45. data/docs/ServiceResponse.md +1 -1
  46. data/docs/ServiceResponseAllOf.md +1 -1
  47. data/docs/TlsConfigurationResponseAttributes.md +2 -2
  48. data/docs/TlsConfigurationResponseAttributesAllOf.md +2 -2
  49. data/docs/TlsCsr.md +10 -0
  50. data/docs/TlsCsrData.md +12 -0
  51. data/docs/TlsCsrDataAttributes.md +20 -0
  52. data/docs/TlsCsrErrorResponse.md +10 -0
  53. data/docs/TlsCsrResponse.md +10 -0
  54. data/docs/TlsCsrResponseAttributes.md +10 -0
  55. data/docs/TlsCsrResponseData.md +13 -0
  56. data/docs/TlsCsrsApi.md +52 -0
  57. data/docs/TlsSubscriptionResponseAttributes.md +1 -0
  58. data/docs/TlsSubscriptionResponseAttributesAllOf.md +1 -0
  59. data/docs/TokensApi.md +1 -1
  60. data/docs/TypeTlsCsr.md +9 -0
  61. data/docs/VclApi.md +1 -1
  62. data/docs/WafActiveRulesApi.md +1 -1
  63. data/lib/fastly/api/automation_tokens_api.rb +3 -3
  64. data/lib/fastly/api/backend_api.rb +4 -4
  65. data/lib/fastly/api/billing_invoices_api.rb +151 -0
  66. data/lib/fastly/api/director_api.rb +2 -2
  67. data/lib/fastly/api/domain_inspector_historical_api.rb +4 -4
  68. data/lib/fastly/api/kv_store_api.rb +2 -2
  69. data/lib/fastly/api/logging_scalyr_api.rb +4 -4
  70. data/lib/fastly/api/origin_inspector_historical_api.rb +4 -4
  71. data/lib/fastly/api/pool_api.rb +4 -4
  72. data/lib/fastly/api/publish_api.rb +2 -2
  73. data/lib/fastly/api/response_object_api.rb +8 -4
  74. data/lib/fastly/api/secret_store_api.rb +5 -2
  75. data/lib/fastly/api/secret_store_item_api.rb +2 -2
  76. data/lib/fastly/api/tls_csrs_api.rb +83 -0
  77. data/lib/fastly/api/tokens_api.rb +2 -2
  78. data/lib/fastly/api/vcl_api.rb +2 -2
  79. data/lib/fastly/api/waf_active_rules_api.rb +2 -2
  80. data/lib/fastly/configuration.rb +18 -0
  81. data/lib/fastly/models/{error_response.rb → automation_token_error_response.rb} +3 -3
  82. data/lib/fastly/models/backend.rb +1 -1
  83. data/lib/fastly/models/backend_response.rb +1 -1
  84. data/lib/fastly/models/create_response_object_request.rb +280 -0
  85. data/lib/fastly/models/director.rb +1 -1
  86. data/lib/fastly/models/director_response.rb +1 -1
  87. data/lib/fastly/models/domain_inspector_realtime_entry.rb +1 -1
  88. data/lib/fastly/models/error.rb +243 -0
  89. data/lib/fastly/models/error_response_data.rb +225 -0
  90. data/lib/fastly/models/event_attributes.rb +2 -2
  91. data/lib/fastly/models/invoice.rb +298 -0
  92. data/lib/fastly/models/invoice_response.rb +305 -0
  93. data/lib/fastly/models/invoicelineitems.rb +297 -0
  94. data/lib/fastly/models/list_invoices_response.rb +234 -0
  95. data/lib/fastly/models/listinvoices.rb +227 -0
  96. data/lib/fastly/models/logging_scalyr_additional.rb +1 -1
  97. data/lib/fastly/models/logging_scalyr_response.rb +1 -1
  98. data/lib/fastly/models/metadata.rb +250 -0
  99. data/lib/fastly/models/origin_inspector_realtime_entry.rb +1 -1
  100. data/lib/fastly/models/pool_additional.rb +1 -1
  101. data/lib/fastly/models/pool_response.rb +1 -1
  102. data/lib/fastly/models/pool_response_post.rb +1 -1
  103. data/lib/fastly/models/pop.rb +2 -2
  104. data/lib/fastly/models/realtime_entry.rb +1 -1
  105. data/lib/fastly/models/relationship_tls_certificate.rb +1 -1
  106. data/lib/fastly/models/relationship_tls_configuration.rb +1 -1
  107. data/lib/fastly/models/results.rb +21 -1
  108. data/lib/fastly/models/service_detail.rb +1 -1
  109. data/lib/fastly/models/service_list_response.rb +2 -2
  110. data/lib/fastly/models/service_list_response_all_of.rb +2 -2
  111. data/lib/fastly/models/service_response.rb +1 -1
  112. data/lib/fastly/models/service_response_all_of.rb +1 -1
  113. data/lib/fastly/models/tls_configuration_response_attributes.rb +2 -2
  114. data/lib/fastly/models/tls_configuration_response_attributes_all_of.rb +2 -2
  115. data/lib/fastly/models/tls_csr.rb +216 -0
  116. data/lib/fastly/models/tls_csr_data.rb +236 -0
  117. data/lib/fastly/models/tls_csr_data_attributes.rb +358 -0
  118. data/lib/fastly/models/tls_csr_error_response.rb +218 -0
  119. data/lib/fastly/models/tls_csr_response.rb +216 -0
  120. data/lib/fastly/models/tls_csr_response_attributes.rb +217 -0
  121. data/lib/fastly/models/tls_csr_response_data.rb +245 -0
  122. data/lib/fastly/models/tls_subscription_data_attributes.rb +2 -2
  123. data/lib/fastly/models/tls_subscription_response_attributes.rb +14 -4
  124. data/lib/fastly/models/tls_subscription_response_attributes_all_of.rb +14 -4
  125. data/lib/fastly/models/type_tls_csr.rb +34 -0
  126. data/lib/fastly/version.rb +1 -1
  127. data/lib/fastly.rb +20 -1
  128. data/sig.json +1 -1
  129. metadata +42 -4
@@ -0,0 +1,250 @@
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://developer.fastly.com/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
+ # Pagination metadata
16
+ class Metadata
17
+ # The token used to request the next set of results.
18
+ attr_accessor :next_cursor
19
+
20
+ # The number of invoices included in the response.
21
+ attr_accessor :limit
22
+
23
+ # The sort order of the invoices in the response.
24
+ attr_accessor :sort
25
+
26
+ # Total number of records available on the backend.
27
+ attr_accessor :total
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'next_cursor' => :'next_cursor',
33
+ :'limit' => :'limit',
34
+ :'sort' => :'sort',
35
+ :'total' => :'total'
36
+ }
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ def self.acceptable_attributes
41
+ attribute_map.values
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.fastly_types
46
+ {
47
+ :'next_cursor' => :'String',
48
+ :'limit' => :'Integer',
49
+ :'sort' => :'String',
50
+ :'total' => :'Integer'
51
+ }
52
+ end
53
+
54
+ # List of attributes with nullable: true
55
+ def self.fastly_nullable
56
+ Set.new([
57
+ ])
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ if (!attributes.is_a?(Hash))
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::Metadata` initialize method"
65
+ end
66
+
67
+ # check to see if the attribute exists and convert string to symbol for hash key
68
+ attributes = attributes.each_with_object({}) { |(k, v), h|
69
+ if (!self.class.attribute_map.key?(k.to_sym))
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::Metadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
+ end
72
+ h[k.to_sym] = v
73
+ }
74
+
75
+ if attributes.key?(:'next_cursor')
76
+ self.next_cursor = attributes[:'next_cursor']
77
+ end
78
+
79
+ if attributes.key?(:'limit')
80
+ self.limit = attributes[:'limit']
81
+ end
82
+
83
+ if attributes.key?(:'sort')
84
+ self.sort = attributes[:'sort']
85
+ else
86
+ self.sort = 'billing_start_date'
87
+ end
88
+
89
+ if attributes.key?(:'total')
90
+ self.total = attributes[:'total']
91
+ end
92
+ end
93
+
94
+ # Show invalid properties with the reasons. Usually used together with valid?
95
+ # @return Array for valid properties with the reasons
96
+ def list_invalid_properties
97
+ invalid_properties = Array.new
98
+ invalid_properties
99
+ end
100
+
101
+ # Check to see if the all the properties in the model are valid
102
+ # @return true if the model is valid
103
+ def valid?
104
+ true
105
+ end
106
+
107
+ # Checks equality by comparing each attribute.
108
+ # @param [Object] Object to be compared
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ next_cursor == o.next_cursor &&
113
+ limit == o.limit &&
114
+ sort == o.sort &&
115
+ total == o.total
116
+ end
117
+
118
+ # @see the `==` method
119
+ # @param [Object] Object to be compared
120
+ def eql?(o)
121
+ self == o
122
+ end
123
+
124
+ # Calculates hash code according to all attributes.
125
+ # @return [Integer] Hash code
126
+ def hash
127
+ [next_cursor, limit, sort, total].hash
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def self.build_from_hash(attributes)
134
+ new.build_from_hash(attributes)
135
+ end
136
+
137
+ # Builds the object from hash
138
+ # @param [Hash] attributes Model attributes in the form of hash
139
+ # @return [Object] Returns the model itself
140
+ def build_from_hash(attributes)
141
+ return nil unless attributes.is_a?(Hash)
142
+ self.class.fastly_types.each_pair do |key, type|
143
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
144
+ self.send("#{key}=", nil)
145
+ elsif type =~ /\AArray<(.*)>/i
146
+ # check to ensure the input is an array given that the attribute
147
+ # is documented as an array but the input is not
148
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
149
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
150
+ end
151
+ elsif !attributes[self.class.attribute_map[key]].nil?
152
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
153
+ end
154
+ end
155
+
156
+ self
157
+ end
158
+
159
+ # Deserializes the data based on type
160
+ # @param string type Data type
161
+ # @param string value Value to be deserialized
162
+ # @return [Object] Deserialized data
163
+ def _deserialize(type, value)
164
+ case type.to_sym
165
+ when :Time
166
+ Time.parse(value)
167
+ when :Date
168
+ Date.parse(value)
169
+ when :String
170
+ value.to_s
171
+ when :Integer
172
+ value.to_i
173
+ when :Float
174
+ value.to_f
175
+ when :Boolean
176
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
177
+ true
178
+ else
179
+ false
180
+ end
181
+ when :Object
182
+ # generic object (usually a Hash), return directly
183
+ value
184
+ when /\AArray<(?<inner_type>.+)>\z/
185
+ inner_type = Regexp.last_match[:inner_type]
186
+ value.map { |v| _deserialize(inner_type, v) }
187
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
188
+ k_type = Regexp.last_match[:k_type]
189
+ v_type = Regexp.last_match[:v_type]
190
+ {}.tap do |hash|
191
+ value.each do |k, v|
192
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
193
+ end
194
+ end
195
+ else # model
196
+ # models (e.g. Pet) or oneOf
197
+ klass = Fastly.const_get(type)
198
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
199
+ end
200
+ end
201
+
202
+ # Returns the string representation of the object
203
+ # @return [String] String presentation of the object
204
+ def to_s
205
+ to_hash.to_s
206
+ end
207
+
208
+ # to_body is an alias to to_hash (backward compatibility)
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_body
211
+ to_hash
212
+ end
213
+
214
+ # Returns the object in the form of hash
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_hash
217
+ hash = {}
218
+ self.class.attribute_map.each_pair do |attr, param|
219
+ value = self.send(attr)
220
+ if value.nil?
221
+ is_nullable = self.class.fastly_nullable.include?(attr)
222
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
223
+ end
224
+
225
+ hash[param] = _to_hash(value)
226
+ end
227
+ hash
228
+ end
229
+
230
+ # Outputs non-array value in the form of hash
231
+ # For object, use to_hash. Otherwise, just return the value
232
+ # @param [Object] value Any valid value
233
+ # @return [Hash] Returns the value in the form of hash
234
+ def _to_hash(value)
235
+ if value.is_a?(Array)
236
+ value.compact.map { |v| _to_hash(v) }
237
+ elsif value.is_a?(Hash)
238
+ {}.tap do |hash|
239
+ value.each { |k, v| hash[k] = _to_hash(v) }
240
+ end
241
+ elsif value.respond_to? :to_hash
242
+ value.to_hash
243
+ else
244
+ value
245
+ end
246
+ end
247
+
248
+ end
249
+
250
+ end
@@ -19,7 +19,7 @@ module Fastly
19
19
  # Groups [measurements](#measurements-data-model) by backend name.
20
20
  attr_accessor :aggregated
21
21
 
22
- # Groups [measurements](#measurements-data-model) by POP, then backend name. See the [POPs API](/reference/api/utils/pops/) for details about POP identifiers.
22
+ # Groups [measurements](#measurements-data-model) by POP, then backend name. See the [POPs API](https://www.fastly.com/documentation/reference/api/utils/pops/) for details about POP identifiers.
23
23
  attr_accessor :datacenter
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -16,7 +16,7 @@ module Fastly
16
16
  # Name for the Pool.
17
17
  attr_accessor :name
18
18
 
19
- # Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding.
19
+ # Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding.
20
20
  attr_accessor :shield
21
21
 
22
22
  # Condition which, if met, will select this configuration during a request. Optional.
@@ -44,7 +44,7 @@ module Fastly
44
44
  # Name for the Pool.
45
45
  attr_accessor :name
46
46
 
47
- # Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding.
47
+ # Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding.
48
48
  attr_accessor :shield
49
49
 
50
50
  # Condition which, if met, will select this configuration during a request. Optional.
@@ -44,7 +44,7 @@ module Fastly
44
44
  # Name for the Pool.
45
45
  attr_accessor :name
46
46
 
47
- # Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding.
47
+ # Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding.
48
48
  attr_accessor :shield
49
49
 
50
50
  # Condition which, if met, will select this configuration during a request. Optional.
@@ -13,7 +13,7 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class Pop
16
- # the three-letter code for the [POP](https://developer.fastly.com/learning/concepts/pop/)
16
+ # the three-letter code for the [POP](https://www.fastly.com/documentation/learning/concepts/pop/)
17
17
  attr_accessor :code
18
18
 
19
19
  # the name of the POP
@@ -31,7 +31,7 @@ module Fastly
31
31
 
32
32
  attr_accessor :coordinates
33
33
 
34
- # the name of the [shield code](https://developer.fastly.com/learning/concepts/shielding/#choosing-a-shield-location) if this POP is suitable for shielding
34
+ # the name of the [shield code](https://www.fastly.com/documentation/learning/concepts/shielding/#choosing-a-shield-location) if this POP is suitable for shielding
35
35
  attr_accessor :shield
36
36
 
37
37
  class EnumAttributeValidator
@@ -18,7 +18,7 @@ module Fastly
18
18
 
19
19
  attr_accessor :aggregated
20
20
 
21
- # Groups [measurements](#measurements-data-model) by POP. See the [POPs API](/reference/api/utils/pops/) for details of POP identifiers.
21
+ # Groups [measurements](#measurements-data-model) by POP. See the [POPs API](https://www.fastly.com/documentation/reference/api/utils/pops/) for details of POP identifiers.
22
22
  attr_accessor :datacenter
23
23
 
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- # The [TLS certificate](/reference/api/tls/custom-certs/certificates/) being used to terminate TLS traffic for a domain. Required.
15
+ # The [TLS certificate](https://www.fastly.com/documentation/reference/api/tls/custom-certs/certificates/) being used to terminate TLS traffic for a domain. Required.
16
16
  class RelationshipTlsCertificate
17
17
  attr_accessor :tls_certificate
18
18
 
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- # The [TLS configuration](/reference/api/tls/custom-certs/configuration/) being used to terminate TLS traffic. Optional.
15
+ # The [TLS configuration](https://www.fastly.com/documentation/reference/api/tls/custom-certs/configuration/) being used to terminate TLS traffic. Optional.
16
16
  class RelationshipTlsConfiguration
17
17
  attr_accessor :tls_configuration
18
18
 
@@ -251,12 +251,18 @@ module Fastly
251
251
  # Total header bytes delivered from the Fastly Image Optimizer service, including shield traffic.
252
252
  attr_accessor :imgopto_resp_header_bytes
253
253
 
254
+ # Number of responses that came from the Fastly Image Optimizer service via a shield.
255
+ attr_accessor :imgopto_shield
256
+
254
257
  # Total body bytes delivered via a shield from the Fastly Image Optimizer service.
255
258
  attr_accessor :imgopto_shield_resp_body_bytes
256
259
 
257
260
  # Total header bytes delivered via a shield from the Fastly Image Optimizer service.
258
261
  attr_accessor :imgopto_shield_resp_header_bytes
259
262
 
263
+ # Number of transforms performed by the Fastly Image Optimizer service.
264
+ attr_accessor :imgopto_transforms
265
+
260
266
  # Number of video responses that came from the Fastly Image Optimizer service.
261
267
  attr_accessor :imgvideo
262
268
 
@@ -776,8 +782,10 @@ module Fastly
776
782
  :'imgopto' => :'imgopto',
777
783
  :'imgopto_resp_body_bytes' => :'imgopto_resp_body_bytes',
778
784
  :'imgopto_resp_header_bytes' => :'imgopto_resp_header_bytes',
785
+ :'imgopto_shield' => :'imgopto_shield',
779
786
  :'imgopto_shield_resp_body_bytes' => :'imgopto_shield_resp_body_bytes',
780
787
  :'imgopto_shield_resp_header_bytes' => :'imgopto_shield_resp_header_bytes',
788
+ :'imgopto_transforms' => :'imgopto_transforms',
781
789
  :'imgvideo' => :'imgvideo',
782
790
  :'imgvideo_frames' => :'imgvideo_frames',
783
791
  :'imgvideo_resp_header_bytes' => :'imgvideo_resp_header_bytes',
@@ -1014,8 +1022,10 @@ module Fastly
1014
1022
  :'imgopto' => :'Integer',
1015
1023
  :'imgopto_resp_body_bytes' => :'Integer',
1016
1024
  :'imgopto_resp_header_bytes' => :'Integer',
1025
+ :'imgopto_shield' => :'Integer',
1017
1026
  :'imgopto_shield_resp_body_bytes' => :'Integer',
1018
1027
  :'imgopto_shield_resp_header_bytes' => :'Integer',
1028
+ :'imgopto_transforms' => :'Integer',
1019
1029
  :'imgvideo' => :'Integer',
1020
1030
  :'imgvideo_frames' => :'Integer',
1021
1031
  :'imgvideo_resp_header_bytes' => :'Integer',
@@ -1503,6 +1513,10 @@ module Fastly
1503
1513
  self.imgopto_resp_header_bytes = attributes[:'imgopto_resp_header_bytes']
1504
1514
  end
1505
1515
 
1516
+ if attributes.key?(:'imgopto_shield')
1517
+ self.imgopto_shield = attributes[:'imgopto_shield']
1518
+ end
1519
+
1506
1520
  if attributes.key?(:'imgopto_shield_resp_body_bytes')
1507
1521
  self.imgopto_shield_resp_body_bytes = attributes[:'imgopto_shield_resp_body_bytes']
1508
1522
  end
@@ -1511,6 +1525,10 @@ module Fastly
1511
1525
  self.imgopto_shield_resp_header_bytes = attributes[:'imgopto_shield_resp_header_bytes']
1512
1526
  end
1513
1527
 
1528
+ if attributes.key?(:'imgopto_transforms')
1529
+ self.imgopto_transforms = attributes[:'imgopto_transforms']
1530
+ end
1531
+
1514
1532
  if attributes.key?(:'imgvideo')
1515
1533
  self.imgvideo = attributes[:'imgvideo']
1516
1534
  end
@@ -2193,8 +2211,10 @@ module Fastly
2193
2211
  imgopto == o.imgopto &&
2194
2212
  imgopto_resp_body_bytes == o.imgopto_resp_body_bytes &&
2195
2213
  imgopto_resp_header_bytes == o.imgopto_resp_header_bytes &&
2214
+ imgopto_shield == o.imgopto_shield &&
2196
2215
  imgopto_shield_resp_body_bytes == o.imgopto_shield_resp_body_bytes &&
2197
2216
  imgopto_shield_resp_header_bytes == o.imgopto_shield_resp_header_bytes &&
2217
+ imgopto_transforms == o.imgopto_transforms &&
2198
2218
  imgvideo == o.imgvideo &&
2199
2219
  imgvideo_frames == o.imgvideo_frames &&
2200
2220
  imgvideo_resp_header_bytes == o.imgvideo_resp_header_bytes &&
@@ -2352,7 +2372,7 @@ module Fastly
2352
2372
  # Calculates hash code according to all attributes.
2353
2373
  # @return [Integer] Hash code
2354
2374
  def hash
2355
- [requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_request_time_billed_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole, bot_challenge_starts, bot_challenge_complete_tokens_passed, bot_challenge_complete_tokens_failed, bot_challenge_complete_tokens_checked, bot_challenge_complete_tokens_disabled, bot_challenge_complete_tokens_issued, bot_challenges_issued, bot_challenges_succeeded, bot_challenges_failed, service_id, start_time].hash
2375
+ [requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgopto_transforms, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_request_time_billed_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole, bot_challenge_starts, bot_challenge_complete_tokens_passed, bot_challenge_complete_tokens_failed, bot_challenge_complete_tokens_checked, bot_challenge_complete_tokens_disabled, bot_challenge_complete_tokens_issued, bot_challenges_issued, bot_challenges_succeeded, bot_challenges_failed, service_id, start_time].hash
2356
2376
  end
2357
2377
 
2358
2378
  # Builds the object from hash
@@ -42,7 +42,7 @@ module Fastly
42
42
  # Whether the service is paused. Services are paused due to a lack of traffic for an extended period of time. Services are resumed either when a draft version is activated or a locked version is cloned and reactivated.
43
43
  attr_accessor :paused
44
44
 
45
- # A list of [versions](/reference/api/services/version/) associated with the service.
45
+ # A list of [versions](https://www.fastly.com/documentation/reference/api/services/version/) associated with the service.
46
46
  attr_accessor :versions
47
47
 
48
48
  attr_accessor :active_version
@@ -36,10 +36,10 @@ module Fastly
36
36
 
37
37
  attr_accessor :id
38
38
 
39
- # Current [version](/reference/api/services/version/) of the service.
39
+ # Current [version](https://www.fastly.com/documentation/reference/api/services/version/) of the service.
40
40
  attr_accessor :version
41
41
 
42
- # A list of [versions](/reference/api/services/version/) associated with the service.
42
+ # A list of [versions](https://www.fastly.com/documentation/reference/api/services/version/) associated with the service.
43
43
  attr_accessor :versions
44
44
 
45
45
  class EnumAttributeValidator
@@ -15,10 +15,10 @@ module Fastly
15
15
  class ServiceListResponseAllOf
16
16
  attr_accessor :id
17
17
 
18
- # Current [version](/reference/api/services/version/) of the service.
18
+ # Current [version](https://www.fastly.com/documentation/reference/api/services/version/) of the service.
19
19
  attr_accessor :version
20
20
 
21
- # A list of [versions](/reference/api/services/version/) associated with the service.
21
+ # A list of [versions](https://www.fastly.com/documentation/reference/api/services/version/) associated with the service.
22
22
  attr_accessor :versions
23
23
 
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -42,7 +42,7 @@ module Fastly
42
42
  # Whether the service is paused. Services are paused due to a lack of traffic for an extended period of time. Services are resumed either when a draft version is activated or a locked version is cloned and reactivated.
43
43
  attr_accessor :paused
44
44
 
45
- # A list of [versions](/reference/api/services/version/) associated with the service.
45
+ # A list of [versions](https://www.fastly.com/documentation/reference/api/services/version/) associated with the service.
46
46
  attr_accessor :versions
47
47
 
48
48
  class EnumAttributeValidator
@@ -21,7 +21,7 @@ module Fastly
21
21
  # Whether the service is paused. Services are paused due to a lack of traffic for an extended period of time. Services are resumed either when a draft version is activated or a locked version is cloned and reactivated.
22
22
  attr_accessor :paused
23
23
 
24
- # A list of [versions](/reference/api/services/version/) associated with the service.
24
+ # A list of [versions](https://www.fastly.com/documentation/reference/api/services/version/) associated with the service.
25
25
  attr_accessor :versions
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -22,7 +22,7 @@ module Fastly
22
22
  # Date and time in ISO 8601 format.
23
23
  attr_accessor :updated_at
24
24
 
25
- # Signifies whether or not Fastly will use this configuration as a default when creating a new [TLS Activation](/reference/api/tls/custom-certs/activations/).
25
+ # Signifies whether or not Fastly will use this configuration as a default when creating a new [TLS Activation](https://www.fastly.com/documentation/reference/api/tls/custom-certs/activations/).
26
26
  attr_accessor :default
27
27
 
28
28
  # HTTP protocols available on your configuration.
@@ -60,7 +60,7 @@ module Fastly
60
60
  :'updated_at' => :'Time',
61
61
  :'default' => :'Boolean',
62
62
  :'http_protocols' => :'Array<String>',
63
- :'tls_protocols' => :'Array<Float>',
63
+ :'tls_protocols' => :'Array<String>',
64
64
  :'bulk' => :'Boolean'
65
65
  }
66
66
  end
@@ -13,7 +13,7 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class TlsConfigurationResponseAttributesAllOf
16
- # Signifies whether or not Fastly will use this configuration as a default when creating a new [TLS Activation](/reference/api/tls/custom-certs/activations/).
16
+ # Signifies whether or not Fastly will use this configuration as a default when creating a new [TLS Activation](https://www.fastly.com/documentation/reference/api/tls/custom-certs/activations/).
17
17
  attr_accessor :default
18
18
 
19
19
  # HTTP protocols available on your configuration.
@@ -45,7 +45,7 @@ module Fastly
45
45
  {
46
46
  :'default' => :'Boolean',
47
47
  :'http_protocols' => :'Array<String>',
48
- :'tls_protocols' => :'Array<Float>',
48
+ :'tls_protocols' => :'Array<String>',
49
49
  :'bulk' => :'Boolean'
50
50
  }
51
51
  end