Skip to content

Latest commit

 

History

History
125 lines (86 loc) · 4.07 KB

ProductBrotliCompressionApi.md

File metadata and controls

125 lines (86 loc) · 4.07 KB

Fastly\Api\ProductBrotliCompressionApi

$apiInstance = new Fastly\Api\ProductBrotliCompressionApi(
    // 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
disableProductBrotliCompression() DELETE /enabled-products/v1/brotli_compression/services/{service_id} Disable product
enableProductBrotliCompression() PUT /enabled-products/v1/brotli_compression/services/{service_id} Enable product
getProductBrotliCompression() GET /enabled-products/v1/brotli_compression/services/{service_id} Get product enablement status

disableProductBrotliCompression()

disableProductBrotliCompression($options) // Disable product

Disable the Brotli Compression product on a service.

Example

    $options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.

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

Options

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

Name Type Description Notes
service_id string Alphanumeric string identifying the service.

Return type

void (empty response body)

[Back to top] [Back to API list] [Back to README]

enableProductBrotliCompression()

enableProductBrotliCompression($options): \Fastly\Model\BrotliCompressionResponseBodyEnable // Enable product

Enable the Brotli Compression product on a service.

Example

    $options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.

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

Options

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

Name Type Description Notes
service_id string Alphanumeric string identifying the service.

Return type

\Fastly\Model\BrotliCompressionResponseBodyEnable

[Back to top] [Back to API list] [Back to README]

getProductBrotliCompression()

getProductBrotliCompression($options): \Fastly\Model\BrotliCompressionResponseBodyEnable // Get product enablement status

Get the enablement status of the Brotli Compression product on a service.

Example

    $options['service_id'] = 'service_id_example'; // string | Alphanumeric string identifying the service.

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

Options

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

Name Type Description Notes
service_id string Alphanumeric string identifying the service.

Return type

\Fastly\Model\BrotliCompressionResponseBodyEnable

[Back to top] [Back to API list] [Back to README]