fastly 4.1.0 → 4.2.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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +7 -11
  5. data/docs/Backend.md +1 -1
  6. data/docs/BackendApi.md +4 -4
  7. data/docs/BackendResponse.md +1 -1
  8. data/docs/EnabledProductResponse.md +12 -0
  9. data/docs/{EnabledProductProduct.md → EnabledProductResponseLinks.md} +3 -3
  10. data/docs/{ResourceCreateAllOf.md → EnabledProductResponseProduct.md} +3 -2
  11. data/docs/{EnabledProductLinks.md → EnabledProductResponseService.md} +3 -3
  12. data/docs/EnabledProductsApi.md +7 -7
  13. data/docs/EventsApi.md +2 -0
  14. data/docs/HistoricalApi.md +10 -10
  15. data/docs/{GetStoresResponse.md → InlineResponse2002.md} +2 -2
  16. data/docs/{GetStoresResponseMeta.md → InlineResponse2002Meta.md} +1 -1
  17. data/docs/ObjectStoreApi.md +3 -166
  18. data/docs/Pop.md +7 -4
  19. data/docs/PopCoordinates.md +2 -4
  20. data/docs/RealtimeMeasurements.md +4 -2
  21. data/docs/Resource.md +2 -1
  22. data/docs/ResourceApi.md +34 -32
  23. data/docs/ResourceResponse.md +3 -3
  24. data/docs/ResourceResponseAllOf.md +1 -1
  25. data/docs/Results.md +5 -3
  26. data/docs/TlsSubscriptionResponseAttributes.md +1 -1
  27. data/docs/TlsSubscriptionResponseAttributesAllOf.md +1 -1
  28. data/docs/TlsSubscriptionsApi.md +3 -3
  29. data/lib/fastly/api/backend_api.rb +4 -4
  30. data/lib/fastly/api/enabled_products_api.rb +12 -12
  31. data/lib/fastly/api/events_api.rb +3 -0
  32. data/lib/fastly/api/historical_api.rb +10 -10
  33. data/lib/fastly/api/object_store_api.rb +5 -289
  34. data/lib/fastly/api/purge_api.rb +1 -1
  35. data/lib/fastly/api/resource_api.rb +51 -48
  36. data/lib/fastly/api/tls_subscriptions_api.rb +4 -4
  37. data/lib/fastly/models/backend.rb +1 -1
  38. data/lib/fastly/models/backend_response.rb +1 -1
  39. data/lib/fastly/models/{enabled_product.rb → enabled_product_response.rb} +6 -6
  40. data/lib/fastly/models/{enabled_product_links.rb → enabled_product_response_links.rb} +5 -3
  41. data/lib/fastly/models/{enabled_product_product.rb → enabled_product_response_product.rb} +5 -3
  42. data/lib/fastly/models/{key_response.rb → enabled_product_response_service.rb} +18 -18
  43. data/lib/fastly/models/{get_stores_response.rb → inline_response2002.rb} +4 -4
  44. data/lib/fastly/models/{get_stores_response_meta.rb → inline_response2002_meta.rb} +3 -3
  45. data/lib/fastly/models/pop.rb +121 -1
  46. data/lib/fastly/models/pop_coordinates.rb +12 -19
  47. data/lib/fastly/models/realtime_measurements.rb +23 -3
  48. data/lib/fastly/models/resource.rb +12 -2
  49. data/lib/fastly/models/resource_response.rb +23 -23
  50. data/lib/fastly/models/resource_response_all_of.rb +1 -1
  51. data/lib/fastly/models/results.rb +24 -4
  52. data/lib/fastly/models/tls_subscription_response_attributes.rb +2 -2
  53. data/lib/fastly/models/tls_subscription_response_attributes_all_of.rb +2 -2
  54. data/lib/fastly/models/type_resource.rb +2 -0
  55. data/lib/fastly/version.rb +1 -1
  56. data/lib/fastly.rb +6 -8
  57. data/sig.json +1 -1
  58. metadata +14 -18
  59. data/docs/EnabledProduct.md +0 -12
  60. data/docs/KeyResponse.md +0 -11
  61. data/docs/ResourceCreate.md +0 -11
  62. data/lib/fastly/models/resource_create.rb +0 -235
  63. data/lib/fastly/models/resource_create_all_of.rb +0 -217
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class EnabledProduct
15
+ class EnabledProductResponse
16
16
  attr_accessor :product
