-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat]: [DBOPS-306]: Onboard DBDevOps entities (#535)
* onboard db devops entities * Authentication fix * address comments
- Loading branch information
1 parent
308444f
commit 677726b
Showing
37 changed files
with
5,255 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Compiled Object files, Static and Dynamic libs (Shared Objects) | ||
*.o | ||
*.a | ||
*.so | ||
|
||
# Folders | ||
_obj | ||
_test | ||
|
||
# Architecture specific extensions/prefixes | ||
*.[568vq] | ||
[568vq].out | ||
|
||
*.cgo1.go | ||
*.cgo2.c | ||
_cgo_defun.c | ||
_cgo_gotypes.go | ||
_cgo_export.* | ||
|
||
_testmain.go | ||
|
||
*.exe | ||
*.test | ||
*.prof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Swagger Codegen Ignore | ||
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen | ||
|
||
# Use this file to prevent files from being overwritten by the generator. | ||
# The patterns follow closely to .gitignore or .dockerignore. | ||
|
||
# As an example, the C# client generator defines ApiClient.cs. | ||
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: | ||
#ApiClient.cs | ||
|
||
# You can match any string of characters against a directory, file or extension with a single asterisk (*): | ||
#foo/*/qux | ||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux | ||
|
||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**): | ||
#foo/**/qux | ||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux | ||
|
||
# You can also negate patterns with an exclamation (!). | ||
# For example, you can ignore all files in a docs folder with the file extension .md: | ||
#docs/*.md | ||
# Then explicitly reverse the ignore rule for a single file: | ||
#!docs/README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0.57 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: go | ||
|
||
install: | ||
- go get -d -v . | ||
|
||
script: | ||
- go build -v ./ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Go API client for swagger | ||
|
||
This is the Open Api Spec 3 for the DB Service | ||
|
||
## Overview | ||
This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. | ||
|
||
- API version: 1.0 | ||
- Package version: 1.0.0 | ||
- Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen | ||
|
||
## Installation | ||
Put the package under your project folder and add the following in import: | ||
```golang | ||
import "./swagger" | ||
``` | ||
|
||
## Documentation for API Endpoints | ||
|
||
All URIs are relative to */* | ||
|
||
Class | Method | HTTP request | Description | ||
------------ | ------------- | ------------- | ------------- | ||
*DatabaseInstanceApi* | [**V1CreateProjDbSchemaInstance**](docs/DatabaseInstanceApi.md#v1createprojdbschemainstance) | **Post** /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/instance | Create a database instance | ||
*DatabaseInstanceApi* | [**V1DeleteProjDbSchemaInstance**](docs/DatabaseInstanceApi.md#v1deleteprojdbschemainstance) | **Delete** /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/instance/{dbinstance} | Delete a database instance | ||
*DatabaseInstanceApi* | [**V1GetProjDbSchemaInstance**](docs/DatabaseInstanceApi.md#v1getprojdbschemainstance) | **Get** /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/instance/{dbinstance} | Get a database instance | ||
*DatabaseInstanceApi* | [**V1ListProjDbSchemaInstance**](docs/DatabaseInstanceApi.md#v1listprojdbschemainstance) | **Get** /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/instance | List database instances | ||
*DatabaseSchemaApi* | [**V1CreateProjDbSchema**](docs/DatabaseSchemaApi.md#v1createprojdbschema) | **Post** /v1/orgs/{org}/projects/{project}/dbschema | Create a database schema | ||
*DatabaseSchemaApi* | [**V1DeleteProjDbSchema**](docs/DatabaseSchemaApi.md#v1deleteprojdbschema) | **Delete** /v1/orgs/{org}/projects/{project}/dbschema/{dbschema} | Delete a database schema | ||
*DatabaseSchemaApi* | [**V1GetProjDbSchema**](docs/DatabaseSchemaApi.md#v1getprojdbschema) | **Get** /v1/orgs/{org}/projects/{project}/dbschema/{dbschema} | Get a database schema | ||
*DatabaseSchemaApi* | [**V1ListProjDbSchema**](docs/DatabaseSchemaApi.md#v1listprojdbschema) | **Get** /v1/orgs/{org}/projects/{project}/dbschema | List database schemas | ||
*DatabaseSchemaApi* | [**V1UpdateProjDbSchema**](docs/DatabaseSchemaApi.md#v1updateprojdbschema) | **Put** /v1/orgs/{org}/projects/{project}/dbschema/{dbschema} | Update a database schema | ||
*DatabaseSchemaApi* | [**V1UpdateProjDbSchemaInstance**](docs/DatabaseSchemaApi.md#v1updateprojdbschemainstance) | **Put** /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/instance/{dbinstance} | Update a database instance | ||
*LogIngestApi* | [**V1GetDbinstanceLog**](docs/LogIngestApi.md#v1getdbinstancelog) | **Get** /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/instance/{dbinstance}/logs/{log} | | ||
*LogIngestApi* | [**V1IngestLogs**](docs/LogIngestApi.md#v1ingestlogs) | **Post** /v1/orgs/{org}/projects/{project}/dbschema/{dbschema}/instance/{dbinstance}/logs | Ingest database migration logs | ||
*PipelineStepApi* | [**ConsumeV1StepPluginResponse**](docs/PipelineStepApi.md#consumev1steppluginresponse) | **Post** /v1/step/plugin-response | ConsumePluginResponse | ||
*PipelineStepApi* | [**CreateV1StepPluginInputs**](docs/PipelineStepApi.md#createv1stepplugininputs) | **Post** /v1/step/plugin-inputs | CreatePluginInputs | ||
|
||
## Documentation For Models | ||
|
||
- [Changelog](docs/Changelog.md) | ||
- [Command](docs/Command.md) | ||
- [CommandExecutionStatus](docs/CommandExecutionStatus.md) | ||
- [DbInstanceIn](docs/DbInstanceIn.md) | ||
- [DbInstanceOut](docs/DbInstanceOut.md) | ||
- [DbSchemaIn](docs/DbSchemaIn.md) | ||
- [DbSchemaOut](docs/DbSchemaOut.md) | ||
- [InlineResponse200](docs/InlineResponse200.md) | ||
- [ModelError](docs/ModelError.md) | ||
- [ParsedLogOut](docs/ParsedLogOut.md) | ||
|
||
## Documentation For Authorization | ||
|
||
## Authorization | ||
## x-api-key | ||
- **Type**: API key | ||
|
||
Example | ||
```golang | ||
auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{ | ||
Key: "APIKEY", | ||
Prefix: "Bearer", // Omit if not necessary. | ||
}) | ||
r, err := client.Service.Operation(auth, args) | ||
``` | ||
|
||
## Author | ||
|
||
[email protected] |
Oops, something went wrong.