Skip to content

Commit

Permalink
Generated v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed May 17, 2023
1 parent 1c743ef commit 7587ae1
Show file tree
Hide file tree
Showing 28 changed files with 8,505 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [v2.1.0](https://github.com/fastly/fastly-php/releases/tag/release/v2.1.0) (2023-05-17)

**Enhancements:**

- feat(config_store): add Config Store endpoints.

## [v2.0.0](https://github.com/fastly/fastly-php/releases/tag/release/v2.0.0) (2023-05-16)

**Breaking changes:**
Expand Down
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,20 @@ Class | Method | Description
[*ConditionApi*](docs/Api/ConditionApi.md) | [**getCondition**](docs/Api/ConditionApi.md#getcondition) | Describe a condition
[*ConditionApi*](docs/Api/ConditionApi.md) | [**listConditions**](docs/Api/ConditionApi.md#listconditions) | List conditions
[*ConditionApi*](docs/Api/ConditionApi.md) | [**updateCondition**](docs/Api/ConditionApi.md#updatecondition) | Update a condition
[*ConfigStoreApi*](docs/Api/ConfigStoreApi.md) | [**createConfigStore**](docs/Api/ConfigStoreApi.md#createconfigstore) | Create a config store
[*ConfigStoreApi*](docs/Api/ConfigStoreApi.md) | [**deleteConfigStore**](docs/Api/ConfigStoreApi.md#deleteconfigstore) | Delete a config store
[*ConfigStoreApi*](docs/Api/ConfigStoreApi.md) | [**getConfigStore**](docs/Api/ConfigStoreApi.md#getconfigstore) | Describe a config store
[*ConfigStoreApi*](docs/Api/ConfigStoreApi.md) | [**getConfigStoreInfo**](docs/Api/ConfigStoreApi.md#getconfigstoreinfo) | Get config store metadata
[*ConfigStoreApi*](docs/Api/ConfigStoreApi.md) | [**listConfigStoreServices**](docs/Api/ConfigStoreApi.md#listconfigstoreservices) | List linked services
[*ConfigStoreApi*](docs/Api/ConfigStoreApi.md) | [**listConfigStores**](docs/Api/ConfigStoreApi.md#listconfigstores) | List config stores
[*ConfigStoreApi*](docs/Api/ConfigStoreApi.md) | [**updateConfigStore**](docs/Api/ConfigStoreApi.md#updateconfigstore) | Update a config store
[*ConfigStoreItemApi*](docs/Api/ConfigStoreItemApi.md) | [**bulkUpdateConfigStoreItem**](docs/Api/ConfigStoreItemApi.md#bulkupdateconfigstoreitem) | Update multiple entries in a config store
[*ConfigStoreItemApi*](docs/Api/ConfigStoreItemApi.md) | [**createConfigStoreItem**](docs/Api/ConfigStoreItemApi.md#createconfigstoreitem) | Create an entry in a config store
[*ConfigStoreItemApi*](docs/Api/ConfigStoreItemApi.md) | [**deleteConfigStoreItem**](docs/Api/ConfigStoreItemApi.md#deleteconfigstoreitem) | Delete an item from a config store
[*ConfigStoreItemApi*](docs/Api/ConfigStoreItemApi.md) | [**getConfigStoreItem**](docs/Api/ConfigStoreItemApi.md#getconfigstoreitem) | Get an item from a config store
[*ConfigStoreItemApi*](docs/Api/ConfigStoreItemApi.md) | [**listConfigStoreItems**](docs/Api/ConfigStoreItemApi.md#listconfigstoreitems) | List items in a config store
[*ConfigStoreItemApi*](docs/Api/ConfigStoreItemApi.md) | [**updateConfigStoreItem**](docs/Api/ConfigStoreItemApi.md#updateconfigstoreitem) | Update an entry in a config store
[*ConfigStoreItemApi*](docs/Api/ConfigStoreItemApi.md) | [**upsertConfigStoreItem**](docs/Api/ConfigStoreItemApi.md#upsertconfigstoreitem) | Insert or update an entry in a config store
[*ContactApi*](docs/Api/ContactApi.md) | [**deleteContact**](docs/Api/ContactApi.md#deletecontact) | Delete a contact
[*ContactApi*](docs/Api/ContactApi.md) | [**listContacts**](docs/Api/ContactApi.md#listcontacts) | List contacts
[*ContentApi*](docs/Api/ContentApi.md) | [**contentCheck**](docs/Api/ContentApi.md#contentcheck) | Check status of content in each POP's cache
Expand Down Expand Up @@ -517,13 +531,6 @@ The fastly-php API client currently does not support the following endpoints:
- [`/metrics/domains/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/domain-inspector/historical) (GET)
- [`/metrics/origins/services/{service_id}`](https://developer.fastly.com/reference/api/metrics-stats/origin-inspector/historical) (GET)
- [`/rate-limiters/{rate_limiter_id}`](https://developer.fastly.com/reference/api/vcl-services/rate-limiter) (PUT)
- [`/resources/stores/config/{config_store_id}/info`](https://developer.fastly.com/reference/api/services/resources/config-store) (GET)
- [`/resources/stores/config/{config_store_id}/item/{config_store_item_key}`](https://developer.fastly.com/reference/api/services/resources/config-store-item) (DELETE, GET, PATCH, PUT)
- [`/resources/stores/config/{config_store_id}/item`](https://developer.fastly.com/reference/api/services/resources/config-store-item) (POST)
- [`/resources/stores/config/{config_store_id}/items`](https://developer.fastly.com/reference/api/services/resources/config-store-item) (GET, PATCH)
- [`/resources/stores/config/{config_store_id}/services`](https://developer.fastly.com/reference/api/services/resources/config-store) (GET)
- [`/resources/stores/config/{config_store_id}`](https://developer.fastly.com/reference/api/services/resources/config-store) (DELETE, GET, PUT)
- [`/resources/stores/config`](https://developer.fastly.com/reference/api/services/resources/config-store) (GET, POST)
- [`/resources/stores/secret/client-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (POST)
- [`/resources/stores/secret/signing-key`](https://developer.fastly.com/reference/api/services/resources/secret-store) (GET)
- [`/resources/stores/secret/{store_id}/secrets/{secret_name}`](https://developer.fastly.com/reference/api/services/resources/secret) (DELETE, GET)
Expand Down
261 changes: 261 additions & 0 deletions docs/Api/ConfigStoreApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
# Fastly\Api\ConfigStoreApi


```php
$apiInstance = new Fastly\Api\ConfigStoreApi(
// 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

Method | Fastly API endpoint | Description
------------- | ------------- | -------------
[**createConfigStore()**](ConfigStoreApi.md#createConfigStore) | **POST** /resources/stores/config | Create a config store
[**deleteConfigStore()**](ConfigStoreApi.md#deleteConfigStore) | **DELETE** /resources/stores/config/{config_store_id} | Delete a config store
[**getConfigStore()**](ConfigStoreApi.md#getConfigStore) | **GET** /resources/stores/config/{config_store_id} | Describe a config store
[**getConfigStoreInfo()**](ConfigStoreApi.md#getConfigStoreInfo) | **GET** /resources/stores/config/{config_store_id}/info | Get config store metadata
[**listConfigStoreServices()**](ConfigStoreApi.md#listConfigStoreServices) | **GET** /resources/stores/config/{config_store_id}/services | List linked services
[**listConfigStores()**](ConfigStoreApi.md#listConfigStores) | **GET** /resources/stores/config | List config stores
[**updateConfigStore()**](ConfigStoreApi.md#updateConfigStore) | **PUT** /resources/stores/config/{config_store_id} | Update a config store


## `createConfigStore()`

```php
createConfigStore($options): \Fastly\Model\ConfigStoreResponse // Create a config store
```

Create a config store.

### Example
```php
$options['name'] = 'name_example'; // string | The name of the config store.

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

### Options

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

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**name** | **string** | The name of the config store. | [optional]

### Return type

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

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

## `deleteConfigStore()`

```php
deleteConfigStore($options): \Fastly\Model\InlineResponse200 // Delete a config store
```

Delete a config store.

### Example
```php
$options['config_store_id'] = 'config_store_id_example'; // string | An alphanumeric string identifying the config store.

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

### Options

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

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**config_store_id** | **string** | An alphanumeric string identifying the config store. |

### Return type

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

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

## `getConfigStore()`

```php
getConfigStore($options): \Fastly\Model\ConfigStoreResponse // Describe a config store
```

Describe a config store by its identifier.

### Example
```php
$options['config_store_id'] = 'config_store_id_example'; // string | An alphanumeric string identifying the config store.

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

### Options

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

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**config_store_id** | **string** | An alphanumeric string identifying the config store. |

### Return type

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

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

## `getConfigStoreInfo()`

```php
getConfigStoreInfo($options): \Fastly\Model\ConfigStoreInfoResponse // Get config store metadata
```

Retrieve metadata for a single config store.

### Example
```php
$options['config_store_id'] = 'config_store_id_example'; // string | An alphanumeric string identifying the config store.

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

### Options

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

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**config_store_id** | **string** | An alphanumeric string identifying the config store. |

### Return type

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

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

## `listConfigStoreServices()`

```php
listConfigStoreServices($options): object // List linked services
```

List services linked to a config store

### Example
```php
$options['config_store_id'] = 'config_store_id_example'; // string | An alphanumeric string identifying the config store.

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

### Options

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

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**config_store_id** | **string** | An alphanumeric string identifying the config store. |

### Return type

**object**

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

## `listConfigStores()`

```php
listConfigStores($options): \Fastly\Model\ConfigStoreResponse[] // List config stores
```

List config stores.

### Example
```php

try {
$result = $apiInstance->listConfigStores($options);
} catch (Exception $e) {
echo 'Exception when calling ConfigStoreApi->listConfigStores: ', $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\ConfigStoreResponse[]**](../Model/ConfigStoreResponse.md)

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

## `updateConfigStore()`

```php
updateConfigStore($options): \Fastly\Model\ConfigStoreResponse // Update a config store
```

Update a config store.

### Example
```php
$options['config_store_id'] = 'config_store_id_example'; // string | An alphanumeric string identifying the config store.
$options['name'] = 'name_example'; // string | The name of the config store.

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

### Options

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

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**config_store_id** | **string** | An alphanumeric string identifying the config store. |
**name** | **string** | The name of the config store. | [optional]

### Return type

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

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

0 comments on commit 7587ae1

Please sign in to comment.