All URIs are relative to https://localhost:20000/api/3.1
Method | HTTP request | Description |
---|---|---|
allGitBranches | GET /projects/{project_id}/git_branches | Get All Git Branches |
allGitConnectionTests | GET /projects/{project_id}/git_connection_tests | Get All Git Connection Tests |
allLookmlTests | GET /projects/{project_id}/lookml_tests | Get All LookML Tests |
allProjectFiles | GET /projects/{project_id}/files | Get All Project Files |
allProjects | GET /projects | Get All Projects |
createGitBranch | POST /projects/{project_id}/git_branch | Checkout New Git Branch |
createGitDeployKey | POST /projects/{project_id}/git/deploy_key | Create Deploy Key |
createProject | POST /projects | Create Project |
deleteGitBranch | DELETE /projects/{project_id}/git_branch/{branch_name} | Delete a Git Branch |
deleteRepositoryCredential | DELETE /projects/{root_project_id}/credential/{credential_id} | Delete Repository Credential |
deployRefToProduction | POST /projects/{project_id}/deploy_ref_to_production | Deploy Remote Branch or Ref to Production |
deployToProduction | POST /projects/{project_id}/deploy_to_production | Deploy To Production |
findGitBranch | GET /projects/{project_id}/git_branch/{branch_name} | Find a Git Branch |
getAllRepositoryCredentials | GET /projects/{root_project_id}/credentials | Get All Repository Credentials |
gitBranch | GET /projects/{project_id}/git_branch | Get Active Git Branch |
gitDeployKey | GET /projects/{project_id}/git/deploy_key | Git Deploy Key |
lockAll | POST /projects/{project_id}/manifest/lock_all | Lock All |
manifest | GET /projects/{project_id}/manifest | Get Manifest |
project | GET /projects/{project_id} | Get Project |
projectFile | GET /projects/{project_id}/files/file | Get Project File |
projectValidationResults | GET /projects/{project_id}/validate | Cached Project Validation Results |
projectWorkspace | GET /projects/{project_id}/current_workspace | Get Project Workspace |
resetProjectToProduction | POST /projects/{project_id}/reset_to_production | Reset To Production |
resetProjectToRemote | POST /projects/{project_id}/reset_to_remote | Reset To Remote |
runGitConnectionTest | GET /projects/{project_id}/git_connection_tests/{test_id} | Run Git Connection Test |
runLookmlTest | GET /projects/{project_id}/lookml_tests/run | Run LookML Test |
tagRef | POST /projects/{project_id}/tag | Tag Ref |
updateGitBranch | PUT /projects/{project_id}/git_branch | Update Project Git Branch |
updateProject | PATCH /projects/{project_id} | Update Project |
updateRepositoryCredential | PUT /projects/{root_project_id}/credential/{credential_id} | Create Repository Credential |
validateProject | POST /projects/{project_id}/validate | Validate Project |
\Swagger\Client\Model\GitBranch[] allGitBranches($project_id)
Get All Git Branches
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
try {
$result = $apiInstance->allGitBranches($project_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->allGitBranches: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id |
\Swagger\Client\Model\GitBranch[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\GitConnectionTest[] allGitConnectionTests($project_id, $remote_url)
Get All Git Connection Tests
Get All Git Connection Tests dev mode required. - Call update_session
to select the 'dev' workspace. Returns a list of tests which can be run against a project's (or the dependency project for the provided remote_url) git connection. Call Run Git Connection Test to execute each test in sequence. Tests are ordered by increasing specificity. Tests should be run in the order returned because later tests require functionality tested by tests earlier in the test list. For example, a late-stage test for write access is meaningless if connecting to the git server (an early test) is failing.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$remote_url = "remote_url_example"; // string | (Optional: leave blank for root project) The remote url for remote dependency to test.
try {
$result = $apiInstance->allGitConnectionTests($project_id, $remote_url);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->allGitConnectionTests: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
remote_url | string | (Optional: leave blank for root project) The remote url for remote dependency to test. | [optional] |
\Swagger\Client\Model\GitConnectionTest[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\LookmlTest[] allLookmlTests($project_id, $file_id)
Get All LookML Tests
Get All LookML Tests Returns a list of tests which can be run to validate a project's LookML code and/or the underlying data, optionally filtered by the file id. Call Run LookML Test to execute tests.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$file_id = "file_id_example"; // string | File Id
try {
$result = $apiInstance->allLookmlTests($project_id, $file_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->allLookmlTests: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
file_id | string | File Id | [optional] |
\Swagger\Client\Model\LookmlTest[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ProjectFile[] allProjectFiles($project_id, $fields)
Get All Project Files
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$fields = "fields_example"; // string | Requested fields
try {
$result = $apiInstance->allProjectFiles($project_id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->allProjectFiles: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
fields | string | Requested fields | [optional] |
\Swagger\Client\Model\ProjectFile[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Project[] allProjects($fields)
Get All Projects
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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->allProjects($fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->allProjects: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
fields | string | Requested fields | [optional] |
\Swagger\Client\Model\Project[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\GitBranch createGitBranch($project_id, $body)
Checkout New Git Branch
Create and Checkout a Git Branch Creates and checks out a new branch in the given project repository Only allowed in development mode - Call update_session
to select the 'dev' workspace. Optionally specify a branch name, tag name or commit SHA as the start point in the ref field. If no ref is specified, HEAD of the current branch will be used as the start point for the new branch.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$body = new \Swagger\Client\Model\GitBranch(); // \Swagger\Client\Model\GitBranch | Git Branch
try {
$result = $apiInstance->createGitBranch($project_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->createGitBranch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
body | \Swagger\Client\Model\GitBranch | Git Branch |
\Swagger\Client\Model\GitBranch
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 createGitDeployKey($project_id)
Create Deploy Key
Create Git Deploy Key Create a public/private key pair for authenticating ssh git requests from Looker to a remote git repository for a particular Looker project. Returns the public key of the generated ssh key pair. Copy this public key to your remote git repository's ssh keys configuration so that the remote git service can validate and accept git requests from the Looker server.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
try {
$result = $apiInstance->createGitDeployKey($project_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->createGitDeployKey: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id |
string
No authorization required
- Content-Type: application/json
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Project createProject($body)
Create Project
Create A Project dev mode required. - Call update_session
to select the 'dev' workspace. name
is required. git_remote_url
is not allowed. To configure Git for the newly created project, follow the instructions in update_project
.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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 \Swagger\Client\Model\Project(); // \Swagger\Client\Model\Project | Project
try {
$result = $apiInstance->createProject($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->createProject: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
body | \Swagger\Client\Model\Project | Project |
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 deleteGitBranch($project_id, $branch_name)
Delete a Git Branch
Delete the specified Git Branch Delete git branch specified in branch_name path param from local and remote of specified project repository
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$branch_name = "branch_name_example"; // string | Branch Name
try {
$result = $apiInstance->deleteGitBranch($project_id, $branch_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->deleteGitBranch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
branch_name | string | Branch Name |
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]
string deleteRepositoryCredential($root_project_id, $credential_id)
Delete Repository Credential
Repository Credential for a remote dependency Admin required. root_project_id
is required. credential_id
is required.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$root_project_id = "root_project_id_example"; // string | Root Project Id
$credential_id = "credential_id_example"; // string | Credential Id
try {
$result = $apiInstance->deleteRepositoryCredential($root_project_id, $credential_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->deleteRepositoryCredential: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
root_project_id | string | Root Project Id | |
credential_id | string | Credential Id |
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]
string deployRefToProduction($project_id, $branch, $ref)
Deploy Remote Branch or Ref to Production
Deploy a Remote Branch or Ref to Production Git must have been configured and deploy permission required. Deploy is a one/two step process 1. If this is the first deploy of this project, create the production project with git repository. 2. Pull the branch or ref into the production project. Can only specify either a branch or a ref.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Id of project
$branch = "branch_example"; // string | Branch to deploy to production
$ref = "ref_example"; // string | Ref to deploy to production
try {
$result = $apiInstance->deployRefToProduction($project_id, $branch, $ref);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->deployRefToProduction: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Id of project | |
branch | string | Branch to deploy to production | [optional] |
ref | string | Ref to deploy to production | [optional] |
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]
string deployToProduction($project_id)
Deploy To Production
Deploy LookML from this Development Mode Project to Production Git must have been configured, must be in dev mode and deploy permission required Deploy is a two / three step process: 1. Push commits in current branch of dev mode project to the production branch (origin/master). Note a. This step is skipped in read-only projects. Note b. If this step is unsuccessful for any reason (e.g. rejected non-fastforward because production branch has commits not in current branch), subsequent steps will be skipped. 2. If this is the first deploy of this project, create the production project with git repository. 3. Pull the production branch into the production project.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Id of project
try {
$result = $apiInstance->deployToProduction($project_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->deployToProduction: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Id of project |
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]
\Swagger\Client\Model\GitBranch findGitBranch($project_id, $branch_name)
Find a Git Branch
Get the specified Git Branch Returns the git branch specified in branch_name path param if it exists in the given project repository
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$branch_name = "branch_name_example"; // string | Branch Name
try {
$result = $apiInstance->findGitBranch($project_id, $branch_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->findGitBranch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
branch_name | string | Branch Name |
\Swagger\Client\Model\GitBranch
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\RepositoryCredential[] getAllRepositoryCredentials($root_project_id)
Get All Repository Credentials
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$root_project_id = "root_project_id_example"; // string | Root Project Id
try {
$result = $apiInstance->getAllRepositoryCredentials($root_project_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->getAllRepositoryCredentials: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
root_project_id | string | Root Project Id |
\Swagger\Client\Model\RepositoryCredential[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\GitBranch gitBranch($project_id)
Get Active Git Branch
Get the Current Git Branch Returns the git branch currently checked out in the given project repository
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
try {
$result = $apiInstance->gitBranch($project_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->gitBranch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id |
\Swagger\Client\Model\GitBranch
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 gitDeployKey($project_id)
Git Deploy Key
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
try {
$result = $apiInstance->gitDeployKey($project_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->gitDeployKey: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id |
string
No authorization required
- Content-Type: application/json
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string lockAll($project_id, $fields)
Lock All
Generate Lockfile for All LookML Dependencies Git must have been configured, must be in dev mode and deploy permission required Install_all is a two step process 1. For each remote_dependency in a project the dependency manager will resolve any ambiguous ref. 2. The project will then write out a lockfile including each remote_dependency with its resolved ref.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Id of project
$fields = "fields_example"; // string | Requested fields
try {
$result = $apiInstance->lockAll($project_id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->lockAll: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Id of project | |
fields | string | Requested fields | [optional] |
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]
\Swagger\Client\Model\Manifest manifest($project_id)
Get Manifest
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
try {
$result = $apiInstance->manifest($project_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->manifest: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id |
\Swagger\Client\Model\Manifest
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Project project($project_id, $fields)
Get Project
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$fields = "fields_example"; // string | Requested fields
try {
$result = $apiInstance->project($project_id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->project: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
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]
\Swagger\Client\Model\ProjectFile projectFile($project_id, $file_id, $fields)
Get Project File
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$file_id = "file_id_example"; // string | File Id
$fields = "fields_example"; // string | Requested fields
try {
$result = $apiInstance->projectFile($project_id, $file_id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectFile: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
file_id | string | File Id | |
fields | string | Requested fields | [optional] |
\Swagger\Client\Model\ProjectFile
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ProjectValidationCache projectValidationResults($project_id, $fields)
Cached Project Validation Results
Get Cached Project Validation Results Returns the cached results of a previous project validation calculation, if any. Returns http status 204 No Content if no validation results exist. Validating the content of all the files in a project can be computationally intensive for large projects. Use this API to simply fetch the results of the most recent project validation rather than revalidating the entire project from scratch. A value of \"stale\": true
in the response indicates that the project has changed since the cached validation results were computed. The cached validation results may no longer reflect the current state of the project.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$fields = "fields_example"; // string | Requested fields
try {
$result = $apiInstance->projectValidationResults($project_id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectValidationResults: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
fields | string | Requested fields | [optional] |
\Swagger\Client\Model\ProjectValidationCache
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ProjectWorkspace projectWorkspace($project_id, $fields)
Get Project Workspace
Get Project Workspace Returns information about the state of the project files in the currently selected workspace
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$fields = "fields_example"; // string | Requested fields
try {
$result = $apiInstance->projectWorkspace($project_id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->projectWorkspace: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
fields | string | Requested fields | [optional] |
\Swagger\Client\Model\ProjectWorkspace
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 resetProjectToProduction($project_id)
Reset To Production
Reset a project to the revision of the project that is in production. DANGER this will delete any changes that have not been pushed to a remote repository.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Id of project
try {
$result = $apiInstance->resetProjectToProduction($project_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->resetProjectToProduction: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Id of project |
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]
string resetProjectToRemote($project_id)
Reset To Remote
Reset a project development branch to the revision of the project that is on the remote. DANGER this will delete any changes that have not been pushed to a remote repository.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Id of project
try {
$result = $apiInstance->resetProjectToRemote($project_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->resetProjectToRemote: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Id of project |
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]
\Swagger\Client\Model\GitConnectionTestResult runGitConnectionTest($project_id, $test_id, $remote_url, $use_production)
Run Git Connection Test
Run a git connection test Run the named test on the git service used by this project (or the dependency project for the provided remote_url) and return the result. This is intended to help debug git connections when things do not work properly, to give more helpful information about why a git url is not working with Looker. Tests should be run in the order they are returned by Get All Git Connection Tests.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$test_id = "test_id_example"; // string | Test Id
$remote_url = "remote_url_example"; // string | (Optional: leave blank for root project) The remote url for remote dependency to test.
$use_production = "use_production_example"; // string | (Optional: leave blank for dev credentials) Whether to use git production credentials.
try {
$result = $apiInstance->runGitConnectionTest($project_id, $test_id, $remote_url, $use_production);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->runGitConnectionTest: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
test_id | string | Test Id | |
remote_url | string | (Optional: leave blank for root project) The remote url for remote dependency to test. | [optional] |
use_production | string | (Optional: leave blank for dev credentials) Whether to use git production credentials. | [optional] |
\Swagger\Client\Model\GitConnectionTestResult
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\LookmlTestResult[] runLookmlTest($project_id, $file_id, $test, $model)
Run LookML Test
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$file_id = "file_id_example"; // string | File Name
$test = "test_example"; // string | Test Name
$model = "model_example"; // string | Model Name
try {
$result = $apiInstance->runLookmlTest($project_id, $file_id, $test, $model);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->runLookmlTest: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
file_id | string | File Name | [optional] |
test | string | Test Name | [optional] |
model | string | Model Name | [optional] |
\Swagger\Client\Model\LookmlTestResult[]
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Project tagRef($project_id, $body, $commit_sha, $tag_name, $tag_message)
Tag Ref
Creates a tag for the most recent commit, or a specific ref is a SHA is provided This is an internal-only, undocumented route.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$body = new \Swagger\Client\Model\Project(); // \Swagger\Client\Model\Project | Project
$commit_sha = "commit_sha_example"; // string | (Optional): Commit Sha to Tag
$tag_name = "tag_name_example"; // string | Tag Name
$tag_message = "tag_message_example"; // string | (Optional): Tag Message
try {
$result = $apiInstance->tagRef($project_id, $body, $commit_sha, $tag_name, $tag_message);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->tagRef: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
body | \Swagger\Client\Model\Project | Project | |
commit_sha | string | (Optional): Commit Sha to Tag | [optional] |
tag_name | string | Tag Name | [optional] |
tag_message | string | (Optional): Tag Message | [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]
\Swagger\Client\Model\GitBranch updateGitBranch($project_id, $body)
Update Project Git Branch
Checkout and/or reset --hard an existing Git Branch Only allowed in development mode - Call update_session
to select the 'dev' workspace. Checkout an existing branch if name field is different from the name of the currently checked out branch. Optionally specify a branch name, tag name or commit SHA to which the branch should be reset. DANGER hard reset will be force pushed to the remote. Unsaved changes and commits may be permanently lost.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$body = new \Swagger\Client\Model\GitBranch(); // \Swagger\Client\Model\GitBranch | Git Branch
try {
$result = $apiInstance->updateGitBranch($project_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->updateGitBranch: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
body | \Swagger\Client\Model\GitBranch | Git Branch |
\Swagger\Client\Model\GitBranch
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\Project updateProject($project_id, $body, $fields)
Update Project
Update Project Configuration Apply changes to a project's configuration. #### Configuring Git for a Project To set up a Looker project with a remote git repository, follow these steps: 1. Call update_session
to select the 'dev' workspace. 1. Call create_git_deploy_key
to create a new deploy key for the project 1. Copy the deploy key text into the remote git repository's ssh key configuration 1. Call update_project
to set project's git_remote_url
()and git_service_name
, if necessary). When you modify a project's git_remote_url
, Looker connects to the remote repository to fetch metadata. The remote git repository MUST be configured with the Looker-generated deploy key for this project prior to setting the project's git_remote_url
. To set up a Looker project with a git repository residing on the Looker server (a 'bare' git repo): 1. Call update_session
to select the 'dev' workspace. 1. Call update_project
setting git_remote_url
to null and git_service_name
to "bare".
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$body = new \Swagger\Client\Model\Project(); // \Swagger\Client\Model\Project | Project
$fields = "fields_example"; // string | Requested fields
try {
$result = $apiInstance->updateProject($project_id, $body, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->updateProject: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
body | \Swagger\Client\Model\Project | Project | |
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]
\Swagger\Client\Model\RepositoryCredential updateRepositoryCredential($root_project_id, $credential_id, $body)
Create Repository Credential
Configure Repository Credential for a remote dependency Admin required. root_project_id
is required. credential_id
is required.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$root_project_id = "root_project_id_example"; // string | Root Project Id
$credential_id = "credential_id_example"; // string | Credential Id
$body = new \Swagger\Client\Model\RepositoryCredential(); // \Swagger\Client\Model\RepositoryCredential | Remote Project Information
try {
$result = $apiInstance->updateRepositoryCredential($root_project_id, $credential_id, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->updateRepositoryCredential: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
root_project_id | string | Root Project Id | |
credential_id | string | Credential Id | |
body | \Swagger\Client\Model\RepositoryCredential | Remote Project Information |
\Swagger\Client\Model\RepositoryCredential
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\ProjectValidation validateProject($project_id, $fields)
Validate Project
Validate Project Performs lint validation of all lookml files in the project. Returns a list of errors found, if any. Validating the content of all the files in a project can be computationally intensive for large projects. For best performance, call validate_project(project_id)
only when you really want to recompute project validation. To quickly display the results of the most recent project validation (without recomputing), use project_validation_results(project_id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProjectApi(
// 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()
);
$project_id = "project_id_example"; // string | Project Id
$fields = "fields_example"; // string | Requested fields
try {
$result = $apiInstance->validateProject($project_id, $fields);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProjectApi->validateProject: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
project_id | string | Project Id | |
fields | string | Requested fields | [optional] |
\Swagger\Client\Model\ProjectValidation
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]