fastly 4.2.0 → 4.3.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.
@@ -0,0 +1,304 @@
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 'cgi'
12
+
13
+ module Fastly
14
+ class ObjectStoreItemApi
15
+ attr_accessor :api_client
16
+
17
+ def initialize(api_client = ApiClient.default)
18
+ @api_client = api_client
19
+ end
20
+ # Delete object store item.
21
+ # Delete an item from an object store
22
+ # @option opts [String] :store_id (required)
23
+ # @option opts [String] :key_name (required)
24
+ # @return [nil]
25
+ def delete_key_from_store(opts = {})
26
+ delete_key_from_store_with_http_info(opts)
27
+ nil
28
+ end
29
+
30
+ # Delete object store item.
31
+ # Delete an item from an object store
32
+ # @option opts [String] :store_id (required)
33
+ # @option opts [String] :key_name (required)
34
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
35
+ def delete_key_from_store_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: ObjectStoreItemApi.delete_key_from_store ...'
38
+ end
39
+ # unbox the parameters from the hash
40
+ store_id = opts[:'store_id']
41
+ key_name = opts[:'key_name']
42
+ # verify the required parameter 'store_id' is set
43
+ if @api_client.config.client_side_validation && store_id.nil?
44
+ fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreItemApi.delete_key_from_store"
45
+ end
46
+ # verify the required parameter 'key_name' is set
47
+ if @api_client.config.client_side_validation && key_name.nil?
48
+ fail ArgumentError, "Missing the required parameter 'key_name' when calling ObjectStoreItemApi.delete_key_from_store"
49
+ end
50
+ # resource path
51
+ local_var_path = '/resources/stores/object/{store_id}/keys/{key_name}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key_name' + '}', CGI.escape(key_name.to_s))
52
+
53
+ # query parameters
54
+ query_params = opts[:query_params] || {}
55
+
56
+ # header parameters
57
+ header_params = opts[:header_params] || {}
58
+
59
+ # form parameters
60
+ form_params = opts[:form_params] || {}
61
+
62
+ # http body (model)
63
+ post_body = opts[:debug_body]
64
+
65
+ # return_type
66
+ return_type = opts[:debug_return_type]
67
+
68
+ # auth_names
69
+ auth_names = opts[:debug_auth_names] || ['token']
70
+
71
+ new_options = opts.merge(
72
+ :operation => :"ObjectStoreItemApi.delete_key_from_store",
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => return_type
79
+ )
80
+
81
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug "API called: ObjectStoreItemApi#delete_key_from_store\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+
88
+ # List object store keys.
89
+ # List the keys of all items within an object store.
90
+ # @option opts [String] :store_id (required)
91
+ # @option opts [String] :cursor
92
+ # @option opts [Integer] :limit (default to 100)
93
+ # @return [InlineResponse2004]
94
+ def get_keys(opts = {})
95
+ data, _status_code, _headers = get_keys_with_http_info(opts)
96
+ data
97
+ end
98
+
99
+ # List object store keys.
100
+ # List the keys of all items within an object store.
101
+ # @option opts [String] :store_id (required)
102
+ # @option opts [String] :cursor
103
+ # @option opts [Integer] :limit (default to 100)
104
+ # @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
105
+ def get_keys_with_http_info(opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: ObjectStoreItemApi.get_keys ...'
108
+ end
109
+ # unbox the parameters from the hash
110
+ store_id = opts[:'store_id']
111
+ # verify the required parameter 'store_id' is set
112
+ if @api_client.config.client_side_validation && store_id.nil?
113
+ fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreItemApi.get_keys"
114
+ end
115
+ # resource path
116
+ local_var_path = '/resources/stores/object/{store_id}/keys'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
117
+
118
+ # query parameters
119
+ query_params = opts[:query_params] || {}
120
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
121
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
122
+
123
+ # header parameters
124
+ header_params = opts[:header_params] || {}
125
+ # HTTP header 'Accept' (if needed)
126
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
127
+
128
+ # form parameters
129
+ form_params = opts[:form_params] || {}
130
+
131
+ # http body (model)
132
+ post_body = opts[:debug_body]
133
+
134
+ # return_type
135
+ return_type = opts[:debug_return_type] || 'InlineResponse2004'
136
+
137
+ # auth_names
138
+ auth_names = opts[:debug_auth_names] || ['token']
139
+
140
+ new_options = opts.merge(
141
+ :operation => :"ObjectStoreItemApi.get_keys",
142
+ :header_params => header_params,
143
+ :query_params => query_params,
144
+ :form_params => form_params,
145
+ :body => post_body,
146
+ :auth_names => auth_names,
147
+ :return_type => return_type
148
+ )
149
+
150
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
151
+ if @api_client.config.debugging
152
+ @api_client.config.logger.debug "API called: ObjectStoreItemApi#get_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
153
+ end
154
+ return data, status_code, headers
155
+ end
156
+
157
+ # Get the value of an object store item
158
+ # Get the value associated with a key.
159
+ # @option opts [String] :store_id (required)
160
+ # @option opts [String] :key_name (required)
161
+ # @return [File]
162
+ def get_value_for_key(opts = {})
163
+ data, _status_code, _headers = get_value_for_key_with_http_info(opts)
164
+ data
165
+ end
166
+
167
+ # Get the value of an object store item
168
+ # Get the value associated with a key.
169
+ # @option opts [String] :store_id (required)
170
+ # @option opts [String] :key_name (required)
171
+ # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
172
+ def get_value_for_key_with_http_info(opts = {})
173
+ if @api_client.config.debugging
174
+ @api_client.config.logger.debug 'Calling API: ObjectStoreItemApi.get_value_for_key ...'
175
+ end
176
+ # unbox the parameters from the hash
177
+ store_id = opts[:'store_id']
178
+ key_name = opts[:'key_name']
179
+ # verify the required parameter 'store_id' is set
180
+ if @api_client.config.client_side_validation && store_id.nil?
181
+ fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreItemApi.get_value_for_key"
182
+ end
183
+ # verify the required parameter 'key_name' is set
184
+ if @api_client.config.client_side_validation && key_name.nil?
185
+ fail ArgumentError, "Missing the required parameter 'key_name' when calling ObjectStoreItemApi.get_value_for_key"
186
+ end
187
+ # resource path
188
+ local_var_path = '/resources/stores/object/{store_id}/keys/{key_name}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key_name' + '}', CGI.escape(key_name.to_s))
189
+
190
+ # query parameters
191
+ query_params = opts[:query_params] || {}
192
+
193
+ # header parameters
194
+ header_params = opts[:header_params] || {}
195
+ # HTTP header 'Accept' (if needed)
196
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
197
+
198
+ # form parameters
199
+ form_params = opts[:form_params] || {}
200
+
201
+ # http body (model)
202
+ post_body = opts[:debug_body]
203
+
204
+ # return_type
205
+ return_type = opts[:debug_return_type] || 'File'
206
+
207
+ # auth_names
208
+ auth_names = opts[:debug_auth_names] || ['token']
209
+
210
+ new_options = opts.merge(
211
+ :operation => :"ObjectStoreItemApi.get_value_for_key",
212
+ :header_params => header_params,
213
+ :query_params => query_params,
214
+ :form_params => form_params,
215
+ :body => post_body,
216
+ :auth_names => auth_names,
217
+ :return_type => return_type
218
+ )
219
+
220
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
221
+ if @api_client.config.debugging
222
+ @api_client.config.logger.debug "API called: ObjectStoreItemApi#get_value_for_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
223
+ end
224
+ return data, status_code, headers
225
+ end
226
+
227
+ # Insert an item into an object store
228
+ # Set a new value for a new or existing key in an object store.
229
+ # @option opts [String] :store_id (required)
230
+ # @option opts [String] :key_name (required)
231
+ # @option opts [File] :body
232
+ # @return [File]
233
+ def set_value_for_key(opts = {})
234
+ data, _status_code, _headers = set_value_for_key_with_http_info(opts)
235
+ data
236
+ end
237
+
238
+ # Insert an item into an object store
239
+ # Set a new value for a new or existing key in an object store.
240
+ # @option opts [String] :store_id (required)
241
+ # @option opts [String] :key_name (required)
242
+ # @option opts [File] :body
243
+ # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
244
+ def set_value_for_key_with_http_info(opts = {})
245
+ if @api_client.config.debugging
246
+ @api_client.config.logger.debug 'Calling API: ObjectStoreItemApi.set_value_for_key ...'
247
+ end
248
+ # unbox the parameters from the hash
249
+ store_id = opts[:'store_id']
250
+ key_name = opts[:'key_name']
251
+ # verify the required parameter 'store_id' is set
252
+ if @api_client.config.client_side_validation && store_id.nil?
253
+ fail ArgumentError, "Missing the required parameter 'store_id' when calling ObjectStoreItemApi.set_value_for_key"
254
+ end
255
+ # verify the required parameter 'key_name' is set
256
+ if @api_client.config.client_side_validation && key_name.nil?
257
+ fail ArgumentError, "Missing the required parameter 'key_name' when calling ObjectStoreItemApi.set_value_for_key"
258
+ end
259
+ # resource path
260
+ local_var_path = '/resources/stores/object/{store_id}/keys/{key_name}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s)).sub('{' + 'key_name' + '}', CGI.escape(key_name.to_s))
261
+
262
+ # query parameters
263
+ query_params = opts[:query_params] || {}
264
+
265
+ # header parameters
266
+ header_params = opts[:header_params] || {}
267
+ # HTTP header 'Accept' (if needed)
268
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
269
+ # HTTP header 'Content-Type'
270
+ content_type = @api_client.select_header_content_type(['application/octet-stream'])
271
+ if !content_type.nil?
272
+ header_params['Content-Type'] = content_type
273
+ end
274
+
275
+ # form parameters
276
+ form_params = opts[:form_params] || {}
277
+
278
+ # http body (model)
279
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'body'])
280
+
281
+ # return_type
282
+ return_type = opts[:debug_return_type] || 'File'
283
+
284
+ # auth_names
285
+ auth_names = opts[:debug_auth_names] || ['token']
286
+
287
+ new_options = opts.merge(
288
+ :operation => :"ObjectStoreItemApi.set_value_for_key",
289
+ :header_params => header_params,
290
+ :query_params => query_params,
291
+ :form_params => form_params,
292
+ :body => post_body,
293
+ :auth_names => auth_names,
294
+ :return_type => return_type
295
+ )
296
+
297
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
298
+ if @api_client.config.debugging
299
+ @api_client.config.logger.debug "API called: ObjectStoreItemApi#set_value_for_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
300
+ end
301
+ return data, status_code, headers
302
+ end
303
+ end
304
+ end
@@ -182,7 +182,7 @@ module Fastly
182
182
  fail ArgumentError, "Missing the required parameter 'cached_url' when calling PurgeApi.purge_single_url"
