All URIs are relative to https://ethosce.looker.com:19999/api/3.1
Method | HTTP request | Description |
---|---|---|
allLookmlModels | GET /lookml_models | Get All LookML Models |
createLookmlModel | POST /lookml_models | Create LookML Model |
deleteLookmlModel | DELETE /lookml_models/{lookml_model_name} | Delete LookML Model |
lookmlModel | GET /lookml_models/{lookml_model_name} | Get LookML Model |
lookmlModelExplore | GET /lookml_models/{lookml_model_name}/explores/{explore_name} | Get LookML Model Explore |
updateLookmlModel | PATCH /lookml_models/{lookml_model_name} | Update LookML Model |
\Looker\Model\LookmlModel[] allLookmlModels($fields)
Get All LookML Models
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\LookmlModelApi(
// 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()
);
$fields = "fields_example"; // string | Requested fields.
try {
$result = $apiInstance->allLookmlModels($fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LookmlModelApi->allLookmlModels: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
fields | string | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\LookmlModel createLookmlModel($body)
Create LookML Model
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\LookmlModelApi(
// 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()
);
$body = new \Looker\Model\LookmlModel(); // \Looker\Model\LookmlModel | LookML Model
try {
$result = $apiInstance->createLookmlModel($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LookmlModelApi->createLookmlModel: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Looker\Model\LookmlModel | LookML Model | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string deleteLookmlModel($lookml_model_name)
Delete LookML Model
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\LookmlModelApi(
// 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()
);
$lookml_model_name = "lookml_model_name_example"; // string | Name of lookml model.
try {
$result = $apiInstance->deleteLookmlModel($lookml_model_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LookmlModelApi->deleteLookmlModel: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
lookml_model_name | string | Name of lookml model. |
string
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\LookmlModel lookmlModel($lookml_model_name, $fields)
Get LookML Model
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\LookmlModelApi(
// 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()
);
$lookml_model_name = "lookml_model_name_example"; // string | Name of lookml model.
$fields = "fields_example"; // string | Requested fields.
try {
$result = $apiInstance->lookmlModel($lookml_model_name, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LookmlModelApi->lookmlModel: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
lookml_model_name | string | Name of lookml model. | |
fields | string | Requested fields. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\LookmlModelExplore lookmlModelExplore($lookml_model_name, $explore_name, $fields)
Get LookML Model Explore
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\LookmlModelApi(
// 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()
);
$lookml_model_name = "lookml_model_name_example"; // string | Name of lookml model.
$explore_name = "explore_name_example"; // string | Name of explore.
$fields = "fields_example"; // string | Requested fields.
try {
$result = $apiInstance->lookmlModelExplore($lookml_model_name, $explore_name, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LookmlModelApi->lookmlModelExplore: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
lookml_model_name | string | Name of lookml model. | |
explore_name | string | Name of explore. | |
fields | string | Requested fields. | [optional] |
\Looker\Model\LookmlModelExplore
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Looker\Model\LookmlModel updateLookmlModel($lookml_model_name, $body)
Update LookML Model
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Looker\Api\LookmlModelApi(
// 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()
);
$lookml_model_name = "lookml_model_name_example"; // string | Name of lookml model.
$body = new \Looker\Model\LookmlModel(); // \Looker\Model\LookmlModel | LookML Model
try {
$result = $apiInstance->updateLookmlModel($lookml_model_name, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LookmlModelApi->updateLookmlModel: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
lookml_model_name | string | Name of lookml model. | |
body | \Looker\Model\LookmlModel | LookML Model |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]