fastly 5.1.0 → 5.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b93b9f85396dbba0a782e8c8c7339dfe2ce829ef0e2ad25dd0729a84608d1f6d
4
- data.tar.gz: ef011e88e4c8cef9fa00d9d2b624654d68126b71dc9b6e9d542c11619f5b2f99
3
+ metadata.gz: db8e5417ece0e6ea7ae0ae66c558513d458cde749e745707de6faddad5ed7403
4
+ data.tar.gz: ffb1143b08f03aa7af86554883277bcaaddef3d3c343e1a5878f2810f7db91ab
5
5
  SHA512:
6
- metadata.gz: 89195a7fae5998ba1b522d39bf38d3faf0a9d6ba0224fe03be1709d29de36df1c0f7cf67a35764a609da65a3f34d9ddd9c1fa47bdd882021539b63cfb8ace06c
7
- data.tar.gz: f30bed3602326ef9377ca4b33674dc765ccae820d846d935011878652455e4055af21787389606dbd0b61bd7536c5278a6d805bdbe5e5fb21f231da11131860e
6
+ metadata.gz: 24c752858e709856a39d8b15443e61331afb1212826fad1243817e6b8a99365015ffedc22a16de74ee4c843cea7a43009aaf3c0488332f200a73b0e74356371d
7
+ data.tar.gz: 5b23e6683d575420c74f810081180447319442e50026e9b51889e6d594503d1c17985e840f7378088cd2ddba6b81cc1c6995e65a2431ccfa193953eb8bd47b35
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [v5.1.1](https://github.com/fastly/fastly-ruby/releases/tag/release/v5.1.1) (2023-05-22)
4
+
5
+ **Bug fixes:**
6
+
7
+ - fix(acl): change `version` from int to string.
8
+ - fix(acl): add missing methods for `service_id` and `service_version` properties.
9
+ - fix(backend): make `ssl_check_cert` nullable.
10
+ - fix(purge): skip URL escape for `surrogate_key` param.
11
+ - fix(snippets): change `priority` and `version` from int to string.
12
+ - fix(snippets): add missing methods for `service_id` and `service_version` properties.
13
+
3
14
  ## [v5.1.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v5.1.0) (2023-05-17)
4
15
 
5
16
  **Enhancements:**
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fastly (5.1.0)
4
+ fastly (5.1.1)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -12,7 +12,7 @@ A Ruby client library for interacting with most facets of the [Fastly API](https
12
12
  To install via RubyGems, add the following to your project's `Gemfile`:
13
13
 
14
14
  ```ruby
15
- gem 'fastly', '~> 5.1.0'
15
+ gem 'fastly', '~> 5.1.1'
16
16
  ```
17
17
 
18
18
  Then run `bundle install`.
data/docs/AclResponse.md CHANGED
@@ -9,7 +9,7 @@
9
9
  | **deleted_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
10
10
  | **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
11
11
  | **service_id** | **String** | | [optional][readonly] |
12
- | **version** | **Integer** | | [optional][readonly] |
12
+ | **version** | **String** | String representing the number identifying a version of the service. | [optional][readonly] |
13
13
  | **id** | **String** | | [optional][readonly] |
14
14
 
15
15
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
@@ -4,6 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **service_id** | **String** | | [optional][readonly] |
8
+ | **version** | **String** | String representing the number identifying a version of the service. | [optional][readonly] |
7
9
  | **id** | **String** | | [optional][readonly] |
8
10
 
9
11
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
@@ -8,12 +8,12 @@
8
8
  | **dynamic** | **Integer** | Sets the snippet version. | [optional] |
9
9
  | **type** | **String** | The location in generated VCL where the snippet should be placed. | [optional] |
10
10
  | **content** | **String** | The VCL code that specifies exactly what the snippet does. | [optional] |
11
- | **priority** | **Integer** | Priority determines execution order. Lower numbers execute first. | [optional][default to 100] |
12
- | **service_id** | **String** | | [optional][readonly] |
13
- | **version** | **Integer** | | [optional][readonly] |
11
+ | **priority** | **String** | Priority determines execution order. Lower numbers execute first. | [optional][default to '100'] |
14
12
  | **created_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
15
13
  | **deleted_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
16
14
  | **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
15
+ | **service_id** | **String** | | [optional][readonly] |
16
+ | **version** | **String** | String representing the number identifying a version of the service. | [optional][readonly] |
17
17
  | **id** | **String** | | [optional][readonly] |
18
18
 
19
19
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
data/docs/Snippet.md CHANGED
@@ -8,7 +8,7 @@
8
8
  | **dynamic** | **Integer** | Sets the snippet version. | [optional] |
9
9
  | **type** | **String** | The location in generated VCL where the snippet should be placed. | [optional] |
10
10
  | **content** | **String** | The VCL code that specifies exactly what the snippet does. | [optional] |
11
- | **priority** | **Integer** | Priority determines execution order. Lower numbers execute first. | [optional][default to 100] |
11
+ | **priority** | **String** | Priority determines execution order. Lower numbers execute first. | [optional][default to '100'] |
12
12
 
13
13
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
14
14
 
data/docs/SnippetApi.md CHANGED
@@ -37,7 +37,7 @@ opts = {
37
37
  dynamic: 0, # Integer | Sets the snippet version.
38
38
  type: 'init', # String | The location in generated VCL where the snippet should be placed.
39
39
  content: 'content_example', # String | The VCL code that specifies exactly what the snippet does.
40
- priority: 56, # Integer | Priority determines execution order. Lower numbers execute first.
40
+ priority: 'priority_example', # String | Priority determines execution order. Lower numbers execute first.
41
41
  }
42
42
 
43
43
  begin
@@ -59,7 +59,7 @@ end
59
59
  | **dynamic** | **Integer** | Sets the snippet version. | [optional] |
60
60
  | **type** | **String** | The location in generated VCL where the snippet should be placed. | [optional] |
61
61
  | **content** | **String** | The VCL code that specifies exactly what the snippet does. | [optional] |
62
- | **priority** | **Integer** | Priority determines execution order. Lower numbers execute first. | [optional][default to 100] |
62
+ | **priority** | **String** | Priority determines execution order. Lower numbers execute first. | [optional][default to '100'] |
63
63
 
64
64
  ### Return type
65
65
 
@@ -246,7 +246,7 @@ opts = {
246
246
  dynamic: 0, # Integer | Sets the snippet version.
247
247
  type: 'init', # String | The location in generated VCL where the snippet should be placed.
248
248
  content: 'content_example', # String | The VCL code that specifies exactly what the snippet does.
249
- priority: 56, # Integer | Priority determines execution order. Lower numbers execute first.
249
+ priority: 'priority_example', # String | Priority determines execution order. Lower numbers execute first.
250
250
  }
251
251
 
252
252
  begin
@@ -268,7 +268,7 @@ end
268
268
  | **dynamic** | **Integer** | Sets the snippet version. | [optional] |
269
269
  | **type** | **String** | The location in generated VCL where the snippet should be placed. | [optional] |
270
270
  | **content** | **String** | The VCL code that specifies exactly what the snippet does. | [optional] |
271
- | **priority** | **Integer** | Priority determines execution order. Lower numbers execute first. | [optional][default to 100] |
271
+ | **priority** | **String** | Priority determines execution order. Lower numbers execute first. | [optional][default to '100'] |
272
272
 
273
273
  ### Return type
274
274
 
@@ -8,12 +8,12 @@
8
8
  | **dynamic** | **Integer** | Sets the snippet version. | [optional] |
9
9
  | **type** | **String** | The location in generated VCL where the snippet should be placed. | [optional] |
10
10
  | **content** | **String** | The VCL code that specifies exactly what the snippet does. | [optional] |
11
- | **priority** | **Integer** | Priority determines execution order. Lower numbers execute first. | [optional][default to 100] |
12
- | **service_id** | **String** | | [optional][readonly] |
13
- | **version** | **Integer** | | [optional][readonly] |
11
+ | **priority** | **String** | Priority determines execution order. Lower numbers execute first. | [optional][default to '100'] |
14
12
  | **created_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
15
13
  | **deleted_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
16
14
  | **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
15
+ | **service_id** | **String** | | [optional][readonly] |
16
+ | **version** | **String** | String representing the number identifying a version of the service. | [optional][readonly] |
17
17
  | **id** | **String** | | [optional][readonly] |
18
18
 
19
19
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
@@ -4,6 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **service_id** | **String** | | [optional][readonly] |
8
+ | **version** | **String** | String representing the number identifying a version of the service. | [optional][readonly] |
7
9
  | **id** | **String** | | [optional][readonly] |
8
10
 
9
11
  [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
@@ -255,7 +255,7 @@ module Fastly
255
255
  fail ArgumentError, "Missing the required parameter 'surrogate_key' when calling PurgeApi.purge_tag"
256
256
  end
257
257
  # resource path
258
- local_var_path = '/service/{service_id}/purge/{surrogate_key}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'surrogate_key' + '}', CGI.escape(surrogate_key.to_s))
258
+ local_var_path = '/service/{service_id}/purge/{surrogate_key}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'surrogate_key' + '}', surrogate_key.to_s)
259
259
 
260
260
  # query parameters
261
261
  query_params = opts[:query_params] || {}
@@ -25,7 +25,7 @@ module Fastly
25
25
  # @option opts [Integer] :dynamic Sets the snippet version.
26
26
  # @option opts [String] :type The location in generated VCL where the snippet should be placed.
27
27
  # @option opts [String] :content The VCL code that specifies exactly what the snippet does.
28
- # @option opts [Integer] :priority Priority determines execution order. Lower numbers execute first. (default to 100)
28
+ # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
29
29
  # @return [SnippetResponse]
30
30
  def create_snippet(opts = {})
31
31
  data, _status_code, _headers = create_snippet_with_http_info(opts)
@@ -40,7 +40,7 @@ module Fastly
40
40
  # @option opts [Integer] :dynamic Sets the snippet version.
41
41
  # @option opts [String] :type The location in generated VCL where the snippet should be placed.
42
42
  # @option opts [String] :content The VCL code that specifies exactly what the snippet does.
43
- # @option opts [Integer] :priority Priority determines execution order. Lower numbers execute first. (default to 100)
43
+ # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
44
44
  # @return [Array<(SnippetResponse, Integer, Hash)>] SnippetResponse data, response status code and response headers
45
45
  def create_snippet_with_http_info(opts = {})
46
46
  if @api_client.config.debugging
@@ -417,7 +417,7 @@ module Fastly
417
417
  # @option opts [Integer] :dynamic Sets the snippet version.
418
418
  # @option opts [String] :type The location in generated VCL where the snippet should be placed.
419
419
  # @option opts [String] :content The VCL code that specifies exactly what the snippet does.
420
- # @option opts [Integer] :priority Priority determines execution order. Lower numbers execute first. (default to 100)
420
+ # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
421
421
  # @return [SnippetResponse]
422
422
  def update_snippet_dynamic(opts = {})
423
423
  data, _status_code, _headers = update_snippet_dynamic_with_http_info(opts)
@@ -432,7 +432,7 @@ module Fastly
432
432
  # @option opts [Integer] :dynamic Sets the snippet version.
433
433
  # @option opts [String] :type The location in generated VCL where the snippet should be placed.
434
434
  # @option opts [String] :content The VCL code that specifies exactly what the snippet does.
435
- # @option opts [Integer] :priority Priority determines execution order. Lower numbers execute first. (default to 100)
435
+ # @option opts [String] :priority Priority determines execution order. Lower numbers execute first. (default to '100')
436
436
  # @return [Array<(SnippetResponse, Integer, Hash)>] SnippetResponse data, response status code and response headers
437
437
  def update_snippet_dynamic_with_http_info(opts = {})
438
438
  if @api_client.config.debugging
@@ -305,8 +305,6 @@ module Fastly
305
305
  end
306
306
 
307
307
  def build_request_url(path, opts = {})
308
- # Add leading and trailing slashes to path
309
- path = "/#{path}".gsub(/\/+/, '/')
310
308
  @config.base_url(opts[:operation]) + path
311
309
  end
312
310
 
@@ -27,6 +27,7 @@ module Fastly
27
27
 
28
28
  attr_accessor :service_id
29
29
 
30
+ # String representing the number identifying a version of the service.
30
31
  attr_accessor :version
31
32
 
32
33
  attr_accessor :id
@@ -57,7 +58,7 @@ module Fastly
57
58
  :'deleted_at' => :'Time',
58
59
  :'updated_at' => :'Time',
59
60
  :'service_id' => :'String',
60
- :'version' => :'Integer',
61
+ :'version' => :'String',
61
62
  :'id' => :'String'
62
63
  }