17
17
 
18
18
  attr_accessor :service
@@ -36,9 +36,9 @@ module Fastly
36
36
  # Attribute type mapping.
37
37
  def self.fastly_types
38
38
  {
39
- :'product' => :'EnabledProductProduct',
40
- :'service' => :'EnabledProductProduct',
41
- :'_links' => :'EnabledProductLinks'
39
+ :'product' => :'EnabledProductResponseProduct',
40
+ :'service' => :'EnabledProductResponseService',
41
+ :'_links' => :'EnabledProductResponseLinks'
42
42
  }
43
43
  end
44
44
 
@@ -52,13 +52,13 @@ module Fastly
52
52
  # @param [Hash] attributes Model attributes in the form of hash
53
53
  def initialize(attributes = {})
54
54
  if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::EnabledProduct` initialize method"
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::EnabledProductResponse` initialize method"
56
56
  end
57
57
 
58
58
  # check to see if the attribute exists and convert string to symbol for hash key
59
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
60
  if (!self.class.attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::EnabledProduct`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::EnabledProductResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
62
  end
63
63
  h[k.to_sym] = v
64
64
  }
@@ -12,9 +12,11 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class EnabledProductLinks
15
+ class EnabledProductResponseLinks
16
+ # Location of resource
16
17
  attr_accessor :_self
17
18
 
19
+ # Location of the service resource
18
20
  attr_accessor :service
19
21
 
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -48,13 +50,13 @@ module Fastly
48
50
  # @param [Hash] attributes Model attributes in the form of hash
49
51
  def initialize(attributes = {})
50
52
  if (!attributes.is_a?(Hash))
51
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::EnabledProductLinks` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::EnabledProductResponseLinks` initialize method"
52
54
  end
53
55
 
54
56
  # check to see if the attribute exists and convert string to symbol for hash key
55
57
  attributes = attributes.each_with_object({}) { |(k, v), h|
56
58
  if (!self.class.attribute_map.key?(k.to_sym))
57
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::EnabledProductLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::EnabledProductResponseLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
60
  end
59
61
  h[k.to_sym] = v
60
62
  }
@@ -12,9 +12,11 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class EnabledProductProduct
15
+ class EnabledProductResponseProduct
16
+ # Product identifier
16
17
  attr_accessor :id
17
18
 
19
+ # Name of the object
18
20
  attr_accessor :object
19
21
 
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -48,13 +50,13 @@ module Fastly
48
50
  # @param [Hash] attributes Model attributes in the form of hash
49
51
  def initialize(attributes = {})
50
52
  if (!attributes.is_a?(Hash))
51
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::EnabledProductProduct` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::EnabledProductResponseProduct` initialize method"
52
54
  end
53
55
 
54
56
  # check to see if the attribute exists and convert string to symbol for hash key
55
57
  attributes = attributes.each_with_object({}) { |(k, v), h|
56
58
  if (!self.class.attribute_map.key?(k.to_sym))
57
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::EnabledProductProduct`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::EnabledProductResponseProduct`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
60
  end
59
61
  h[k.to_sym] = v
60
62
  }
@@ -12,16 +12,18 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class KeyResponse
16
- attr_accessor :data
15
+ class EnabledProductResponseService
16
+ # Service identifier
17
+ attr_accessor :id
17
18
 
18
- attr_accessor :meta
19
+ # Name of the object
20
+ attr_accessor :object
19
21
 
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
21
23
  def self.attribute_map
22
24
  {
23
- :'data' => :'data',
24
- :'meta' => :'meta'
25
+ :'id' => :'id',
26
+ :'object' => :'object'
25
27
  }
26
28
  end
27
29
 
@@ -33,8 +35,8 @@ module Fastly
33
35
  # Attribute type mapping.
34
36
  def self.fastly_types
35
37
  {
36
- :'data' => :'Array<String>',
37
- :'meta' => :'GetStoresResponseMeta'
38
+ :'id' => :'String',
39
+ :'object' => :'String'
38
40
  }
39
41
  end
40
42
 
@@ -48,25 +50,23 @@ module Fastly
48
50
  # @param [Hash] attributes Model attributes in the form of hash
49
51
  def initialize(attributes = {})
50
52
  if (!attributes.is_a?(Hash))
51
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::KeyResponse` initialize method"
53
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::EnabledProductResponseService` initialize method"
52
54
  end
53
55
 
54
56
  # check to see if the attribute exists and convert string to symbol for hash key
55
57
  attributes = attributes.each_with_object({}) { |(k, v), h|
56
58
  if (!self.class.attribute_map.key?(k.to_sym))
57
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::KeyResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::EnabledProductResponseService`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
60
  end
59
61
  h[k.to_sym] = v
60
62
  }
61
63
 
62
- if attributes.key?(:'data')
63
- if (value = attributes[:'data']).is_a?(Array)
64
- self.data = value
65
- end
64
+ if attributes.key?(:'id')
65
+ self.id = attributes[:'id']
66
66
  end
67
67
 
68
- if attributes.key?(:'meta')
69
- self.meta = attributes[:'meta']
68
+ if attributes.key?(:'object')
69
+ self.object = attributes[:'object']
70
70
  end
71
71
  end
72
72
 
@@ -88,8 +88,8 @@ module Fastly
88
88
  def ==(o)
89
89
  return true if self.equal?(o)
90
90
  self.class == o.class &&
91
- data == o.data &&
92
- meta == o.meta
91
+ id == o.id &&
92
+ object == o.object
93
93
  end
94
94
 
95
95
  # @see the `==` method
@@ -101,7 +101,7 @@ module Fastly
101
101
  # Calculates hash code according to all attributes.
102
102
  # @return [Integer] Hash code
103
103
  def hash
104
- [data, meta].hash
104
+ [id, object].hash
105
105
  end
106
106
 
107
107
  # Builds the object from hash
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class GetStoresResponse
15
+ class InlineResponse2002
16
16
  attr_accessor :data
17
17
 
18
18
  attr_accessor :meta
@@ -34,7 +34,7 @@ module Fastly
34
34
  def self.fastly_types
35
35
  {
36
36
  :'data' => :'Array<StoreResponse>',
37
- :'meta' => :'GetStoresResponseMeta'
37
+ :'meta' => :'InlineResponse2002Meta'
38
38
  }
39
39
  end
40
40
 
@@ -48,13 +48,13 @@ module Fastly
48
48
  # @param [Hash] attributes Model attributes in the form of hash
49
49
  def initialize(attributes = {})
50
50
  if (!attributes.is_a?(Hash))
51
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::GetStoresResponse` initialize method"
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::InlineResponse2002` initialize method"
52
52
  end
53
53
 
54
54
  # check to see if the attribute exists and convert string to symbol for hash key
55
55
  attributes = attributes.each_with_object({}) { |(k, v), h|
56
56
  if (!self.class.attribute_map.key?(k.to_sym))
57
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::GetStoresResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::InlineResponse2002`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
58
  end
59
59
  h[k.to_sym] = v
60
60
  }
@@ -13,7 +13,7 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  # Meta for the pagination.
16
- class GetStoresResponseMeta
16
+ class InlineResponse2002Meta
17
17
  # Cursor for the next page.
18
18
  attr_accessor :next_cursor
19
19
 
@@ -51,13 +51,13 @@ module Fastly
51
51
  # @param [Hash] attributes Model attributes in the form of hash
52
52
  def initialize(attributes = {})
53
53
  if (!attributes.is_a?(Hash))
54
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::GetStoresResponseMeta` initialize method"
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::InlineResponse2002Meta` initialize method"
55
55
  end
56
56
 
57
57
  # check to see if the attribute exists and convert string to symbol for hash key
58
58
  attributes = attributes.each_with_object({}) { |(k, v), h|
59
59
  if (!self.class.attribute_map.key?(k.to_sym))
60
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::GetStoresResponseMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::InlineResponse2002Meta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
61
  end
62
62
  h[k.to_sym] = v
63
63
  }
@@ -13,22 +13,58 @@ 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
17
  attr_accessor :code
17
18
 
19
+ # the name of the POP
18
20
  attr_accessor :name
19
21
 
20
22
  attr_accessor :group
21
23
 
24
+ attr_accessor :region
25
+
26
+ # the region used for stats reporting
27
+ attr_accessor :stats_region
28
+
29
+ # the region used for billing
30
+ attr_accessor :billing_region
31
+
22
32
  attr_accessor :coordinates
23
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
24
35
  attr_accessor :shield
25
36
 
37
+ class EnumAttributeValidator
38
+ attr_reader :datatype
39
+ attr_reader :allowable_values
40
+
41
+ def initialize(datatype, allowable_values)
42
+ @allowable_values = allowable_values.map do |value|
43
+ case datatype.to_s
44
+ when /Integer/i
45
+ value.to_i
46
+ when /Float/i
47
+ value.to_f
48
+ else
49
+ value
50
+ end
51
+ end
52
+ end
53
+
54
+ def valid?(value)
55
+ !value || allowable_values.include?(value)
56
+ end
57
+ end
58
+
26
59
  # Attribute mapping from ruby-style variable name to JSON key.
27
60
  def self.attribute_map
28
61
  {
29
62
  :'code' => :'code',
30
63
  :'name' => :'name',
31
64
  :'group' => :'group',
65
+ :'region' => :'region',
66
+ :'stats_region' => :'stats_region',
67
+ :'billing_region' => :'billing_region',
32
68
  :'coordinates' => :'coordinates',
33
69
  :'shield' => :'shield'
34
70
  }
@@ -45,6 +81,9 @@ module Fastly
45
81
  :'code' => :'String',
46
82
  :'name' => :'String',
47
83
  :'group' => :'String',
84
+ :'region' => :'String',
85
+ :'stats_region' => :'String',
86
+ :'billing_region' => :'String',
48
87
  :'coordinates' => :'PopCoordinates',
49
88
  :'shield' => :'String'
50
89
  }
@@ -83,6 +122,18 @@ module Fastly
83
122
  self.group = attributes[:'group']
84
123
  end
85
124
 
125
+ if attributes.key?(:'region')
126
+ self.region = attributes[:'region']
127
+ end
128
+
129
+ if attributes.key?(:'stats_region')
130
+ self.stats_region = attributes[:'stats_region']
131
+ end
132
+
133
+ if attributes.key?(:'billing_region')
134
+ self.billing_region = attributes[:'billing_region']
135
+ end
136
+
86
137
  if attributes.key?(:'coordinates')
87
138
  self.coordinates = attributes[:'coordinates']
88
139
  end
@@ -96,15 +147,81 @@ module Fastly
96
147
  # @return Array for valid properties with the reasons
97
148
  def list_invalid_properties
98
149
  invalid_properties = Array.new
150
+ if @code.nil?
151
+ invalid_properties.push('invalid value for "code", code cannot be nil.')
152
+ end
153
+
154
+ if @name.nil?
155
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
156
+ end
157
+
158
+ if @group.nil?
159
+ invalid_properties.push('invalid value for "group", group cannot be nil.')
160
+ end
161
+
162
+ if @region.nil?
163
+ invalid_properties.push('invalid value for "region", region cannot be nil.')
164
+ end
165
+
166
+ if @stats_region.nil?
167
+ invalid_properties.push('invalid value for "stats_region", stats_region cannot be nil.')
168
+ end
169
+
170
+ if @billing_region.nil?
171
+ invalid_properties.push('invalid value for "billing_region", billing_region cannot be nil.')
172
+ end
173
+
99
174
  invalid_properties
100
175
  end
101
176
 
102
177
  # Check to see if the all the properties in the model are valid
103
178
  # @return true if the model is valid
104
179
  def valid?
180
+ return false if @code.nil?
181
+ return false if @name.nil?
182
+ return false if @group.nil?
183
+ return false if @region.nil?
184
+ region_validator = EnumAttributeValidator.new('String', ["APAC", "Asia", "AF-West", "EU-Central", "EU-East", "EU-West", "Middle-East", "North-America", "SA-South", "SA-East", "SA-West", "SA-North", "South-Africa", "South-America", "US-Central", "US-East", "US-West", "Asia-South"])
185
+ return false unless region_validator.valid?(@region)
186
+ return false if @stats_region.nil?
187
+ stats_region_validator = EnumAttributeValidator.new('String', ["southamerica_std", "africa_std", "anzac", "asia", "europe", "usa", "asia_india", "asia_southkorea"])
188
+ return false unless stats_region_validator.valid?(@stats_region)
189
+ return false if @billing_region.nil?
190
+ billing_region_validator = EnumAttributeValidator.new('String', ["Africa", "Australia", "Asia", "Europe", "India", "North America", "South Korea", "South America"])
191
+ return false unless billing_region_validator.valid?(@billing_region)
105
192
  true
106
193
  end
107
194
 
195
+ # Custom attribute writer method checking allowed values (enum).
196
+ # @param [Object] region Object to be assigned
197
+ def region=(region)
198
+ validator = EnumAttributeValidator.new('String', ["APAC", "Asia", "AF-West", "EU-Central", "EU-East", "EU-West", "Middle-East", "North-America", "SA-South", "SA-East", "SA-West", "SA-North", "South-Africa", "South-America", "US-Central", "US-East", "US-West", "Asia-South"])
199
+ unless validator.valid?(region)
200
+ fail ArgumentError, "invalid value for \"region\", must be one of #{validator.allowable_values}."
201
+ end
202
+ @region = region
203
+ end
204
+
205
+ # Custom attribute writer method checking allowed values (enum).
206
+ # @param [Object] stats_region Object to be assigned
207
+ def stats_region=(stats_region)
208
+ validator = EnumAttributeValidator.new('String', ["southamerica_std", "africa_std", "anzac", "asia", "europe", "usa", "asia_india", "asia_southkorea"])
209
+ unless validator.valid?(stats_region)
210
+ fail ArgumentError, "invalid value for \"stats_region\", must be one of #{validator.allowable_values}."
211
+ end
212
+ @stats_region = stats_region
213
+ end
214
+
215
+ # Custom attribute writer method checking allowed values (enum).
216
+ # @param [Object] billing_region Object to be assigned
217
+ def billing_region=(billing_region)
218
+ validator = EnumAttributeValidator.new('String', ["Africa", "Australia", "Asia", "Europe", "India", "North America", "South Korea", "South America"])
219
+ unless validator.valid?(billing_region)
220
+ fail ArgumentError, "invalid value for \"billing_region\", must be one of #{validator.allowable_values}."
221
+ end
222
+ @billing_region = billing_region
223
+ end
224
+
108
225
  # Checks equality by comparing each attribute.
109
226
  # @param [Object] Object to be compared
110
227
  def ==(o)
@@ -113,6 +230,9 @@ module Fastly
113
230
  code == o.code &&
114
231
  name == o.name &&
115
232
  group == o.group &&
233
+ region == o.region &&
234
+ stats_region == o.stats_region &&
235
+ billing_region == o.billing_region &&
116
236
  coordinates == o.coordinates &&
117
237
  shield == o.shield
118
238
  end
@@ -126,7 +246,7 @@ module Fastly
126
246
  # Calculates hash code according to all attributes.
127
247
  # @return [Integer] Hash code
128
248
  def hash
129
- [code, name, group, coordinates, shield].hash
249
+ [code, name, group, region, stats_region, billing_region, coordinates, shield].hash
130
250
  end
131
251
 
132
252
  # Builds the object from hash
@@ -12,11 +12,8 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
+ # the geographic location of the POP
15
16
  class PopCoordinates
16
- attr_accessor :x
17
-
18
- attr_accessor :y
19
-
20
17
  attr_accessor :latitude
21
18
 
22
19
  attr_accessor :longitude
@@ -24,8 +21,6 @@ module Fastly
24
21
  # Attribute mapping from ruby-style variable name to JSON key.
25
22
  def self.attribute_map
26
23
  {
27
- :'x' => :'x',
28
- :'y' => :'y',
29
24
  :'latitude' => :'latitude',
30
25
  :'longitude' => :'longitude'
31
26
  }
@@ -39,8 +34,6 @@ module Fastly
39
34
  # Attribute type mapping.
40
35
  def self.fastly_types
41
36
  {
42
- :'x' => :'Float',
43
- :'y' => :'Float',
44
37
  :'latitude' => :'Float',
45
38
  :'longitude' => :'Float'
46
39
  }
@@ -67,14 +60,6 @@ module Fastly
67
60
  h[k.to_sym] = v
68
61
  }
69
62
 
70
- if attributes.key?(:'x')
71
- self.x = attributes[:'x']
72
- end
73
-
74
- if attributes.key?(:'y')
75
- self.y = attributes[:'y']
76
- end
77
-
78
63
  if attributes.key?(:'latitude')
79
64
  self.latitude = attributes[:'latitude']
80
65
  end
@@ -88,12 +73,22 @@ module Fastly
88
73
  # @return Array for valid properties with the reasons
89
74
  def list_invalid_properties
90
75
  invalid_properties = Array.new
76
+ if @latitude.nil?
77
+ invalid_properties.push('invalid value for "latitude", latitude cannot be nil.')
78
+ end
79
+
80
+ if @longitude.nil?
81
+ invalid_properties.push('invalid value for "longitude", longitude cannot be nil.')
82
+ end
83
+
91
84
  invalid_properties
92
85
  end
93
86
 
94
87
  # Check to see if the all the properties in the model are valid
95
88
  # @return true if the model is valid
96
89
  def valid?
90
+ return false if @latitude.nil?
91
+ return false if @longitude.nil?
97
92
  true
98
93
  end
99
94
 
@@ -102,8 +97,6 @@ module Fastly
102
97
  def ==(o)
103
98
  return true if self.equal?(o)
104
99
  self.class == o.class &&
105
- x == o.x &&
106
- y == o.y &&
107
100
  latitude == o.latitude &&
108
101
  longitude == o.longitude
109
102
  end
@@ -117,7 +110,7 @@ module Fastly
117
110
  # Calculates hash code according to all attributes.
118
111
  # @return [Integer] Hash code
119
112
  def hash
120
- [x, y, latitude, longitude].hash
113
+ [latitude, longitude].hash
121
114
  end
122
115
 
123
116
  # Builds the object from hash
@@ -608,10 +608,16 @@ module Fastly
608
608
  # Total published messages sent to end users.
609
609
  attr_accessor :fanout_send_publishes
610
610
 
611
- # The total number of reads received for the object store.
611
+ # The total number of class a operations for the object store.
612
+ attr_accessor :object_store_class_a_operations
613
+
614
+ # The total number of class b operations for the object store.
615
+ attr_accessor :object_store_class_b_operations
616
+
617
+ # Use object_store_class_b_operations.
612
618
  attr_accessor :object_store_read_requests
613
619
 
614
- # The total number of writes received for the object store.
620
+ # Use object_store_class_a_operations.
615
621
  attr_accessor :object_store_write_requests
616
622
 
617
623
  # Total header bytes received from end users over Fanout connections.
@@ -842,6 +848,8 @@ module Fastly
842
848
  :'websocket_resp_body_bytes' => :'websocket_resp_body_bytes',
843
849
  :'fanout_recv_publishes' => :'fanout_recv_publishes',
844
850
  :'fanout_send_publishes' => :'fanout_send_publishes',
851
+ :'object_store_class_a_operations' => :'object_store_class_a_operations',
852
+ :'object_store_class_b_operations' => :'object_store_class_b_operations',
845
853
  :'object_store_read_requests' => :'object_store_read_requests',
846
854
  :'object_store_write_requests' => :'object_store_write_requests',
847
855
  :'fanout_req_header_bytes' => :'fanout_req_header_bytes',
@@ -1062,6 +1070,8 @@ module Fastly
1062
1070
  :'websocket_resp_body_bytes' => :'Integer',
1063
1071
  :'fanout_recv_publishes' => :'Integer',
1064
1072
  :'fanout_send_publishes' => :'Integer',
1073
+ :'object_store_class_a_operations' => :'Integer',
1074
+ :'object_store_class_b_operations' => :'Integer',
1065
1075
  :'object_store_read_requests' => :'Integer',
1066
1076
  :'object_store_write_requests' => :'Integer',
1067
1077
  :'fanout_req_header_bytes' => :'Integer',
@@ -1889,6 +1899,14 @@ module Fastly
1889
1899
  self.fanout_send_publishes = attributes[:'fanout_send_publishes']
1890
1900
  end
1891
1901
 
1902
+ if attributes.key?(:'object_store_class_a_operations')
1903
+ self.object_store_class_a_operations = attributes[:'object_store_class_a_operations']
1904
+ end
1905
+
1906
+ if attributes.key?(:'object_store_class_b_operations')
1907
+ self.object_store_class_b_operations = attributes[:'object_store_class_b_operations']
1908
+ end
1909
+
1892
1910
  if attributes.key?(:'object_store_read_requests')
1893
1911
  self.object_store_read_requests = attributes[:'object_store_read_requests']
1894
1912
  end
@@ -2150,6 +2168,8 @@ module Fastly
2150
2168
  websocket_resp_body_bytes == o.websocket_resp_body_bytes &&
2151
2169
  fanout_recv_publishes == o.fanout_recv_publishes &&
2152
2170
  fanout_send_publishes == o.fanout_send_publishes &&
2171
+ object_store_class_a_operations == o.object_store_class_a_operations &&
2172
+ object_store_class_b_operations == o.object_store_class_b_operations &&
2153
2173
  object_store_read_requests == o.object_store_read_requests &&
2154
2174
  object_store_write_requests == o.object_store_write_requests &&
2155
2175
  fanout_req_header_bytes == o.fanout_req_header_bytes &&
@@ -2172,7 +2192,7 @@ module Fastly
2172
2192
  # Calculates hash code according to all attributes.
2173
2193
  # @return [Integer] Hash code
2174
2194
  def hash
2175
- [requests, logging, log, resp_header_bytes, header_size, resp_body_bytes, body_size, hits, miss, pass, synth, errors, hits_time, miss_time, miss_histogram, compute_requests, compute_execution_time_ms, compute_ram_used, compute_request_time_ms, shield, ipv6, imgopto, imgopto_shield, imgopto_transforms, otfp, otfp_shield, otfp_manifests, video, pci, http2, http3, restarts, req_header_bytes, req_body_bytes, bereq_header_bytes, bereq_body_bytes, waf_blocked, waf_logged, waf_passed, attack_req_header_bytes, attack_req_body_bytes, attack_resp_synth_bytes, attack_logged_req_header_bytes, attack_logged_req_body_bytes, attack_blocked_req_header_bytes, attack_blocked_req_body_bytes, attack_passed_req_header_bytes, attack_passed_req_body_bytes, shield_resp_header_bytes, shield_resp_body_bytes, otfp_resp_header_bytes, otfp_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_time, otfp_deliver_time, imgopto_resp_header_bytes, imgopto_resp_body_bytes, imgopto_shield_resp_header_bytes, imgopto_shield_resp_body_bytes, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, 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, uncacheable, pass_time, tls, tls_v10, tls_v11, tls_v12, tls_v13, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, object_size_other, 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, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, log_bytes, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, origin_revalidations, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, shield_revalidations, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, edge_hit_requests, edge_miss_requests, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, origin_cache_fetches, shield_cache_fetches, 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_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, websocket_resp_body_bytes, fanout_recv_publishes, fanout_send_publishes, object_store_read_requests, object_store_write_requests, 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].hash
2195
+ [requests, logging, log, resp_header_bytes, header_size, resp_body_bytes, body_size, hits, miss, pass, synth, errors, hits_time, miss_time, miss_histogram, compute_requests, compute_execution_time_ms, compute_ram_used, compute_request_time_ms, shield, ipv6, imgopto, imgopto_shield, imgopto_transforms, otfp, otfp_shield, otfp_manifests, video, pci, http2, http3, restarts, req_header_bytes, req_body_bytes, bereq_header_bytes, bereq_body_bytes, waf_blocked, waf_logged, waf_passed, attack_req_header_bytes, attack_req_body_bytes, attack_resp_synth_bytes, attack_logged_req_header_bytes, attack_logged_req_body_bytes, attack_blocked_req_header_bytes, attack_blocked_req_body_bytes, attack_passed_req_header_bytes, attack_passed_req_body_bytes, shield_resp_header_bytes, shield_resp_body_bytes, otfp_resp_header_bytes, otfp_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_time, otfp_deliver_time, imgopto_resp_header_bytes, imgopto_resp_body_bytes, imgopto_shield_resp_header_bytes, imgopto_shield_resp_body_bytes, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, 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, uncacheable, pass_time, tls, tls_v10, tls_v11, tls_v12, tls_v13, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, object_size_other, 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, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, log_bytes, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, origin_revalidations, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, shield_revalidations, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, edge_hit_requests, edge_miss_requests, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, origin_cache_fetches, shield_cache_fetches, 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_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, websocket_resp_body_bytes, fanout_recv_publishes, fanout_send_publishes, object_store_class_a_operations, object_store_class_b_operations, object_store_read_requests, object_store_write_requests, 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].hash
2176
2196
  end
2177
2197
 
2178
2198
  # Builds the object from hash
@@ -13,12 +13,16 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class Resource
16
- # The name of the resource.
16
+ # The ID of the underlying linked resource.
17
+ attr_accessor :resource_id
18
+
19
+ # The name of the resource link.
17
20
  attr_accessor :name
18
21
 
19
22
  # Attribute mapping from ruby-style variable name to JSON key.
20
23
  def self.attribute_map
21
24
  {
25
+ :'resource_id' => :'resource_id',
22
26
  :'name' => :'name'
23
27
  }
24
28
  end
@@ -31,6 +35,7 @@ module Fastly
31
35
  # Attribute type mapping.
32
36
  def self.fastly_types
33
37
  {
38
+ :'resource_id' => :'String',
34
39
  :'name' => :'String'
35
40
  }
36
41
  end
@@ -56,6 +61,10 @@ module Fastly
56
61
  h[k.to_sym] = v
57
62
  }
58
63
 
64
+ if attributes.key?(:'resource_id')
65
+ self.resource_id = attributes[:'resource_id']
66
+ end
67
+
59
68
  if attributes.key?(:'name')
60
69
  self.name = attributes[:'name']
61
70
  end
@@ -79,6 +88,7 @@ module Fastly
79
88
  def ==(o)
80
89
  return true if self.equal?(o)
81
90
  self.class == o.class &&
91
+ resource_id == o.resource_id &&
82
92
  name == o.name
83
93
  end
84
94
 
@@ -91,7 +101,7 @@ module Fastly
91
101
  # Calculates hash code according to all attributes.
92
102
  # @return [Integer] Hash code
93
103
  def hash
94
- [name].hash
104
+ [resource_id, name].hash
95
105
  end
96
106
 
97
107
  # Builds the object from hash