Last active
February 24, 2024 13:40
-
-
Save Randgalt/62e97f16b68c264c29b96e65d872aff0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| { | |
| "openapi" : "3.0.1", | |
| "info" : { | |
| "title" : "test", | |
| "version" : "v1", | |
| "summary" : "test" | |
| }, | |
| "tags" : [ { | |
| "name" : "Standard Service", | |
| "description" : "Does standard things" | |
| } ], | |
| "paths" : { | |
| "/public/api/v1/catalogType/redshift/catalog" : { | |
| "post" : { | |
| "tags" : [ "Standard Service" ], | |
| "description" : "TODO\n\n**BETA API:** This API is subject to incompatible changes, or even removal, in the future.", | |
| "operationId" : "createRedshiftCatalog", | |
| "parameters" : [ { | |
| "in" : "query", | |
| "name" : "doValidation", | |
| "description" : "", | |
| "required" : false, | |
| "schema" : { | |
| "type" : "boolean", | |
| "nullable" : false | |
| } | |
| } ], | |
| "requestBody" : { | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Catalog" | |
| } | |
| } | |
| }, | |
| "required" : true | |
| }, | |
| "responses" : { | |
| "400" : { | |
| "description" : "InvalidArgument", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Badrequest" | |
| } | |
| } | |
| } | |
| }, | |
| "401" : { | |
| "description" : "Unauthenticated", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Errorinfo" | |
| } | |
| } | |
| } | |
| }, | |
| "204" : { | |
| "description" : "Success" | |
| }, | |
| "403" : { | |
| "description" : "PermissionDenied", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Errorinfo" | |
| } | |
| } | |
| } | |
| }, | |
| "404" : { | |
| "description" : "NotFound", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Resourceinfo" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "patch" : { | |
| "tags" : [ "Standard Service" ], | |
| "description" : "TODO\n\n**BETA API:** This API is subject to incompatible changes, or even removal, in the future.\n\nOnly include fields you wish to update. Missing or unrecognized fields are ignored.", | |
| "operationId" : "patchUpdateRedshiftCatalog", | |
| "parameters" : [ ], | |
| "requestBody" : { | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/RedshiftCatalogPatch" | |
| } | |
| } | |
| }, | |
| "required" : true | |
| }, | |
| "responses" : { | |
| "400" : { | |
| "description" : "InvalidArgument", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Badrequest" | |
| } | |
| } | |
| } | |
| }, | |
| "401" : { | |
| "description" : "Unauthenticated", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Errorinfo" | |
| } | |
| } | |
| } | |
| }, | |
| "204" : { | |
| "description" : "Success" | |
| }, | |
| "403" : { | |
| "description" : "PermissionDenied", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Errorinfo" | |
| } | |
| } | |
| } | |
| }, | |
| "404" : { | |
| "description" : "NotFound", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Resourceinfo" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "/public/api/v1/catalogType/elasticsearch/cloud/aws/catalog" : { | |
| "post" : { | |
| "tags" : [ "Standard Service" ], | |
| "description" : "TODO\n\n**BETA API:** This API is subject to incompatible changes, or even removal, in the future.", | |
| "operationId" : "createElasticsearchAwsCatalog", | |
| "parameters" : [ { | |
| "in" : "query", | |
| "name" : "doValidation", | |
| "description" : "", | |
| "required" : false, | |
| "schema" : { | |
| "type" : "boolean", | |
| "nullable" : false | |
| } | |
| } ], | |
| "requestBody" : { | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/ElasticsearchAwsCatalog" | |
| } | |
| } | |
| }, | |
| "required" : true | |
| }, | |
| "responses" : { | |
| "400" : { | |
| "description" : "InvalidArgument", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Badrequest" | |
| } | |
| } | |
| } | |
| }, | |
| "401" : { | |
| "description" : "Unauthenticated", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Errorinfo" | |
| } | |
| } | |
| } | |
| }, | |
| "204" : { | |
| "description" : "Success" | |
| }, | |
| "403" : { | |
| "description" : "PermissionDenied", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Errorinfo" | |
| } | |
| } | |
| } | |
| }, | |
| "404" : { | |
| "description" : "NotFound", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Resourceinfo" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "/public/api/v1/catalogType/redshift/catalog/{catalogId}" : { | |
| "get" : { | |
| "tags" : [ "Standard Service" ], | |
| "description" : "TODO\n\n**BETA API:** This API is subject to incompatible changes, or even removal, in the future.", | |
| "operationId" : "getRedshiftCatalog", | |
| "parameters" : [ { | |
| "in" : "path", | |
| "name" : "catalogId", | |
| "description" : "- TODO\n- This parameter can be looked up using `name` instead of its Id. Use `name=value` instead of an Id to lookup/search using the `value`. `value` must be encoded ([see RFC](https://www.rfc-editor.org/rfc/rfc3986#section-2.2) including `=`)\n", | |
| "required" : true, | |
| "schema" : { | |
| "type" : "string" | |
| } | |
| } ], | |
| "responses" : { | |
| "200" : { | |
| "description" : "Success", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/RedshiftCatalog" | |
| } | |
| } | |
| } | |
| }, | |
| "400" : { | |
| "description" : "InvalidArgument", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Badrequest" | |
| } | |
| } | |
| } | |
| }, | |
| "401" : { | |
| "description" : "Unauthenticated", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Errorinfo" | |
| } | |
| } | |
| } | |
| }, | |
| "403" : { | |
| "description" : "PermissionDenied", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Errorinfo" | |
| } | |
| } | |
| } | |
| }, | |
| "404" : { | |
| "description" : "NotFound", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Resourceinfo" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "/public/api/v1/catalogType/objectstore/cloud/aws/metastoreType/galaxy/catalog" : { | |
| "post" : { | |
| "tags" : [ "Standard Service" ], | |
| "description" : "TODO\n\n**BETA API:** This API is subject to incompatible changes, or even removal, in the future.", | |
| "operationId" : "createObjectstoreAwsGalaxyCatalog", | |
| "parameters" : [ { | |
| "in" : "query", | |
| "name" : "doValidation", | |
| "description" : "", | |
| "required" : false, | |
| "schema" : { | |
| "type" : "boolean", | |
| "nullable" : false | |
| } | |
| } ], | |
| "requestBody" : { | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/AwsObjectstoreCatalog" | |
| } | |
| } | |
| }, | |
| "required" : true | |
| }, | |
| "responses" : { | |
| "400" : { | |
| "description" : "InvalidArgument", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Badrequest" | |
| } | |
| } | |
| } | |
| }, | |
| "401" : { | |
| "description" : "Unauthenticated", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Errorinfo" | |
| } | |
| } | |
| } | |
| }, | |
| "204" : { | |
| "description" : "Success" | |
| }, | |
| "403" : { | |
| "description" : "PermissionDenied", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Errorinfo" | |
| } | |
| } | |
| } | |
| }, | |
| "404" : { | |
| "description" : "NotFound", | |
| "content" : { | |
| "application/json" : { | |
| "schema" : { | |
| "$ref" : "#/components/schemas/Resourceinfo" | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "components" : { | |
| "schemas" : { | |
| "RedshiftCatalogPatch" : { | |
| "required" : [ "authType" ], | |
| "properties" : { | |
| "catalogId" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "authType" : { | |
| "type" : "string" | |
| } | |
| }, | |
| "description" : "TODO", | |
| "discriminator" : { | |
| "propertyName" : "authType", | |
| "mapping" : { | |
| "accessKey" : "#/components/schemas/RedshiftCatalogPatchAccessKey", | |
| "basic" : "#/components/schemas/RedshiftCatalogPatchBasic" | |
| } | |
| } | |
| }, | |
| "Badrequest" : { | |
| "required" : [ "fieldViolations" ], | |
| "properties" : { | |
| "fieldViolations" : { | |
| "type" : "array", | |
| "items" : { | |
| "$ref" : "#/components/schemas/FieldViolations" | |
| } | |
| } | |
| }, | |
| "description" : "Invalid request (read only)" | |
| }, | |
| "AwsObjectstoreCatalog" : { | |
| "required" : [ "accessKey", "authType", "defaultLocation", "description", "name", "secretKey" ], | |
| "properties" : { | |
| "name" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "description" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "authType" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "accessKey" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "secretKey" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "defaultLocation" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "allowExternalTableCreation" : { | |
| "type" : "boolean", | |
| "description" : "TODO", | |
| "nullable" : false | |
| }, | |
| "allowExternalTableWrites" : { | |
| "type" : "boolean", | |
| "description" : "TODO", | |
| "nullable" : false | |
| }, | |
| "defaultTableType" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| } | |
| }, | |
| "description" : "TODO" | |
| }, | |
| "Errorinfo" : { | |
| "required" : [ "metadata", "reason" ], | |
| "properties" : { | |
| "reason" : { | |
| "type" : "string", | |
| "description" : "Error reason/detail (read only)" | |
| }, | |
| "metadata" : { | |
| "type" : "object", | |
| "additionalProperties" : { | |
| "type" : "string", | |
| "description" : "Any additional details (read only)" | |
| } | |
| } | |
| }, | |
| "description" : "Error (read only)" | |
| }, | |
| "RedshiftCatalogPatchBasic" : { | |
| "allOf" : [ { | |
| "$ref" : "#/components/schemas/RedshiftCatalogPatch" | |
| }, { | |
| "properties" : { | |
| "name" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "description" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "username" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "password" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| } | |
| }, | |
| "description" : "TODO" | |
| } ] | |
| }, | |
| "ElasticsearchAwsCatalogAccessKey" : { | |
| "allOf" : [ { | |
| "$ref" : "#/components/schemas/ElasticsearchAwsCatalog" | |
| }, { | |
| "required" : [ "accessKey", "description", "name", "region", "secretKey", "username" ], | |
| "properties" : { | |
| "name" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "description" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "region" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "username" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "accessKey" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "secretKey" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| } | |
| }, | |
| "description" : "TODO" | |
| } ] | |
| }, | |
| "ElasticsearchAwsCatalog" : { | |
| "required" : [ "authType" ], | |
| "properties" : { | |
| "authType" : { | |
| "type" : "string" | |
| } | |
| }, | |
| "description" : "TODO", | |
| "discriminator" : { | |
| "propertyName" : "authType", | |
| "mapping" : { | |
| "accessKey" : "#/components/schemas/ElasticsearchAwsCatalogAccessKey", | |
| "basic" : "#/components/schemas/ElasticsearchAwsCatalogBasic" | |
| } | |
| } | |
| }, | |
| "FieldViolations" : { | |
| "required" : [ "description", "field" ], | |
| "properties" : { | |
| "field" : { | |
| "type" : "string", | |
| "description" : "Field name" | |
| }, | |
| "description" : { | |
| "type" : "string", | |
| "description" : "Description of the violation" | |
| } | |
| }, | |
| "description" : "Field violations (read only)" | |
| }, | |
| "ElasticsearchAwsCatalogBasic" : { | |
| "allOf" : [ { | |
| "$ref" : "#/components/schemas/ElasticsearchAwsCatalog" | |
| }, { | |
| "required" : [ "description", "name", "password", "username" ], | |
| "properties" : { | |
| "name" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "description" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "username" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "password" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| } | |
| }, | |
| "description" : "TODO" | |
| } ] | |
| }, | |
| "Preconditionfailure" : { | |
| "required" : [ "violations" ], | |
| "properties" : { | |
| "violations" : { | |
| "type" : "array", | |
| "items" : { | |
| "$ref" : "#/components/schemas/Violations" | |
| } | |
| } | |
| }, | |
| "description" : "Required precondition was not met (read only)" | |
| }, | |
| "Catalog" : { | |
| "required" : [ "authType" ], | |
| "properties" : { | |
| "authType" : { | |
| "type" : "string" | |
| } | |
| }, | |
| "description" : "TODO", | |
| "discriminator" : { | |
| "propertyName" : "authType", | |
| "mapping" : { | |
| "accessKey" : "#/components/schemas/CatalogAccessKey", | |
| "basic" : "#/components/schemas/CatalogBasic" | |
| } | |
| } | |
| }, | |
| "Violations" : { | |
| "required" : [ "description", "subject", "type" ], | |
| "properties" : { | |
| "type" : { | |
| "type" : "string", | |
| "description" : "Violation type", | |
| "enum" : [ "TermsOfService" ] | |
| }, | |
| "subject" : { | |
| "type" : "string", | |
| "description" : "Violation subject" | |
| }, | |
| "description" : { | |
| "type" : "string", | |
| "description" : "Violation description" | |
| } | |
| }, | |
| "description" : "Field violations (read only)" | |
| }, | |
| "RedshiftCatalog" : { | |
| "required" : [ "authType", "catalogId", "syncToken" ], | |
| "properties" : { | |
| "catalogId" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "syncToken" : { | |
| "type" : "string", | |
| "description" : "Used to ensure consistency for resource updates. A syncToken that is returned\nfrom the server is valid until the resource is updated when a new syncToken will\nbe generated. Only the latest version of the object is maintained.\n (read only)" | |
| }, | |
| "authType" : { | |
| "type" : "string" | |
| } | |
| }, | |
| "description" : "TODO", | |
| "discriminator" : { | |
| "propertyName" : "authType", | |
| "mapping" : { | |
| "accessKey" : "#/components/schemas/RedshiftCatalogAccessKey", | |
| "basic" : "#/components/schemas/RedshiftCatalogBasic" | |
| } | |
| } | |
| }, | |
| "Resourceinfo" : { | |
| "required" : [ "description", "resourceName" ], | |
| "properties" : { | |
| "resourceName" : { | |
| "type" : "string", | |
| "description" : "Name of the resource (read only)" | |
| }, | |
| "description" : { | |
| "type" : "string", | |
| "description" : "Violation description (read only)" | |
| } | |
| }, | |
| "description" : "Resource failure or inconsistency (read only)" | |
| }, | |
| "RedshiftCatalogPatchAccessKey" : { | |
| "allOf" : [ { | |
| "$ref" : "#/components/schemas/RedshiftCatalogPatch" | |
| }, { | |
| "properties" : { | |
| "name" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "description" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "region" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "username" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "accessKey" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "secretKey" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| } | |
| }, | |
| "description" : "TODO" | |
| } ] | |
| }, | |
| "RedshiftCatalogBasic" : { | |
| "allOf" : [ { | |
| "$ref" : "#/components/schemas/RedshiftCatalog" | |
| }, { | |
| "required" : [ "description", "name", "password", "username" ], | |
| "properties" : { | |
| "name" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "description" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "username" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "password" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| } | |
| }, | |
| "description" : "TODO" | |
| } ] | |
| }, | |
| "CatalogBasic" : { | |
| "allOf" : [ { | |
| "$ref" : "#/components/schemas/Catalog" | |
| }, { | |
| "required" : [ "description", "name", "password", "username" ], | |
| "properties" : { | |
| "name" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "description" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "username" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "password" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| } | |
| }, | |
| "description" : "TODO" | |
| } ] | |
| }, | |
| "RedshiftCatalogAccessKey" : { | |
| "allOf" : [ { | |
| "$ref" : "#/components/schemas/RedshiftCatalog" | |
| }, { | |
| "required" : [ "accessKey", "description", "name", "region", "secretKey", "username" ], | |
| "properties" : { | |
| "name" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "description" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "region" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "username" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "accessKey" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "secretKey" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| } | |
| }, | |
| "description" : "TODO" | |
| } ] | |
| }, | |
| "CatalogAccessKey" : { | |
| "allOf" : [ { | |
| "$ref" : "#/components/schemas/Catalog" | |
| }, { | |
| "required" : [ "accessKey", "description", "name", "region", "secretKey", "username" ], | |
| "properties" : { | |
| "name" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "description" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "region" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "username" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "accessKey" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| }, | |
| "secretKey" : { | |
| "type" : "string", | |
| "description" : "TODO" | |
| } | |
| }, | |
| "description" : "TODO" | |
| } ] | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment