Skip to content

Commit f5065fe

Browse files
author
github-actions
committed
Generated v4.02
1 parent 6f31639 commit f5065fe

17 files changed

+50
-48
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+
4.02 2023-07-13
4+
* fix(logging_gcs): set expected default value for 'path'.
5+
* fix(origin_inspector_historical): use correct type for 'values'.
6+
* fix(tls_subscriptions): fix argument order for deleting globalsign email challenge.
7+
38
4.01 2023-07-12
49
* fix(billing): rename response field 'lines' to 'line_items'.
510
* fix(billing): restructure response models like 'aria_invoice_id'.

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://deve
44

55
# VERSION
66

7-
4.01
7+
4.02
88

99

1010
# SYNOPSIS

docs/LoggingGcs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
2222
**secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional]
2323
**account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional]
2424
**bucket_name** | **string** | The name of the GCS bucket. | [optional]
25-
**path** | **string** | The path to upload logs to. | [optional]
25+
**path** | **string** | | [optional] [default to '/']
2626
**public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [default to 'null']
2727
**project_id** | **string** | Your Google Cloud Platform project ID. Required | [optional]
2828

docs/LoggingGcsAllOf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use WebService::Fastly::Object::LoggingGcsAllOf;
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**bucket_name** | **string** | The name of the GCS bucket. | [optional]
12-
**path** | **string** | The path to upload logs to. | [optional]
12+
**path** | **string** | | [optional] [default to '/']
1313
**public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [default to 'null']
1414
**project_id** | **string** | Your Google Cloud Platform project ID. Required | [optional]
1515

docs/LoggingGcsApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ my $user = "user_example"; # string | Your Google Cloud Platform service account
5151
my $secret_key = "secret_key_example"; # string | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified.
5252
my $account_name = "account_name_example"; # string | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided.
5353
my $bucket_name = "bucket_name_example"; # string | The name of the GCS bucket.
54-
my $path = "path_example"; # string | The path to upload logs to.
54+
my $path = '/'; # string |
5555
my $public_key = 'null'; # string | A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
5656
my $project_id = "project_id_example"; # string | Your Google Cloud Platform project ID. Required
5757

@@ -84,7 +84,7 @@ Name | Type | Description | Notes
8484
**secret_key** | **string**| Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional]
8585
**account_name** | **string**| The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional]
8686
**bucket_name** | **string**| The name of the GCS bucket. | [optional]
87-
**path** | **string**| The path to upload logs to. | [optional]
87+
**path** | **string**| | [optional] [default to '/']
8888
**public_key** | **string**| A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [default to 'null']
8989
**project_id** | **string**| Your Google Cloud Platform project ID. Required | [optional]
9090

@@ -302,7 +302,7 @@ my $user = "user_example"; # string | Your Google Cloud Platform service account
302302
my $secret_key = "secret_key_example"; # string | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified.
303303
my $account_name = "account_name_example"; # string | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided.
304304
my $bucket_name = "bucket_name_example"; # string | The name of the GCS bucket.
305-
my $path = "path_example"; # string | The path to upload logs to.
305+
my $path = '/'; # string |
306306
my $public_key = 'null'; # string | A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
307307
my $project_id = "project_id_example"; # string | Your Google Cloud Platform project ID. Required
308308

@@ -336,7 +336,7 @@ Name | Type | Description | Notes
336336
**secret_key** | **string**| Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional]
337337
**account_name** | **string**| The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional]
338338
**bucket_name** | **string**| The name of the GCS bucket. | [optional]
339-
**path** | **string**| The path to upload logs to. | [optional]
339+
**path** | **string**| | [optional] [default to '/']
340340
**public_key** | **string**| A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [default to 'null']
341341
**project_id** | **string**| Your Google Cloud Platform project ID. Required | [optional]
342342

