fastly 5.0.0 → 5.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +15 -8
  5. data/docs/AclResponse.md +1 -1
  6. data/docs/AclResponseAllOf.md +2 -0
  7. data/docs/BulkUpdateConfigStoreItem.md +12 -0
  8. data/docs/{BulkUpdateDictionaryItemAllOf.md → BulkUpdateConfigStoreItemAllOf.md} +1 -1
  9. data/docs/BulkUpdateConfigStoreListRequest.md +10 -0
  10. data/docs/ConfigStore.md +10 -0
  11. data/docs/ConfigStoreApi.md +277 -0
  12. data/docs/ConfigStoreInfoResponse.md +10 -0
  13. data/docs/ConfigStoreItem.md +11 -0
  14. data/docs/ConfigStoreItemApi.md +302 -0
  15. data/docs/ConfigStoreItemResponse.md +15 -0
  16. data/docs/ConfigStoreItemResponseAllOf.md +10 -0
  17. data/docs/ConfigStoreResponse.md +14 -0
  18. data/docs/ConfigStoreResponseAllOf.md +10 -0
  19. data/docs/SchemasSnippetResponse.md +3 -3
  20. data/docs/Snippet.md +1 -1
  21. data/docs/SnippetApi.md +4 -4
  22. data/docs/SnippetResponse.md +3 -3
  23. data/docs/SnippetResponseAllOf.md +2 -0
  24. data/lib/fastly/api/config_store_api.rb +463 -0
  25. data/lib/fastly/api/config_store_item_api.rb +529 -0
  26. data/lib/fastly/api/purge_api.rb +1 -1
  27. data/lib/fastly/api/snippet_api.rb +4 -4
  28. data/lib/fastly/api_client.rb +0 -2
  29. data/lib/fastly/models/acl_response.rb +2 -2
  30. data/lib/fastly/models/acl_response_all_of.rb +20 -1
  31. data/lib/fastly/models/backend.rb +1 -0
  32. data/lib/fastly/models/backend_response.rb +1 -0
  33. data/lib/fastly/models/bulk_update_config_store_item.rb +278 -0
  34. data/lib/fastly/models/{bulk_update_dictionary_item_all_of.rb → bulk_update_config_store_item_all_of.rb} +3 -3
  35. data/lib/fastly/models/bulk_update_config_store_list_request.rb +218 -0
  36. data/lib/fastly/models/bulk_update_dictionary_item.rb +1 -1
  37. data/lib/fastly/models/config_store.rb +217 -0
  38. data/lib/fastly/models/config_store_info_response.rb +217 -0
  39. data/lib/fastly/models/config_store_item.rb +227 -0
  40. data/lib/fastly/models/config_store_item_response.rb +278 -0
  41. data/lib/fastly/models/config_store_item_response_all_of.rb +216 -0
  42. data/lib/fastly/models/config_store_response.rb +269 -0
  43. data/lib/fastly/models/config_store_response_all_of.rb +217 -0
  44. data/lib/fastly/models/schemas_snippet_response.rb +22 -22
  45. data/lib/fastly/models/snippet.rb +2 -2
  46. data/lib/fastly/models/snippet_response.rb +22 -22
  47. data/lib/fastly/models/snippet_response_all_of.rb +20 -1
  48. data/lib/fastly/version.rb +1 -1
  49. data/lib/fastly.rb +12 -1
  50. data/sig.json +1 -1
  51. metadata +26 -4
@@ -0,0 +1,269 @@
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
+ class ConfigStoreResponse
16
+ # Date and time in ISO 8601 format.
17
+ attr_accessor :created_at
18
+
19
+ # Date and time in ISO 8601 format.
20
+ attr_accessor :deleted_at
21
+
22
+ # Date and time in ISO 8601 format.
23
+ attr_accessor :updated_at
24
+
25
+ # The name of the config store.
26
+ attr_accessor :name
27
+
28
+ # An alphanumeric string identifying the config store.
29
+ attr_accessor :id
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'created_at' => :'created_at',
35
+ :'deleted_at' => :'deleted_at',
36
+ :'updated_at' => :'updated_at',
37
+ :'name' => :'name',
38
+ :'id' => :'id'
39
+ }
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.fastly_types
49
+ {
50
+ :'created_at' => :'Time',
51
+ :'deleted_at' => :'Time',
52
+ :'updated_at' => :'Time',
53
+ :'name' => :'String',
54
+ :'id' => :'String'
55
+ }
56
+ end
57
+
58
+ # List of attributes with nullable: true
59
+ def self.fastly_nullable
60
+ Set.new([
61
+ :'created_at',
62
+ :'deleted_at',
63
+ :'updated_at',
64
+ ])
65
+ end
66
+
67
+ # List of class defined in allOf (OpenAPI v3)
68
+ def self.fastly_all_of
69
+ [
70
+ :'ConfigStore',
71
+ :'ConfigStoreResponseAllOf',
72
+ :'Timestamps'
73
+ ]
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Model attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::ConfigStoreResponse` initialize method"
81
+ end
82
+
83
+ # check to see if the attribute exists and convert string to symbol for hash key
84
+ attributes = attributes.each_with_object({}) { |(k, v), h|
85
+ if (!self.class.attribute_map.key?(k.to_sym))
86
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::ConfigStoreResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
87
+ end
88
+ h[k.to_sym] = v
89
+ }
90
+
91
+ if attributes.key?(:'created_at')
92
+ self.created_at = attributes[:'created_at']
93
+ end
94
+
95
+ if attributes.key?(:'deleted_at')
96
+ self.deleted_at = attributes[:'deleted_at']
97
+ end
98
+
99
+ if attributes.key?(:'updated_at')
100
+ self.updated_at = attributes[:'updated_at']
101
+ end
102
+
103
+ if attributes.key?(:'name')
104
+ self.name = attributes[:'name']
105
+ end
106
+
107
+ if attributes.key?(:'id')
108
+ self.id = attributes[:'id']
109
+ end
110
+ end
111
+
112
+ # Show invalid properties with the reasons. Usually used together with valid?
113
+ # @return Array for valid properties with the reasons
114
+ def list_invalid_properties
115
+ invalid_properties = Array.new
116
+ invalid_properties
117
+ end
118
+
119
+ # Check to see if the all the properties in the model are valid
120
+ # @return true if the model is valid
121
+ def valid?
122
+ true
123
+ end
124
+
125
+ # Checks equality by comparing each attribute.
126
+ # @param [Object] Object to be compared
127
+ def ==(o)
128
+ return true if self.equal?(o)
129
+ self.class == o.class &&
130
+ created_at == o.created_at &&
131
+ deleted_at == o.deleted_at &&
132
+ updated_at == o.updated_at &&
133
+ name == o.name &&
134
+ id == o.id
135
+ end
136
+
137
+ # @see the `==` method
138
+ # @param [Object] Object to be compared
139
+ def eql?(o)
140
+ self == o
141
+ end
142
+
143
+ # Calculates hash code according to all attributes.
144
+ # @return [Integer] Hash code
145
+ def hash
146
+ [created_at, deleted_at, updated_at, name, id].hash
147
+ end
148
+
149
+ # Builds the object from hash
150
+ # @param [Hash] attributes Model attributes in the form of hash
151
+ # @return [Object] Returns the model itself
152
+ def self.build_from_hash(attributes)
153
+ new.build_from_hash(attributes)
154
+ end
155
+
156
+ # Builds the object from hash
157
+ # @param [Hash] attributes Model attributes in the form of hash
158
+ # @return [Object] Returns the model itself
159
+ def build_from_hash(attributes)
160
+ return nil unless attributes.is_a?(Hash)
161
+ self.class.fastly_types.each_pair do |key, type|
162
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
163
+ self.send("#{key}=", nil)
164
+ elsif type =~ /\AArray<(.*)>/i
165
+ # check to ensure the input is an array given that the attribute
166
+ # is documented as an array but the input is not
167
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
168
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
169
+ end
170
+ elsif !attributes[self.class.attribute_map[key]].nil?
171
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
172
+ end
173
+ end
174
+
175
+ self
176
+ end
177
+
178
+ # Deserializes the data based on type
179
+ # @param string type Data type
180
+ # @param string value Value to be deserialized
181
+ # @return [Object] Deserialized data
182
+ def _deserialize(type, value)
183
+ case type.to_sym
184
+ when :Time
185
+ Time.parse(value)
186
+ when :Date
187
+ Date.parse(value)
188
+ when :String
189
+ value.to_s
190
+ when :Integer
191
+ value.to_i
192
+ when :Float
193
+ value.to_f
194
+ when :Boolean
195
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
196
+ true
197
+ else
198
+ false
199
+ end
200
+ when :Object
201
+ # generic object (usually a Hash), return directly
202
+ value
203
+ when /\AArray<(?<inner_type>.+)>\z/
204
+ inner_type = Regexp.last_match[:inner_type]
205
+ value.map { |v| _deserialize(inner_type, v) }
206
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
207
+ k_type = Regexp.last_match[:k_type]
208
+ v_type = Regexp.last_match[:v_type]
209
+ {}.tap do |hash|
210
+ value.each do |k, v|
211
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
212
+ end
213
+ end
214
+ else # model
215
+ # models (e.g. Pet) or oneOf
216
+ klass = Fastly.const_get(type)
217
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
218
+ end
219
+ end
220
+
221
+ # Returns the string representation of the object
222
+ # @return [String] String presentation of the object
223
+ def to_s
224
+ to_hash.to_s
225
+ end
226
+
227
+ # to_body is an alias to to_hash (backward compatibility)
228
+ # @return [Hash] Returns the object in the form of hash
229
+ def to_body
230
+ to_hash
231
+ end
232
+
233
+ # Returns the object in the form of hash
234
+ # @return [Hash] Returns the object in the form of hash
235
+ def to_hash
236
+ hash = {}
237
+ self.class.attribute_map.each_pair do |attr, param|
238
+ value = self.send(attr)
239
+ if value.nil?
240
+ is_nullable = self.class.fastly_nullable.include?(attr)
241
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
242
+ end
243
+
244
+ hash[param] = _to_hash(value)
245
+ end
246
+ hash
247
+ end
248
+
249
+ # Outputs non-array value in the form of hash
250
+ # For object, use to_hash. Otherwise, just return the value
251
+ # @param [Object] value Any valid value
252
+ # @return [Hash] Returns the value in the form of hash
253
+ def _to_hash(value)
254
+ if value.is_a?(Array)
255
+ value.compact.map { |v| _to_hash(v) }
256
+ elsif value.is_a?(Hash)
257
+ {}.tap do |hash|
258
+ value.each { |k, v| hash[k] = _to_hash(v) }
259
+ end
260
+ elsif value.respond_to? :to_hash
261
+ value.to_hash
262
+ else
263
+ value
264
+ end
265
+ end
266
+
267
+ end
268
+
269
+ end
@@ -0,0 +1,217 @@
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
+ class ConfigStoreResponseAllOf
16
+ # An alphanumeric string identifying the config store.
17
+ attr_accessor :id
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'id' => :'id'
23
+ }
24
+ end
25
+
26
+ # Returns all the JSON keys this model knows about
27
+ def self.acceptable_attributes
28
+ attribute_map.values
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.fastly_types
33
+ {
34
+ :'id' => :'String'
35
+ }
36
+ end
37
+
38
+ # List of attributes with nullable: true
39
+ def self.fastly_nullable
40
+ Set.new([
41
+ ])
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::ConfigStoreResponseAllOf` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::ConfigStoreResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'id')
60
+ self.id = attributes[:'id']
61
+ end
62
+ end
63
+
64
+ # Show invalid properties with the reasons. Usually used together with valid?
65
+ # @return Array for valid properties with the reasons
66
+ def list_invalid_properties
67
+ invalid_properties = Array.new
68
+ invalid_properties
69
+ end
70
+
71
+ # Check to see if the all the properties in the model are valid
72
+ # @return true if the model is valid
73
+ def valid?
74
+ true
75
+ end
76
+
77
+ # Checks equality by comparing each attribute.
78
+ # @param [Object] Object to be compared
79
+ def ==(o)
80
+ return true if self.equal?(o)
81
+ self.class == o.class &&
82
+ id == o.id
83
+ end
84
+
85
+ # @see the `==` method
86
+ # @param [Object] Object to be compared
87
+ def eql?(o)
88
+ self == o
89
+ end
90
+
91
+ # Calculates hash code according to all attributes.
92
+ # @return [Integer] Hash code
93
+ def hash
94
+ [id].hash
95
+ end
96
+
97
+ # Builds the object from hash
98
+ # @param [Hash] attributes Model attributes in the form of hash
99
+ # @return [Object] Returns the model itself
100
+ def self.build_from_hash(attributes)
101
+ new.build_from_hash(attributes)
102
+ end
103
+
104
+ # Builds the object from hash
105
+ # @param [Hash] attributes Model attributes in the form of hash
106
+ # @return [Object] Returns the model itself
107
+ def build_from_hash(attributes)
108
+ return nil unless attributes.is_a?(Hash)
109
+ self.class.fastly_types.each_pair do |key, type|
110
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
111
+ self.send("#{key}=", nil)
112
+ elsif type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ end
121
+ end
122
+
123
+ self
124
+ end
125
+
126
+ # Deserializes the data based on type
127
+ # @param string type Data type
128
+ # @param string value Value to be deserialized
129
+ # @return [Object] Deserialized data
130
+ def _deserialize(type, value)
131
+ case type.to_sym
132
+ when :Time
133
+ Time.parse(value)
134
+ when :Date
135
+ Date.parse(value)
136
+ when :String
137
+ value.to_s
138
+ when :Integer
139
+ value.to_i
140
+ when :Float
141
+ value.to_f
142
+ when :Boolean
143
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
144
+ true
145
+ else
146
+ false
147
+ end
148
+ when :Object
149
+ # generic object (usually a Hash), return directly
150
+ value
151
+ when /\AArray<(?<inner_type>.+)>\z/
152
+ inner_type = Regexp.last_match[:inner_type]
153
+ value.map { |v| _deserialize(inner_type, v) }
154
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
155
+ k_type = Regexp.last_match[:k_type]
156
+ v_type = Regexp.last_match[:v_type]
157
+ {}.tap do |hash|
158
+ value.each do |k, v|
159
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
160
+ end
161
+ end
162
+ else # model
163
+ # models (e.g. Pet) or oneOf
164
+ klass = Fastly.const_get(type)
165
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ if value.nil?
188
+ is_nullable = self.class.fastly_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end
214
+
215
+ end
216
+
217
+ end
@@ -28,10 +28,6 @@ module Fastly
28
28
  # Priority determines execution order. Lower numbers execute first.
29
29
  attr_accessor :priority
30
30
 
31
- attr_accessor :service_id
32
-
33
- attr_accessor :version
34
-
35
31
  # Date and time in ISO 8601 format.
36
32
  attr_accessor :created_at
37
33
 
@@ -41,6 +37,11 @@ module Fastly
41
37
  # Date and time in ISO 8601 format.
42
38
  attr_accessor :updated_at
43
39
 
40
+ attr_accessor :service_id
41
+
42
+ # String representing the number identifying a version of the service.
43
+ attr_accessor :version
44
+
44
45
  attr_accessor :id
45
46
 
46
47
  class EnumAttributeValidator
@@ -73,11 +74,11 @@ module Fastly
73
74
  :'type' => :'type',
74
75
  :'content' => :'content',
75
76
  :'priority' => :'priority',
76
- :'service_id' => :'service_id',
77
- :'version' => :'version',
78
77
  :'created_at' => :'created_at',
79
78
  :'deleted_at' => :'deleted_at',
80
79
  :'updated_at' => :'updated_at',
80
+ :'service_id' => :'service_id',
81
+ :'version' => :'version',
81
82
  :'id' => :'id'
82
83
  }
83
84
  end
@@ -94,12 +95,12 @@ module Fastly
94
95
  :'dynamic' => :'Integer',
95
96
  :'type' => :'String',
96
97
  :'content' => :'String',
97
- :'priority' => :'Integer',
98
- :'service_id' => :'String',
99
- :'version' => :'Integer',
98
+ :'priority' => :'String',
100
99
  :'created_at' => :'Time',
101
100
  :'deleted_at' => :'Time',
102
101
  :'updated_at' => :'Time',
102
+ :'service_id' => :'String',
103
+ :'version' => :'String',
103
104
  :'id' => :'String'
104
105
  }
105
106
  end
@@ -116,7 +117,6 @@ module Fastly
116
117
  # List of class defined in allOf (OpenAPI v3)
117
118
  def self.fastly_all_of
118
119
  [
119
- :'ServiceIdAndVersion',
120
120
  :'Snippet',
121
121
  :'SnippetResponseAllOf',
122
122
  :'Timestamps'
@@ -157,15 +157,7 @@ module Fastly
157
157
  if attributes.key?(:'priority')
158
158
  self.priority = attributes[:'priority']
159
159
  else
160
- self.priority = 100
161
- end
162
-
163
- if attributes.key?(:'service_id')
164
- self.service_id = attributes[:'service_id']
165
- end
166
-
167
- if attributes.key?(:'version')
168
- self.version = attributes[:'version']
160
+ self.priority = '100'
169
161
  end
170
162
 
171
163
  if attributes.key?(:'created_at')
@@ -180,6 +172,14 @@ module Fastly
180
172
  self.updated_at = attributes[:'updated_at']
181
173
  end
182
174
 
175
+ if attributes.key?(:'service_id')
176
+ self.service_id = attributes[:'service_id']
177
+ end
178
+
179
+ if attributes.key?(:'version')
180
+ self.version = attributes[:'version']
181
+ end
182
+
183
183
  if attributes.key?(:'id')
184
184
  self.id = attributes[:'id']
185
185
  end
@@ -232,11 +232,11 @@ module Fastly
232
232
  type == o.type &&
233
233
  content == o.content &&
234
234
  priority == o.priority &&
235
- service_id == o.service_id &&
236
- version == o.version &&
237
235
  created_at == o.created_at &&
238
236
  deleted_at == o.deleted_at &&
239
237
  updated_at == o.updated_at &&
238
+ service_id == o.service_id &&
239
+ version == o.version &&
240
240
  id == o.id
241
241
  end
242
242
 
@@ -249,7 +249,7 @@ module Fastly
249
249
  # Calculates hash code according to all attributes.
250
250
  # @return [Integer] Hash code
251
251
  def hash
252
- [name, dynamic, type, content, priority, service_id, version, created_at, deleted_at, updated_at, id].hash
252
+ [name, dynamic, type, content, priority, created_at, deleted_at, updated_at, service_id, version, id].hash
253
253
  end
254
254
 
255
255
  # Builds the object from hash
@@ -73,7 +73,7 @@ module Fastly
73
73
  :'dynamic' => :'Integer',
74
74
  :'type' => :'String',
75
75
  :'content' => :'String',
76
- :'priority' => :'Integer'
76
+ :'priority' => :'String'
77
77
  }
78
78
  end
79
79
 
@@ -117,7 +117,7 @@ module Fastly
117
117
  if attributes.key?(:'priority')
118
118
  self.priority = attributes[:'priority']
119
119
  else
120
- self.priority = 100
120
+ self.priority = '100'
121
121
  end
122
122
  end
123
123