Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Latest commit

 

History

History
409 lines (293 loc) · 14.4 KB

File metadata and controls

409 lines (293 loc) · 14.4 KB

QoveryApi.OrganizationAccountGitRepositoriesApi

All URIs are relative to https://api.qovery.com

Method HTTP request Description
getOrganizationBitbucketRepositories GET /organization/{organizationId}/account/bitbucket/repository Get bitbucket repositories of the connected user
getOrganizationBitbucketRepositoryBranches GET /organization/{organizationId}/account/bitbucket/repository/branch Get bitbucket branches of the specified repository
getOrganizationGitProviderAccount GET /organization/{organizationId}/account/gitAuthProvider Get git provider accounts
getOrganizationGithubRepositories GET /organization/{organizationId}/account/github/repository Get github repositories of the connected user
getOrganizationGithubRepositoryBranches GET /organization/{organizationId}/account/github/repository/branch Get github branches of the specified repository
getOrganizationGitlabRepositories GET /organization/{organizationId}/account/gitlab/repository Get gitlab repositories of the connected user
getOrganizationGitlabRepositoryBranches GET /organization/{organizationId}/account/gitlab/repository/branch Get gitlab branches of the specified repository

getOrganizationBitbucketRepositories

GitRepositoryResponseList getOrganizationBitbucketRepositories(organizationId, opts)

Get bitbucket repositories of the connected user

Example

import QoveryApi from 'qovery_api';
let defaultClient = QoveryApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"

let apiInstance = new QoveryApi.OrganizationAccountGitRepositoriesApi();
let organizationId = "organizationId_example"; // String | Organization ID
let opts = {
  'gitTokenId': "gitTokenId_example" // String | The git token id that must be used for the application
};
apiInstance.getOrganizationBitbucketRepositories(organizationId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
organizationId String Organization ID
gitTokenId String The git token id that must be used for the application [optional]

Return type

GitRepositoryResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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

getOrganizationBitbucketRepositoryBranches

GitRepositoryBranchResponseList getOrganizationBitbucketRepositoryBranches(organizationId, opts)

Get bitbucket branches of the specified repository

Example

import QoveryApi from 'qovery_api';
let defaultClient = QoveryApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"

let apiInstance = new QoveryApi.OrganizationAccountGitRepositoriesApi();
let organizationId = "organizationId_example"; // String | Organization ID
let opts = {
  'name': "name_example", // String | The name of the repository where to retrieve the branches
  'gitTokenId': "gitTokenId_example" // String | The git token id that must be used for the application
};
apiInstance.getOrganizationBitbucketRepositoryBranches(organizationId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
organizationId String Organization ID
name String The name of the repository where to retrieve the branches [optional]
gitTokenId String The git token id that must be used for the application [optional]

Return type

GitRepositoryBranchResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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

getOrganizationGitProviderAccount

GitAuthProviderResponseList getOrganizationGitProviderAccount(organizationId)

Get git provider accounts

Example

import QoveryApi from 'qovery_api';
let defaultClient = QoveryApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"

let apiInstance = new QoveryApi.OrganizationAccountGitRepositoriesApi();
let organizationId = "organizationId_example"; // String | Organization ID
apiInstance.getOrganizationGitProviderAccount(organizationId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
organizationId String Organization ID

Return type

GitAuthProviderResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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

getOrganizationGithubRepositories

GitRepositoryResponseList getOrganizationGithubRepositories(organizationId, opts)

Get github repositories of the connected user

Example

import QoveryApi from 'qovery_api';
let defaultClient = QoveryApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"

let apiInstance = new QoveryApi.OrganizationAccountGitRepositoriesApi();
let organizationId = "organizationId_example"; // String | Organization ID
let opts = {
  'gitTokenId': "gitTokenId_example" // String | The git token id that must be used for the application
};
apiInstance.getOrganizationGithubRepositories(organizationId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
organizationId String Organization ID
gitTokenId String The git token id that must be used for the application [optional]

Return type

GitRepositoryResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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

getOrganizationGithubRepositoryBranches

GitRepositoryBranchResponseList getOrganizationGithubRepositoryBranches(organizationId, opts)

Get github branches of the specified repository

Example

import QoveryApi from 'qovery_api';
let defaultClient = QoveryApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"

let apiInstance = new QoveryApi.OrganizationAccountGitRepositoriesApi();
let organizationId = "organizationId_example"; // String | Organization ID
let opts = {
  'name': "name_example", // String | The name of the repository where to retrieve the branches
  'gitTokenId': "gitTokenId_example" // String | The git token id that must be used for the application
};
apiInstance.getOrganizationGithubRepositoryBranches(organizationId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
organizationId String Organization ID
name String The name of the repository where to retrieve the branches [optional]
gitTokenId String The git token id that must be used for the application [optional]

Return type

GitRepositoryBranchResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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

getOrganizationGitlabRepositories

GitRepositoryResponseList getOrganizationGitlabRepositories(organizationId, opts)

Get gitlab repositories of the connected user

Example

import QoveryApi from 'qovery_api';
let defaultClient = QoveryApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"

let apiInstance = new QoveryApi.OrganizationAccountGitRepositoriesApi();
let organizationId = "organizationId_example"; // String | Organization ID
let opts = {
  'gitTokenId': "gitTokenId_example" // String | The git token id that must be used for the application
};
apiInstance.getOrganizationGitlabRepositories(organizationId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
organizationId String Organization ID
gitTokenId String The git token id that must be used for the application [optional]

Return type

GitRepositoryResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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

getOrganizationGitlabRepositoryBranches

GitRepositoryBranchResponseList getOrganizationGitlabRepositoryBranches(organizationId, opts)

Get gitlab branches of the specified repository

Example

import QoveryApi from 'qovery_api';
let defaultClient = QoveryApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"

let apiInstance = new QoveryApi.OrganizationAccountGitRepositoriesApi();
let organizationId = "organizationId_example"; // String | Organization ID
let opts = {
  'name': "name_example", // String | The name of the repository to retrieve the branches
  'gitTokenId': "gitTokenId_example" // String | The git token id that must be used for the application
};
apiInstance.getOrganizationGitlabRepositoryBranches(organizationId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});

Parameters

Name Type Description Notes
organizationId String Organization ID
name String The name of the repository to retrieve the branches [optional]
gitTokenId String The git token id that must be used for the application [optional]

Return type

GitRepositoryBranchResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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