Skip to content

Commit

Permalink
Generated v5.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 13, 2024
1 parent 9a70436 commit 36bf380
Show file tree
Hide file tree
Showing 93 changed files with 11,418 additions and 283 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Changelog

## [v5.9.0](https://github.com/fastly/fastly-php/releases/tag/release/v5.9.0) (2024-09-13)

**Bug fixes:**

- bugfix(rust): Implement std::fmt::Display instead of std::string::ToString for enum models.
- fix(contact): Corrected endpoint called by `delete-contact` operation
- fix(origin-inspector, domain-inspector): Use integer type for Timestamp.
- fix(billing): Make all fields on billing list item data nullable

**Enhancements:**

- feat(acls-in-compute): Add ACLs in Compute API
- feat(enabled-products): Updated to use `v1` versioned endpoints.
- feat(enabled-products): Added `get-product-configuration`, `set-product-configuration` operations.
- feat(realtime, historical): Added `request_denied_get_head_body` metric.
- feat(tls): Add definitions for values of sort parameter
- feat(staging): Add activate/deactivate endpoints for staging
- feat(customer-addresses): Add Customer Addresses API

**Documentation:**

- doc(enabled-products): Added support for product IDs `bot_management` and `ngwaf`.

## [v5.8.0](https://github.com/fastly/fastly-php/releases/tag/release/v5.8.0) (2024-08-21)

**Bug fixes:**
Expand Down
31 changes: 29 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ Class | Method | Description
[*AclEntryApi*](docs/Api/AclEntryApi.md) | [**getAclEntry**](docs/Api/AclEntryApi.md#getaclentry) | Describe an ACL entry
[*AclEntryApi*](docs/Api/AclEntryApi.md) | [**listAclEntries**](docs/Api/AclEntryApi.md#listaclentries) | List ACL entries
[*AclEntryApi*](docs/Api/AclEntryApi.md) | [**updateAclEntry**](docs/Api/AclEntryApi.md#updateaclentry) | Update an ACL entry
[*AclsInComputeApi*](docs/Api/AclsInComputeApi.md) | [**computeAclCreateAcls**](docs/Api/AclsInComputeApi.md#computeaclcreateacls) | Create a new ACL
[*AclsInComputeApi*](docs/Api/AclsInComputeApi.md) | [**computeAclDeleteSAclId**](docs/Api/AclsInComputeApi.md#computeacldeletesaclid) | Delete an ACL
[*AclsInComputeApi*](docs/Api/AclsInComputeApi.md) | [**computeAclListAclEntries**](docs/Api/AclsInComputeApi.md#computeacllistaclentries) | List an ACL
[*AclsInComputeApi*](docs/Api/AclsInComputeApi.md) | [**computeAclListAcls**](docs/Api/AclsInComputeApi.md#computeacllistacls) | List ACLs
[*AclsInComputeApi*](docs/Api/AclsInComputeApi.md) | [**computeAclListAclsSAclId**](docs/Api/AclsInComputeApi.md#computeacllistaclssaclid) | Describe an ACL
[*AclsInComputeApi*](docs/Api/AclsInComputeApi.md) | [**computeAclLookupAcls**](docs/Api/AclsInComputeApi.md#computeacllookupacls) | Lookup an ACL
[*AclsInComputeApi*](docs/Api/AclsInComputeApi.md) | [**computeAclUpdateAcls**](docs/Api/AclsInComputeApi.md#computeaclupdateacls) | Update an ACL
[*ApexRedirectApi*](docs/Api/ApexRedirectApi.md) | [**createApexRedirect**](docs/Api/ApexRedirectApi.md#createapexredirect) | Create an apex redirect
[*ApexRedirectApi*](docs/Api/ApexRedirectApi.md) | [**deleteApexRedirect**](docs/Api/ApexRedirectApi.md#deleteapexredirect) | Delete an apex redirect
[*ApexRedirectApi*](docs/Api/ApexRedirectApi.md) | [**getApexRedirect**](docs/Api/ApexRedirectApi.md#getapexredirect) | Get an apex redirect
Expand Down Expand Up @@ -155,6 +162,9 @@ Class | Method | Description
[*CustomerApi*](docs/Api/CustomerApi.md) | [**getLoggedInCustomer**](docs/Api/CustomerApi.md#getloggedincustomer) | Get the logged in customer
[*CustomerApi*](docs/Api/CustomerApi.md) | [**listUsers**](docs/Api/CustomerApi.md#listusers) | List users
[*CustomerApi*](docs/Api/CustomerApi.md) | [**updateCustomer**](docs/Api/CustomerApi.md#updatecustomer) | Update a customer
[*CustomerAddressesApi*](docs/Api/CustomerAddressesApi.md) | [**createCustomerAddress**](docs/Api/CustomerAddressesApi.md#createcustomeraddress) | Creates an address associated with a customer account.
[*CustomerAddressesApi*](docs/Api/CustomerAddressesApi.md) | [**listCustomerAddresses**](docs/Api/CustomerAddressesApi.md#listcustomeraddresses) | Return the list of addresses associated with a customer account.
[*CustomerAddressesApi*](docs/Api/CustomerAddressesApi.md) | [**updateCustomerAddress**](docs/Api/CustomerAddressesApi.md#updatecustomeraddress) | Updates an address associated with a customer account.
[*DictionaryApi*](docs/Api/DictionaryApi.md) | [**createDictionary**](docs/Api/DictionaryApi.md#createdictionary) | Create an edge dictionary
[*DictionaryApi*](docs/Api/DictionaryApi.md) | [**deleteDictionary**](docs/Api/DictionaryApi.md#deletedictionary) | Delete an edge dictionary
[*DictionaryApi*](docs/Api/DictionaryApi.md) | [**getDictionary**](docs/Api/DictionaryApi.md#getdictionary) | Get an edge dictionary
Expand Down Expand Up @@ -192,6 +202,8 @@ Class | Method | Description
[*EnabledProductsApi*](docs/Api/EnabledProductsApi.md) | [**disableProduct**](docs/Api/EnabledProductsApi.md#disableproduct) | Disable a product
[*EnabledProductsApi*](docs/Api/EnabledProductsApi.md) | [**enableProduct**](docs/Api/EnabledProductsApi.md#enableproduct) | Enable a product
[*EnabledProductsApi*](docs/Api/EnabledProductsApi.md) | [**getEnabledProduct**](docs/Api/EnabledProductsApi.md#getenabledproduct) | Get enabled product
[*EnabledProductsApi*](docs/Api/EnabledProductsApi.md) | [**getProductConfiguration**](docs/Api/EnabledProductsApi.md#getproductconfiguration) | Get configuration for a product
[*EnabledProductsApi*](docs/Api/EnabledProductsApi.md) | [**setProductConfiguration**](docs/Api/EnabledProductsApi.md#setproductconfiguration) | Update configuration for a product
[*EventsApi*](docs/Api/EventsApi.md) | [**getEvent**](docs/Api/EventsApi.md#getevent) | Get an event
[*EventsApi*](docs/Api/EventsApi.md) | [**listEvents**](docs/Api/EventsApi.md#listevents) | List events
[*GzipApi*](docs/Api/GzipApi.md) | [**createGzipConfig**](docs/Api/GzipApi.md#creategzipconfig) | Create a gzip configuration
Expand Down Expand Up @@ -588,9 +600,11 @@ Class | Method | Description
[*VclApi*](docs/Api/VclApi.md) | [**updateCustomVcl**](docs/Api/VclApi.md#updatecustomvcl) | Update a custom VCL file
[*VclDiffApi*](docs/Api/VclDiffApi.md) | [**vclDiffServiceVersions**](docs/Api/VclDiffApi.md#vcldiffserviceversions) | Get a comparison of the VCL changes between two service versions
[*VersionApi*](docs/Api/VersionApi.md) | [**activateServiceVersion**](docs/Api/VersionApi.md#activateserviceversion) | Activate a service version
[*VersionApi*](docs/Api/VersionApi.md) | [**activateServiceVersionEnvironment**](docs/Api/VersionApi.md#activateserviceversionenvironment) | Activate a service version on the specified environment
[*VersionApi*](docs/Api/VersionApi.md) | [**cloneServiceVersion**](docs/Api/VersionApi.md#cloneserviceversion) | Clone a service version
[*VersionApi*](docs/Api/VersionApi.md) | [**createServiceVersion**](docs/Api/VersionApi.md#createserviceversion) | Create a service version
[*VersionApi*](docs/Api/VersionApi.md) | [**deactivateServiceVersion**](docs/Api/VersionApi.md#deactivateserviceversion) | Deactivate a service version
[*VersionApi*](docs/Api/VersionApi.md) | [**deactivateServiceVersionEnvironment**](docs/Api/VersionApi.md#deactivateserviceversionenvironment) | Deactivate a service version on an environment
[*VersionApi*](docs/Api/VersionApi.md) | [**getServiceVersion**](docs/Api/VersionApi.md#getserviceversion) | Get a version of a service
[*VersionApi*](docs/Api/VersionApi.md) | [**listServiceVersions**](docs/Api/VersionApi.md#listserviceversions) | List versions of a service
[*VersionApi*](docs/Api/VersionApi.md) | [**lockServiceVersion**](docs/Api/VersionApi.md#lockserviceversion) | Lock a service version
Expand Down Expand Up @@ -639,19 +653,32 @@ The fastly-php API client currently does not support the following endpoints:
- [`/alerts/history`](https://www.fastly.com/documentation/reference/api/observability/alerts/history) (GET)
- [`/dns/configurations/{dns_configuration_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
- [`/dns/configurations`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
- [`/domains/{domain_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
- [`/domains`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
- [`/notifications/integration-types`](https://developer.fastly.com/reference/api/observability/notification) (GET)
- [`/notifications/integrations/{integration_id}/rotateSigningKey`](https://developer.fastly.com/reference/api/observability/notification) (POST)
- [`/notifications/integrations/{integration_id}/signingKey`](https://developer.fastly.com/reference/api/observability/notification) (GET)
- [`/notifications/integrations/{integration_id}`](https://developer.fastly.com/reference/api/observability/notification) (DELETE, GET, PATCH)
- [`/notifications/integrations`](https://developer.fastly.com/reference/api/observability/notification) (GET, POST)
- [`/notifications/mailinglist-confirmations`](https://developer.fastly.com/reference/api/observability/notification) (POST)
- [`/resources/stores/kv/{store_id}/batch`](https://www.fastly.com/documentation/reference/api/services/resources/kv-store-item) (PUT)
- [`/security/workspaces/{workspace_id}/events/{event_id}`](https://docs.fastly.com/en/ngwaf/) (GET, PATCH)
- [`/security/workspaces/{workspace_id}/events`](https://docs.fastly.com/en/ngwaf/) (GET)
- [`/security/workspaces/{workspace_id}/redactions/{redaction_id}`](https://docs.fastly.com/en/ngwaf/) (DELETE, GET, PATCH)
- [`/security/workspaces/{workspace_id}/redactions`](https://docs.fastly.com/en/ngwaf/) (GET, POST)
- [`/security/workspaces/{workspace_id}/requests/{request_id}`](https://docs.fastly.com/en/ngwaf/) (GET)
- [`/security/workspaces/{workspace_id}/requests`](https://docs.fastly.com/en/ngwaf/) (GET)
- [`/security/workspaces/{workspace_id}/rules/{rule_id}`](https://docs.fastly.com/en/ngwaf/) (DELETE, GET, PATCH)
- [`/security/workspaces/{workspace_id}/rules`](https://docs.fastly.com/en/ngwaf/) (GET, POST)
- [`/security/workspaces/{workspace_id}/timeseries`](https://docs.fastly.com/en/ngwaf/) (GET)
- [`/security/workspaces/{workspace_id}/virtual-patches/{virtual_patch_id}`](https://docs.fastly.com/en/ngwaf/) (GET, PATCH)
- [`/security/workspaces/{workspace_id}/virtual-patches`](https://docs.fastly.com/en/ngwaf/) (GET)
- [`/security/workspaces/{workspace_id}`](https://docs.fastly.com/en/ngwaf/) (DELETE, GET, PATCH)
- [`/security/workspaces`](https://docs.fastly.com/en/ngwaf/) (GET, POST)
- [`/tls/activations/{tls_activation_id}`](https://www.fastly.com/documentation/reference/api/tls/mutual-tls/activations) (GET, PATCH)
- [`/tls/activations`](https://www.fastly.com/documentation/reference/api/tls/mutual-tls/activations) (GET)
- [`/tls/configurations/{tls_configuration_id}`](https://www.fastly.com/documentation/reference/api/) (DELETE, GET, PATCH)
- [`/tls/configurations`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
- [`/tls/preview/domains/{domain_id}`](https://www.fastly.com/documentation/reference/api/) (GET, PATCH)
- [`/tls/preview/domains`](https://www.fastly.com/documentation/reference/api/) (GET, POST)
- [`/v1/channel/{service_id}/ts/h/limit/{max_entries}`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
- [`/v1/channel/{service_id}/ts/h`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
- [`/v1/channel/{service_id}/ts/{start_timestamp}`](https://www.fastly.com/documentation/reference/api/metrics-stats/origin-insights) (GET)
Expand Down
270 changes: 270 additions & 0 deletions docs/Api/AclsInComputeApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@
# Fastly\Api\AclsInComputeApi


```php
$apiInstance = new Fastly\Api\AclsInComputeApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
```

## Methods

> [!NOTE]
> All URIs are relative to `https://api.fastly.com`
Method | HTTP request | Description
------ | ------------ | -----------
[**computeAclCreateAcls()**](AclsInComputeApi.md#computeAclCreateAcls) | **POST** /resources/acls | Create a new ACL
[**computeAclDeleteSAclId()**](AclsInComputeApi.md#computeAclDeleteSAclId) | **DELETE** /resources/acls/{acl_id} | Delete an ACL
[**computeAclListAclEntries()**](AclsInComputeApi.md#computeAclListAclEntries) | **GET** /resources/acls/{acl_id}/entries | List an ACL
[**computeAclListAcls()**](AclsInComputeApi.md#computeAclListAcls) | **GET** /resources/acls | List ACLs
[**computeAclListAclsSAclId()**](AclsInComputeApi.md#computeAclListAclsSAclId) | **GET** /resources/acls/{acl_id} | Describe an ACL
[**computeAclLookupAcls()**](AclsInComputeApi.md#computeAclLookupAcls) | **GET** /resources/acls/{acl_id}/entry/{acl_ip} | Lookup an ACL
[**computeAclUpdateAcls()**](AclsInComputeApi.md#computeAclUpdateAcls) | **PATCH** /resources/acls/{acl_id}/entries | Update an ACL


## `computeAclCreateAcls()`

```php
computeAclCreateAcls($options): \Fastly\Model\ComputeAclCreateAclsResponse // Create a new ACL
```

Create a new ACL.

### Example
```php
$options['compute_acl_create_acls_request'] = new \Fastly\Model\ComputeAclCreateAclsRequest(); // \Fastly\Model\ComputeAclCreateAclsRequest

try {
$result = $apiInstance->computeAclCreateAcls($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclCreateAcls: ', $e->getMessage(), PHP_EOL;
}
```

### Options

Note: the input parameter is an associative array with the keys listed below.

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**compute_acl_create_acls_request** | [**\Fastly\Model\ComputeAclCreateAclsRequest**](../Model/ComputeAclCreateAclsRequest.md) | | [optional]

### Return type

[**\Fastly\Model\ComputeAclCreateAclsResponse**](../Model/ComputeAclCreateAclsResponse.md)

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to README]](../../README.md)

## `computeAclDeleteSAclId()`

```php
computeAclDeleteSAclId($options) // Delete an ACL
```

Delete an ACL.

### Example
```php
$options['acl_id'] = 'acl_id_example'; // string

try {
$apiInstance->computeAclDeleteSAclId($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclDeleteSAclId: ', $e->getMessage(), PHP_EOL;
}
```

### Options

Note: the input parameter is an associative array with the keys listed below.

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**acl_id** | **string** | |

### Return type

void (empty response body)

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to README]](../../README.md)

## `computeAclListAclEntries()`

```php
computeAclListAclEntries($options): \Fastly\Model\ComputeAclListEntries // List an ACL
```

List an ACL.

### Example
```php
$options['acl_id'] = 'acl_id_example'; // string
$options['cursor'] = 'cursor_example'; // string
$options['limit'] = 100; // int

try {
$result = $apiInstance->computeAclListAclEntries($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclListAclEntries: ', $e->getMessage(), PHP_EOL;
}
```

### Options

Note: the input parameter is an associative array with the keys listed below.

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**acl_id** | **string** | |
**cursor** | **string** | | [optional]
**limit** | **int** | | [optional] [defaults to 100]

### Return type

[**\Fastly\Model\ComputeAclListEntries**](../Model/ComputeAclListEntries.md)

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to README]](../../README.md)

## `computeAclListAcls()`

```php
computeAclListAcls($options): \Fastly\Model\ComputeAclCreateAclsResponse[] // List ACLs
```

List all ACLs.

### Example
```php

try {
$result = $apiInstance->computeAclListAcls($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclListAcls: ', $e->getMessage(), PHP_EOL;
}
```

### Options

Note: the input parameter is an associative array with the keys listed below.

This endpoint does not need any parameters.

### Return type

[**\Fastly\Model\ComputeAclCreateAclsResponse[]**](../Model/ComputeAclCreateAclsResponse.md)

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to README]](../../README.md)

## `computeAclListAclsSAclId()`

```php
computeAclListAclsSAclId($options): \Fastly\Model\ComputeAclCreateAclsResponse // Describe an ACL
```

Describe an ACL.

### Example
```php
$options['acl_id'] = 'acl_id_example'; // string

try {
$result = $apiInstance->computeAclListAclsSAclId($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclListAclsSAclId: ', $e->getMessage(), PHP_EOL;
}
```

### Options

Note: the input parameter is an associative array with the keys listed below.

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**acl_id** | **string** | |

### Return type

[**\Fastly\Model\ComputeAclCreateAclsResponse**](../Model/ComputeAclCreateAclsResponse.md)

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to README]](../../README.md)

## `computeAclLookupAcls()`

```php
computeAclLookupAcls($options): \Fastly\Model\ComputeAclLookup // Lookup an ACL
```

Find a matching ACL entry for an IP address.

### Example
```php
$options['acl_id'] = 'acl_id_example'; // string
$options['acl_ip'] = 'acl_ip_example'; // string

try {
$result = $apiInstance->computeAclLookupAcls($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclLookupAcls: ', $e->getMessage(), PHP_EOL;
}
```

### Options

Note: the input parameter is an associative array with the keys listed below.

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**acl_id** | **string** | |
**acl_ip** | **string** | |

### Return type

[**\Fastly\Model\ComputeAclLookup**](../Model/ComputeAclLookup.md)

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to README]](../../README.md)

## `computeAclUpdateAcls()`

```php
computeAclUpdateAcls($options) // Update an ACL
```

Update an ACL.

### Example
```php
$options['acl_id'] = 'acl_id_example'; // string
$options['compute_acl_update_entry'] = array(new \Fastly\Model\ComputeAclUpdateEntry()); // \Fastly\Model\ComputeAclUpdateEntry[]

try {
$apiInstance->computeAclUpdateAcls($options);
} catch (Exception $e) {
echo 'Exception when calling AclsInComputeApi->computeAclUpdateAcls: ', $e->getMessage(), PHP_EOL;
}
```

### Options

Note: the input parameter is an associative array with the keys listed below.

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**acl_id** | **string** | |
**compute_acl_update_entry** | [**\Fastly\Model\ComputeAclUpdateEntry[]**](../Model/ComputeAclUpdateEntry.md) | | [optional]

### Return type

void (empty response body)

[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to README]](../../README.md)
2 changes: 1 addition & 1 deletion docs/Api/ContactApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $apiInstance = new Fastly\Api\ContactApi(
Method | HTTP request | Description
------ | ------------ | -----------
[**createContacts()**](ContactApi.md#createContacts) | **POST** /customer/{customer_id}/contacts | Add a new customer contact
[**deleteContact()**](ContactApi.md#deleteContact) | **DELETE** /customer/{customer_id}/contact/{contact_id} | Delete a contact
[**deleteContact()**](ContactApi.md#deleteContact) | **DELETE** /customer/{customer_id}/contacts/{contact_id} | Delete a contact
[**listContacts()**](ContactApi.md#listContacts) | **GET** /customer/{customer_id}/contacts | List contacts


Expand Down
Loading

0 comments on commit 36bf380

Please sign in to comment.