Skip to content

Commit 546f8c1

Browse files
author
github-actions
committed
Generated v2.03
1 parent 55e267c commit 546f8c1

16 files changed

+300
-24
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+
2.03 2023-04-03
4+
* fix(purge): avoid escaping URL parameter
5+
* feat(object-store): add 'location' property to 'create_store'
6+
* feat(object-store): add 'force' property to 'delete_store'
7+
* feat(realtime): additional DDoS properties
8+
* docs(acl-entries): document batch updating
9+
* docs(object-store): new properties for 'set_value_for_key'
10+
311
2.02 2023-03-23
412
* fix(purge): switch authentication type to 'token'
513
* feat(domain-ownerships): List domain-ownerships

README.md

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

55
# VERSION
66

7-
2.02
7+
2.03
88

99
> NOTE: This 2.x release is a new [generated API client](https://dev.to/fastly/better-fastly-api-clients-with-openapi-generator-3lno) for the Fastly API.
1010
> The previous 1.x version is no longer supported, but can be found at https://github.com/fastly/fastly-perl/tree/v1.x.

docs/AclEntryApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Method | HTTP request | Description
2222
2323
Update multiple ACL entries
2424

25-
Update multiple ACL entries on the same ACL.
25+
Update multiple ACL entries on the same ACL. For faster updates to your service, group your changes into large batches. The maximum batch size is 1000 entries. [Contact support](https://support.fastly.com/) to discuss raising this limit.
2626

2727
### Example
2828
```perl

docs/ObjectStoreApi.md

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

1717

1818
# **create_store**
19-
> StoreResponse create_store(store => $store)
19+
> StoreResponse create_store(location => $location, store => $store)
2020
2121
Create an object store.
2222

@@ -34,10 +34,11 @@ my $api_instance = WebService::Fastly::ObjectStoreApi->new(
3434
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
3535
);
3636

37+
my $location = "location_example"; # string |
3738
my $store = WebService::Fastly::Object::Store->new(); # Store |
3839

3940
eval {
40-
my $result = $api_instance->create_store(store => $store);
41+
my $result = $api_instance->create_store(location => $location, store => $store);
4142
print Dumper($result);
4243
};
4344
if ($@) {
@@ -49,6 +50,7 @@ if ($@) {
4950

5051
Name | Type | Description | Notes
5152
------------- | ------------- | ------------- | -------------
53+
**location** | **string**| | [optional]
5254
**store** | [**Store**](Store.md)| | [optional]
5355

5456
### Return type
@@ -67,7 +69,7 @@ Name | Type | Description | Notes
6769
[[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)
6870

6971
# **delete_store**
70-
> delete_store(store_id => $store_id)
72+
> delete_store(store_id => $store_id, force => $force)
7173
7274
Delete an object store.
7375

@@ -86,9 +88,10 @@ my $api_instance = WebService::Fastly::ObjectStoreApi->new(
8688
);
8789

8890
my $store_id = "store_id_example"; # string |
91+
my $force = null; # boolean |
8992

9093
eval {
91-
$api_instance->delete_store(store_id => $store_id);
94+
$api_instance->delete_store(store_id => $store_id, force => $force);
9295
};
9396
if ($@) {
9497
warn "Exception when calling ObjectStoreApi->delete_store: $@\n";
@@ -100,6 +103,7 @@ if ($@) {
100103
Name | Type | Description | Notes
101104
------------- | ------------- | ------------- | -------------
102105
**store_id** | **string**| |
106+
**force** | **boolean**| | [optional]
103107

104108
### Return type
105109

docs/ObjectStoreItemApi.md

Lines changed: 24 additions & 6 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)
19+
> delete_key_from_store(store_id => $store_id, key_name => $key_name, force => $force)
2020
2121
Delete object store item.
2222

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

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

4041
eval {
41-
$api_instance->delete_key_from_store(store_id => $store_id, key_name => $key_name);
42+
$api_instance->delete_key_from_store(store_id => $store_id, key_name => $key_name, force => $force);
4243
};
4344
if ($@) {
4445
warn "Exception when calling ObjectStoreItemApi->delete_key_from_store: $@\n";
@@ -51,6 +52,7 @@ Name | Type | Description | Notes
5152
------------- | ------------- | ------------- | -------------
5253
**store_id** | **string**| |
5354
**key_name** | **string**| |
55+
**force** | **boolean**| | [optional]
5456

5557
### Return type
5658

@@ -68,7 +70,7 @@ void (empty response body)
6870
[[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)
6971

7072
# **get_keys**
71-
> InlineResponse2004 get_keys(store_id => $store_id, cursor => $cursor, limit => $limit)
73+
> InlineResponse2004 get_keys(store_id => $store_id, cursor => $cursor, limit => $limit, prefix => $prefix)
7274
7375
List object store keys.
7476

@@ -89,9 +91,10 @@ my $api_instance = WebService::Fastly::ObjectStoreItemApi->new(
8991
my $store_id = "store_id_example"; # string |
9092
my $cursor = "cursor_example"; # string |
9193
my $limit = 100; # int |
94+
my $prefix = "prefix_example"; # string |
9295

9396
eval {
94-
my $result = $api_instance->get_keys(store_id => $store_id, cursor => $cursor, limit => $limit);
97+
my $result = $api_instance->get_keys(store_id => $store_id, cursor => $cursor, limit => $limit, prefix => $prefix);
9598
print Dumper($result);
9699
};
97100
if ($@) {
@@ -106,6 +109,7 @@ Name | Type | Description | Notes
106109
**store_id** | **string**| |
107110
**cursor** | **string**| | [optional]
108111
**limit** | **int**| | [optional] [default to 100]
112+
**prefix** | **string**| | [optional]
109113

110114
### Return type
111115

@@ -176,7 +180,7 @@ Name | Type | Description | Notes
176180
[[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)
177181

178182
# **set_value_for_key**
179-
> string set_value_for_key(store_id => $store_id, key_name => $key_name, body => $body)
183+
> string set_value_for_key(store_id => $store_id, key_name => $key_name, if_generation_match => $if_generation_match, time_to_live_sec => $time_to_live_sec, metadata => $metadata, add => $add, append => $append, prepend => $prepend, background_fetch => $background_fetch, body => $body)
180184
181185
Insert an item into an object store
182186

@@ -196,10 +200,17 @@ my $api_instance = WebService::Fastly::ObjectStoreItemApi->new(
196200

197201
my $store_id = "store_id_example"; # string |
198202
my $key_name = "key_name_example"; # string |
203+
my $if_generation_match = 56; # int |
204+
my $time_to_live_sec = 56; # int |
205+
my $metadata = "metadata_example"; # string |
206+
my $add = null; # boolean |
207+
my $append = null; # boolean |
208+
my $prepend = null; # boolean |
209+
my $background_fetch = null; # boolean |
199210
my $body = WebService::Fastly::Object::string->new(); # string |
200211

201212
eval {
202-
my $result = $api_instance->set_value_for_key(store_id => $store_id, key_name => $key_name, body => $body);
213+
my $result = $api_instance->set_value_for_key(store_id => $store_id, key_name => $key_name, if_generation_match => $if_generation_match, time_to_live_sec => $time_to_live_sec, metadata => $metadata, add => $add, append => $append, prepend => $prepend, background_fetch => $background_fetch, body => $body);
203214
print Dumper($result);
204215
};
205216
if ($@) {
@@ -213,6 +224,13 @@ Name | Type | Description | Notes
213224
------------- | ------------- | ------------- | -------------
214225
**store_id** | **string**| |
215226
**key_name** | **string**| |
227+
**if_generation_match** | **int**| | [optional]
228+
**time_to_live_sec** | **int**| | [optional]
229+
**metadata** | **string**| | [optional]
230+
**add** | **boolean**| | [optional]
231+
**append** | **boolean**| | [optional]
232+
**prepend** | **boolean**| | [optional]
233+
**background_fetch** | **boolean**| | [optional]
216234
**body** | **string****string**| | [optional]
217235

218236
### Return type

docs/RealtimeMeasurements.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ Name | Type | Description | Notes
219219
**fanout_beresp_header_bytes** | **int** | Total header bytes received from backends over Fanout connections. | [optional]
220220
**fanout_beresp_body_bytes** | **int** | Total body or message content bytes received from backends over Fanout connections. | [optional]
221221
**fanout_conn_time_ms** | **int** | Total duration of Fanout connections with end users. | [optional]
222+
**ddos_action_limit_streams_connections** | **int** | 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]
223+
**ddos_action_limit_streams_requests** | **int** | 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]
224+
**ddos_action_tarpit_accept** | **int** | The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections. | [optional]
225+
**ddos_action_tarpit** | **int** | The number of times the tarpit action was taken. The tarpit action delays writing the response to the client. | [optional]
226+
**ddos_action_close** | **int** | 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]
227+
**ddos_action_blackhole** | **int** | 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]
222228

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

docs/Results.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ Name | Type | Description | Notes
217217
**fanout_beresp_header_bytes** | **int** | Total header bytes received from backends over Fanout connections. | [optional]
218218
**fanout_beresp_body_bytes** | **int** | Total body or message content bytes received from backends over Fanout connections. | [optional]
219219
**fanout_conn_time_ms** | **int** | Total duration of Fanout connections with end users. | [optional]
220+
**ddos_action_limit_streams_connections** | **int** | 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]
221+
**ddos_action_limit_streams_requests** | **int** | 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]
222+
**ddos_action_tarpit_accept** | **int** | The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections. | [optional]
223+
**ddos_action_tarpit** | **int** | The number of times the tarpit action was taken. The tarpit action delays writing the response to the client. | [optional]
224+
**ddos_action_close** | **int** | 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]
225+
**ddos_action_blackhole** | **int** | 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]
220226

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

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 = '2.02';
5+
our $VERSION = '2.03';
66

77
1;
88
__END__

lib/WebService/Fastly/ApiClient.pm

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,15 @@ sub call_api {
163163
# Take value and turn it into a string suitable for inclusion in
164164
# the path, by url-encoding.
165165
# @param string $value a string which will be part of the path
166+
# @param boolean $allow_reserved if set to true, then value will not be url-encoded. Default false.
166167
# @return string the serialized object
167168
sub to_path_value {
168-
my ($self, $value) = @_;
169-
return uri_escape($self->to_string($value));
169+
my ($self, $value, $allow_reserved) = @_;
170+
$str = $self->to_string($value);
171+
if (!$allow_reserved) {
172+
$str = uri_escape($str);
173+
}
174+
return $str;
170175
}
171176

172177

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 => '2.02';
27+
use constant VERSION => '2.03';
2828

2929
=head1 Name
3030
@@ -44,7 +44,7 @@ default: 180
4444
4545
String. custom UserAgent header
4646
47-
default: fastly-perl/2.02
47+
default: fastly-perl/2.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/2.02';
96+
$p{http_user_agent} //= 'fastly-perl/2.03';
9797

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

lib/WebService/Fastly/Object/RealtimeMeasurements.pm

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,6 +1635,48 @@ __PACKAGE__->method_documentation({
16351635
format => '',
16361636
read_only => 'false',
16371637
},
1638+
'ddos_action_limit_streams_connections' => {
1639+
datatype => 'int',
1640+
base_name => 'ddos_action_limit_streams_connections',
1641+
description => '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.',
1642+
format => '',
1643+
read_only => 'false',
1644+
},
1645+
'ddos_action_limit_streams_requests' => {
1646+
datatype => 'int',
1647+
base_name => 'ddos_action_limit_streams_requests',
1648+
description => '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.',
1649+
format => '',
1650+
read_only => 'false',
1651+
},
1652+
'ddos_action_tarpit_accept' => {
1653+
datatype => 'int',
1654+
base_name => 'ddos_action_tarpit_accept',
1655+
description => 'The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections.',
1656+
format => '',
1657+
read_only => 'false',
1658+
},
1659+
'ddos_action_tarpit' => {
1660+
datatype => 'int',
1661+
base_name => 'ddos_action_tarpit',
1662+
description => 'The number of times the tarpit action was taken. The tarpit action delays writing the response to the client.',
1663+
format => '',
1664+
read_only => 'false',
1665+
},
1666+
'ddos_action_close' => {
1667+
datatype => 'int',
1668+
base_name => 'ddos_action_close',
1669+
description => '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.',
1670+
format => '',
1671+
read_only => 'false',
1672+
},
1673+
'ddos_action_blackhole' => {
1674+
datatype => 'int',
1675+
base_name => 'ddos_action_blackhole',
1676+
description => '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).',
1677+
format => '',
1678+
read_only => 'false',
1679+
},
16381680
});
16391681

16401682
__PACKAGE__->openapi_types( {
@@ -1848,7 +1890,13 @@ __PACKAGE__->openapi_types( {
18481890
'fanout_bereq_body_bytes' => 'int',
18491891
'fanout_beresp_header_bytes' => 'int',
18501892
'fanout_beresp_body_bytes' => 'int',
1851-
'fanout_conn_time_ms' => 'int'
1893+
'fanout_conn_time_ms' => 'int',
1894+
'ddos_action_limit_streams_connections' => 'int',
1895+
'ddos_action_limit_streams_requests' => 'int',
1896+
'ddos_action_tarpit_accept' => 'int',
1897+
'ddos_action_tarpit' => 'int',
1898+
'ddos_action_close' => 'int',
1899+
'ddos_action_blackhole' => 'int'
18521900
} );
18531901

18541902
__PACKAGE__->attribute_map( {
@@ -2062,7 +2110,13 @@ __PACKAGE__->attribute_map( {
20622110
'fanout_bereq_body_bytes' => 'fanout_bereq_body_bytes',
20632111
'fanout_beresp_header_bytes' => 'fanout_beresp_header_bytes',
20642112
'fanout_beresp_body_bytes' => 'fanout_beresp_body_bytes',
2065-
'fanout_conn_time_ms' => 'fanout_conn_time_ms'
2113+
'fanout_conn_time_ms' => 'fanout_conn_time_ms',
2114+
'ddos_action_limit_streams_connections' => 'ddos_action_limit_streams_connections',
2115+
'ddos_action_limit_streams_requests' => 'ddos_action_limit_streams_requests',
2116+
'ddos_action_tarpit_accept' => 'ddos_action_tarpit_accept',
2117+
'ddos_action_tarpit' => 'ddos_action_tarpit',
2118+
'ddos_action_close' => 'ddos_action_close',
2119+
'ddos_action_blackhole' => 'ddos_action_blackhole'
20662120
} );
20672121

20682122
__PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map});

0 commit comments

Comments
 (0)