fastly 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -5
- data/docs/AclResponse.md +1 -1
- data/docs/AclResponseAllOf.md +2 -0
- data/docs/HistoricalFieldAggregateResponse.md +1 -1
- data/docs/HistoricalFieldAggregateResponseAllOf.md +1 -1
- data/docs/HistoricalFieldResultsAttributes.md +227 -0
- data/docs/HistoricalFieldResultsAttributesAllOf.md +11 -0
- data/docs/KvStoreApi.md +0 -2
- data/docs/KvStoreItemApi.md +0 -2
- data/docs/RealtimeMeasurements.md +5 -4
- data/docs/Results.md +5 -4
- 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/docs/TokensApi.md +38 -0
- data/lib/fastly/api/kv_store_api.rb +0 -3
- data/lib/fastly/api/kv_store_item_api.rb +0 -3
- data/lib/fastly/api/purge_api.rb +1 -1
- data/lib/fastly/api/snippet_api.rb +4 -4
- data/lib/fastly/api/tokens_api.rb +63 -0
- data/lib/fastly/api_client.rb +0 -2
- data/lib/fastly/configuration.rb +2616 -0
- 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/historical_field_aggregate_response.rb +1 -1
- data/lib/fastly/models/historical_field_aggregate_response_all_of.rb +1 -1
- data/lib/fastly/models/historical_field_results_attributes.rb +2395 -0
- data/lib/fastly/models/historical_field_results_attributes_all_of.rb +226 -0
- data/lib/fastly/models/realtime_measurements.rb +33 -23
- data/lib/fastly/models/results.rb +33 -23
- 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/lib/fastly.rb +2 -0
- data/sig.json +1 -1
- metadata +6 -2
@@ -86,7 +86,6 @@ module Fastly
|
|
86
86
|
# Delete an kv store.
|
87
87
|
# An kv store must be empty before it can be deleted. Deleting an kv store that still contains keys will result in a `409` (Conflict).
|
88
88
|
# @option opts [String] :store_id (required)
|
89
|
-
# @option opts [Boolean] :force
|
90
89
|
# @return [nil]
|
91
90
|
def delete_store(opts = {})
|
92
91
|
delete_store_with_http_info(opts)
|
@@ -96,7 +95,6 @@ module Fastly
|
|
96
95
|
# Delete an kv store.
|
97
96
|
# An kv store must be empty before it can be deleted. Deleting an kv store that still contains keys will result in a `409` (Conflict).
|
98
97
|
# @option opts [String] :store_id (required)
|
99
|
-
# @option opts [Boolean] :force
|
100
98
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
101
99
|
def delete_store_with_http_info(opts = {})
|
102
100
|
if @api_client.config.debugging
|
@@ -116,7 +114,6 @@ module Fastly
|
|
116
114
|
|
117
115
|
# header parameters
|
118
116
|
header_params = opts[:header_params] || {}
|
119
|
-
header_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
|
120
117
|
|
121
118
|
# form parameters
|
122
119
|
form_params = opts[:form_params] || {}
|
@@ -21,7 +21,6 @@ module Fastly
|
|
21
21
|
# Delete an item from an kv store
|
22
22
|
# @option opts [String] :store_id (required)
|
23
23
|
# @option opts [String] :key_name (required)
|
24
|
-
# @option opts [Boolean] :force
|
25
24
|
# @return [nil]
|
26
25
|
def delete_key_from_store(opts = {})
|
27
26
|
delete_key_from_store_with_http_info(opts)
|
@@ -32,7 +31,6 @@ module Fastly
|
|
32
31
|
# Delete an item from an kv store
|
33
32
|
# @option opts [String] :store_id (required)
|
34
33
|
# @option opts [String] :key_name (required)
|
35
|
-
# @option opts [Boolean] :force
|
36
34
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
37
35
|
def delete_key_from_store_with_http_info(opts = {})
|
38
36
|
if @api_client.config.debugging
|
@@ -54,7 +52,6 @@ module Fastly
|
|
54
52
|
|
55
53
|
# query parameters
|
56
54
|
query_params = opts[:query_params] || {}
|
57
|
-
query_params[:'force'] = opts[:'force'] if !opts[:'force'].nil?
|
58
55
|
|
59
56
|
# header parameters
|
60
57
|
header_params = opts[:header_params] || {}
|
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
|
@@ -17,6 +17,69 @@ module Fastly
|
|
17
17
|
def initialize(api_client = ApiClient.default)
|
18
18
|
@api_client = api_client
|
19
19
|
end
|
20
|
+
# Get a token
|
21
|
+
# Get a single token by its id.
|
22
|
+
# @option opts [String] :token_id Alphanumeric string identifying a token. (required)
|
23
|
+
# @return [TokenResponse]
|
24
|
+
def get_token(opts = {})
|
25
|
+
data, _status_code, _headers = get_token_with_http_info(opts)
|
26
|
+
data
|
27
|
+
end
|
28
|
+
|
29
|
+
# Get a token
|
30
|
+
# Get a single token by its id.
|
31
|
+
# @option opts [String] :token_id Alphanumeric string identifying a token. (required)
|
32
|
+
# @return [Array<(TokenResponse, Integer, Hash)>] TokenResponse data, response status code and response headers
|
33
|
+
def get_token_with_http_info(opts = {})
|
34
|
+
if @api_client.config.debugging
|
35
|
+
@api_client.config.logger.debug 'Calling API: TokensApi.get_token ...'
|
36
|
+
end
|
37
|
+
# unbox the parameters from the hash
|
38
|
+
token_id = opts[:'token_id']
|
39
|
+
# verify the required parameter 'token_id' is set
|
40
|
+
if @api_client.config.client_side_validation && token_id.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'token_id' when calling TokensApi.get_token"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/tokens/{token_id}'.sub('{' + 'token_id' + '}', CGI.escape(token_id.to_s))
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = opts[:query_params] || {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:debug_body]
|
59
|
+
|
60
|
+
# return_type
|
61
|
+
return_type = opts[:debug_return_type] || 'TokenResponse'
|
62
|
+
|
63
|
+
# auth_names
|
64
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
65
|
+
|
66
|
+
new_options = opts.merge(
|
67
|
+
:operation => :"TokensApi.get_token",
|
68
|
+
:header_params => header_params,
|
69
|
+
:query_params => query_params,
|
70
|
+
:form_params => form_params,
|
71
|
+
:body => post_body,
|
72
|
+
:auth_names => auth_names,
|
73
|
+
:return_type => return_type
|
74
|
+
)
|
75
|
+
|
76
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
77
|
+
if @api_client.config.debugging
|
78
|
+
@api_client.config.logger.debug "API called: TokensApi#get_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
|
20
83
|
# Get the current token
|
21
84
|
# Get a single token based on the access_token used in the request.
|
22
85
|
# @return [TokenResponse]
|