Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Latest commit

 

History

History
156 lines (108 loc) · 4.29 KB

DatagroupApi.md

File metadata and controls

156 lines (108 loc) · 4.29 KB

Looker\DatagroupApi

All URIs are relative to https://ethosce.looker.com:19999/api/3.1

Method HTTP request Description
allDatagroups GET /datagroups Get All Datagroups
datagroup GET /datagroups/{datagroup_id} Get Datagroup
updateDatagroup PATCH /datagroups/{datagroup_id} Update Datagroup

allDatagroups

\Looker\Model\Datagroup[] allDatagroups()

Get All Datagroups

Get information about all datagroups.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Looker\Api\DatagroupApi(
    // 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()
);

try {
    $result = $apiInstance->allDatagroups();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DatagroupApi->allDatagroups: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

\Looker\Model\Datagroup[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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

datagroup

\Looker\Model\Datagroup datagroup($datagroup_id)

Get Datagroup

Get information about a datagroup.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Looker\Api\DatagroupApi(
    // 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()
);
$datagroup_id = "datagroup_id_example"; // string | ID of datagroup.

try {
    $result = $apiInstance->datagroup($datagroup_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DatagroupApi->datagroup: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
datagroup_id string ID of datagroup.

Return type

\Looker\Model\Datagroup

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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

updateDatagroup

\Looker\Model\Datagroup updateDatagroup($datagroup_id, $body)

Update Datagroup

Update a datagroup using the specified params.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Looker\Api\DatagroupApi(
    // 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()
);
$datagroup_id = "datagroup_id_example"; // string | ID of datagroup.
$body = new \Looker\Model\Datagroup(); // \Looker\Model\Datagroup | Datagroup

try {
    $result = $apiInstance->updateDatagroup($datagroup_id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DatagroupApi->updateDatagroup: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
datagroup_id string ID of datagroup.
body \Looker\Model\Datagroup Datagroup

Return type

\Looker\Model\Datagroup

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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