
[discrete]
[[Elasticsearch_Namespaces_LicenseNamespace]]
=== Elasticsearch\Namespaces\LicenseNamespace



Class LicenseNamespace
Generated running $ php util/GenerateEndpoints.php 7.9


*Methods*

The class defines the following methods:

* <<Elasticsearch_Namespaces_LicenseNamespacedelete_delete,`delete()`>>
* <<Elasticsearch_Namespaces_LicenseNamespaceget_get,`get()`>>
* <<Elasticsearch_Namespaces_LicenseNamespacegetBasicStatus_getBasicStatus,`getBasicStatus()`>>
* <<Elasticsearch_Namespaces_LicenseNamespacegetTrialStatus_getTrialStatus,`getTrialStatus()`>>
* <<Elasticsearch_Namespaces_LicenseNamespacepost_post,`post()`>>
* <<Elasticsearch_Namespaces_LicenseNamespacepostStartBasic_postStartBasic,`postStartBasic()`>>
* <<Elasticsearch_Namespaces_LicenseNamespacepostStartTrial_postStartTrial,`postStartTrial()`>>



[[Elasticsearch_Namespaces_LicenseNamespacedelete_delete]]
.`delete()`
****
[source,php]
----
/*
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->license()->delete($params);
----
****



[[Elasticsearch_Namespaces_LicenseNamespaceget_get]]
.`get()`
****
[source,php]
----
/*
$params['local']             = (boolean) Return local information, do not retrieve the state from master node (default: false)
$params['accept_enterprise'] = (boolean) If the active license is an enterprise license, return type as 'enterprise' (default: false)
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->license()->get($params);
----
****



[[Elasticsearch_Namespaces_LicenseNamespacegetBasicStatus_getBasicStatus]]
.`getBasicStatus()`
****
[source,php]
----
/*
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->license()->getBasicStatus($params);
----
****



[[Elasticsearch_Namespaces_LicenseNamespacegetTrialStatus_getTrialStatus]]
.`getTrialStatus()`
****
[source,php]
----
/*
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->license()->getTrialStatus($params);
----
****



[[Elasticsearch_Namespaces_LicenseNamespacepost_post]]
.`post()`
****
[source,php]
----
/*
$params['acknowledge'] = (boolean) whether the user has acknowledged acknowledge messages (default: false)
$params['body']        = (array) licenses to be installed
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->license()->post($params);
----
****



[[Elasticsearch_Namespaces_LicenseNamespacepostStartBasic_postStartBasic]]
.`postStartBasic()`
****
[source,php]
----
/*
$params['acknowledge'] = (boolean) whether the user has acknowledged acknowledge messages (default: false)
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->license()->postStartBasic($params);
----
****



[[Elasticsearch_Namespaces_LicenseNamespacepostStartTrial_postStartTrial]]
.`postStartTrial()`
****
[source,php]
----
/*
$params['type']        = (string) The type of trial license to generate (default: "trial")
$params['acknowledge'] = (boolean) whether the user has acknowledged acknowledge messages (default: false)
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->license()->postStartTrial($params);
----
****


