Skip to content

Commit 2ee0601

Browse files
author
github-actions
committed
Generated v3.00
1 parent d4744fd commit 2ee0601

15 files changed

+1082
-70
lines changed

Changes

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

3+
3.00 2023-05-16
4+
* breaking(object_store): rename to kv_store.
5+
* feat(dictionary_item): add 'bulk' PATCH endpoint.
6+
* feat(package): add `files_hash` metadata property.
7+
* feat(tls_certificates): add `filter[in_use]` parameter.
8+
39
2.04 2023-04-26
410
* fix(object-store-item): use correct type for key value
511
* fix(tls-csrs): remove internal endpoint

README.md

Lines changed: 11 additions & 11 deletions
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.04
7+
3.00
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.
@@ -111,6 +111,7 @@ Class | Method | HTTP request | Description
111111
*DictionaryApi* | [**list_dictionaries**](docs/DictionaryApi.md#list_dictionaries) | **GET** /service/{service_id}/version/{version_id}/dictionary | List edge dictionaries
112112
*DictionaryApi* | [**update_dictionary**](docs/DictionaryApi.md#update_dictionary) | **PUT** /service/{service_id}/version/{version_id}/dictionary/{dictionary_name} | Update an edge dictionary
113113
*DictionaryInfoApi* | [**get_dictionary_info**](docs/DictionaryInfoApi.md#get_dictionary_info) | **GET** /service/{service_id}/version/{version_id}/dictionary/{dictionary_id}/info | Get edge dictionary metadata
114+
*DictionaryItemApi* | [**bulk_update_dictionary_item**](docs/DictionaryItemApi.md#bulk_update_dictionary_item) | **PATCH** /service/{service_id}/dictionary/{dictionary_id}/items | Update multiple entries in an edge dictionary
114115
*DictionaryItemApi* | [**create_dictionary_item**](docs/DictionaryItemApi.md#create_dictionary_item) | **POST** /service/{service_id}/dictionary/{dictionary_id}/item | Create an entry in an edge dictionary
115116
*DictionaryItemApi* | [**delete_dictionary_item**](docs/DictionaryItemApi.md#delete_dictionary_item) | **DELETE** /service/{service_id}/dictionary/{dictionary_id}/item/{dictionary_item_key} | Delete an item from an edge dictionary
116117
*DictionaryItemApi* | [**get_dictionary_item**](docs/DictionaryItemApi.md#get_dictionary_item) | **GET** /service/{service_id}/dictionary/{dictionary_id}/item/{dictionary_item_key} | Get an item from an edge dictionary
@@ -183,6 +184,14 @@ Class | Method | HTTP request | Description
183184
*InvitationsApi* | [**create_invitation**](docs/InvitationsApi.md#create_invitation) | **POST** /invitations | Create an invitation
184185
*InvitationsApi* | [**delete_invitation**](docs/InvitationsApi.md#delete_invitation) | **DELETE** /invitations/{invitation_id} | Delete an invitation
185186
*InvitationsApi* | [**list_invitations**](docs/InvitationsApi.md#list_invitations) | **GET** /invitations | List invitations
187+
*KvStoreApi* | [**create_store**](docs/KvStoreApi.md#create_store) | **POST** /resources/stores/kv | Create an kv store.
188+
*KvStoreApi* | [**delete_store**](docs/KvStoreApi.md#delete_store) | **DELETE** /resources/stores/kv/{store_id} | Delete an kv store.
189+
*KvStoreApi* | [**get_store**](docs/KvStoreApi.md#get_store) | **GET** /resources/stores/kv/{store_id} | Describe an kv store.
190+
*KvStoreApi* | [**get_stores**](docs/KvStoreApi.md#get_stores) | **GET** /resources/stores/kv | List kv stores.
191+
*KvStoreItemApi* | [**delete_key_from_store**](docs/KvStoreItemApi.md#delete_key_from_store) | **DELETE** /resources/stores/kv/{store_id}/keys/{key_name} | Delete kv store item.
192+
*KvStoreItemApi* | [**get_keys**](docs/KvStoreItemApi.md#get_keys) | **GET** /resources/stores/kv/{store_id}/keys | List kv store keys.
193+
*KvStoreItemApi* | [**get_value_for_key**](docs/KvStoreItemApi.md#get_value_for_key) | **GET** /resources/stores/kv/{store_id}/keys/{key_name} | Get the value of an kv store item
194+
*KvStoreItemApi* | [**set_value_for_key**](docs/KvStoreItemApi.md#set_value_for_key) | **PUT** /resources/stores/kv/{store_id}/keys/{key_name} | Insert an item into an kv store
186195
*LoggingAzureblobApi* | [**create_log_azure**](docs/LoggingAzureblobApi.md#create_log_azure) | **POST** /service/{service_id}/version/{version_id}/logging/azureblob | Create an Azure Blob Storage log endpoint
187196
*LoggingAzureblobApi* | [**delete_log_azure**](docs/LoggingAzureblobApi.md#delete_log_azure) | **DELETE** /service/{service_id}/version/{version_id}/logging/azureblob/{logging_azureblob_name} | Delete the Azure Blob Storage log endpoint
188197
*LoggingAzureblobApi* | [**get_log_azure**](docs/LoggingAzureblobApi.md#get_log_azure) | **GET** /service/{service_id}/version/{version_id}/logging/azureblob/{logging_azureblob_name} | Get an Azure Blob Storage log endpoint
@@ -316,14 +325,6 @@ Class | Method | HTTP request | Description
316325
*MutualAuthenticationApi* | [**get_mutual_authentication**](docs/MutualAuthenticationApi.md#get_mutual_authentication) | **GET** /tls/mutual_authentications/{mutual_authentication_id} | Get a Mutual Authentication
317326
*MutualAuthenticationApi* | [**list_mutual_authentications**](docs/MutualAuthenticationApi.md#list_mutual_authentications) | **GET** /tls/mutual_authentications | List Mutual Authentications
318327
*MutualAuthenticationApi* | [**patch_mutual_authentication**](docs/MutualAuthenticationApi.md#patch_mutual_authentication) | **PATCH** /tls/mutual_authentications/{mutual_authentication_id} | Update a Mutual Authentication
319-
*ObjectStoreApi* | [**create_store**](docs/ObjectStoreApi.md#create_store) | **POST** /resources/stores/object | Create an object store.
320-
*ObjectStoreApi* | [**delete_store**](docs/ObjectStoreApi.md#delete_store) | **DELETE** /resources/stores/object/{store_id} | Delete an object store.
321-
*ObjectStoreApi* | [**get_store**](docs/ObjectStoreApi.md#get_store) | **GET** /resources/stores/object/{store_id} | Describe an object store.
322-
*ObjectStoreApi* | [**get_stores**](docs/ObjectStoreApi.md#get_stores) | **GET** /resources/stores/object | List object stores.
323-
*ObjectStoreItemApi* | [**delete_key_from_store**](docs/ObjectStoreItemApi.md#delete_key_from_store) | **DELETE** /resources/stores/object/{store_id}/keys/{key_name} | Delete object store item.
324-
*ObjectStoreItemApi* | [**get_keys**](docs/ObjectStoreItemApi.md#get_keys) | **GET** /resources/stores/object/{store_id}/keys | List object store keys.
325-
*ObjectStoreItemApi* | [**get_value_for_key**](docs/ObjectStoreItemApi.md#get_value_for_key) | **GET** /resources/stores/object/{store_id}/keys/{key_name} | Get the value of an object store item
326-
*ObjectStoreItemApi* | [**set_value_for_key**](docs/ObjectStoreItemApi.md#set_value_for_key) | **PUT** /resources/stores/object/{store_id}/keys/{key_name} | Insert an item into an object store
327328
*PackageApi* | [**get_package**](docs/PackageApi.md#get_package) | **GET** /service/{service_id}/version/{version_id}/package | Get details of the service's Compute@Edge package.
328329
*PackageApi* | [**put_package**](docs/PackageApi.md#put_package) | **PUT** /service/{service_id}/version/{version_id}/package | Upload a Compute@Edge package.
329330
*PoolApi* | [**create_server_pool**](docs/PoolApi.md#create_server_pool) | **POST** /service/{service_id}/version/{version_id}/pool | Create a server pool
@@ -499,7 +500,7 @@ The fastly-perl API client currently does not support the following endpoints:
499500
- [`/resources/stores/secret/client-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (POST)
500501
- [`/resources/stores/secret/signing-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET)
501502
- [`/resources/stores/secret/{store_id}/secrets/{secret_name}`](https://developer.fastly.com/reference/api/services/resources/secret) (DELETE, GET)
502-
- [`/resources/stores/secret/{store_id}/secrets`](https://developer.fastly.com/reference/api/services/resources/secret) (GET, POST)
503+
- [`/resources/stores/secret/{store_id}/secrets`](https://developer.fastly.com/reference/api/services/resources/secret) (GET, PATCH, POST, PUT)
503504
- [`/resources/stores/secret/{store_id}`](https://developer.fastly.com/reference/api/services/resources/secret-store) (DELETE, GET)
504505
- [`/resources/stores/secret`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET, POST)
505506
- [`/roles/{role_id}/permissions`](https://developer.fastly.com/reference/api/account/roles) (DELETE, POST)
@@ -509,7 +510,6 @@ The fastly-perl API client currently does not support the following endpoints:
509510
- [`/service-groups/{service_group_id}/services`](https://developer.fastly.com/reference/api/account/service-groups) (DELETE, POST)
510511
- [`/service-groups/{service_group_id}`](https://developer.fastly.com/reference/api/account/service-groups) (PATCH)
511512
- [`/service-groups`](https://developer.fastly.com/reference/api/account/service-groups) (POST)
512-
- [`/service/{service_id}/dictionary/{dictionary_id}/items`](https://developer.fastly.com/reference/api/dictionaries/dictionary-item) (PATCH)
513513
- [`/service/{service_id}/version/{version_id}/apex-redirects`](https://developer.fastly.com/reference/api/vcl-services/apex-redirect) (POST)
514514
- [`/service/{service_id}/version/{version_id}/director/{director_name}`](https://developer.fastly.com/reference/api/load-balancing/directors/director) (PUT)
515515
- [`/service/{service_id}/version/{version_id}/logging/kafka/{logging_kafka_name}`](https://developer.fastly.com/reference/api/logging/kafka) (PUT)

docs/DictionaryItemApi.md

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

1010
Method | HTTP request | Description
1111
------------- | ------------- | -------------
12+
[**bulk_update_dictionary_item**](DictionaryItemApi.md#bulk_update_dictionary_item) | **PATCH** /service/{service_id}/dictionary/{dictionary_id}/items | Update multiple entries in an edge dictionary
1213
[**create_dictionary_item**](DictionaryItemApi.md#create_dictionary_item) | **POST** /service/{service_id}/dictionary/{dictionary_id}/item | Create an entry in an edge dictionary
1314
[**delete_dictionary_item**](DictionaryItemApi.md#delete_dictionary_item) | **DELETE** /service/{service_id}/dictionary/{dictionary_id}/item/{dictionary_item_key} | Delete an item from an edge dictionary
1415
[**get_dictionary_item**](DictionaryItemApi.md#get_dictionary_item) | **GET** /service/{service_id}/dictionary/{dictionary_id}/item/{dictionary_item_key} | Get an item from an edge dictionary
@@ -17,6 +18,61 @@ Method | HTTP request | Description
1718
[**upsert_dictionary_item**](DictionaryItemApi.md#upsert_dictionary_item) | **PUT** /service/{service_id}/dictionary/{dictionary_id}/item/{dictionary_item_key} | Insert or update an entry in an edge dictionary
1819

1920

21+
# **bulk_update_dictionary_item**
22+
> InlineResponse200 bulk_update_dictionary_item(service_id => $service_id, dictionary_id => $dictionary_id, bulk_update_dictionary_list_request => $bulk_update_dictionary_list_request)
23+
24+
Update multiple entries in an edge dictionary
25+
26+
Update multiple items in the same dictionary. For faster updates to your service, group your changes into large batches. The maximum batch size is 1000 items. [Contact support](https://support.fastly.com/) to discuss raising this limit.
27+
28+
### Example
29+
```perl
30+
use Data::Dumper;
31+
use WebService::Fastly::DictionaryItemApi;
32+
my $api_instance = WebService::Fastly::DictionaryItemApi->new(
33+
34+
# Configure API key authorization: token
35+
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
36+
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
37+
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
38+
);
39+
40+
my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
41+
my $dictionary_id = "dictionary_id_example"; # string | Alphanumeric string identifying a Dictionary.
42+
my $bulk_update_dictionary_list_request = WebService::Fastly::Object::BulkUpdateDictionaryListRequest->new(); # BulkUpdateDictionaryListRequest |
43+
44+
eval {
45+
my $result = $api_instance->bulk_update_dictionary_item(service_id => $service_id, dictionary_id => $dictionary_id, bulk_update_dictionary_list_request => $bulk_update_dictionary_list_request);
46+
print Dumper($result);
47+
};
48+
if ($@) {
49+
warn "Exception when calling DictionaryItemApi->bulk_update_dictionary_item: $@\n";
50+
}
51+
```
52+
53+
### Parameters
54+
55+
Name | Type | Description | Notes
56+
------------- | ------------- | ------------- | -------------
57+
**service_id** | **string**| Alphanumeric string identifying the service. |
58+
**dictionary_id** | **string**| Alphanumeric string identifying a Dictionary. |
59+
**bulk_update_dictionary_list_request** | [**BulkUpdateDictionaryListRequest**](BulkUpdateDictionaryListRequest.md)| | [optional]
60+
61+
### Return type
62+
63+
[**InlineResponse200**](InlineResponse200.md)
64+
65+
### Authorization
66+
67+
[token](../README.md#token)
68+
69+
### HTTP request headers
70+
71+
- **Content-Type**: application/json
72+
- **Accept**: application/json
73+
74+
[[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)
75+
2076
# **create_dictionary_item**
2177
> DictionaryItemResponse create_dictionary_item(service_id => $service_id, dictionary_id => $dictionary_id, item_key => $item_key, item_value => $item_value)
2278

docs/ObjectStoreApi.md renamed to docs/KvStoreApi.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
# WebService::Fastly::ObjectStoreApi
1+
# WebService::Fastly::KvStoreApi
22

33
## Load the API package
44
```perl
5-
use WebService::Fastly::Object::ObjectStoreApi;
5+
use WebService::Fastly::Object::KvStoreApi;
66
```
77

88
All URIs are relative to *https://api.fastly.com*
99

1010
Method | HTTP request | Description
1111
------------- | ------------- | -------------
12-
[**create_store**](ObjectStoreApi.md#create_store) | **POST** /resources/stores/object | Create an object store.
13-
[**delete_store**](ObjectStoreApi.md#delete_store) | **DELETE** /resources/stores/object/{store_id} | Delete an object store.
14-
[**get_store**](ObjectStoreApi.md#get_store) | **GET** /resources/stores/object/{store_id} | Describe an object store.
15-
[**get_stores**](ObjectStoreApi.md#get_stores) | **GET** /resources/stores/object | List object stores.
12+
[**create_store**](KvStoreApi.md#create_store) | **POST** /resources/stores/kv | Create an kv store.
13+
[**delete_store**](KvStoreApi.md#delete_store) | **DELETE** /resources/stores/kv/{store_id} | Delete an kv store.
14+
[**get_store**](KvStoreApi.md#get_store) | **GET** /resources/stores/kv/{store_id} | Describe an kv store.
15+
[**get_stores**](KvStoreApi.md#get_stores) | **GET** /resources/stores/kv | List kv stores.
1616

1717

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

23-
Create a new object store.
23+
Create a new kv store.
2424

2525
### Example
2626
```perl
2727
use Data::Dumper;
28-
use WebService::Fastly::ObjectStoreApi;
29-
my $api_instance = WebService::Fastly::ObjectStoreApi->new(
28+
use WebService::Fastly::KvStoreApi;
29+
my $api_instance = WebService::Fastly::KvStoreApi->new(
3030

3131
# Configure API key authorization: token
3232
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
@@ -42,7 +42,7 @@ eval {
4242
print Dumper($result);
4343
};
4444
if ($@) {
45-
warn "Exception when calling ObjectStoreApi->create_store: $@\n";
45+
warn "Exception when calling KvStoreApi->create_store: $@\n";
4646
}
4747
```
4848

@@ -71,15 +71,15 @@ Name | Type | Description | Notes
7171
# **delete_store**
7272
> delete_store(store_id => $store_id, force => $force)
7373
74-
Delete an object store.
74+
Delete an kv store.
7575

76-
An object store must be empty before it can be deleted. Deleting an object store that still contains keys will result in a `409` (Conflict).
76+
An kv store must be empty before it can be deleted. Deleting an kv store that still contains keys will result in a `409` (Conflict).
7777

7878
### Example
7979
```perl
8080
use Data::Dumper;
81-
use WebService::Fastly::ObjectStoreApi;
82-
my $api_instance = WebService::Fastly::ObjectStoreApi->new(
81+
use WebService::Fastly::KvStoreApi;
82+
my $api_instance = WebService::Fastly::KvStoreApi->new(
8383

8484
# Configure API key authorization: token
8585
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
@@ -94,7 +94,7 @@ eval {
9494
$api_instance->delete_store(store_id => $store_id, force => $force);
9595
};
9696
if ($@) {
97-
warn "Exception when calling ObjectStoreApi->delete_store: $@\n";
97+
warn "Exception when calling KvStoreApi->delete_store: $@\n";
9898
}
9999
```
100100

@@ -123,15 +123,15 @@ void (empty response body)
123123
# **get_store**
124124
> StoreResponse get_store(store_id => $store_id)
125125
126-
Describe an object store.
126+
Describe an kv store.
127127

128-
Get an object store by ID.
128+
Get an kv store by ID.
129129

130130
### Example
131131
```perl
132132
use Data::Dumper;
133-
use WebService::Fastly::ObjectStoreApi;
134-
my $api_instance = WebService::Fastly::ObjectStoreApi->new(
133+
use WebService::Fastly::KvStoreApi;
134+
my $api_instance = WebService::Fastly::KvStoreApi->new(
135135

136136
# Configure API key authorization: token
137137
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
@@ -146,7 +146,7 @@ eval {
146146
print Dumper($result);
147147
};
148148
if ($@) {
149-
warn "Exception when calling ObjectStoreApi->get_store: $@\n";
149+
warn "Exception when calling KvStoreApi->get_store: $@\n";
150150
}
151151
```
152152

@@ -174,15 +174,15 @@ Name | Type | Description | Notes
174174
# **get_stores**
175175
> InlineResponse2003 get_stores(cursor => $cursor, limit => $limit)
176176
177-
List object stores.
177+
List kv stores.
178178

179179
Get all stores for a given customer.
180180

181181
### Example
182182
```perl
183183
use Data::Dumper;
184-
use WebService::Fastly::ObjectStoreApi;
185-
my $api_instance = WebService::Fastly::ObjectStoreApi->new(
184+
use WebService::Fastly::KvStoreApi;
185+
my $api_instance = WebService::Fastly::KvStoreApi->new(
186186

187187
# Configure API key authorization: token
188188
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
@@ -198,7 +198,7 @@ eval {
198198
print Dumper($result);
199199
};
200200
if ($@) {
201-
warn "Exception when calling ObjectStoreApi->get_stores: $@\n";
201+
warn "Exception when calling KvStoreApi->get_stores: $@\n";
202202
}
203203
```
204204

0 commit comments

Comments
 (0)