63
64
  end
@@ -76,7 +77,6 @@ module Fastly
76
77
  [
77
78
  :'Acl',
78
79
  :'AclResponseAllOf',
79
- :'ServiceIdAndVersion',
80
80
  :'Timestamps'
81
81
  ]
82
82
  end
@@ -13,11 +13,18 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class AclResponseAllOf
16
+ attr_accessor :service_id
17
+
18
+ # String representing the number identifying a version of the service.
19
+ attr_accessor :version
20
+
16
21
  attr_accessor :id
17
22
 
18
23
  # Attribute mapping from ruby-style variable name to JSON key.
19
24
  def self.attribute_map
20
25
  {
26
+ :'service_id' => :'service_id',
27
+ :'version' => :'version',
21
28
  :'id' => :'id'
22
29
  }
23
30
  end
@@ -30,6 +37,8 @@ module Fastly
30
37
  # Attribute type mapping.
31
38
  def self.fastly_types
32
39
  {
40
+ :'service_id' => :'String',
41
+ :'version' => :'String',
33
42
  :'id' => :'String'
34
43
  }
35
44
  end
@@ -55,6 +64,14 @@ module Fastly
55
64
  h[k.to_sym] = v
56
65
  }
57
66
 
67
+ if attributes.key?(:'service_id')
68
+ self.service_id = attributes[:'service_id']
69
+ end
70
+
71
+ if attributes.key?(:'version')
72
+ self.version = attributes[:'version']
73
+ end
74
+
58
75
  if attributes.key?(:'id')
