fastly 7.2.2 → 8.0.1
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 +27 -0
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/docs/CreateResponseObjectRequest.md +16 -0
- data/docs/HistoricalApi.md +12 -12
- data/docs/{HistoricalAggregateResponse.md → HistoricalStatsAggregatedResponse.md} +1 -1
- data/docs/{HistoricalAggregateResponseAllOf.md → HistoricalStatsAggregatedResponseAllOf.md} +1 -1
- data/docs/{HistoricalResponse.md → HistoricalStatsByServiceResponse.md} +1 -1
- data/docs/{HistoricalResponseDataField.md → HistoricalStatsByServiceResponseAllOf.md} +1 -1
- data/docs/{HistoricalFieldResponse.md → HistoricalUsageAggregatedResponse.md} +2 -2
- data/docs/{HistoricalFieldResponseDataField.md → HistoricalUsageAggregatedResponseAllOf.md} +2 -2
- data/docs/{HistoricalUsageResults.md → HistoricalUsageData.md} +1 -1
- data/docs/HistoricalUsageMonthResponseData.md +2 -2
- data/docs/{HistoricalService.md → HistoricalUsageService.md} +1 -1
- data/docs/HistoricalUsageServiceResponse.md +1 -1
- data/docs/HistoricalUsageServiceResponseAllOf.md +1 -1
- data/docs/ResponseObjectApi.md +4 -0
- data/docs/Results.md +2 -0
- data/docs/TlsConfigurationResponseAttributes.md +1 -1
- data/docs/TlsConfigurationResponseAttributesAllOf.md +1 -1
- data/lib/fastly/api/historical_api.rb +18 -18
- data/lib/fastly/api/response_object_api.rb +8 -4
- data/lib/fastly/models/{historical_field_aggregate_response.rb → create_response_object_request.rb} +59 -35
- data/lib/fastly/models/{historical_aggregate_response.rb → historical_stats_aggregated_response.rb} +4 -4
- data/lib/fastly/models/{historical_aggregate_response_all_of.rb → historical_stats_aggregated_response_all_of.rb} +3 -3
- data/lib/fastly/models/{historical_response.rb → historical_stats_by_service_response.rb} +4 -4
- data/lib/fastly/models/{historical_response_data_field.rb → historical_stats_by_service_response_all_of.rb} +3 -3
- data/lib/fastly/models/{historical_field_response.rb → historical_usage_aggregated_response.rb} +6 -5
- data/lib/fastly/models/{historical_field_response_data_field.rb → historical_usage_aggregated_response_all_of.rb} +5 -4
- data/lib/fastly/models/{historical_usage_results.rb → historical_usage_data.rb} +4 -3
- data/lib/fastly/models/historical_usage_month_response_data.rb +7 -3
- data/lib/fastly/models/{historical_service.rb → historical_usage_service.rb} +3 -3
- data/lib/fastly/models/historical_usage_service_response.rb +5 -2
- data/lib/fastly/models/historical_usage_service_response_all_of.rb +5 -2
- data/lib/fastly/models/relationship_mutual_authentication.rb +1 -1
- data/lib/fastly/models/relationship_tls_domain.rb +1 -1
- data/lib/fastly/models/results.rb +24 -5
- data/lib/fastly/models/tls_configuration_response_attributes.rb +1 -1
- data/lib/fastly/models/tls_configuration_response_attributes_all_of.rb +1 -1
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +9 -14
- data/sig.json +1 -1
- metadata +20 -30
- data/docs/HistoricalFieldAggregateResponse.md +0 -13
- data/docs/HistoricalFieldAggregateResponseAllOf.md +0 -10
- data/docs/HistoricalFieldResultsAttributes.md +0 -236
- data/docs/HistoricalFieldResultsAttributesAdditional.md +0 -11
- data/docs/HistoricalUsageAggregateResponse.md +0 -13
- data/docs/ReadOnlyIdService.md +0 -9
- data/lib/fastly/models/historical_field_aggregate_response_all_of.rb +0 -218
- data/lib/fastly/models/historical_field_results_attributes.rb +0 -2484
- data/lib/fastly/models/historical_field_results_attributes_additional.rb +0 -225
- data/lib/fastly/models/historical_usage_aggregate_response.rb +0 -254
- data/lib/fastly/models/read_only_id_service.rb +0 -207
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: baeb444f182b9b9c796d22aaefb30c3ec27cc728bd72975c622d629a10e874a0
|
4
|
+
data.tar.gz: 8b08c29d4772f01a025eedad914d258bb8214db413d3ac68fba2e8f6192a04e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13fa8c51b1427324816653775e516f6dcf97cb0261649c64a25d4d8390b7ae9deecafa1bf6fb326c6dc58385e96f40cea0475ed8a3945a670e7c675643a62619
|
7
|
+
data.tar.gz: 534b61ad0595bae7b9e6376f86a5b6921d951654fc2be26e147957193da2fa402e2fb12c1a2e97883cf4368f0475da2be9f148ecdb0a007d8ecf228bdab3981c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,32 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v8.0.1](https://github.com/fastly/fastly-ruby/releases/tag/release/v8.0.1) (2024-02-19)
|
4
|
+
|
5
|
+
**Bug fixes:**
|
6
|
+
|
7
|
+
- fix(response_object): strongly type response_object create_update requests
|
8
|
+
- fix(tls_configurations): fix `tls_protocols` field to be a string array type
|
9
|
+
|
10
|
+
## [v8.0.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v8.0.0) (2023-11-29)
|
11
|
+
|
12
|
+
**Breaking:**
|
13
|
+
|
14
|
+
- breaking(historical): restructure OpenAPI schema to avoid duplicated data rendering.
|
15
|
+
|
16
|
+
**Bug fixes:**
|
17
|
+
|
18
|
+
- fix: no longer display Markdown syntax in code comments.
|
19
|
+
|
20
|
+
**Enhancements:**
|
21
|
+
|
22
|
+
- feat(stats): expose new `service_id` and `start_time` fields.
|
23
|
+
|
24
|
+
## [v7.2.2](https://github.com/fastly/fastly-ruby/releases/tag/release/v7.2.2) (2023-11-07)
|
25
|
+
|
26
|
+
**Enhancements:**
|
27
|
+
|
28
|
+
- feat(config_store): add `name` query param to list endpoint.
|
29
|
+
|
3
30
|
## [v7.2.1](https://github.com/fastly/fastly-ruby/releases/tag/release/v7.2.1) (2023-10-27)
|
4
31
|
|
5
32
|
**Documentation:**
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fastly (
|
4
|
+
fastly (8.0.1)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -38,7 +38,7 @@ GEM
|
|
38
38
|
unicode-display_width (>= 1.4.0, < 1.6)
|
39
39
|
ruby-progressbar (1.11.0)
|
40
40
|
stringio (3.0.1)
|
41
|
-
typhoeus (1.4.
|
41
|
+
typhoeus (1.4.1)
|
42
42
|
ethon (>= 0.9.0)
|
43
43
|
unicode-display_width (1.5.0)
|
44
44
|
|
data/README.md
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Fastly::CreateResponseObjectRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | The name of the response object to create. | [optional] |
|
8
|
+
| **status** | **String** | The status code the response will have. Defaults to 200. | [optional] |
|
9
|
+
| **response** | **String** | The status text the response will have. Defaults to 'OK'. | [optional] |
|
10
|
+
| **content** | **String** | The content the response will deliver. | [optional] |
|
11
|
+
| **content_type** | **String** | The MIME type of your response content. | [optional] |
|
12
|
+
| **request_condition** | **String** | Condition which, if met, will select this configuration during a request. Optional. | [optional] |
|
13
|
+
| **cache_condition** | **String** | Name of the cache condition controlling when this configuration applies. | [optional] |
|
14
|
+
|
15
|
+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
16
|
+
|
data/docs/HistoricalApi.md
CHANGED
@@ -24,7 +24,7 @@ api_instance = Fastly::HistoricalApi.new
|
|
24
24
|
## `get_hist_stats()`
|
25
25
|
|
26
26
|
```ruby
|
27
|
-
get_hist_stats(opts): <
|
27
|
+
get_hist_stats(opts): <HistoricalStatsByServiceResponse> # Get historical stats
|
28
28
|
```
|
29
29
|
|
30
30
|
Fetches historical stats for each of your Fastly services and groups the results by service ID.
|
@@ -60,14 +60,14 @@ end
|
|
60
60
|
|
61
61
|
### Return type
|
62
62
|
|
63
|
-
[**
|
63
|
+
[**HistoricalStatsByServiceResponse**](HistoricalStatsByServiceResponse.md)
|
64
64
|
|
65
65
|
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
66
66
|
[[Back to README]](../../README.md)
|
67
67
|
## `get_hist_stats_aggregated()`
|
68
68
|
|
69
69
|
```ruby
|
70
|
-
get_hist_stats_aggregated(opts): <
|
70
|
+
get_hist_stats_aggregated(opts): <HistoricalStatsAggregatedResponse> # Get aggregated historical stats
|
71
71
|
```
|
72
72
|
|
73
73
|
Fetches historical stats information aggregated across all of your Fastly services.
|
@@ -103,14 +103,14 @@ end
|
|
103
103
|
|
104
104
|
### Return type
|
105
105
|
|
106
|
-
[**
|
106
|
+
[**HistoricalStatsAggregatedResponse**](HistoricalStatsAggregatedResponse.md)
|
107
107
|
|
108
108
|
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
109
109
|
[[Back to README]](../../README.md)
|
110
110
|
## `get_hist_stats_field()`
|
111
111
|
|
112
112
|
```ruby
|
113
|
-
get_hist_stats_field(opts): <
|
113
|
+
get_hist_stats_field(opts): <HistoricalStatsByServiceResponse> # Get historical stats for a single field
|
114
114
|
```
|
115
115
|
|
116
116
|
Fetches the specified field from the historical stats for each of your services and groups the results by service ID.
|
@@ -148,14 +148,14 @@ end
|
|
148
148
|
|
149
149
|
### Return type
|
150
150
|
|
151
|
-
[**
|
151
|
+
[**HistoricalStatsByServiceResponse**](HistoricalStatsByServiceResponse.md)
|
152
152
|
|
153
153
|
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
154
154
|
[[Back to README]](../../README.md)
|
155
155
|
## `get_hist_stats_service()`
|
156
156
|
|
157
157
|
```ruby
|
158
|
-
get_hist_stats_service(opts): <
|
158
|
+
get_hist_stats_service(opts): <HistoricalStatsAggregatedResponse> # Get historical stats for a single service
|
159
159
|
```
|
160
160
|
|
161
161
|
Fetches historical stats for a given service.
|
@@ -193,14 +193,14 @@ end
|
|
193
193
|
|
194
194
|
### Return type
|
195
195
|
|
196
|
-
[**
|
196
|
+
[**HistoricalStatsAggregatedResponse**](HistoricalStatsAggregatedResponse.md)
|
197
197
|
|
198
198
|
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
199
199
|
[[Back to README]](../../README.md)
|
200
200
|
## `get_hist_stats_service_field()`
|
201
201
|
|
202
202
|
```ruby
|
203
|
-
get_hist_stats_service_field(opts): <
|
203
|
+
get_hist_stats_service_field(opts): <HistoricalStatsAggregatedResponse> # Get historical stats for a single service/field combination
|
204
204
|
```
|
205
205
|
|
206
206
|
Fetches the specified field from the historical stats for a given service.
|
@@ -240,7 +240,7 @@ end
|
|
240
240
|
|
241
241
|
### Return type
|
242
242
|
|
243
|
-
[**
|
243
|
+
[**HistoricalStatsAggregatedResponse**](HistoricalStatsAggregatedResponse.md)
|
244
244
|
|
245
245
|
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
246
246
|
[[Back to README]](../../README.md)
|
@@ -279,7 +279,7 @@ This endpoint does not need any parameter.
|
|
279
279
|
## `get_usage()`
|
280
280
|
|
281
281
|
```ruby
|
282
|
-
get_usage(opts): <
|
282
|
+
get_usage(opts): <HistoricalUsageAggregatedResponse> # Get usage statistics
|
283
283
|
```
|
284
284
|
|
285
285
|
Returns usage information aggregated across all Fastly services and grouped by region. To aggregate across all Fastly services by time period, see [`/stats/aggregate`](#get-hist-stats-aggregated).
|
@@ -311,7 +311,7 @@ end
|
|
311
311
|
|
312
312
|
### Return type
|
313
313
|
|
314
|
-
[**
|
314
|
+
[**HistoricalUsageAggregatedResponse**](HistoricalUsageAggregatedResponse.md)
|
315
315
|
|
316
316
|
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
|
317
317
|
[[Back to README]](../../README.md)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Fastly::
|
1
|
+
# Fastly::HistoricalUsageAggregatedResponse
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -7,7 +7,7 @@
|
|
7
7
|
| **status** | **String** | Whether or not we were able to successfully execute the query. | [optional] |
|
8
8
|
| **meta** | [**HistoricalMeta**](HistoricalMeta.md) | | [optional] |
|
9
9
|
| **msg** | **String** | If the query was not successful, this will provide a string that explains why. | [optional] |
|
10
|
-
| **data** | **Hash<String,
|
10
|
+
| **data** | [**Hash<String, HistoricalUsageData>**](HistoricalUsageData.md) | Organized by *region*. | [optional] |
|
11
11
|
|
12
12
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
13
13
|
|
@@ -1,10 +1,10 @@
|
|
1
|
-
# Fastly::
|
1
|
+
# Fastly::HistoricalUsageAggregatedResponseAllOf
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **data** | **Hash<String,
|
7
|
+
| **data** | [**Hash<String, HistoricalUsageData>**](HistoricalUsageData.md) | Organized by *region*. | [optional] |
|
8
8
|
|
9
9
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
10
10
|
|
@@ -5,8 +5,8 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **customer_id** | **String** | | [optional][readonly] |
|
8
|
-
| **services** | [**Hash<String,
|
9
|
-
| **total** | [**
|
8
|
+
| **services** | [**Hash<String, HistoricalUsageService>**](HistoricalUsageService.md) | Organized by *service id*. | [optional] |
|
9
|
+
| **total** | [**Hash<String, HistoricalUsageData>**](HistoricalUsageData.md) | Organized by *region*. | [optional] |
|
10
10
|
|
11
11
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
12
12
|
|
@@ -7,7 +7,7 @@
|
|
7
7
|
| **status** | **String** | Whether or not we were able to successfully execute the query. | [optional] |
|
8
8
|
| **meta** | [**HistoricalMeta**](HistoricalMeta.md) | | [optional] |
|
9
9
|
| **msg** | **String** | If the query was not successful, this will provide a string that explains why. | [optional] |
|
10
|
-
| **data** |
|
10
|
+
| **data** | **Hash<String, Hash<String, HistoricalUsageData>>** | Organized by *region*. | [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
|
-
| **data** |
|
7
|
+
| **data** | **Hash<String, Hash<String, HistoricalUsageData>>** | Organized by *region*. | [optional] |
|
8
8
|
|
9
9
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
10
10
|
|
data/docs/ResponseObjectApi.md
CHANGED
@@ -32,6 +32,7 @@ api_instance = Fastly::ResponseObjectApi.new
|
|
32
32
|
opts = {
|
33
33
|
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
34
34
|
version_id: 56, # Integer | Integer identifying a service version.
|
35
|
+
create_response_object_request: Fastly::CreateResponseObjectRequest.new, # CreateResponseObjectRequest |
|
35
36
|
}
|
36
37
|
|
37
38
|
begin
|
@@ -49,6 +50,7 @@ end
|
|
49
50
|
| ---- | ---- | ----------- | ----- |
|
50
51
|
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
51
52
|
| **version_id** | **Integer** | Integer identifying a service version. | |
|
53
|
+
| **create_response_object_request** | [**CreateResponseObjectRequest**](CreateResponseObjectRequest.md) | | [optional] |
|
52
54
|
|
53
55
|
### Return type
|
54
56
|
|
@@ -193,6 +195,7 @@ opts = {
|
|
193
195
|
service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
|
194
196
|
version_id: 56, # Integer | Integer identifying a service version.
|
195
197
|
response_object_name: 'response_object_name_example', # String | Name for the request settings.
|
198
|
+
create_response_object_request: Fastly::CreateResponseObjectRequest.new, # CreateResponseObjectRequest |
|
196
199
|
}
|
197
200
|
|
198
201
|
begin
|
@@ -211,6 +214,7 @@ end
|
|
211
214
|
| **service_id** | **String** | Alphanumeric string identifying the service. | |
|
212
215
|
| **version_id** | **Integer** | Integer identifying a service version. | |
|
213
216
|
| **response_object_name** | **String** | Name for the request settings. | |
|
217
|
+
| **create_response_object_request** | [**CreateResponseObjectRequest**](CreateResponseObjectRequest.md) | | [optional] |
|
214
218
|
|
215
219
|
### Return type
|
216
220
|
|
data/docs/Results.md
CHANGED
@@ -229,6 +229,8 @@
|
|
229
229
|
| **bot_challenges_issued** | **Integer** | The number of challenges issued. For example, the issuance of a CAPTCHA challenge. | [optional] |
|
230
230
|
| **bot_challenges_succeeded** | **Integer** | The number of successful challenge solutions processed. For example, a correct CAPTCHA solution. | [optional] |
|
231
231
|
| **bot_challenges_failed** | **Integer** | The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution. | [optional] |
|
232
|
+
| **service_id** | **String** | | [optional][readonly] |
|
233
|
+
| **start_time** | **Integer** | Timestamp for the start of the time period being reported | [optional] |
|
232
234
|
|
233
235
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
234
236
|
|
@@ -9,7 +9,7 @@
|
|
9
9
|
| **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
|
10
10
|
| **default** | **Boolean** | Signifies whether or not Fastly will use this configuration as a default when creating a new [TLS Activation](/reference/api/tls/custom-certs/activations/). | [optional][readonly] |
|
11
11
|
| **http_protocols** | **Array<String>** | HTTP protocols available on your configuration. | [optional][readonly] |
|
12
|
-
| **tls_protocols** | **Array<
|
12
|
+
| **tls_protocols** | **Array<String>** | TLS protocols available on your configuration. | [optional][readonly] |
|
13
13
|
| **bulk** | **Boolean** | Signifies whether the configuration is used for Platform TLS or not. | [optional][readonly] |
|
14
14
|
|
15
15
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **default** | **Boolean** | Signifies whether or not Fastly will use this configuration as a default when creating a new [TLS Activation](/reference/api/tls/custom-certs/activations/). | [optional][readonly] |
|
8
8
|
| **http_protocols** | **Array<String>** | HTTP protocols available on your configuration. | [optional][readonly] |
|
9
|
-
| **tls_protocols** | **Array<
|
9
|
+
| **tls_protocols** | **Array<String>** | TLS protocols available on your configuration. | [optional][readonly] |
|
10
10
|
| **bulk** | **Boolean** | Signifies whether the configuration is used for Platform TLS or not. | [optional][readonly] |
|
11
11
|
|
12
12
|
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
|
@@ -23,7 +23,7 @@ module Fastly
|
|
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
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
|
-
# @return [
|
26
|
+
# @return [HistoricalStatsByServiceResponse]
|
27
27
|
def get_hist_stats(opts = {})
|
28
28
|
data, _status_code, _headers = get_hist_stats_with_http_info(opts)
|
29
29
|
data
|
@@ -35,7 +35,7 @@ module Fastly
|
|
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
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
|
-
# @return [Array<(
|
38
|
+
# @return [Array<(HistoricalStatsByServiceResponse, Integer, Hash)>] HistoricalStatsByServiceResponse data, response status code and response headers
|
39
39
|
def get_hist_stats_with_http_info(opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: HistoricalApi.get_hist_stats ...'
|
@@ -71,7 +71,7 @@ module Fastly
|
|
71
71
|
post_body = opts[:debug_body]
|
72
72
|
|
73
73
|
# return_type
|
74
|
-
return_type = opts[:debug_return_type] || '
|
74
|
+
return_type = opts[:debug_return_type] || 'HistoricalStatsByServiceResponse'
|
75
75
|
|
76
76
|
# auth_names
|
77
77
|
auth_names = opts[:debug_auth_names] || ['token']
|
@@ -99,7 +99,7 @@ module Fastly
|
|
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
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
|
-
# @return [
|
102
|
+
# @return [HistoricalStatsAggregatedResponse]
|
103
103
|
def get_hist_stats_aggregated(opts = {})
|
104
104
|
data, _status_code, _headers = get_hist_stats_aggregated_with_http_info(opts)
|
105
105
|
data
|
@@ -111,7 +111,7 @@ module Fastly
|
|
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
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
|
-
# @return [Array<(
|
114
|
+
# @return [Array<(HistoricalStatsAggregatedResponse, Integer, Hash)>] HistoricalStatsAggregatedResponse 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
|
117
117
|
@api_client.config.logger.debug 'Calling API: HistoricalApi.get_hist_stats_aggregated ...'
|
@@ -147,7 +147,7 @@ module Fastly
|
|
147
147
|
post_body = opts[:debug_body]
|
148
148
|
|
149
149
|
# return_type
|
150
|
-
return_type = opts[:debug_return_type] || '
|
150
|
+
return_type = opts[:debug_return_type] || 'HistoricalStatsAggregatedResponse'
|
151
151
|
|
152
152
|
# auth_names
|
153
153
|
auth_names = opts[:debug_auth_names] || ['token']
|
@@ -176,7 +176,7 @@ module Fastly
|
|
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
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
|
-
# @return [
|
179
|
+
# @return [HistoricalStatsByServiceResponse]
|
180
180
|
def get_hist_stats_field(opts = {})
|
181
181
|
data, _status_code, _headers = get_hist_stats_field_with_http_info(opts)
|
182
182
|
data
|
@@ -189,7 +189,7 @@ module Fastly
|
|
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
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
|
-
# @return [Array<(
|
192
|
+
# @return [Array<(HistoricalStatsByServiceResponse, Integer, Hash)>] HistoricalStatsByServiceResponse 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
|
195
195
|
@api_client.config.logger.debug 'Calling API: HistoricalApi.get_hist_stats_field ...'
|
@@ -230,7 +230,7 @@ module Fastly
|
|
230
230
|
post_body = opts[:debug_body]
|
231
231
|
|
232
232
|
# return_type
|
233
|
-
return_type = opts[:debug_return_type] || '
|
233
|
+
return_type = opts[:debug_return_type] || 'HistoricalStatsByServiceResponse'
|
234
234
|
|
235
235
|
# auth_names
|
236
236
|
auth_names = opts[:debug_auth_names] || ['token']
|
@@ -259,7 +259,7 @@ module Fastly
|
|
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
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
|
-
# @return [
|
262
|
+
# @return [HistoricalStatsAggregatedResponse]
|
263
263
|
def get_hist_stats_service(opts = {})
|
264
264
|
data, _status_code, _headers = get_hist_stats_service_with_http_info(opts)
|
265
265
|
data
|
@@ -272,7 +272,7 @@ module Fastly
|
|
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
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
|
-
# @return [Array<(
|
275
|
+
# @return [Array<(HistoricalStatsAggregatedResponse, Integer, Hash)>] HistoricalStatsAggregatedResponse 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
|
278
278
|
@api_client.config.logger.debug 'Calling API: HistoricalApi.get_hist_stats_service ...'
|
@@ -313,7 +313,7 @@ module Fastly
|
|
313
313
|
post_body = opts[:debug_body]
|
314
314
|
|
315
315
|
# return_type
|
316
|
-
return_type = opts[:debug_return_type] || '
|
316
|
+
return_type = opts[:debug_return_type] || 'HistoricalStatsAggregatedResponse'
|
317
317
|
|
318
318
|
# auth_names
|
319
319
|
auth_names = opts[:debug_auth_names] || ['token']
|
@@ -343,7 +343,7 @@ module Fastly
|
|
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
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
|
-
# @return [
|
346
|
+
# @return [HistoricalStatsAggregatedResponse]
|
347
347
|
def get_hist_stats_service_field(opts = {})
|
348
348
|
data, _status_code, _headers = get_hist_stats_service_field_with_http_info(opts)
|
349
349
|
data
|
@@ -357,7 +357,7 @@ module Fastly
|
|
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
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
|
-
# @return [Array<(
|
360
|
+
# @return [Array<(HistoricalStatsAggregatedResponse, Integer, Hash)>] HistoricalStatsAggregatedResponse 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
|
363
363
|
@api_client.config.logger.debug 'Calling API: HistoricalApi.get_hist_stats_service_field ...'
|
@@ -403,7 +403,7 @@ module Fastly
|
|
403
403
|
post_body = opts[:debug_body]
|
404
404
|
|
405
405
|
# return_type
|
406
|
-
return_type = opts[:debug_return_type] || '
|
406
|
+
return_type = opts[:debug_return_type] || 'HistoricalStatsAggregatedResponse'
|
407
407
|
|
408
408
|
# auth_names
|
409
409
|
auth_names = opts[:debug_auth_names] || ['token']
|
@@ -485,7 +485,7 @@ module Fastly
|
|
485
485
|
# Returns usage information aggregated across all Fastly services and grouped by region. To aggregate across all Fastly services by time period, see [`/stats/aggregate`](#get-hist-stats-aggregated).
|
486
486
|
# @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`.
|
487
487
|
# @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')
|
488
|
-
# @return [
|
488
|
+
# @return [HistoricalUsageAggregatedResponse]
|
489
489
|
def get_usage(opts = {})
|
490
490
|
data, _status_code, _headers = get_usage_with_http_info(opts)
|
491
491
|
data
|
@@ -495,7 +495,7 @@ module Fastly
|
|
495
495
|
# Returns usage information aggregated across all Fastly services and grouped by region. To aggregate across all Fastly services by time period, see [`/stats/aggregate`](#get-hist-stats-aggregated).
|
496
496
|
# @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`.
|
497
497
|
# @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')
|
498
|
-
# @return [Array<(
|
498
|
+
# @return [Array<(HistoricalUsageAggregatedResponse, Integer, Hash)>] HistoricalUsageAggregatedResponse data, response status code and response headers
|
499
499
|
def get_usage_with_http_info(opts = {})
|
500
500
|
if @api_client.config.debugging
|
501
501
|
@api_client.config.logger.debug 'Calling API: HistoricalApi.get_usage ...'
|
@@ -521,7 +521,7 @@ module Fastly
|
|
521
521
|
post_body = opts[:debug_body]
|
522
522
|
|
523
523
|
# return_type
|
524
|
-
return_type = opts[:debug_return_type] || '
|
524
|
+
return_type = opts[:debug_return_type] || 'HistoricalUsageAggregatedResponse'
|
525
525
|
|
526
526
|
# auth_names
|
527
527
|
auth_names = opts[:debug_auth_names] || ['token']
|
@@ -21,6 +21,7 @@ module Fastly
|
|
21
21
|
# Creates a new Response Object.
|
22
22
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
23
23
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
24
|
+
# @option opts [CreateResponseObjectRequest] :create_response_object_request
|
24
25
|
# @return [ResponseObjectResponse]
|
25
26
|
def create_response_object(opts = {})
|
26
27
|
data, _status_code, _headers = create_response_object_with_http_info(opts)
|
@@ -31,6 +32,7 @@ module Fastly
|
|
31
32
|
# Creates a new Response Object.
|
32
33
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
33
34
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
35
|
+
# @option opts [CreateResponseObjectRequest] :create_response_object_request
|
34
36
|
# @return [Array<(ResponseObjectResponse, Integer, Hash)>] ResponseObjectResponse data, response status code and response headers
|
35
37
|
def create_response_object_with_http_info(opts = {})
|
36
38
|
if @api_client.config.debugging
|
@@ -58,7 +60,7 @@ module Fastly
|
|
58
60
|
# HTTP header 'Accept' (if needed)
|
59
61
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
60
62
|
# HTTP header 'Content-Type'
|
61
|
-
content_type = @api_client.select_header_content_type(['application/
|
63
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
62
64
|
if !content_type.nil?
|
63
65
|
header_params['Content-Type'] = content_type
|
64
66
|
end
|
@@ -67,7 +69,7 @@ module Fastly
|
|
67
69
|
form_params = opts[:form_params] || {}
|
68
70
|
|
69
71
|
# http body (model)
|
70
|
-
post_body = opts[:debug_body]
|
72
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_response_object_request'])
|
71
73
|
|
72
74
|
# return_type
|
73
75
|
return_type = opts[:debug_return_type] || 'ResponseObjectResponse'
|
@@ -321,6 +323,7 @@ module Fastly
|
|
321
323
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
322
324
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
323
325
|
# @option opts [String] :response_object_name Name for the request settings. (required)
|
326
|
+
# @option opts [CreateResponseObjectRequest] :create_response_object_request
|
324
327
|
# @return [ResponseObjectResponse]
|
325
328
|
def update_response_object(opts = {})
|
326
329
|
data, _status_code, _headers = update_response_object_with_http_info(opts)
|
@@ -332,6 +335,7 @@ module Fastly
|
|
332
335
|
# @option opts [String] :service_id Alphanumeric string identifying the service. (required)
|
333
336
|
# @option opts [Integer] :version_id Integer identifying a service version. (required)
|
334
337
|
# @option opts [String] :response_object_name Name for the request settings. (required)
|
338
|
+
# @option opts [CreateResponseObjectRequest] :create_response_object_request
|
335
339
|
# @return [Array<(ResponseObjectResponse, Integer, Hash)>] ResponseObjectResponse data, response status code and response headers
|
336
340
|
def update_response_object_with_http_info(opts = {})
|
337
341
|
if @api_client.config.debugging
|
@@ -364,7 +368,7 @@ module Fastly
|
|
364
368
|
# HTTP header 'Accept' (if needed)
|
365
369
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
366
370
|
# HTTP header 'Content-Type'
|
367
|
-
content_type = @api_client.select_header_content_type(['application/
|
371
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
368
372
|
if !content_type.nil?
|
369
373
|
header_params['Content-Type'] = content_type
|
370
374
|
end
|
@@ -373,7 +377,7 @@ module Fastly
|
|
373
377
|
form_params = opts[:form_params] || {}
|
374
378
|
|
375
379
|
# http body (model)
|
376
|
-
post_body = opts[:debug_body]
|
380
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_response_object_request'])
|
377
381
|
|
378
382
|
# return_type
|
379
383
|
return_type = opts[:debug_return_type] || 'ResponseObjectResponse'
|