Skip to content

Latest commit

 

History

History
executable file
·
306 lines (206 loc) · 7.36 KB

LookmlModelApi.md

File metadata and controls

executable file
·
306 lines (206 loc) · 7.36 KB

LookerApi31Reference.LookmlModelApi

All URIs are relative to /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

allLookmlModels

[LookmlModel] allLookmlModels(opts)

Get All LookML Models

Get information about all lookml models.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.LookmlModelApi();

var opts = {
  'fields': "fields_example" // String | Requested fields.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.allLookmlModels(opts, callback);

Parameters

Name Type Description Notes
fields String Requested fields. [optional]

Return type

[LookmlModel]

Authorization

No authorization required

HTTP request headers

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

createLookmlModel

LookmlModel createLookmlModel(opts)

Create LookML Model

Create a lookml model using the specified configuration.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.LookmlModelApi();

var opts = {
  'body': new LookerApi31Reference.LookmlModel() // LookmlModel | LookML Model
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.createLookmlModel(opts, callback);

Parameters

Name Type Description Notes
body LookmlModel LookML Model [optional]

Return type

LookmlModel

Authorization

No authorization required

HTTP request headers

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

deleteLookmlModel

'String' deleteLookmlModel(lookmlModelName)

Delete LookML Model

Delete a lookml model.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.LookmlModelApi();

var lookmlModelName = "lookmlModelName_example"; // String | Name of lookml model.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.deleteLookmlModel(lookmlModelName, callback);

Parameters

Name Type Description Notes
lookmlModelName String Name of lookml model.

Return type

'String'

Authorization

No authorization required

HTTP request headers

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

lookmlModel

LookmlModel lookmlModel(lookmlModelName, opts)

Get LookML Model

Get information about a lookml model.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.LookmlModelApi();

var lookmlModelName = "lookmlModelName_example"; // String | Name of lookml model.

var opts = {
  'fields': "fields_example" // String | Requested fields.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.lookmlModel(lookmlModelName, opts, callback);

Parameters

Name Type Description Notes
lookmlModelName String Name of lookml model.
fields String Requested fields. [optional]

Return type

LookmlModel

Authorization

No authorization required

HTTP request headers

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

lookmlModelExplore

LookmlModelExplore lookmlModelExplore(lookmlModelName, exploreName, opts)

Get LookML Model Explore

Get information about a lookml model explore.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.LookmlModelApi();

var lookmlModelName = "lookmlModelName_example"; // String | Name of lookml model.

var exploreName = "exploreName_example"; // String | Name of explore.

var opts = {
  'fields': "fields_example" // String | Requested fields.
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.lookmlModelExplore(lookmlModelName, exploreName, opts, callback);

Parameters

Name Type Description Notes
lookmlModelName String Name of lookml model.
exploreName String Name of explore.
fields String Requested fields. [optional]

Return type

LookmlModelExplore

Authorization

No authorization required

HTTP request headers

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

updateLookmlModel

LookmlModel updateLookmlModel(lookmlModelName, body)

Update LookML Model

Update a lookml model using the specified configuration.

Example

var LookerApi31Reference = require('looker-node-api');

var apiInstance = new LookerApi31Reference.LookmlModelApi();

var lookmlModelName = "lookmlModelName_example"; // String | Name of lookml model.

var body = new LookerApi31Reference.LookmlModel(); // LookmlModel | LookML Model


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.updateLookmlModel(lookmlModelName, body, callback);

Parameters

Name Type Description Notes
lookmlModelName String Name of lookml model.
body LookmlModel LookML Model

Return type

LookmlModel

Authorization

No authorization required

HTTP request headers

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