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 +4 -4
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/docs/AclResponse.md +1 -1
- data/docs/AclResponseAllOf.md +2 -0
- data/docs/SchemasSnippetResponse.md +3 -3
- data/docs/Snippet.md +1 -1
- data/docs/SnippetApi.md +4 -4
- data/docs/SnippetResponse.md +3 -3
- data/docs/SnippetResponseAllOf.md +2 -0
- data/lib/fastly/api/purge_api.rb +1 -1
- data/lib/fastly/api/snippet_api.rb +4 -4
- data/lib/fastly/api_client.rb +0 -2
- data/lib/fastly/models/acl_response.rb +2 -2
- data/lib/fastly/models/acl_response_all_of.rb +20 -1
- data/lib/fastly/models/backend.rb +1 -0
- data/lib/fastly/models/backend_response.rb +1 -0
- data/lib/fastly/models/schemas_snippet_response.rb +22 -22
- data/lib/fastly/models/snippet.rb +2 -2
- data/lib/fastly/models/snippet_response.rb +22 -22
- data/lib/fastly/models/snippet_response_all_of.rb +20 -1
- data/lib/fastly/version.rb +1 -1
- data/sig.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db8e5417ece0e6ea7ae0ae66c558513d458cde749e745707de6faddad5ed7403
|
4
|
+
data.tar.gz: ffb1143b08f03aa7af86554883277bcaaddef3d3c343e1a5878f2810f7db91ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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** | **
|
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)
|
data/docs/AclResponseAllOf.md
CHANGED
@@ -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** | **
|
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** | **
|
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:
|
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** | **
|
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:
|
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** | **
|
271
|
+
| **priority** | **String** | Priority determines execution order. Lower numbers execute first. | [optional][default to '100'] |
|
272
272
|
|
273
273
|
### Return type
|
274
274
|
|
data/docs/SnippetResponse.md
CHANGED
@@ -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** | **
|
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)
|
data/lib/fastly/api/purge_api.rb
CHANGED
@@ -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' + '}',
|
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 [
|
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 [
|
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 [
|
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 [
|
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
|
data/lib/fastly/api_client.rb
CHANGED
@@ -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' => :'
|
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
|
@@ -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' => :'
|
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,
|
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' => :'
|
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' => :'
|
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,
|
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
|
data/lib/fastly/version.rb
CHANGED
data/sig.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"G": "
|
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.
|
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-
|
11
|
+
date: 2023-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|