Skip to content

Commit 902687c

Browse files
committed
[Perl] 2.00-TRIAL
1 parent 816b8ad commit 902687c

File tree

62 files changed

+6290
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+6290
-9
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ nytprof.out
2222
# Generator artifacts
2323
.openapi*
2424
.tmp*
25+
26+
*.iml
27+
/WebService-Fastly-*

Changes

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
Revision history for Perl module Net::Fastly
1+
Revision history for Perl module WebService::Fastly
22

3-
2.0.0-TRIAL1
3+
2.00 2022-06-29
4+
* Moved from Net::Fastly to WebService::Fastly
45
* Initial Generated Client Prerelease
56

67
1.12 2020-09-03

MANIFEST.SKIP

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
deploy.sh
2+
fastly-perl.iml
3+
.openapi-generator-ignore
4+
.tmp.fastly.err.log

META.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"web" : "https://github.com/fastly/fastly-perl"
4949
}
5050
},
51-
"version" : "2.0.0",
51+
"version" : "2.00",
5252
"x_contributors" : [
5353
"andri <[email protected]>",
5454
"Andri Antoniades <[email protected]>",

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ WebService::Fastly - an interface to most facets of the [Fastly API](https://dev
44

55
# VERSION
66

7-
2.0.0-TRIAL1
7+
2.00-TRIAL1
88

9-
> ⚠️ This client library (`2.0.0-TRIAL1`) is an early-access release. Features may change without notice. Use at your own risk.
9+
> ⚠️ This client library (`2.00-TRIAL1`) is an early-access release. Features may change without notice. Use at your own risk.
1010
1111
**We strongly recommend that you do not install alpha and beta releases on live production services.** No official support is provided for such releases. Please try out the library in a test environment, see what breaks without worrying about consequences, and give us [feedback](#issues).
1212

docs/EnabledProduct.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# WebService::Fastly::Object::EnabledProduct
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::EnabledProduct;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**product** | [**EnabledProductProduct**](EnabledProductProduct.md) | | [optional]
12+
**service** | [**EnabledProductProduct**](EnabledProductProduct.md) | | [optional]
13+
**_links** | [**EnabledProductLinks**](EnabledProductLinks.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/EnabledProductLinks.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# WebService::Fastly::Object::EnabledProductLinks
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::EnabledProductLinks;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**self** | **string** | | [optional]
12+
**service** | **string** | | [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/EnabledProductProduct.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# WebService::Fastly::Object::EnabledProductProduct
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::EnabledProductProduct;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**id** | **string** | | [optional]
12+
**object** | **string** | | [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/EnabledProductsApi.md

+174
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
# WebService::Fastly::EnabledProductsApi
2+
3+
## Load the API package
4+
```perl
5+
use WebService::Fastly::Object::EnabledProductsApi;
6+
```
7+
8+
All URIs are relative to *https://api.fastly.com*
9+
10+
Method | HTTP request | Description
11+
------------- | ------------- | -------------
12+
[**disable_product**](EnabledProductsApi.md#disable_product) | **DELETE** /enabled-products/{product_id}/services/{service_id} | Disable a product
13+
[**enable_product**](EnabledProductsApi.md#enable_product) | **PUT** /enabled-products/{product_id}/services/{service_id} | Enable a product
14+
[**get_enabled_product**](EnabledProductsApi.md#get_enabled_product) | **GET** /enabled-products/{product_id}/services/{service_id} | Get enabled product
15+
16+
17+
# **disable_product**
18+
> disable_product(product_id => $product_id, service_id => $service_id)
19+
20+
Disable a product
21+
22+
Disable a product on a service.
23+
24+
### Example
25+
```perl
26+
use Data::Dumper;
27+
use WebService::Fastly::EnabledProductsApi;
28+
my $api_instance = WebService::Fastly::EnabledProductsApi->new(
29+
30+
# Configure API key authorization: token
31+
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
32+
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
33+
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
34+
);
35+
36+
my $product_id = origin_inspector; # string |
37+
my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
38+
39+
eval {
40+
$api_instance->disable_product(product_id => $product_id, service_id => $service_id);
41+
};
42+
if ($@) {
43+
warn "Exception when calling EnabledProductsApi->disable_product: $@\n";
44+
}
45+
```
46+
47+
### Parameters
48+
49+
Name | Type | Description | Notes
50+
------------- | ------------- | ------------- | -------------
51+
**product_id** | **string**| |
52+
**service_id** | **string**| Alphanumeric string identifying the service. |
53+
54+
### Return type
55+
56+
void (empty response body)
57+
58+
### Authorization
59+
60+
[token](../README.md#token)
61+
62+
### HTTP request headers
63+
64+
- **Content-Type**: Not defined
65+
- **Accept**: Not defined
66+
67+
[[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)
68+
69+
# **enable_product**
70+
> EnabledProduct enable_product(product_id => $product_id, service_id => $service_id)
71+
72+
Enable a product
73+
74+
Enable a product on a service.
75+
76+
### Example
77+
```perl
78+
use Data::Dumper;
79+
use WebService::Fastly::EnabledProductsApi;
80+
my $api_instance = WebService::Fastly::EnabledProductsApi->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 $product_id = origin_inspector; # string |
89+
my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
90+
91+
eval {
92+
my $result = $api_instance->enable_product(product_id => $product_id, service_id => $service_id);
93+
print Dumper($result);
94+
};
95+
if ($@) {
96+
warn "Exception when calling EnabledProductsApi->enable_product: $@\n";
97+
}
98+
```
99+
100+
### Parameters
101+
102+
Name | Type | Description | Notes
103+
------------- | ------------- | ------------- | -------------
104+
**product_id** | **string**| |
105+
**service_id** | **string**| Alphanumeric string identifying the service. |
106+
107+
### Return type
108+
109+
[**EnabledProduct**](EnabledProduct.md)
110+
111+
### Authorization
112+
113+
[token](../README.md#token)
114+
115+
### HTTP request headers
116+
117+
- **Content-Type**: Not defined
118+
- **Accept**: application/json
119+
120+
[[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)
121+
122+
# **get_enabled_product**
123+
> EnabledProduct get_enabled_product(product_id => $product_id, service_id => $service_id)
124+
125+
Get enabled product
126+
127+
Get enabled product on a service.
128+
129+
### Example
130+
```perl
131+
use Data::Dumper;
132+
use WebService::Fastly::EnabledProductsApi;
133+
my $api_instance = WebService::Fastly::EnabledProductsApi->new(
134+
135+
# Configure API key authorization: token
136+
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
137+
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
138+
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
139+
);
140+
141+
my $product_id = origin_inspector; # string |
142+
my $service_id = "service_id_example"; # string | Alphanumeric string identifying the service.
143+
144+
eval {
145+
my $result = $api_instance->get_enabled_product(product_id => $product_id, service_id => $service_id);
146+
print Dumper($result);
147+
};
148+
if ($@) {
149+
warn "Exception when calling EnabledProductsApi->get_enabled_product: $@\n";
150+
}
151+
```
152+
153+
### Parameters
154+
155+
Name | Type | Description | Notes
156+
------------- | ------------- | ------------- | -------------
157+
**product_id** | **string**| |
158+
**service_id** | **string**| Alphanumeric string identifying the service. |
159+
160+
### Return type
161+
162+
[**EnabledProduct**](EnabledProduct.md)
163+
164+
### Authorization
165+
166+
[token](../README.md#token)
167+
168+
### HTTP request headers
169+
170+
- **Content-Type**: Not defined
171+
- **Accept**: application/json
172+
173+
[[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)
174+

docs/EntitledProduct.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# WebService::Fastly::Object::EntitledProduct
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::EntitledProduct;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**product** | [**EnabledProductProduct**](EnabledProductProduct.md) | | [optional]
12+
**has_access** | **boolean** | | [optional]
13+
**access_level** | **string** | | [optional]
14+
**_links** | [**EntitledProductLinks**](EntitledProductLinks.md) | | [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/EntitledProductLinks.md

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

docs/EntitledProductsApi.md

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# WebService::Fastly::EntitledProductsApi
2+
3+
## Load the API package
4+
```perl
5+
use WebService::Fastly::Object::EntitledProductsApi;
6+
```
7+
8+
All URIs are relative to *https://api.fastly.com*
9+
10+
Method | HTTP request | Description
11+
------------- | ------------- | -------------
12+
[**get_entitled_product**](EntitledProductsApi.md#get_entitled_product) | **GET** /entitled-products/{product_id} | Get entitled product
13+
14+
15+
# **get_entitled_product**
16+
> EntitledProduct get_entitled_product(product_id => $product_id)
17+
18+
Get entitled product
19+
20+
Get entitled product on a service.
21+
22+
### Example
23+
```perl
24+
use Data::Dumper;
25+
use WebService::Fastly::EntitledProductsApi;
26+
my $api_instance = WebService::Fastly::EntitledProductsApi->new(
27+
28+
# Configure API key authorization: token
29+
api_key => {'Fastly-Key' => 'YOUR_API_KEY'},
30+
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
31+
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
32+
);
33+
34+
my $product_id = origin_inspector; # string |
35+
36+
eval {
37+
my $result = $api_instance->get_entitled_product(product_id => $product_id);
38+
print Dumper($result);
39+
};
40+
if ($@) {
41+
warn "Exception when calling EntitledProductsApi->get_entitled_product: $@\n";
42+
}
43+
```
44+
45+
### Parameters
46+
47+
Name | Type | Description | Notes
48+
------------- | ------------- | ------------- | -------------
49+
**product_id** | **string**| |
50+
51+
### Return type
52+
53+
[**EntitledProduct**](EntitledProduct.md)
54+
55+
### Authorization
56+
57+
[token](../README.md#token)
58+
59+
### HTTP request headers
60+
61+
- **Content-Type**: Not defined
62+
- **Accept**: application/json
63+
64+
[[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)
65+

docs/InlineObject.md

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

0 commit comments

Comments
 (0)