183
183
  end
184
184
  # resource path
185
- local_var_path = '/purge/{cached_url}'.sub('{' + 'cached_url' + '}', CGI.escape(cached_url.to_s))
185
+ local_var_path = '/purge/{cached_url}'.sub('{' + 'cached_url' + '}', cached_url.to_s)
186
186
 
187
187
  # query parameters
188
188
  query_params = opts[:query_params] || {}
@@ -13,15 +13,13 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class InlineResponse2002
16
- attr_accessor :data
17
-
18
- attr_accessor :meta
16
+ # Time-stamp (GMT) when the domain_ownership validation will expire.
17
+ attr_accessor :expires_at
19
18
 
20
19
  # Attribute mapping from ruby-style variable name to JSON key.
21
20
  def self.attribute_map
22
21
  {
23
- :'data' => :'data',
24
- :'meta' => :'meta'
22
+ :'expires_at' => :'expires_at'
25
23
  }
26
24
  end
27
25
 
@@ -33,8 +31,7 @@ module Fastly
33
31
  # Attribute type mapping.
34
32
  def self.fastly_types
35
33
  {
36
- :'data' => :'Array<StoreResponse>',
37
- :'meta' => :'InlineResponse2002Meta'
34
+ :'expires_at' => :'String'
38
35
  }
