Skip to content

Latest commit

 

History

History
443 lines (286 loc) · 12.5 KB

GitRepositoriesAPI.md

File metadata and controls

443 lines (286 loc) · 12.5 KB

\GitRepositoriesAPI

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

Method HTTP request Description
GetBitbucketRepositories Get /account/bitbucket/repository Get bitbucket repositories of the connected user
GetBitbucketRepositoryBranches Get /account/bitbucket/repository/branch Get bitbucket branches of the specified repository
GetGitProviderAccount Get /account/gitAuthProvider Get git provider accounts
GetGithubRepositories Get /account/github/repository Get github repositories of the connected user
GetGithubRepositoryBranches Get /account/github/repository/branch Get github branches of the specified repository
GetGitlabRepositories Get /account/gitlab/repository Get gitlab repositories of the connected user
GetGitlabRepositoryBranches Get /account/gitlab/repository/branch Get gitlab branches of the specified repository

GetBitbucketRepositories

GitRepositoryResponseList GetBitbucketRepositories(ctx).Execute()

Get bitbucket repositories of the connected user

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.GitRepositoriesAPI.GetBitbucketRepositories(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `GitRepositoriesAPI.GetBitbucketRepositories``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetBitbucketRepositories`: GitRepositoryResponseList
	fmt.Fprintf(os.Stdout, "Response from `GitRepositoriesAPI.GetBitbucketRepositories`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetBitbucketRepositoriesRequest struct via the builder pattern

Return type

GitRepositoryResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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

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

GetBitbucketRepositoryBranches

GitRepositoryBranchResponseList GetBitbucketRepositoryBranches(ctx).Name(name).Execute()

Get bitbucket branches of the specified repository

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	name := "name_example" // string | The name of the repository where to retrieve the branches (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.GitRepositoriesAPI.GetBitbucketRepositoryBranches(context.Background()).Name(name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `GitRepositoriesAPI.GetBitbucketRepositoryBranches``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetBitbucketRepositoryBranches`: GitRepositoryBranchResponseList
	fmt.Fprintf(os.Stdout, "Response from `GitRepositoriesAPI.GetBitbucketRepositoryBranches`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiGetBitbucketRepositoryBranchesRequest struct via the builder pattern

Name Type Description Notes
name string The name of the repository where to retrieve the branches

Return type

GitRepositoryBranchResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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

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

GetGitProviderAccount

GitAuthProviderResponseList GetGitProviderAccount(ctx).Execute()

Get git provider accounts

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.GitRepositoriesAPI.GetGitProviderAccount(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `GitRepositoriesAPI.GetGitProviderAccount``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetGitProviderAccount`: GitAuthProviderResponseList
	fmt.Fprintf(os.Stdout, "Response from `GitRepositoriesAPI.GetGitProviderAccount`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetGitProviderAccountRequest struct via the builder pattern

Return type

GitAuthProviderResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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

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

GetGithubRepositories

GitRepositoryResponseList GetGithubRepositories(ctx).Execute()

Get github repositories of the connected user

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.GitRepositoriesAPI.GetGithubRepositories(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `GitRepositoriesAPI.GetGithubRepositories``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetGithubRepositories`: GitRepositoryResponseList
	fmt.Fprintf(os.Stdout, "Response from `GitRepositoriesAPI.GetGithubRepositories`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetGithubRepositoriesRequest struct via the builder pattern

Return type

GitRepositoryResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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

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

GetGithubRepositoryBranches

GitRepositoryBranchResponseList GetGithubRepositoryBranches(ctx).Name(name).Execute()

Get github branches of the specified repository

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	name := "name_example" // string | The name of the repository where to retrieve the branches (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.GitRepositoriesAPI.GetGithubRepositoryBranches(context.Background()).Name(name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `GitRepositoriesAPI.GetGithubRepositoryBranches``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetGithubRepositoryBranches`: GitRepositoryBranchResponseList
	fmt.Fprintf(os.Stdout, "Response from `GitRepositoriesAPI.GetGithubRepositoryBranches`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiGetGithubRepositoryBranchesRequest struct via the builder pattern

Name Type Description Notes
name string The name of the repository where to retrieve the branches

Return type

GitRepositoryBranchResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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

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

GetGitlabRepositories

GitRepositoryResponseList GetGitlabRepositories(ctx).Execute()

Get gitlab repositories of the connected user

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.GitRepositoriesAPI.GetGitlabRepositories(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `GitRepositoriesAPI.GetGitlabRepositories``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetGitlabRepositories`: GitRepositoryResponseList
	fmt.Fprintf(os.Stdout, "Response from `GitRepositoriesAPI.GetGitlabRepositories`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiGetGitlabRepositoriesRequest struct via the builder pattern

Return type

GitRepositoryResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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

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

GetGitlabRepositoryBranches

GitRepositoryBranchResponseList GetGitlabRepositoryBranches(ctx).Name(name).Execute()

Get gitlab branches of the specified repository

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/qovery/qovery-client-go"
)

func main() {
	name := "name_example" // string | The name of the repository to retrieve the branches (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.GitRepositoriesAPI.GetGitlabRepositoryBranches(context.Background()).Name(name).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `GitRepositoriesAPI.GetGitlabRepositoryBranches``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetGitlabRepositoryBranches`: GitRepositoryBranchResponseList
	fmt.Fprintf(os.Stdout, "Response from `GitRepositoriesAPI.GetGitlabRepositoryBranches`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiGetGitlabRepositoryBranchesRequest struct via the builder pattern

Name Type Description Notes
name string The name of the repository to retrieve the branches

Return type

GitRepositoryBranchResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

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

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