Skip to content

Commit eb0c463

Browse files
author
github-actions
committed
Generated v3.03
1 parent e4c6cef commit eb0c463

25 files changed

+2792
-82
lines changed

Changes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
Revision history for https://metacpan.org/dist/WebService-Fastly
22

3+
3.03 2023-06-20
4+
* feat(realtime_measurements): add billable request processing time.
5+
* feat(tokens): add support for the 'get token' endpoint.
6+
* fix(config): add realtime hostname.
7+
* fix(historical_stats): generate field results model.
8+
* fix(kv_store): remove the 'force' property from the 'delete store' endpoint.
9+
* feat(realtime_measurements): rename object store to kv store.
10+
311
3.02 2023-05-22
412
* fix(acl): change `version` from int to string.
513
* fix(acl): add missing methods for `service_id` and `service_version` properties.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ WebService::Fastly - an interface to most facets of the [Fastly API](https://dev
44

55
# VERSION
66

7-
3.02
7+
3.03
8+
89

910
# SYNOPSIS
1011

@@ -426,6 +427,7 @@ Class | Method | HTTP request | Description
426427
*TlsSubscriptionsApi* | [**get_tls_sub**](docs/TlsSubscriptionsApi.md#get_tls_sub) | **GET** /tls/subscriptions/{tls_subscription_id} | Get a TLS subscription
427428
*TlsSubscriptionsApi* | [**list_tls_subs**](docs/TlsSubscriptionsApi.md#list_tls_subs) | **GET** /tls/subscriptions | List TLS subscriptions
428429
*TlsSubscriptionsApi* | [**patch_tls_sub**](docs/TlsSubscriptionsApi.md#patch_tls_sub) | **PATCH** /tls/subscriptions/{tls_subscription_id} | Update a TLS subscription
430+
*TokensApi* | [**get_token**](docs/TokensApi.md#get_token) | **GET** /tokens/{token_id} | Get a token
429431
*TokensApi* | [**get_token_current**](docs/TokensApi.md#get_token_current) | **GET** /tokens/self | Get the current token
430432
*TokensApi* | [**list_tokens_customer**](docs/TokensApi.md#list_tokens_customer) | **GET** /customer/{customer_id}/tokens | List tokens for a customer
431433
*TokensApi* | [**list_tokens_user**](docs/TokensApi.md#list_tokens_user) | **GET** /tokens | List tokens for the authenticated user

docs/HistoricalFieldAggregateResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**status** | **string** | Whether or not we were able to successfully execute the query. | [optional]
1212
**meta** | [**HistoricalMeta**](HistoricalMeta.md) | | [optional]
1313
**msg** | **string** | If the query was not successful, this will provide a string that explains why. | [optional]
14-
**data** | **ARRAY[HASH[string,string]]** | | [optional]
14+
**data** | [**ARRAY[HistoricalFieldResultsAttributes]**](HistoricalFieldResultsAttributes.md) | | [optional]
1515

1616
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1717

docs/HistoricalFieldAggregateResponseAllOf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use WebService::Fastly::Object::HistoricalFieldAggregateResponseAllOf;
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**data** | **ARRAY[HASH[string,string]]** | | [optional]
11+
**data** | [**ARRAY[HistoricalFieldResultsAttributes]**](HistoricalFieldResultsAttributes.md) | | [optional]
1212

1313
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1414

docs/HistoricalFieldResultsAttributes.md

Lines changed: 232 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# WebService::Fastly::Object::HistoricalFieldResultsAttributesAllOf
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::HistoricalFieldResultsAttributesAllOf;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**service_id** | **string** | | [optional] [readonly]
12+
**start_time** | **int** | | [optional]
13+
14+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15+
16+

docs/KvStoreApi.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Name | Type | Description | Notes
6969
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
7070

7171
# **delete_store**
72-
> delete_store(store_id => $store_id, force => $force)
72+
> delete_store(store_id => $store_id)
7373
7474
Delete an kv store.
7575

@@ -88,10 +88,9 @@ my $api_instance = WebService::Fastly::KvStoreApi->new(
8888
);
8989

9090
my $store_id = "store_id_example"; # string |
91-
my $force = null; # boolean |
9291

9392
eval {
94-
$api_instance->delete_store(store_id => $store_id, force => $force);
93+
$api_instance->delete_store(store_id => $store_id);
9594
};
9695
if ($@) {
9796
warn "Exception when calling KvStoreApi->delete_store: $@\n";
@@ -103,7 +102,6 @@ if ($@) {
103102
Name | Type | Description | Notes
104103
------------- | ------------- | ------------- | -------------
105104
**store_id** | **string**| |
106-
**force** | **boolean**| | [optional]
107105

108106
### Return type
109107

docs/KvStoreItemApi.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Method | HTTP request | Description
1616

1717

1818
# **delete_key_from_store**
19-
> delete_key_from_store(store_id => $store_id, key_name => $key_name, force => $force)
19+
> delete_key_from_store(store_id => $store_id, key_name => $key_name)
2020
2121
Delete kv store item.
2222

@@ -36,10 +36,9 @@ my $api_instance = WebService::Fastly::KvStoreItemApi->new(
3636

3737
my $store_id = "store_id_example"; # string |
3838
my $key_name = "key_name_example"; # string |
39-
my $force = null; # boolean |
4039

4140
eval {
42-
$api_instance->delete_key_from_store(store_id => $store_id, key_name => $key_name, force => $force);
41+
$api_instance->delete_key_from_store(store_id => $store_id, key_name => $key_name);
4342
};
4443
if ($@) {
4544
warn "Exception when calling KvStoreItemApi->delete_key_from_store: $@\n";
@@ -52,7 +51,6 @@ Name | Type | Description | Notes
5251
------------- | ------------- | ------------- | -------------
5352
**store_id** | **string**| |
5453
**key_name** | **string**| |
55-
**force** | **boolean**| | [optional]
5654

5755
### Return type
5856

docs/RealtimeMeasurements.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Name | Type | Description | Notes
2727
**compute_execution_time_ms** | **double** | The amount of active CPU time used to process your requests (in milliseconds). | [optional]
2828
**compute_ram_used** | **int** | The amount of RAM used for your service by Fastly (in bytes). | [optional]
2929
**compute_request_time_ms** | **double** | The total, actual amount of time used to process your requests, including active CPU time (in milliseconds). | [optional]
30+
**compute_request_time_billed_ms** | **double** | The total amount of request processing time you will be billed for, measured in 50 millisecond increments. | [optional]
3031
**shield** | **int** | Number of requests from edge to the shield POP. | [optional]
3132
**ipv6** | **int** | Number of requests that were received over IPv6. | [optional]
3233
**imgopto** | **int** | Number of responses that came from the Fastly Image Optimizer service. If the service receives 10 requests for an image, this stat will be 10 regardless of how many times the image was transformed. | [optional]
@@ -206,10 +207,10 @@ Name | Type | Description | Notes
206207
**websocket_resp_body_bytes** | **int** | Total message content bytes sent to end users over passthrough WebSocket connections. | [optional]
207208
**fanout_recv_publishes** | **int** | Total published messages received from the publish API endpoint. | [optional]
208209
**fanout_send_publishes** | **int** | Total published messages sent to end users. | [optional]
209-
**object_store_class_a_operations** | **int** | The total number of class a operations for the object store. | [optional]
210-
**object_store_class_b_operations** | **int** | The total number of class b operations for the object store. | [optional]
211-
**object_store_read_requests** | **int** | Use object_store_class_b_operations. | [optional]
212-
**object_store_write_requests** | **int** | Use object_store_class_a_operations. | [optional]
210+
**kv_store_class_a_operations** | **int** | The total number of class a operations for the KV store. | [optional]
211+
**kv_store_class_b_operations** | **int** | The total number of class b operations for the KV store. | [optional]
212+
**object_store_class_a_operations** | **int** | Use kv_store_class_a_operations. | [optional]
213+
**object_store_class_b_operations** | **int** | Use kv_store_class_b_operations. | [optional]
213214
**fanout_req_header_bytes** | **int** | Total header bytes received from end users over Fanout connections. | [optional]
214215
**fanout_req_body_bytes** | **int** | Total body or message content bytes received from end users over Fanout connections. | [optional]
215216
**fanout_resp_header_bytes** | **int** | Total header bytes sent to end users over Fanout connections. | [optional]

docs/Results.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ Name | Type | Description | Notes
158158
**segblock_shield_fetches** | **int** | Number of `Range` requests to a shield for segments of resources when using segmented caching. | [optional]
159159
**compute_requests** | **int** | The total number of requests that were received for your service by Fastly. | [optional]
160160
**compute_request_time_ms** | **double** | The total, actual amount of time used to process your requests, including active CPU time (in milliseconds). | [optional]
161+
**compute_request_time_billed_ms** | **double** | The total amount of request processing time you will be billed for, measured in 50 millisecond increments. | [optional]
161162
**compute_ram_used** | **int** | The amount of RAM used for your service by Fastly (in bytes). | [optional]
162163
**compute_execution_time_ms** | **double** | The amount of active CPU time used to process your requests (in milliseconds). | [optional]
163164
**compute_req_header_bytes** | **int** | Total header bytes received by Compute@Edge. | [optional]
@@ -204,10 +205,10 @@ Name | Type | Description | Notes
204205
**websocket_conn_time_ms** | **int** | Total duration of passthrough WebSocket connections with end users. | [optional]
205206
**fanout_recv_publishes** | **int** | Total published messages received from the publish API endpoint. | [optional]
206207
**fanout_send_publishes** | **int** | Total published messages sent to end users. | [optional]
207-
**object_store_class_a_operations** | **int** | The total number of class a operations for the object store. | [optional]
208-
**object_store_class_b_operations** | **int** | The total number of class b operations for the object store. | [optional]
209-
**object_store_read_requests** | **int** | Use object_store_class_b_operations. | [optional]
210-
**object_store_write_requests** | **int** | Use object_store_class_a_operations. | [optional]
208+
**kv_store_class_a_operations** | **int** | The total number of class a operations for the KV store. | [optional]
209+
**kv_store_class_b_operations** | **int** | The total number of class b operations for the KV store. | [optional]
210+
**object_store_class_a_operations** | **int** | Use kv_store_class_a_operations. | [optional]
211+
**object_store_class_b_operations** | **int** | Use kv_store_class_b_operations. | [optional]
211212
**fanout_req_header_bytes** | **int** | Total header bytes received from end users over Fanout connections. | [optional]
212213
**fanout_req_body_bytes** | **int** | Total body or message content bytes received from end users over Fanout connections. | [optional]
213214
**fanout_resp_header_bytes** | **int** | Total header bytes sent to end users over Fanout connections. | [optional]

docs/TokensApi.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,65 @@ All URIs are relative to *https://api.fastly.com*
99

1010
Method | HTTP request | Description
1111
------------- | ------------- | -------------
12+
[**get_token**](TokensApi.md#get_token) | **GET** /tokens/{token_id} | Get a token
1213
[**get_token_current**](TokensApi.md#get_token_current) | **GET** /tokens/self | Get the current token
1314
[**list_tokens_customer**](TokensApi.md#list_tokens_customer) | **GET** /customer/{customer_id}/tokens | List tokens for a customer
1415
[**list_tokens_user**](TokensApi.md#list_tokens_user) | **GET** /tokens | List tokens for the authenticated user
1516
[**revoke_token**](TokensApi.md#revoke_token) | **DELETE** /tokens/{token_id} | Revoke a token
1617
[**revoke_token_current**](TokensApi.md#revoke_token_current) | **DELETE** /tokens/self | Revoke the current token
1718

1819

20+
# **get_token**
21+
> TokenResponse get_token(token_id => $token_id)
22+
23+
Get a token
24+
25+
Get a single token by its id.
26+
27+
### Example
28+
```perl
29+
use Data::Dumper;
30+
use WebService::Fastly::TokensApi;
31+
my $api_instance = WebService::Fastly::TokensApi->new(
32+
33+
# Configure API key authorization: token
34+
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
35+
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
36+
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
37+
);
38+
39+
my $token_id = "token_id_example"; # string | Alphanumeric string identifying a token.
40+
41+
eval {
42+
my $result = $api_instance->get_token(token_id => $token_id);
43+
print Dumper($result);
44+
};
45+
if ($@) {
46+
warn "Exception when calling TokensApi->get_token: $@\n";
47+
}
48+
```
49+
50+
### Parameters
51+
52+
Name | Type | Description | Notes
53+
------------- | ------------- | ------------- | -------------
54+
**token_id** | **string**| Alphanumeric string identifying a token. |
55+
56+
### Return type
57+
58+
[**TokenResponse**](TokenResponse.md)
59+
60+
### Authorization
61+
62+
[token](../README.md#token)
63+
64+
### HTTP request headers
65+
66+
- **Content-Type**: Not defined
67+
- **Accept**: application/json
68+
69+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
70+
1971
# **get_token_current**
2072
> TokenResponse get_token_current()
2173

lib/WebService/Fastly.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package WebService::Fastly;
22

33
use strict;
44
use 5.008_005;
5-
our $VERSION = '3.02';
5+
our $VERSION = '3.03';
66

77
1;
88
__END__

lib/WebService/Fastly/Configuration.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use utf8;
2424
use Log::Any qw($log);
2525
use Carp;
2626

27-
use constant VERSION => '3.02';
27+
use constant VERSION => '3.03';
2828

2929
=head1 Name
3030
@@ -44,7 +44,7 @@ default: 180
4444
4545
String. custom UserAgent header
4646
47-
default: fastly-perl/3.02
47+
default: fastly-perl/3.03
4848
4949
=item api_key: (optional)
5050
@@ -93,7 +93,7 @@ sub new {
9393

9494
# class/static variables
9595
$p{http_timeout} //= 180;
96-
$p{http_user_agent} //= 'fastly-perl/3.02';
96+
$p{http_user_agent} //= 'fastly-perl/3.03';
9797

9898
# authentication setting
9999
$p{api_key} //= {};

lib/WebService/Fastly/KvStoreApi.pm

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,13 @@ sub create_store {
123123
# Delete an kv store.
124124
#
125125
# @param string $store_id (required)
126-
# @param boolean $force (optional)
127126
{
128127
my $params = {
129128
'store_id' => {
130129
data_type => 'string',
131130
description => '',
132131
required => '1',
133132
},
134-
'force' => {
135-
data_type => 'boolean',
136-
description => '',
137-
required => '0',
138-
},
139133
};
140134
__PACKAGE__->method_documentation->{ 'delete_store' } = {
141135
summary => 'Delete an kv store.',
@@ -168,11 +162,6 @@ sub delete_store {
168162
}
169163
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type();
170164

171-
# header params
172-
if ( exists $args{'force'}) {
173-
$header_params->{'force'} = $self->{api_client}->to_header_value($args{'force'});
174-
}
175-
176165
# path params
177166
if ( exists $args{'store_id'}) {
178167
my $_base_variable = "{" . "store_id" . "}";

lib/WebService/Fastly/KvStoreItemApi.pm

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ sub new {
5353
#
5454
# @param string $store_id (required)
5555
# @param string $key_name (required)
56-
# @param boolean $force (optional)
5756
{
5857
my $params = {
5958
'store_id' => {
@@ -66,11 +65,6 @@ sub new {
6665
description => '',
6766
required => '1',
6867
},
69-
'force' => {
70-
data_type => 'boolean',
71-
description => '',
72-
required => '0',
73-
},
7468
};
7569
__PACKAGE__->method_documentation->{ 'delete_key_from_store' } = {
7670
summary => 'Delete kv store item.',
@@ -108,11 +102,6 @@ sub delete_key_from_store {
108102
}
109103
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type();
110104

111-
# query params
112-
if ( exists $args{'force'}) {
113-
$query_params->{'force'} = $self->{api_client}->to_query_value($args{'force'});
114-
}
115-
116105
# path params
117106
if ( exists $args{'store_id'}) {
118107
my $_base_variable = "{" . "store_id" . "}";

lib/WebService/Fastly/Object/HistoricalFieldAggregateResponse.pm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ use DateTime;
3030

3131
use WebService::Fastly::Object::Historical;
3232
use WebService::Fastly::Object::HistoricalFieldAggregateResponseAllOf;
33+
use WebService::Fastly::Object::HistoricalFieldResultsAttributes;
3334
use WebService::Fastly::Object::HistoricalMeta;
3435

3536
use base ("Class::Accessor", "Class::Data::Inheritable");
@@ -183,7 +184,7 @@ __PACKAGE__->method_documentation({
183184
read_only => 'false',
184185
},
185186
'data' => {
186-
datatype => 'ARRAY[HASH[string,string]]',
187+
datatype => 'ARRAY[HistoricalFieldResultsAttributes]',
187188
base_name => 'data',
188189
description => '',
189190
format => '',
@@ -195,7 +196,7 @@ __PACKAGE__->openapi_types( {
195196
'status' => 'string',
196197
'meta' => 'HistoricalMeta',
197198
'msg' => 'string',
198-
'data' => 'ARRAY[HASH[string,string]]'
199+
'data' => 'ARRAY[HistoricalFieldResultsAttributes]'
199200
} );
200201

201202
__PACKAGE__->attribute_map( {

lib/WebService/Fastly/Object/HistoricalFieldAggregateResponseAllOf.pm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ use Log::Any qw($log);
2828
use Date::Parse;
2929
use DateTime;
3030

31+
use WebService::Fastly::Object::HistoricalFieldResultsAttributes;
3132

3233
use base ("Class::Accessor", "Class::Data::Inheritable");
3334

@@ -159,7 +160,7 @@ __PACKAGE__->class_documentation({description => '',
159160

160161
__PACKAGE__->method_documentation({
161162
'data' => {
162-
datatype => 'ARRAY[HASH[string,string]]',
163+
datatype => 'ARRAY[HistoricalFieldResultsAttributes]',
163164
base_name => 'data',
164165
description => '',
165166
format => '',
@@ -168,7 +169,7 @@ __PACKAGE__->method_documentation({
168169
});
169170

170171
__PACKAGE__->openapi_types( {
171-
'data' => 'ARRAY[HASH[string,string]]'
172+
'data' => 'ARRAY[HistoricalFieldResultsAttributes]'
172173
} );
173174

174175
__PACKAGE__->attribute_map( {

lib/WebService/Fastly/Object/HistoricalFieldResponse.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ use DateTime;
3030

3131
use WebService::Fastly::Object::Historical;
3232
use WebService::Fastly::Object::HistoricalFieldResponseAllOf;
33+
use WebService::Fastly::Object::HistoricalFieldResultsAttributes;
3334
use WebService::Fastly::Object::HistoricalMeta;
3435

3536
use base ("Class::Accessor", "Class::Data::Inheritable");

0 commit comments

Comments
 (0)