Adding latest swagger / pb files.

This commit is contained in:
Aleksandr Melnikov
2020-02-19 09:02:36 -08:00
parent bccc813ed2
commit d855fa4780
9 changed files with 459 additions and 137 deletions

View File

@@ -11,5 +11,39 @@
"application/json"
],
"paths": {},
"definitions": {}
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"runtimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}

View File

@@ -140,11 +140,11 @@ var fileDescriptor_ecb1e126f615f5dd = []byte{
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
const _ = grpc.SupportPackageIsVersion6
// NamespaceServiceClient is the client API for NamespaceService service.
//
@@ -154,10 +154,10 @@ type NamespaceServiceClient interface {
}
type namespaceServiceClient struct {
cc *grpc.ClientConn
cc grpc.ClientConnInterface
}
func NewNamespaceServiceClient(cc *grpc.ClientConn) NamespaceServiceClient {
func NewNamespaceServiceClient(cc grpc.ClientConnInterface) NamespaceServiceClient {
return &namespaceServiceClient{cc}
}

View File

@@ -20,6 +20,12 @@
"schema": {
"$ref": "#/definitions/apiListNamespacesResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"tags": [
@@ -51,6 +57,39 @@
"type": "string"
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"runtimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}

View File

@@ -333,7 +333,8 @@ func (m *DeleteSecretRequest) GetName() string {
type DeleteSecretKeyRequest struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
Secret *Secret `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
SecretName string `protobuf:"bytes,2,opt,name=secretName,proto3" json:"secretName,omitempty"`
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@@ -371,11 +372,18 @@ func (m *DeleteSecretKeyRequest) GetNamespace() string {
return ""
}
func (m *DeleteSecretKeyRequest) GetSecret() *Secret {
func (m *DeleteSecretKeyRequest) GetSecretName() string {
if m != nil {
return m.Secret
return m.SecretName
}
return nil
return ""
}
func (m *DeleteSecretKeyRequest) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
type DeleteSecretKeyResponse struct {
@@ -705,59 +713,61 @@ func init() {
func init() { proto.RegisterFile("secret.proto", fileDescriptor_6acf428160d7a216) }
var fileDescriptor_6acf428160d7a216 = []byte{
// 677 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x5f, 0x4f, 0xd4, 0x40,
0x10, 0x4f, 0x0f, 0x38, 0xb8, 0xe1, 0x8c, 0xb8, 0x9c, 0x50, 0xca, 0x69, 0x8e, 0x25, 0x26, 0x80,
0x49, 0xcb, 0x1d, 0x0f, 0x20, 0x2f, 0xc6, 0x08, 0xe1, 0x01, 0x9f, 0x4a, 0x34, 0x26, 0xc6, 0xc4,
0xe5, 0x6e, 0x24, 0x0d, 0xd0, 0xd6, 0xee, 0x96, 0x78, 0x51, 0x12, 0x63, 0xe2, 0x27, 0xc0, 0x6f,
0xe6, 0x57, 0xf0, 0x73, 0x18, 0xd3, 0xdd, 0x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x68, 0x9e, 0xca, 0x68, 0x9e, 0xd0, 0xdb, 0x46, 0x93, 0xb5, 0xf8, 0x77, 0x03, 0x1a, 0x45,
0x9f, 0x0b, 0x69, 0x49, 0xe6, 0x6b, 0x7e, 0x36, 0x6b, 0xe9, 0x9a, 0x13, 0xc3, 0x62, 0x75, 0x6e,
0x1b, 0xde, 0x61, 0x55, 0x3e, 0xde, 0x8d, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x17, 0x5e, 0xfe,
0xaa, 0xbc, 0x08, 0x00, 0x00,
// 713 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x4f, 0x4f, 0xdb, 0x4a,
0x10, 0x97, 0x13, 0x08, 0x64, 0xc8, 0xd3, 0xe3, 0x2d, 0x79, 0x60, 0x4c, 0x1e, 0x0a, 0x8b, 0x9e,
0x04, 0x54, 0xb2, 0x49, 0x38, 0xf0, 0xa7, 0x87, 0x0a, 0x15, 0xc4, 0x81, 0xaa, 0x07, 0xa3, 0x56,
0xbd, 0x54, 0xea, 0x92, 0x4c, 0xa9, 0x15, 0xb0, 0xdd, 0xec, 0x06, 0x35, 0xa2, 0x91, 0xaa, 0x9e,
0x7a, 0xeb, 0x81, 0x7e, 0xb3, 0x7e, 0x85, 0x7e, 0x90, 0xca, 0xbb, 0x6b, 0xc7, 0x21, 0x06, 0x4c,
0xab, 0xde, 0x3c, 0xf3, 0xf3, 0xce, 0x6f, 0xe6, 0x37, 0xb3, 0xb3, 0x50, 0xe1, 0xd8, 0xea, 0xa2,
0xb0, 0xc3, 0x6e, 0x20, 0x02, 0x52, 0x64, 0xa1, 0x67, 0x2d, 0x9d, 0x05, 0xc1, 0xd9, 0x39, 0x3a,
0xd2, 0x75, 0xda, 0x7b, 0xeb, 0xe0, 0x45, 0x28, 0xfa, 0xea, 0x0f, 0xab, 0xa6, 0x41, 0x16, 0x7a,
0x0e, 0xf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, 0x59, 0x2b, 0x77, 0xfc, 0x31,
0x7a, 0x0b, 0x9a, 0x0f, 0x4d, 0xef, 0xb4, 0x24, 0xaf, 0xf1, 0xd6, 0xcf, 0x00, 0x00, 0x00, 0xff,
0xff, 0xac, 0x8a, 0x1f, 0x01, 0xd3, 0x08, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
const _ = grpc.SupportPackageIsVersion6
// SecretServiceClient is the client API for SecretService service.
//
@@ -774,10 +784,10 @@ type SecretServiceClient interface {
}
type secretServiceClient struct {
cc *grpc.ClientConn
cc grpc.ClientConnInterface
}
func NewSecretServiceClient(cc *grpc.ClientConn) SecretServiceClient {
func NewSecretServiceClient(cc grpc.ClientConnInterface) SecretServiceClient {
return &secretServiceClient{cc}
}

View File

@@ -383,10 +383,6 @@ func local_request_SecretService_DeleteSecret_0(ctx context.Context, marshaler r
}
var (
filter_SecretService_DeleteSecretKey_0 = &utilities.DoubleArray{Encoding: map[string]int{"namespace": 0, "secret": 1, "name": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 3, 2, 4}}
)
func request_SecretService_DeleteSecretKey_0(ctx context.Context, marshaler runtime.Marshaler, client SecretServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq DeleteSecretKeyRequest
var metadata runtime.ServerMetadata
@@ -409,22 +405,26 @@ func request_SecretService_DeleteSecretKey_0(ctx context.Context, marshaler runt
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err)
}
val, ok = pathParams["secret.name"]
val, ok = pathParams["secretName"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "secret.name")
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "secretName")
}
err = runtime.PopulateFieldFromPath(&protoReq, "secret.name", val)
protoReq.SecretName, err = runtime.String(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "secret.name", err)
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "secretName", err)
}
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
val, ok = pathParams["key"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key")
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SecretService_DeleteSecretKey_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
protoReq.Key, err = runtime.String(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err)
}
msg, err := client.DeleteSecretKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
@@ -454,19 +454,26 @@ func local_request_SecretService_DeleteSecretKey_0(ctx context.Context, marshale
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "namespace", err)
}
val, ok = pathParams["secret.name"]
val, ok = pathParams["secretName"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "secret.name")
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "secretName")
}
err = runtime.PopulateFieldFromPath(&protoReq, "secret.name", val)
protoReq.SecretName, err = runtime.String(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "secret.name", err)
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "secretName", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_SecretService_DeleteSecretKey_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
val, ok = pathParams["key"]
if !ok {
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key")
}
protoReq.Key, err = runtime.String(val)
if err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err)
}
msg, err := server.DeleteSecretKey(ctx, &protoReq)
@@ -1037,7 +1044,7 @@ var (
pattern_SecretService_DeleteSecret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"apis", "v1beta1", "namespace", "secrets", "name"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_SecretService_DeleteSecretKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"apis", "v1beta1", "namespace", "secrets", "secret.name"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_SecretService_DeleteSecretKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4, 2, 5, 1, 0, 4, 1, 5, 6}, []string{"apis", "v1beta1", "namespace", "secrets", "secretName", "keys", "key"}, "", runtime.AssumeColonVerbOpt(true)))
pattern_SecretService_AddSecretKeyValue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 1, 0, 4, 1, 5, 4}, []string{"apis", "v1beta1", "namespace", "secrets", "secret.name"}, "", runtime.AssumeColonVerbOpt(true)))

View File

@@ -20,6 +20,12 @@
"schema": {
"$ref": "#/definitions/apiListSecretsResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -42,6 +48,12 @@
"schema": {
"properties": {}
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -74,6 +86,12 @@
"schema": {
"$ref": "#/definitions/apiSecret"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -102,6 +120,12 @@
"schema": {
"$ref": "#/definitions/apiDeleteSecretResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -132,6 +156,12 @@
"schema": {
"$ref": "#/definitions/apiSecretExistsResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -154,34 +184,6 @@
}
},
"/apis/v1beta1/{namespace}/secrets/{secret.name}": {
"delete": {
"operationId": "DeleteSecretKey",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/apiDeleteSecretKeyResponse"
}
}
},
"parameters": [
{
"name": "namespace",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "secret.name",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"SecretService"
]
},
"post": {
"operationId": "AddSecretKeyValue",
"responses": {
@@ -190,6 +192,12 @@
"schema": {
"$ref": "#/definitions/apiAddSecretKeyValueResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -226,6 +234,12 @@
"schema": {
"$ref": "#/definitions/apiUpdateSecretKeyValueResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -246,6 +260,48 @@
"SecretService"
]
}
},
"/apis/v1beta1/{namespace}/secrets/{secretName}/keys/{key}": {
"delete": {
"operationId": "DeleteSecretKey",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/apiDeleteSecretKeyResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
{
"name": "namespace",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "secretName",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "key",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"SecretService"
]
}
}
},
"definitions": {
@@ -322,6 +378,39 @@
"format": "boolean"
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"runtimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}

View File

@@ -853,11 +853,11 @@ var fileDescriptor_892c7f566756b0be = []byte{
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
const _ = grpc.SupportPackageIsVersion6
// WorkflowServiceClient is the client API for WorkflowService service.
//
@@ -882,10 +882,10 @@ type WorkflowServiceClient interface {
}
type workflowServiceClient struct {
cc *grpc.ClientConn
cc grpc.ClientConnInterface
}
func NewWorkflowServiceClient(cc *grpc.ClientConn) WorkflowServiceClient {
func NewWorkflowServiceClient(cc grpc.ClientConnInterface) WorkflowServiceClient {
return &workflowServiceClient{cc}
}

View File

@@ -20,6 +20,12 @@
"schema": {
"$ref": "#/definitions/apiListWorkflowTemplatesResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -42,6 +48,12 @@
"schema": {
"$ref": "#/definitions/apiWorkflowTemplate"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -74,6 +86,12 @@
"schema": {
"$ref": "#/definitions/apiWorkflowTemplate"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -111,6 +129,12 @@
"schema": {
"$ref": "#/definitions/apiArchiveWorkflowTemplateResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -141,6 +165,12 @@
"schema": {
"$ref": "#/definitions/apiListWorkflowTemplateVersionsResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -171,6 +201,12 @@
"schema": {
"$ref": "#/definitions/apiWorkflowTemplate"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -208,6 +244,12 @@
"schema": {
"$ref": "#/definitions/apiWorkflowTemplate"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -246,6 +288,12 @@
"schema": {
"$ref": "#/definitions/apiWorkflowTemplate"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -291,6 +339,12 @@
"schema": {
"$ref": "#/definitions/apiListWorkflowsResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -340,6 +394,12 @@
"schema": {
"$ref": "#/definitions/apiWorkflow"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -372,6 +432,12 @@
"schema": {
"$ref": "#/definitions/apiWorkflow"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -400,7 +466,22 @@
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"$ref": "#/x-stream-definitions/apiLogEntry"
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/apiLogEntry"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
}
},
"title": "Stream result of apiLogEntry"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
@@ -444,6 +525,12 @@
"schema": {
"$ref": "#/definitions/apiGetWorkflowMetricsResponse"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -480,6 +567,12 @@
"schema": {
"$ref": "#/definitions/apiWorkflow"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -510,6 +603,12 @@
"schema": {
"properties": {}
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
"parameters": [
@@ -538,7 +637,22 @@
"200": {
"description": "A successful response.(streaming responses)",
"schema": {
"$ref": "#/x-stream-definitions/apiWorkflow"
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/apiWorkflow"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
}
},
"title": "Stream result of apiWorkflow"
}
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
}
},
@@ -752,6 +866,27 @@
}
}
},
"runtimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
},
"runtimeStreamError": {
"type": "object",
"properties": {
@@ -777,31 +912,5 @@
}
}
}
},
"x-stream-definitions": {
"apiLogEntry": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/apiLogEntry"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
}
},
"title": "Stream result of apiLogEntry"
},
"apiWorkflow": {
"type": "object",
"properties": {
"result": {
"$ref": "#/definitions/apiWorkflow"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
}
},
"title": "Stream result of apiWorkflow"
}
}
}

View File

@@ -11,5 +11,39 @@
"application/json"
],
"paths": {},
"definitions": {}
"definitions": {
"protobufAny": {
"type": "object",
"properties": {
"type_url": {
"type": "string"
},
"value": {
"type": "string",
"format": "byte"
}
}
},
"runtimeError": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}