39
36
  end
40
37
 
@@ -59,14 +56,8 @@ module Fastly
59
56
  h[k.to_sym] = v
60
57
  }
61
58
 
62
- if attributes.key?(:'data')
63
- if (value = attributes[:'data']).is_a?(Array)
64
- self.data = value
65
- end
66
- end
67
-
68
- if attributes.key?(:'meta')
69
- self.meta = attributes[:'meta']
59
+ if attributes.key?(:'expires_at')
60
+ self.expires_at = attributes[:'expires_at']
70
61
  end
71
62
  end
72
63
 
@@ -88,8 +79,7 @@ module Fastly
88
79
  def ==(o)
89
80
  return true if self.equal?(o)
90
81
  self.class == o.class &&
91
- data == o.data &&
92
- meta == o.meta
82
+ expires_at == o.expires_at
93
83
  end
94
84
 
95
85
  # @see the `==` method
@@ -101,7 +91,7 @@ module Fastly
101
91
  # Calculates hash code according to all attributes.
102
92
  # @return [Integer] Hash code
103
93
  def hash
104
- [data, meta].hash
94
+ [expires_at].hash
105
95
  end
106
96
 
107
97
  # Builds the object from hash
@@ -0,0 +1,227 @@
1
+ =begin
2
+ #Fastly API
3
+
4
+ #Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://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 InlineResponse2003
16
+ attr_accessor :data
17
+
18
+ attr_accessor :meta
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'data' => :'data',
24
+ :'meta' => :'meta'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.fastly_types
35
+ {
36
+ :'data' => :'Array<StoreResponse>',
37
+ :'meta' => :'InlineResponse2003Meta'
38
+ }
39
+ end
40
+
41
+ # List of attributes with nullable: true
42
+ def self.fastly_nullable
43
+ Set.new([
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::InlineResponse2003` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::InlineResponse2003`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'data')
63
+ if (value = attributes[:'data']).is_a?(Array)
64
+ self.data = value
65
+ end
66
+ end
67
+
68
+ if attributes.key?(:'meta')
69
+ self.meta = attributes[:'meta']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ invalid_properties = Array.new
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ data == o.data &&
92
+ meta == o.meta
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Integer] Hash code
103
+ def hash
104
+ [data, meta].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def self.build_from_hash(attributes)
111
+ new.build_from_hash(attributes)
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ self.class.fastly_types.each_pair do |key, type|
120
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
121
+ self.send("#{key}=", nil)
122
+ elsif type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the attribute
124
+ # is documented as an array but the input is not
125
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
126
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
+ end
128
+ elsif !attributes[self.class.attribute_map[key]].nil?
129
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
130
+ end
131
+ end
132
+
133
+ self
134
+ end
135
+
136
+ # Deserializes the data based on type
137
+ # @param string type Data type
138
+ # @param string value Value to be deserialized
139
+ # @return [Object] Deserialized data
140
+ def _deserialize(type, value)
141
+ case type.to_sym
142
+ when :Time
143
+ Time.parse(value)
144
+ when :Date
145
+ Date.parse(value)
146
+ when :String
147
+ value.to_s
148
+ when :Integer
149
+ value.to_i
150
+ when :Float
151
+ value.to_f
152
+ when :Boolean
153
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
+ true
155
+ else
156
+ false
157
+ end
158
+ when :Object
159
+ # generic object (usually a Hash), return directly
160
+ value
161
+ when /\AArray<(?<inner_type>.+)>\z/
162
+ inner_type = Regexp.last_match[:inner_type]
163
+ value.map { |v| _deserialize(inner_type, v) }
164
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
+ k_type = Regexp.last_match[:k_type]
166
+ v_type = Regexp.last_match[:v_type]
167
+ {}.tap do |hash|
168
+ value.each do |k, v|
169
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
170
+ end
171
+ end
172
+ else # model
173
+ # models (e.g. Pet) or oneOf
174
+ klass = Fastly.const_get(type)
175
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
176
+ end
177
+ end
178
+
179
+ # Returns the string representation of the object
180
+ # @return [String] String presentation of the object
181
+ def to_s
182
+ to_hash.to_s
183
+ end
184
+
185
+ # to_body is an alias to to_hash (backward compatibility)
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_body
188
+ to_hash
189
+ end
190
+
191
+ # Returns the object in the form of hash
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ if value.nil?
198
+ is_nullable = self.class.fastly_nullable.include?(attr)
199
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
200
+ end
201
+
202
+ hash[param] = _to_hash(value)
203
+ end
204
+ hash
205
+ end
206
+
207
+ # Outputs non-array value in the form of hash
208
+ # For object, use to_hash. Otherwise, just return the value
209
+ # @param [Object] value Any valid value
210
+ # @return [Hash] Returns the value in the form of hash
211
+ def _to_hash(value)
212
+ if value.is_a?(Array)
213
+ value.compact.map { |v| _to_hash(v) }
214
+ elsif value.is_a?(Hash)
215
+ {}.tap do |hash|
216
+ value.each { |k, v| hash[k] = _to_hash(v) }
217
+ end
218
+ elsif value.respond_to? :to_hash
219
+ value.to_hash
220
+ else
221
+ value
222
+ end
223
+ end
224
+
225
+ end
226
+
227
+ end
@@ -13,7 +13,7 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  # Meta for the pagination.
16
- class InlineResponse2002Meta
16
+ class InlineResponse2003Meta
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::InlineResponse2002Meta` initialize method"
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::InlineResponse2003Meta` 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::InlineResponse2002Meta`. 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::InlineResponse2003Meta`. 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
  }