docs/LoggingGcsResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
2222
**secret_key** | **string** | Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. | [optional]
2323
**account_name** | **string** | The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. | [optional]
2424
**bucket_name** | **string** | The name of the GCS bucket. | [optional]
25-
**path** | **string** | The path to upload logs to. | [optional]
25+
**path** | **string** | | [optional] [default to '/']
2626
**public_key** | **string** | A PGP public key that Fastly will use to encrypt your log files before writing them to disk. | [optional] [default to 'null']
2727
**project_id** | **string** | Your Google Cloud Platform project ID. Required | [optional]
2828
**created_at** | **DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]

docs/OriginInspectorHistoricalData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use WebService::Fastly::Object::OriginInspectorHistoricalData;
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**dimensions** | [**OriginInspectorDimensions**](OriginInspectorDimensions.md) | | [optional]
12-
**values** | [**Values**](Values.md) | | [optional]
12+
**values** | [**ARRAY[OriginInspectorValues]**](OriginInspectorValues.md) | An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. | [optional]
1313

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

docs/TlsSubscriptionsApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Name | Type | Description | Notes
127127
[[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)
128128

129129
# **delete_globalsign_email_challenge**
130-
> delete_globalsign_email_challenge(tls_subscription_id => $tls_subscription_id, globalsign_email_challenge_id => $globalsign_email_challenge_id, tls_authorization_id => $tls_authorization_id)
130+
> delete_globalsign_email_challenge(tls_subscription_id => $tls_subscription_id, tls_authorization_id => $tls_authorization_id, globalsign_email_challenge_id => $globalsign_email_challenge_id)
131131
132132
Delete a GlobalSign email challenge
133133

@@ -146,11 +146,11 @@ my $api_instance = WebService::Fastly::TlsSubscriptionsApi->new(
146146
);
147147

148148
my $tls_subscription_id = "tls_subscription_id_example"; # string | Alphanumeric string identifying a TLS subscription.
149-
my $globalsign_email_challenge_id = gU3guUGZzb2W9Euo4Mo0r; # string | Alphanumeric string identifying a GlobalSign email challenge.
150149
my $tls_authorization_id = "tls_authorization_id_example"; # string | Alphanumeric string identifying a TLS subscription.
150+
my $globalsign_email_challenge_id = gU3guUGZzb2W9Euo4Mo0r; # string | Alphanumeric string identifying a GlobalSign email challenge.
151151

152152
eval {
153-
$api_instance->delete_globalsign_email_challenge(tls_subscription_id => $tls_subscription_id, globalsign_email_challenge_id => $globalsign_email_challenge_id, tls_authorization_id => $tls_authorization_id);
153+
$api_instance->delete_globalsign_email_challenge(tls_subscription_id => $tls_subscription_id, tls_authorization_id => $tls_authorization_id, globalsign_email_challenge_id => $globalsign_email_challenge_id);
154154
};
155155
if ($@) {
156156
warn "Exception when calling TlsSubscriptionsApi->delete_globalsign_email_challenge: $@\n";
@@ -162,8 +162,8 @@ if ($@) {
162162
Name | Type | Description | Notes
163163
------------- | ------------- | ------------- | -------------
164164
**tls_subscription_id** | **string**| Alphanumeric string identifying a TLS subscription. |
165-
**globalsign_email_challenge_id** | **string**| Alphanumeric string identifying a GlobalSign email challenge. |
166165
**tls_authorization_id** | **string**| Alphanumeric string identifying a TLS subscription. |
166+
**globalsign_email_challenge_id** | **string**| Alphanumeric string identifying a GlobalSign email challenge. |
167167

168168
### Return type
169169

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 = '4.01';
5+
our $VERSION = '4.02';
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 => '4.01';
27+
use constant VERSION => '4.02';
2828

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

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

lib/WebService/Fastly/LoggingGcsApi.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ sub new {
6767
# @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional)
6868
# @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional)
6969
# @param string $bucket_name The name of the GCS bucket. (optional)
70-
# @param string $path The path to upload logs to. (optional)
70+
# @param string $path (optional, default to '/')
7171
# @param string $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional, default to 'null')
7272
# @param string $project_id Your Google Cloud Platform project ID. Required (optional)
7373
{
@@ -154,7 +154,7 @@ sub new {
154154
},
155155
'path' => {
156156
data_type => 'string',
157-
description => 'The path to upload logs to.',
157+
description => '',
158158
required => '0',
159159
},
160160
'public_key' => {
@@ -631,7 +631,7 @@ sub list_log_gcs {
631631
# @param string $secret_key Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified. (optional)
632632
# @param string $account_name The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided. (optional)
633633
# @param string $bucket_name The name of the GCS bucket. (optional)
634-
# @param string $path The path to upload logs to. (optional)
634+
# @param string $path (optional, default to '/')
635635
# @param string $public_key A PGP public key that Fastly will use to encrypt your log files before writing them to disk. (optional, default to 'null')
636636
# @param string $project_id Your Google Cloud Platform project ID. Required (optional)
637637
{
@@ -723,7 +723,7 @@ sub list_log_gcs {
723723
},
724724
'path' => {
725725
data_type => 'string',
726-
description => 'The path to upload logs to.',
726+
description => '',
727727
required => '0',
728728
},
729729
'public_key' => {

lib/WebService/Fastly/Object/LoggingGcs.pm

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

31-
use WebService::Fastly::Object::AnyType;
3231
use WebService::Fastly::Object::LoggingCommon;
3332
use WebService::Fastly::Object::LoggingGcsAllOf;
3433
use WebService::Fastly::Object::LoggingGcsCommon;
@@ -264,7 +263,7 @@ __PACKAGE__->method_documentation({
264263
'path' => {
265264
datatype => 'string',
266265
base_name => 'path',
267-
description => 'The path to upload logs to.',
266+
description => '',
268267
format => '',
269268
read_only => 'false',
270269
},

lib/WebService/Fastly/Object/LoggingGcsAllOf.pm

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

31-
use WebService::Fastly::Object::AnyType;
3231

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

@@ -169,7 +168,7 @@ __PACKAGE__->method_documentation({
169168
'path' => {
170169
datatype => 'string',
171170
base_name => 'path',
172-
description => 'The path to upload logs to.',
171+
description => '',
173172
format => '',
174173
read_only => 'false',
175174
},

lib/WebService/Fastly/Object/LoggingGcsResponse.pm

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

31-
use WebService::Fastly::Object::AnyType;
3231
use WebService::Fastly::Object::LoggingGcs;
3332
use WebService::Fastly::Object::ServiceIdAndVersion;
3433
use WebService::Fastly::Object::Timestamps;
@@ -263,7 +262,7 @@ __PACKAGE__->method_documentation({
263262
'path' => {
264263
datatype => 'string',
265264
base_name => 'path',
266-
description => 'The path to upload logs to.',
265+
description => '',
267266
format => '',
268267
read_only => 'false',
269268
},

lib/WebService/Fastly/Object/OriginInspectorHistoricalData.pm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use Date::Parse;
2929
use DateTime;
3030

3131
use WebService::Fastly::Object::OriginInspectorDimensions;
32-
use WebService::Fastly::Object::Values;
32+
use WebService::Fastly::Object::OriginInspectorValues;
3333

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

@@ -168,17 +168,17 @@ __PACKAGE__->method_documentation({
168168
read_only => 'false',
169169
},
170170
'values' => {
171-
datatype => 'Values',
171+
datatype => 'ARRAY[OriginInspectorValues]',
172172
base_name => 'values',
173-
description => '',
173+
description => 'An array of values representing the metric values at each point in time. Note that this dataset is sparse: only the keys with non-zero values will be included in the record. ',
174174
format => '',
175175
read_only => 'false',
176176
},
177177
});
178178

179179
__PACKAGE__->openapi_types( {
180180
'dimensions' => 'OriginInspectorDimensions',
181-
'values' => 'Values'
181+
'values' => 'ARRAY[OriginInspectorValues]'
182182
} );
183183

184184
__PACKAGE__->attribute_map( {

lib/WebService/Fastly/TlsSubscriptionsApi.pm

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -219,23 +219,23 @@ sub create_tls_sub {
219219
# Delete a GlobalSign email challenge
220220
#
221221
# @param string $tls_subscription_id Alphanumeric string identifying a TLS subscription. (required)
222-
# @param string $globalsign_email_challenge_id Alphanumeric string identifying a GlobalSign email challenge. (required)
223222
# @param string $tls_authorization_id Alphanumeric string identifying a TLS subscription. (required)
223+
# @param string $globalsign_email_challenge_id Alphanumeric string identifying a GlobalSign email challenge. (required)
224224
{
225225
my $params = {
226226
'tls_subscription_id' => {
227227
data_type => 'string',
228228
description => 'Alphanumeric string identifying a TLS subscription.',
229229
required => '1',
230230
},
231-
'globalsign_email_challenge_id' => {
231+
'tls_authorization_id' => {
232232
data_type => 'string',
233-
description => 'Alphanumeric string identifying a GlobalSign email challenge.',
233+
description => 'Alphanumeric string identifying a TLS subscription.',
234234
required => '1',
235235
},
236-
'tls_authorization_id' => {
236+
'globalsign_email_challenge_id' => {
237237
data_type => 'string',
238-
description => 'Alphanumeric string identifying a TLS subscription.',
238+
description => 'Alphanumeric string identifying a GlobalSign email challenge.',
239239
required => '1',
240240
},
241241
};
@@ -255,16 +255,16 @@ sub delete_globalsign_email_challenge {
255255
croak("Missing the required parameter 'tls_subscription_id' when calling delete_globalsign_email_challenge");
256256
}
257257

258-
# verify the required parameter 'globalsign_email_challenge_id' is set
259-
unless (exists $args{'globalsign_email_challenge_id'}) {
260-
croak("Missing the required parameter 'globalsign_email_challenge_id' when calling delete_globalsign_email_challenge");
261-
}
262-
263258
# verify the required parameter 'tls_authorization_id' is set
264259
unless (exists $args{'tls_authorization_id'}) {
265260
croak("Missing the required parameter 'tls_authorization_id' when calling delete_globalsign_email_challenge");
266261
}
267262

263+
# verify the required parameter 'globalsign_email_challenge_id' is set
264+
unless (exists $args{'globalsign_email_challenge_id'}) {
265+
croak("Missing the required parameter 'globalsign_email_challenge_id' when calling delete_globalsign_email_challenge");
266+
}
267+
268268
# parse inputs
269269
my $_resource_path = '/tls/subscriptions/{tls_subscription_id}/authorizations/{tls_authorization_id}/globalsign_email_challenges/{globalsign_email_challenge_id}';
270270

@@ -288,16 +288,16 @@ sub delete_globalsign_email_challenge {
288288
}
289289

290290
# path params
291-
if ( exists $args{'globalsign_email_challenge_id'}) {
292-
my $_base_variable = "{" . "globalsign_email_challenge_id" . "}";
293-
my $_base_value = $self->{api_client}->to_path_value($args{'globalsign_email_challenge_id'});
291+
if ( exists $args{'tls_authorization_id'}) {
292+
my $_base_variable = "{" . "tls_authorization_id" . "}";
293+
my $_base_value = $self->{api_client}->to_path_value($args{'tls_authorization_id'});
294294
$_resource_path =~ s/$_base_variable/$_base_value/g;
295295
}
296296

297297
# path params
298-
if ( exists $args{'tls_authorization_id'}) {
299-
my $_base_variable = "{" . "tls_authorization_id" . "}";
300-
my $_base_value = $self->{api_client}->to_path_value($args{'tls_authorization_id'});
298+
if ( exists $args{'globalsign_email_challenge_id'}) {
299+
my $_base_variable = "{" . "globalsign_email_challenge_id" . "}";
300+
my $_base_value = $self->{api_client}->to_path_value($args{'globalsign_email_challenge_id'});
301301
$_resource_path =~ s/$_base_variable/$_base_value/g;
302302
}
303303

sig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"G": "fd9c0491", "D": "f16293ec"}
1+
{"G": "59fc714d", "D": "3bd4fb97"}

0 commit comments

Comments
 (0)