59
76
  self.id = attributes[:'id']
60
77
  end
@@ -78,6 +95,8 @@ module Fastly
78
95
  def ==(o)
79
96
  return true if self.equal?(o)
80
97
  self.class == o.class &&
98
+ service_id == o.service_id &&
99
+ version == o.version &&
81
100
  id == o.id
82
101
  end
83
102
 
@@ -90,7 +109,7 @@ module Fastly
90
109
  # Calculates hash code according to all attributes.
91
110
  # @return [Integer] Hash code
92
111
  def hash
93
- [id].hash
112
+ [service_id, version, id].hash
94
113
  end
95
114
 
96
115
  # Builds the object from hash
@@ -196,6 +196,7 @@ module Fastly
196
196
  :'shield',
197
197
  :'ssl_ca_cert',
198
198
  :'ssl_cert_hostname',
199
+ :'ssl_check_cert',
199
200
  :'ssl_ciphers',
200
201
  :'ssl_client_cert',
201
202
  :'ssl_client_key',
@@ -224,6 +224,7 @@ module Fastly
224
224
  :'shield',
225
225
  :'ssl_ca_cert',
226
226
  :'ssl_cert_hostname',
227
+ :'ssl_check_cert',
227
228
  :'ssl_ciphers',
228
229
  :'ssl_client_cert',
