fastly 4.1.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/Gemfile.lock +1 -1
- data/README.md +93 -11
- data/docs/Backend.md +1 -1
- data/docs/BackendApi.md +4 -4
- data/docs/BackendResponse.md +1 -1
- data/docs/DomainOwnershipsApi.md +47 -0
- data/docs/EnabledProductResponse.md +12 -0
- data/docs/EnabledProductResponseLinks.md +11 -0
- data/docs/{EnabledProductProduct.md → EnabledProductResponseProduct.md} +3 -3
- data/docs/EnabledProductResponseService.md +11 -0
- data/docs/EnabledProductsApi.md +7 -7
- data/docs/EventsApi.md +2 -0
- data/docs/HistoricalApi.md +10 -10
- data/docs/{EnabledProductLinks.md → InlineResponse2002.md} +2 -3
- data/docs/{GetStoresResponse.md → InlineResponse2003.md} +2 -2
- data/docs/{GetStoresResponseMeta.md → InlineResponse2003Meta.md} +1 -1
- data/docs/{KeyResponse.md → InlineResponse2004.md} +2 -2
- data/docs/{ResourceCreateAllOf.md → InlineResponse2004Meta.md} +3 -2
- data/docs/ObjectStoreApi.md +3 -166
- data/docs/ObjectStoreItemApi.md +177 -0
- data/docs/Pop.md +7 -4
- data/docs/PopCoordinates.md +2 -4
- data/docs/RealtimeMeasurements.md +10 -2
- data/docs/Resource.md +2 -1
- data/docs/ResourceApi.md +34 -32
- data/docs/ResourceResponse.md +3 -3
- data/docs/ResourceResponseAllOf.md +1 -1
- data/docs/Results.md +11 -3
- data/docs/TlsSubscriptionResponseAttributes.md +1 -1
- data/docs/TlsSubscriptionResponseAttributesAllOf.md +1 -1
- data/docs/TlsSubscriptionsApi.md +3 -3
- data/lib/fastly/api/backend_api.rb +4 -4
- data/lib/fastly/api/domain_ownerships_api.rb +76 -0
- data/lib/fastly/api/enabled_products_api.rb +12 -12
- data/lib/fastly/api/events_api.rb +3 -0
- data/lib/fastly/api/historical_api.rb +10 -10
- data/lib/fastly/api/object_store_api.rb +5 -289
- data/lib/fastly/api/object_store_item_api.rb +304 -0
- data/lib/fastly/api/purge_api.rb +2 -2
- data/lib/fastly/api/resource_api.rb +51 -48
- data/lib/fastly/api/tls_subscriptions_api.rb +4 -4
- data/lib/fastly/models/backend.rb +1 -1
- data/lib/fastly/models/backend_response.rb +1 -1
- data/lib/fastly/models/{enabled_product.rb → enabled_product_response.rb} +6 -6
- data/lib/fastly/models/{enabled_product_links.rb → enabled_product_response_links.rb} +5 -3
- data/lib/fastly/models/{enabled_product_product.rb → enabled_product_response_product.rb} +5 -3
- data/lib/fastly/models/enabled_product_response_service.rb +227 -0
- data/lib/fastly/models/{resource_create_all_of.rb → inline_response2002.rb} +11 -11
- data/lib/fastly/models/{get_stores_response.rb → inline_response2003.rb} +4 -4
- data/lib/fastly/models/{get_stores_response_meta.rb → inline_response2003_meta.rb} +3 -3
- data/lib/fastly/models/{key_response.rb → inline_response2004.rb} +4 -4
- data/lib/fastly/models/inline_response2004_meta.rb +225 -0
- data/lib/fastly/models/pop.rb +121 -1
- data/lib/fastly/models/pop_coordinates.rb +12 -19
- data/lib/fastly/models/realtime_measurements.rb +86 -6
- data/lib/fastly/models/resource.rb +12 -2
- data/lib/fastly/models/resource_response.rb +23 -23
- data/lib/fastly/models/resource_response_all_of.rb +1 -1
- data/lib/fastly/models/results.rb +87 -7
- data/lib/fastly/models/tls_subscription_response_attributes.rb +2 -2
- data/lib/fastly/models/tls_subscription_response_attributes_all_of.rb +2 -2
- data/lib/fastly/models/type_resource.rb +2 -0
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +11 -8
- data/sig.json +1 -1
- metadata +24 -18
- data/docs/EnabledProduct.md +0 -12
- data/docs/ResourceCreate.md +0 -11
- data/lib/fastly/models/resource_create.rb +0 -235
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **id** | **String** | An alphanumeric string identifying the resource. | [optional] |
|
7
|
+
| **id** | **String** | An alphanumeric string identifying the resource link. | [optional] |
|
8
8
|
| **href** | **String** | The path to the resource. | [optional] |
|
9
9
|
| **service_id** | **String** | Alphanumeric string identifying the service. | [optional] |
|
10
10
|
| **version** | **Integer** | Integer identifying a service version. | [optional] |
|
data/docs/Results.md
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
| **errors** | **Integer** | Number of cache errors. | [optional] |
|
15
15
|
| **restarts** | **Integer** | Number of restarts performed. | [optional] |
|
16
16
|
| **hit_ratio** | **Float** | Ratio of cache hits to cache misses (between 0 and 1). | [optional] |
|
17
|
-
| **bandwidth** | **Integer** | Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes` + `compute_resp_header_bytes` + `compute_resp_body_bytes` + `compute_bereq_header_bytes` + `compute_bereq_body_bytes` + `websocket_resp_header_bytes` + `websocket_resp_body_bytes` + `websocket_bereq_header_bytes` + `websocket_bereq_body_bytes`). | [optional] |
|
17
|
+
| **bandwidth** | **Integer** | Total bytes delivered (`resp_header_bytes` + `resp_body_bytes` + `bereq_header_bytes` + `bereq_body_bytes` + `compute_resp_header_bytes` + `compute_resp_body_bytes` + `compute_bereq_header_bytes` + `compute_bereq_body_bytes` + `websocket_resp_header_bytes` + `websocket_resp_body_bytes` + `websocket_bereq_header_bytes` + `websocket_bereq_body_bytes` + `fanout_resp_header_bytes` + `fanout_resp_body_bytes` + `fanout_bereq_header_bytes` + `fanout_bereq_body_bytes`). | [optional] |
|
18
18
|
| **body_size** | **Integer** | Total body bytes delivered (alias for resp_body_bytes). | [optional] |
|
19
19
|
| **header_size** | **Integer** | Total header bytes delivered (alias for resp_header_bytes). | [optional] |
|
20
20
|
| **req_body_bytes** | **Integer** | Total body bytes received. | [optional] |
|
@@ -200,8 +200,10 @@
|
|
200
200
|
| **websocket_conn_time_ms** | **Integer** | Total duration of passthrough WebSocket connections with end users. | [optional] |
|
201
201
|
| **fanout_recv_publishes** | **Integer** | Total published messages received from the publish API endpoint. | [optional] |
|
202
202
|
| **fanout_send_publishes** | **Integer** | Total published messages sent to end users. | [optional] |
|
203
|
-
| **
|
204
|
-
| **
|
203
|
+
| **object_store_class_a_operations** | **Integer** | The total number of class a operations for the object store. | [optional] |
|
204
|
+
| **object_store_class_b_operations** | **Integer** | The total number of class b operations for the object store. | [optional] |
|
205
|
+
| **object_store_read_requests** | **Integer** | Use object_store_class_b_operations. | [optional] |
|
206
|
+
| **object_store_write_requests** | **Integer** | Use object_store_class_a_operations. | [optional] |
|
205
207
|
| **fanout_req_header_bytes** | **Integer** | Total header bytes received from end users over Fanout connections. | [optional] |
|
206
208
|
| **fanout_req_body_bytes** | **Integer** | Total body or message content bytes received from end users over Fanout connections. | [optional] |
|
207
209
|
| **fanout_resp_header_bytes** | **Integer** | Total header bytes sent to end users over Fanout connections. | [optional] |
|
@@ -211,6 +213,12 @@
|
|
211
213
|
| **fanout_beresp_header_bytes** | **Integer** | Total header bytes received from backends over Fanout connections. | [optional] |
|
212
214
|
| **fanout_beresp_body_bytes** | **Integer** | Total body or message content bytes received from backends over Fanout connections. | [optional] |
|
213
215
|
| **fanout_conn_time_ms** | **Integer** | Total duration of Fanout connections with end users. | [optional] |
|
216
|
+
| **ddos_action_limit_streams_connections** | **Integer** | For HTTP/2, the number of connections the limit-streams action was applied to. The limit-streams action caps the allowed number of concurrent streams in a connection. | [optional] |
|
217
|
+
| **ddos_action_limit_streams_requests** | **Integer** | For HTTP/2, the number of requests made on a connection for which the limit-streams action was taken. The limit-streams action caps the allowed number of concurrent streams in a connection. | [optional] |
|
218
|
+
| **ddos_action_tarpit_accept** | **Integer** | The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections. | [optional] |
|
219
|
+
| **ddos_action_tarpit** | **Integer** | The number of times the tarpit action was taken. The tarpit action delays writing the response to the client. | [optional] |
|
220
|
+
| **ddos_action_close** | **Integer** | The number of times the close action was taken. The close action aborts the connection as soon as possible. The close action takes effect either right after accept, right after the client hello, or right after the response was sent. | [optional] |
|
221
|
+
| **ddos_action_blackhole** | **Integer** | The number of times the blackhole action was taken. The blackhole action quietly closes a TCP connection without sending a reset. The blackhole action quietly closes a TCP connection without notifying its peer (all TCP state is dropped). | [optional] |
|
214
222
|
|
215
223
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
216
224
|
|
@@ -7,7 +7,7 @@
|
|
7
7
|
| **created_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
8
8
|
| **deleted_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
9
9
|
| **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
10
|
-
| **state** | **String** | The current state of your subscription. | [optional]
|
10
|
+
| **state** | **String** | The current state of your subscription. | [optional] |
|
11
11
|
|
12
12
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
13
13
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **state** | **String** | The current state of your subscription. | [optional]
|
7
|
+
| **state** | **String** | The current state of your subscription. | [optional] |
|
8
8
|
|
9
9
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
10
10
|
|
data/docs/TlsSubscriptionsApi.md
CHANGED
@@ -227,7 +227,7 @@ List all TLS subscriptions.
|
|
227
227
|
```ruby
|
228
228
|
api_instance = Fastly::TlsSubscriptionsApi.new
|
229
229
|
opts = {
|
230
|
-
filter_state: 'filter_state_example', # String | Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, and `
|
230
|
+
filter_state: 'filter_state_example', # String | Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, `renewing`, and `failed`. Accepts parameters: `not` (e.g., `filter[state][not]=renewing`).
|
231
231
|
filter_tls_domains_id: 'filter_tls_domains_id_example', # String | Limit the returned subscriptions to those that include the specific domain.
|
232
232
|
filter_has_active_order: true, # Boolean | Limit the returned subscriptions to those that have currently active orders. Permitted values: `true`.
|
233
233
|
include: 'tls_authorizations', # String | Include related objects. Optional, comma-separated values. Permitted values: `tls_authorizations` and `tls_authorizations.globalsign_email_challenge`.
|
@@ -249,7 +249,7 @@ end
|
|
249
249
|
|
250
250
|
| Name | Type | Description | Notes |
|
251
251
|
| ---- | ---- | ----------- | ----- |
|
252
|
-
| **filter_state** | **String** | Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, and `
|
252
|
+
| **filter_state** | **String** | Limit the returned subscriptions by state. Valid values are `pending`, `processing`, `issued`, `renewing`, and `failed`. Accepts parameters: `not` (e.g., `filter[state][not]=renewing`). | [optional] |
|
253
253
|
| **filter_tls_domains_id** | **String** | Limit the returned subscriptions to those that include the specific domain. | [optional] |
|
254
254
|
| **filter_has_active_order** | **Boolean** | Limit the returned subscriptions to those that have currently active orders. Permitted values: `true`. | [optional] |
|
255
255
|
| **include** | **String** | Include related objects. Optional, comma-separated values. Permitted values: `tls_authorizations` and `tls_authorizations.globalsign_email_challenge`. | [optional] |
|
@@ -269,7 +269,7 @@ end
|
|
269
269
|
patch_tls_sub(opts): <TlsSubscriptionResponse> # Update a TLS subscription
|
270
270
|
```
|
271
271
|
|
272
|
-
Change the TLS domains or common name associated with this subscription,
|
272
|
+
Change the TLS domains or common name associated with this subscription, update the TLS configuration for this set of domains, or retry a subscription with state `failed` by setting the state to `retry`.
|
273
273
|
|
274
274
|
### Examples
|
275
275
|
|
@@ -32,7 +32,7 @@ module Fastly
|
|
32
32
|
# @option opts [String] :hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location.
|
33
33
|
# @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
|
34
34
|
# @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
|
35
|
-
# @option opts [Integer] :keepalive_time How long to keep a persistent connection to the backend between requests.
|
35
|
+
# @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests.
|
36
36
|
# @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
|
37
37
|
# @option opts [String] :max_tls_version Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
38
38
|
# @option opts [String] :min_tls_version Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
@@ -72,7 +72,7 @@ module Fastly
|
|
72
72
|
# @option opts [String] :hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location.
|
73
73
|
# @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
|
74
74
|
# @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
|
75
|
-
# @option opts [Integer] :keepalive_time How long to keep a persistent connection to the backend between requests.
|
75
|
+
# @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests.
|
76
76
|
# @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
|
77
77
|
# @option opts [String] :max_tls_version Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
78
78
|
# @option opts [String] :min_tls_version Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
@@ -422,7 +422,7 @@ module Fastly
|
|
422
422
|
# @option opts [String] :hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location.
|
423
423
|
# @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
|
424
424
|
# @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
|
425
|
-
# @option opts [Integer] :keepalive_time How long to keep a persistent connection to the backend between requests.
|
425
|
+
# @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests.
|
426
426
|
# @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
|
427
427
|
# @option opts [String] :max_tls_version Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
428
428
|
# @option opts [String] :min_tls_version Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
@@ -463,7 +463,7 @@ module Fastly
|
|
463
463
|
# @option opts [String] :hostname The hostname of the backend. May be used as an alternative to `address` to set the backend location.
|
464
464
|
# @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to `address` to set the backend location.
|
465
465
|
# @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to `address` to set the backend location.
|
466
|
-
# @option opts [Integer] :keepalive_time How long to keep a persistent connection to the backend between requests.
|
466
|
+
# @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests.
|
467
467
|
# @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
|
468
468
|
# @option opts [String] :max_tls_version Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
469
469
|
# @option opts [String] :min_tls_version Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic `503` error response will be generated.
|
@@ -0,0 +1,76 @@
|
|
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 DomainOwnershipsApi
|
15
|
+
attr_accessor :api_client
|
16
|
+
|
17
|
+
def initialize(api_client = ApiClient.default)
|
18
|
+
@api_client = api_client
|
19
|
+
end
|
20
|
+
# List domain-ownerships
|
21
|
+
# List all domain-ownerships.
|
22
|
+
# @return [InlineResponse2002]
|
23
|
+
def list_domain_ownerships(opts = {})
|
24
|
+
data, _status_code, _headers = list_domain_ownerships_with_http_info(opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# List domain-ownerships
|
29
|
+
# List all domain-ownerships.
|
30
|
+
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
31
|
+
def list_domain_ownerships_with_http_info(opts = {})
|
32
|
+
if @api_client.config.debugging
|
33
|
+
@api_client.config.logger.debug 'Calling API: DomainOwnershipsApi.list_domain_ownerships ...'
|
34
|
+
end
|
35
|
+
# unbox the parameters from the hash
|
36
|
+
# resource path
|
37
|
+
local_var_path = '/domain-ownerships'
|
38
|
+
|
39
|
+
# query parameters
|
40
|
+
query_params = opts[:query_params] || {}
|
41
|
+
|
42
|
+
# header parameters
|
43
|
+
header_params = opts[:header_params] || {}
|
44
|
+
# HTTP header 'Accept' (if needed)
|
45
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
46
|
+
|
47
|
+
# form parameters
|
48
|
+
form_params = opts[:form_params] || {}
|
49
|
+
|
50
|
+
# http body (model)
|
51
|
+
post_body = opts[:debug_body]
|
52
|
+
|
53
|
+
# return_type
|
54
|
+
return_type = opts[:debug_return_type] || 'InlineResponse2002'
|
55
|
+
|
56
|
+
# auth_names
|
57
|
+
auth_names = opts[:debug_auth_names] || ['token']
|
58
|
+
|
59
|
+
new_options = opts.merge(
|
60
|
+
:operation => :"DomainOwnershipsApi.list_domain_ownerships",
|
61
|
+
:header_params => header_params,
|
62
|
+
:query_params => query_params,
|
63
|
+
:form_params => form_params,
|
64
|
+
:body => post_body,
|
65
|
+
:auth_names => auth_names,
|
66
|
+
:return_type => return_type
|
67
|
+
)
|
68
|
+
|
69
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
70
|
+
if @api_client.config.debugging
|
71
|
+
@api_client.config.logger.debug "API called: DomainOwnershipsApi#list_domain_ownerships\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
72
|
+
end
|
73
|
+
return data, status_code, headers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -18,7 +18,7 @@ module Fastly
|
|
18
18
|
@api_client = api_client
|
19
19
|
end
|
20
20
|
# Disable a product
|
21
|
-
# Disable a product on a service. Supported product IDs: `
|
21
|
+
# Disable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, and `websockets`.
|
22
22
|
# @option opts [String] :product_id (required)
|
23
23
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
24
24
|
# @return [nil]
|
@@ -28,7 +28,7 @@ module Fastly
|
|
28
28
|
end
|
29
29
|
|
30
30
|
# Disable a product
|
31
|
-
# Disable a product on a service. Supported product IDs: `
|
31
|
+
# Disable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, and `websockets`.
|
32
32
|
# @option opts [String] :product_id (required)
|
33
33
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
34
34
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -86,20 +86,20 @@ module Fastly
|
|
86
86
|
end
|
87
87
|
|
88
88
|
# Enable a product
|
89
|
-
# Enable a product on a service. Supported product IDs: `
|
89
|
+
# Enable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, and `websockets`.
|
90
90
|
# @option opts [String] :product_id (required)
|
91
91
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
92
|
-
# @return [
|
92
|
+
# @return [EnabledProductResponse]
|
93
93
|
def enable_product(opts = {})
|
94
94
|
data, _status_code, _headers = enable_product_with_http_info(opts)
|
95
95
|
data
|
96
96
|
end
|
97
97
|
|
98
98
|
# Enable a product
|
99
|
-
# Enable a product on a service. Supported product IDs: `
|
99
|
+
# Enable a product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, and `websockets`.
|
100
100
|
# @option opts [String] :product_id (required)
|
101
101
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
102
|
-
# @return [Array<(
|
102
|
+
# @return [Array<(EnabledProductResponse, Integer, Hash)>] EnabledProductResponse data, response status code and response headers
|
103
103
|
def enable_product_with_http_info(opts = {})
|
104
104
|
if @api_client.config.debugging
|
105
105
|
@api_client.config.logger.debug 'Calling API: EnabledProductsApi.enable_product ...'
|
@@ -133,7 +133,7 @@ module Fastly
|
|
133
133
|
post_body = opts[:debug_body]
|
134
134
|
|
135
135
|
# return_type
|
136
|
-
return_type = opts[:debug_return_type] || '
|
136
|
+
return_type = opts[:debug_return_type] || 'EnabledProductResponse'
|
137
137
|
|
138
138
|
# auth_names
|
139
139
|
auth_names = opts[:debug_auth_names] || ['token']
|
@@ -156,20 +156,20 @@ module Fastly
|
|
156
156
|
end
|
157
157
|
|
158
158
|
# Get enabled product
|
159
|
-
# Get enabled product on a service. Supported product IDs: `
|
159
|
+
# Get enabled product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, and `websockets`.
|
160
160
|
# @option opts [String] :product_id (required)
|
161
161
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
162
|
-
# @return [
|
162
|
+
# @return [EnabledProductResponse]
|
163
163
|
def get_enabled_product(opts = {})
|
164
164
|
data, _status_code, _headers = get_enabled_product_with_http_info(opts)
|
165
165
|
data
|
166
166
|
end
|
167
167
|
|
168
168
|
# Get enabled product
|
169
|
-
# Get enabled product on a service. Supported product IDs: `
|
169
|
+
# Get enabled product on a service. Supported product IDs: `brotli_compression`,`domain_inspector`,`fanout`,`image_optimizer`,`origin_inspector`, and `websockets`.
|
170
170
|
# @option opts [String] :product_id (required)
|
171
171
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
172
|
-
# @return [Array<(
|
172
|
+
# @return [Array<(EnabledProductResponse, Integer, Hash)>] EnabledProductResponse data, response status code and response headers
|
173
173
|
def get_enabled_product_with_http_info(opts = {})
|
174
174
|
if @api_client.config.debugging
|
175
175
|
@api_client.config.logger.debug 'Calling API: EnabledProductsApi.get_enabled_product ...'
|
@@ -203,7 +203,7 @@ module Fastly
|
|
203
203
|
post_body = opts[:debug_body]
|
204
204
|
|
205
205
|
# return_type
|
206
|
-
return_type = opts[:debug_return_type] || '
|
206
|
+
return_type = opts[:debug_return_type] || 'EnabledProductResponse'
|
207
207
|
|
208
208
|
# auth_names
|
209
209
|
auth_names = opts[:debug_auth_names] || ['token']
|
@@ -87,6 +87,7 @@ module Fastly
|
|
87
87
|
# @option opts [String] :filter_service_id Limit the results returned to a specific service.
|
88
88
|
# @option opts [String] :filter_user_id Limit the results returned to a specific user.
|
89
89
|
# @option opts [String] :filter_token_id Limit the returned events to a specific token.
|
90
|
+
# @option opts [String] :filter_created_at Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12).
|
90
91
|
# @option opts [Integer] :page_number Current page.
|
91
92
|
# @option opts [Integer] :page_size Number of records per page. (default to 20)
|
92
93
|
# @option opts [String] :sort The order in which to list the results by creation date. (default to 'created_at')
|
@@ -103,6 +104,7 @@ module Fastly
|
|
103
104
|
# @option opts [String] :filter_service_id Limit the results returned to a specific service.
|
104
105
|
# @option opts [String] :filter_user_id Limit the results returned to a specific user.
|
105
106
|
# @option opts [String] :filter_token_id Limit the returned events to a specific token.
|
107
|
+
# @option opts [String] :filter_created_at Limit the returned events to a specific time frame. Accepts sub-parameters: lt, lte, gt, gte (e.g., filter[created_at][gt]=2022-01-12).
|
106
108
|
# @option opts [Integer] :page_number Current page.
|
107
109
|
# @option opts [Integer] :page_size Number of records per page. (default to 20)
|
108
110
|
# @option opts [String] :sort The order in which to list the results by creation date. (default to 'created_at')
|
@@ -134,6 +136,7 @@ module Fastly
|
|
134
136
|
query_params[:'filter[service_id]'] = opts[:'filter_service_id'] if !opts[:'filter_service_id'].nil?
|
135
137
|
query_params[:'filter[user_id]'] = opts[:'filter_user_id'] if !opts[:'filter_user_id'].nil?
|
136
138
|
query_params[:'filter[token_id]'] = opts[:'filter_token_id'] if !opts[:'filter_token_id'].nil?
|
139
|
+
query_params[:'filter[created_at]'] = opts[:'filter_created_at'] if !opts[:'filter_created_at'].nil?
|
137
140
|
query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
|
138
141
|
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
139
142
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
@@ -22,7 +22,7 @@ module Fastly
|
|
22
22
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
23
23
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
24
24
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
25
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea
|
25
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America.
|
26
26
|
# @return [HistoricalResponse]
|
27
27
|
def get_hist_stats(opts = {})
|
28
28
|
data, _status_code, _headers = get_hist_stats_with_http_info(opts)
|
@@ -34,7 +34,7 @@ module Fastly
|
|
34
34
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
35
35
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
36
36
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
37
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea
|
37
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America.
|
38
38
|
# @return [Array<(HistoricalResponse, Integer, Hash)>] HistoricalResponse data, response status code and response headers
|
39
39
|
def get_hist_stats_with_http_info(opts = {})
|
40
40
|
if @api_client.config.debugging
|
@@ -98,7 +98,7 @@ module Fastly
|
|
98
98
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
99
99
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
100
100
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
101
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea
|
101
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America.
|
102
102
|
# @return [HistoricalAggregateResponse]
|
103
103
|
def get_hist_stats_aggregated(opts = {})
|
104
104
|
data, _status_code, _headers = get_hist_stats_aggregated_with_http_info(opts)
|
@@ -110,7 +110,7 @@ module Fastly
|
|
110
110
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
111
111
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
112
112
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
113
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea
|
113
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America.
|
114
114
|
# @return [Array<(HistoricalAggregateResponse, Integer, Hash)>] HistoricalAggregateResponse data, response status code and response headers
|
115
115
|
def get_hist_stats_aggregated_with_http_info(opts = {})
|
116
116
|
if @api_client.config.debugging
|
@@ -175,7 +175,7 @@ module Fastly
|
|
175
175
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
176
176
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
177
177
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
178
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea
|
178
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America.
|
179
179
|
# @return [HistoricalFieldResponse]
|
180
180
|
def get_hist_stats_field(opts = {})
|
181
181
|
data, _status_code, _headers = get_hist_stats_field_with_http_info(opts)
|
@@ -188,7 +188,7 @@ module Fastly
|
|
188
188
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
189
189
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
190
190
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
191
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea
|
191
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America.
|
192
192
|
# @return [Array<(HistoricalFieldResponse, Integer, Hash)>] HistoricalFieldResponse data, response status code and response headers
|
193
193
|
def get_hist_stats_field_with_http_info(opts = {})
|
194
194
|
if @api_client.config.debugging
|
@@ -258,7 +258,7 @@ module Fastly
|
|
258
258
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
259
259
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
260
260
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
261
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea
|
261
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America.
|
262
262
|
# @return [HistoricalAggregateResponse]
|
263
263
|
def get_hist_stats_service(opts = {})
|
264
264
|
data, _status_code, _headers = get_hist_stats_service_with_http_info(opts)
|
@@ -271,7 +271,7 @@ module Fastly
|
|
271
271
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
272
272
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
273
273
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
274
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea
|
274
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America.
|
275
275
|
# @return [Array<(HistoricalAggregateResponse, Integer, Hash)>] HistoricalAggregateResponse data, response status code and response headers
|
276
276
|
def get_hist_stats_service_with_http_info(opts = {})
|
277
277
|
if @api_client.config.debugging
|
@@ -342,7 +342,7 @@ module Fastly
|
|
342
342
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
343
343
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
344
344
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
345
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea
|
345
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America.
|
346
346
|
# @return [HistoricalFieldAggregateResponse]
|
347
347
|
def get_hist_stats_service_field(opts = {})
|
348
348
|
data, _status_code, _headers = get_hist_stats_service_field_with_http_info(opts)
|
@@ -356,7 +356,7 @@ module Fastly
|
|
356
356
|
# @option opts [String] :from Timestamp that defines the start of the window for which to fetch statistics, including the timestamp itself. Accepts Unix timestamps, or any form of input parsable by the [Chronic Ruby library](https://github.com/mojombo/chronic), such as 'yesterday', or 'two weeks ago'. Default varies based on the value of `by`.
|
357
357
|
# @option opts [String] :to Timestamp that defines the end of the window for which to fetch statistics. Accepts the same formats as `from`. (default to 'now')
|
358
358
|
# @option opts [String] :by Duration of sample windows. One of: * `hour` - Group data by hour. * `minute` - Group data by minute. * `day` - Group data by day. (default to 'day')
|
359
|
-
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea
|
359
|
+
# @option opts [String] :region Limit query to a specific geographic region. One of: * `usa` - North America. * `europe` - Europe. * `anzac` - Australia and New Zealand. * `asia` - Asia. * `asia_india` - India. * `asia_southkorea` - South Korea. * `africa_std` - Africa. * `southamerica_std` - South America.
|
360
360
|
# @return [Array<(HistoricalFieldAggregateResponse, Integer, Hash)>] HistoricalFieldAggregateResponse data, response status code and response headers
|
361
361
|
def get_hist_stats_service_field_with_http_info(opts = {})
|
362
362
|
if @api_client.config.debugging
|