Skip to content

Commit 3d0c7b1

Browse files
author
github-actions
committed
Generated v3.07
1 parent 700f424 commit 3d0c7b1

33 files changed

+1767
-89
lines changed

Changes

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

3+
3.07 2023-07-05
4+
* feat(settings): support update endpoint.
5+
* fix(snippet): dynamic field switched from int to string.
6+
* fix(vcl): implement correct response models.
7+
38
3.06 2023-06-27
49
* feat(rate_limiter): implement POST/PUT endpoints.
510
* fix(automation_tokens): generate explicit error response type.

README.md

Lines changed: 3 additions & 2 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-
3.06
7+
3.07
88

99

1010
# SYNOPSIS
@@ -388,6 +388,7 @@ Class | Method | HTTP request | Description
388388
*ServiceAuthorizationsApi* | [**show_service_authorization**](docs/ServiceAuthorizationsApi.md#show_service_authorization) | **GET** /service-authorizations/{service_authorization_id} | Show service authorization
389389
*ServiceAuthorizationsApi* | [**update_service_authorization**](docs/ServiceAuthorizationsApi.md#update_service_authorization) | **PATCH** /service-authorizations/{service_authorization_id} | Update service authorization
390390
*SettingsApi* | [**get_service_settings**](docs/SettingsApi.md#get_service_settings) | **GET** /service/{service_id}/version/{version_id}/settings | Get service settings
391+
*SettingsApi* | [**update_service_settings**](docs/SettingsApi.md#update_service_settings) | **PUT** /service/{service_id}/version/{version_id}/settings | Update service settings
391392
*SnippetApi* | [**create_snippet**](docs/SnippetApi.md#create_snippet) | **POST** /service/{service_id}/version/{version_id}/snippet | Create a snippet
392393
*SnippetApi* | [**delete_snippet**](docs/SnippetApi.md#delete_snippet) | **DELETE** /service/{service_id}/version/{version_id}/snippet/{snippet_name} | Delete a snippet
393394
*SnippetApi* | [**get_snippet**](docs/SnippetApi.md#get_snippet) | **GET** /service/{service_id}/version/{version_id}/snippet/{snippet_name} | Get a versioned snippet
@@ -502,6 +503,7 @@ The fastly-perl API client currently does not support the following endpoints:
502503
- [`/customer/{customer_id}/contacts`](https://developer.fastly.com/reference/api/account/contact) (POST)
503504
- [`/metrics/domains/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/historical) (GET)
504505
- [`/metrics/origins/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/historical) (GET)
506+
- [`/resources/stores/kv/{store_id}/batch`](https://developer.fastly.com/reference/api/services/resources/kv-store-item) (PUT)
505507
- [`/resources/stores/secret/client-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (POST)
506508
- [`/resources/stores/secret/signing-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET)
507509
- [`/resources/stores/secret/{store_id}/secrets/{secret_name}`](https://developer.fastly.com/reference/api/services/resources/secret) (DELETE, GET)
@@ -522,7 +524,6 @@ The fastly-perl API client currently does not support the following endpoints:
522524
- [`/service/{service_id}/version/{version_id}/request_settings`](https://developer.fastly.com/reference/api/vcl-services/request-settings) (POST)
523525
- [`/service/{service_id}/version/{version_id}/response_object/{response_object_name}`](https://developer.fastly.com/reference/api/vcl-services/response-object) (PUT)
524526
- [`/service/{service_id}/version/{version_id}/response_object`](https://developer.fastly.com/reference/api/vcl-services/response-object) (POST)
525-
- [`/service/{service_id}/version/{version_id}/settings`](https://developer.fastly.com/reference/api/vcl-services/settings) (PUT)
526527
- [`/service/{service_id}/version/{version_id}/snippet/{snippet_name}`](https://developer.fastly.com/reference/api/vcl-services/snippet) (PUT)
527528
- [`/service/{service_id}/version/{version_id}/wafs/{firewall_id}`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET, PATCH)
528529
- [`/service/{service_id}/version/{version_id}/wafs`](https://developer.fastly.com/reference/api/legacy-waf/firewall) (GET, POST)

docs/Batch.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# WebService::Fastly::Object::Batch
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::Batch;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**title** | **string** | A descriptor for the response of the entire batch | [optional]
12+
**type** | **string** | If an error is present in any of the requests, this field will describe that error | [optional]
13+
**errors** | [**ARRAY[BatchErrors]**](BatchErrors.md) | Per-key errors which failed to parse, validate, or otherwise transmit | [optional]
14+
15+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16+
17+

docs/BatchErrors.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# WebService::Fastly::Object::BatchErrors
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::BatchErrors;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**key** | **string** | The key that the error corresponds to. This field will be empty if the object or one of its fields was unable to be parsed. | [optional]
12+
**index** | **int** | The line number of the payload on which the error occurred (starting from 0 for the first line). | [optional]
13+
**code** | **string** | The HTTP response code for the request, or a 400 if the request was not able to be completed. | [optional]
14+
**reason** | **string** | A descriptor of this particular item's error. | [optional]
15+
16+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
17+
18+

docs/SchemasSnippetResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use WebService::Fastly::Object::SchemasSnippetResponse;
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**name** | **string** | The name for the snippet. | [optional]
12-
**dynamic** | **int** | Sets the snippet version. | [optional]
12+
**dynamic** | **string** | Sets the snippet version. | [optional]
1313
**type** | **string** | The location in generated VCL where the snippet should be placed. | [optional]
1414
**content** | **string** | The VCL code that specifies exactly what the snippet does. | [optional]
1515
**priority** | **string** | Priority determines execution order. Lower numbers execute first. | [optional] [default to '100']

docs/SettingsApi.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ All URIs are relative to *https://api.fastly.com*
1010
Method | HTTP request | Description
1111
------------- | ------------- | -------------
1212
[**get_service_settings**](SettingsApi.md#get_service_settings) | **GET** /service/{service_id}/version/{version_id}/settings | Get service settings
13+
[**update_service_settings**](SettingsApi.md#update_service_settings) | **PUT** /service/{service_id}/version/{version_id}/settings | Update service settings
1314

1415

1516
# **get_service_settings**
@@ -65,3 +66,64 @@ Name | Type | Description | Notes
6566

6667
[[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)
6768

69+
# **update_service_settings**
70+
> SettingsResponse update_service_settings(service_id => $service_id, version_id => $version_id, general/default_host => $general/default_host, general/default_ttl => $general/default_ttl, general/stale_if_error => $general/stale_if_error, general/stale_if_error_ttl => $general/stale_if_error_ttl)
71+
72+
Update service settings
73+
74+
Update the settings for a particular service and version. NOTE: If you override TTLs with custom VCL, any general.default_ttl value will not be honored and the expected behavior may change.
75+
76+
### Example
77+
```perl
78+
use Data::Dumper;
79+
use WebService::Fastly::SettingsApi;
80+
my $api_instance = WebService::Fastly::SettingsApi->new(
81+
82+
# Configure API key authorization: token
83+
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
84+
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
85+
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
86+
);
87+
88+
my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
89+
my $version_id = 56; # int | Integer identifying a service version.
90+
my $general/default_host = "general/default_host_example"; # string | The default host name for the version.
91+
my $general/default_ttl = 56; # int | The default time-to-live (TTL) for the version.
92+
my $general/stale_if_error = false; # boolean | Enables serving a stale object if there is an error.
93+
my $general/stale_if_error_ttl = 43200; # int | The default time-to-live (TTL) for serving the stale object for the version.
94+
95+
eval {
96+
my $result = $api_instance->update_service_settings(service_id => $service_id, version_id => $version_id, general/default_host => $general/default_host, general/default_ttl => $general/default_ttl, general/stale_if_error => $general/stale_if_error, general/stale_if_error_ttl => $general/stale_if_error_ttl);
97+
print Dumper($result);
98+
};
99+
if ($@) {
100+
warn "Exception when calling SettingsApi->update_service_settings: $@\n";
101+
}
102+
```
103+
104+
### Parameters
105+
106+
Name | Type | Description | Notes
107+
------------- | ------------- | ------------- | -------------
108+
**service_id** | **string**| Alphanumeric string identifying the service. |
109+
**version_id** | **int**| Integer identifying a service version. |
110+
**general/default_host** | **string**| The default host name for the version. | [optional]
111+
**general/default_ttl** | **int**| The default time-to-live (TTL) for the version. | [optional]
112+
**general/stale_if_error** | **boolean**| Enables serving a stale object if there is an error. | [optional] [default to false]
113+
**general/stale_if_error_ttl** | **int**| The default time-to-live (TTL) for serving the stale object for the version. | [optional] [default to 43200]
114+
115+
### Return type
116+
117+
[**SettingsResponse**](SettingsResponse.md)
118+
119+
### Authorization
120+
121+
[token](../README.md#token)
122+
123+
### HTTP request headers
124+
125+
- **Content-Type**: application/x-www-form-urlencoded
126+
- **Accept**: application/json
127+
128+
[[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)
129+

docs/Snippet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use WebService::Fastly::Object::Snippet;
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**name** | **string** | The name for the snippet. | [optional]
12-
**dynamic** | **int** | Sets the snippet version. | [optional]
12+
**dynamic** | **string** | Sets the snippet version. | [optional]
1313
**type** | **string** | The location in generated VCL where the snippet should be placed. | [optional]
1414
**content** | **string** | The VCL code that specifies exactly what the snippet does. | [optional]
1515
**priority** | **string** | Priority determines execution order. Lower numbers execute first. | [optional] [default to '100']

docs/SnippetApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ my $api_instance = WebService::Fastly::SnippetApi->new(
3939
my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
4040
my $version_id = 56; # int | Integer identifying a service version.
4141
my $name = "name_example"; # string | The name for the snippet.
42-
my $dynamic = 56; # int | Sets the snippet version.
42+
my $dynamic = "dynamic_example"; # string | Sets the snippet version.
4343
my $type = "type_example"; # string | The location in generated VCL where the snippet should be placed.
4444
my $content = "content_example"; # string | The VCL code that specifies exactly what the snippet does.
4545
my $priority = '100'; # string | Priority determines execution order. Lower numbers execute first.
@@ -60,7 +60,7 @@ Name | Type | Description | Notes
6060
**service_id** | **string**| Alphanumeric string identifying the service. |
6161
**version_id** | **int**| Integer identifying a service version. |
6262
**name** | **string**| The name for the snippet. | [optional]
63-
**dynamic** | **int**| Sets the snippet version. | [optional]
63+
**dynamic** | **string**| Sets the snippet version. | [optional]
6464
**type** | **string**| The location in generated VCL where the snippet should be placed. | [optional]
6565
**content** | **string**| The VCL code that specifies exactly what the snippet does. | [optional]
6666
**priority** | **string**| Priority determines execution order. Lower numbers execute first. | [optional] [default to '100']
@@ -318,7 +318,7 @@ my $api_instance = WebService::Fastly::SnippetApi->new(
318318
my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
319319
my $snippet_id = "snippet_id_example"; # string | Alphanumeric string identifying a VCL Snippet.
320320
my $name = "name_example"; # string | The name for the snippet.
321-
my $dynamic = 56; # int | Sets the snippet version.
321+
my $dynamic = "dynamic_example"; # string | Sets the snippet version.
322322
my $type = "type_example"; # string | The location in generated VCL where the snippet should be placed.
323323
my $content = "content_example"; # string | The VCL code that specifies exactly what the snippet does.
324324
my $priority = '100'; # string | Priority determines execution order. Lower numbers execute first.
@@ -339,7 +339,7 @@ Name | Type | Description | Notes
339339
**service_id** | **string**| Alphanumeric string identifying the service. |
340340
**snippet_id** | **string**| Alphanumeric string identifying a VCL Snippet. |
341341
**name** | **string**| The name for the snippet. | [optional]
342-
**dynamic** | **int**| Sets the snippet version. | [optional]
342+
**dynamic** | **string**| Sets the snippet version. | [optional]
343343
**type** | **string**| The location in generated VCL where the snippet should be placed. | [optional]
344344
**content** | **string**| The VCL code that specifies exactly what the snippet does. | [optional]
345345
**priority** | **string**| Priority determines execution order. Lower numbers execute first. | [optional] [default to '100']

docs/SnippetResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use WebService::Fastly::Object::SnippetResponse;
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**name** | **string** | The name for the snippet. | [optional]
12-
**dynamic** | **int** | Sets the snippet version. | [optional]
12+
**dynamic** | **string** | Sets the snippet version. | [optional]
1313
**type** | **string** | The location in generated VCL where the snippet should be placed. | [optional]
1414
**content** | **string** | The VCL code that specifies exactly what the snippet does. | [optional]
1515
**priority** | **string** | Priority determines execution order. Lower numbers execute first. | [optional] [default to '100']

docs/TokensAdditionalProps.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# WebService::Fastly::Object::TokensAdditionalProps
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::TokensAdditionalProps;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+

docs/ValidatorResult.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ use WebService::Fastly::Object::ValidatorResult;
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**msg** | **string** | | [optional]
12-
**status** | **string** | | [optional]
13-
**errors** | **ARRAY[string]** | | [optional]
14-
**warnings** | **ARRAY[string]** | | [optional]
15-
**messages** | [**ARRAY[ValidatorResultMessages]**](ValidatorResultMessages.md) | | [optional]
11+
**data** | [**ValidatorResultData**](ValidatorResultData.md) | | [optional]
1612

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

docs/ValidatorResultData.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# WebService::Fastly::Object::ValidatorResultData
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::ValidatorResultData;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**id** | **string** | | [optional]
12+
**type** | **string** | | [optional]
13+
**attributes** | [**ValidatorResultDataAttributes**](ValidatorResultDataAttributes.md) | | [optional]
14+
15+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16+
17+

docs/ValidatorResultDataAttributes.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# WebService::Fastly::Object::ValidatorResultDataAttributes
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::ValidatorResultDataAttributes;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**msg** | **string** | | [optional]
12+
**status** | **string** | | [optional]
13+
**errors** | **ARRAY[string]** | | [optional]
14+
**warnings** | **ARRAY[string]** | | [optional]
15+
**messages** | [**ARRAY[ValidatorResultDataAttributesMessages]**](ValidatorResultDataAttributesMessages.md) | | [optional]
16+
17+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
18+
19+

docs/ValidatorResultMessages.md renamed to docs/ValidatorResultDataAttributesMessages.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# WebService::Fastly::Object::ValidatorResultMessages
1+
# WebService::Fastly::Object::ValidatorResultDataAttributesMessages
22

33
## Load the model package
44
```perl
5-
use WebService::Fastly::Object::ValidatorResultMessages;
5+
use WebService::Fastly::Object::ValidatorResultDataAttributesMessages;
66
```
77

88
## Properties
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**type** | **string** | |
1212
**warning** | **boolean** | |
1313
**message** | **string** | |
14-
**tokens** | **ARRAY[HASH[string,AnyOfstringnumber]]** | |
14+
**tokens** | **ARRAY[HASH[string,TokensAdditionalProps]]** | |
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

0 commit comments

Comments
 (0)