229
230
  :'ssl_client_key',
@@ -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
 
@@ -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
@@ -13,11 +13,18 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class SnippetResponseAllOf
16
+ attr_accessor :service_id
17
+
18
+ # String representing the number identifying a version of the service.
19
+ attr_accessor :version
20
+
16
21
  attr_accessor :id
17
22
 
18
23
  # Attribute mapping from ruby-style variable name to JSON key.
19
24
  def self.attribute_map
20
25
  {
26
+ :'service_id' => :'service_id',
27
+ :'version' => :'version',
21
28
  :'id' => :'id'
22
29
  }
23
30
  end
@@ -30,6 +37,8 @@ module Fastly
30
37
  # Attribute type mapping.
31
38
  def self.fastly_types
32
39
  {
40
+ :'service_id' => :'String',
41
+ :'version' => :'String',
33
42
  :'id' => :'String'
34
43
  }
35
44
  end
@@ -55,6 +64,14 @@ module Fastly
55
64
  h[k.to_sym] = v
56
65
  }
57
66
 
67
+ if attributes.key?(:'service_id')
68
+ self.service_id = attributes[:'service_id']
69
+ end
70
+
71
+ if attributes.key?(:'version')
72
+ self.version = attributes[:'version']
73
+ end
74
+
58
75
  if attributes.key?(:'id')
59
76
  self.id = attributes[:'id']
60
77
  end
@@ -78,6 +95,8 @@ module Fastly
78
95
  def ==(o)
79
96
  return true if self.equal?(o)
80
97
  self.class == o.class &&
98
+ service_id == o.service_id &&
99
+ version == o.version &&
81
100
  id == o.id
82
101
  end
83
102
 
@@ -90,7 +109,7 @@ module Fastly
90
109
  # Calculates hash code according to all attributes.
91
110
  # @return [Integer] Hash code
92
111
  def hash
93
- [id].hash
112
+ [service_id, version, id].hash
94
113
  end
95
114
 
96
115
  # Builds the object from hash
@@ -9,5 +9,5 @@ Contact: oss@fastly.com
9
9
  =end
10
10
 
11
11
  module Fastly
12
- VERSION = '5.1.0'
12
+ VERSION = '5.1.1'
13
13
  end
data/sig.json CHANGED
@@ -1 +1 @@
1
- {"G": "4ab3cc8b", "D": "629082c8"}
1
+ {"G": "68da606c", "D": "3408edcc"}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastly
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fastly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-17 00:00:00.000000000 Z
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus