Updated generated swagger docs

This commit is contained in:
Andrey Melnikov
2020-02-19 11:11:45 -08:00
parent 2739edf9eb
commit d3c13fbb0d
9 changed files with 111 additions and 399 deletions

View File

@@ -11,39 +11,5 @@
"application/json" "application/json"
], ],
"paths": {}, "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. // Reference imports to suppress errors if they are not otherwise used.
var _ context.Context var _ context.Context
var _ grpc.ClientConnInterface var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6 const _ = grpc.SupportPackageIsVersion4
// NamespaceServiceClient is the client API for NamespaceService service. // NamespaceServiceClient is the client API for NamespaceService service.
// //
@@ -154,10 +154,10 @@ type NamespaceServiceClient interface {
} }
type namespaceServiceClient struct { type namespaceServiceClient struct {
cc grpc.ClientConnInterface cc *grpc.ClientConn
} }
func NewNamespaceServiceClient(cc grpc.ClientConnInterface) NamespaceServiceClient { func NewNamespaceServiceClient(cc *grpc.ClientConn) NamespaceServiceClient {
return &namespaceServiceClient{cc} return &namespaceServiceClient{cc}
} }

View File

@@ -20,12 +20,6 @@
"schema": { "schema": {
"$ref": "#/definitions/apiListNamespacesResponse" "$ref": "#/definitions/apiListNamespacesResponse"
} }
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
} }
}, },
"tags": [ "tags": [
@@ -57,39 +51,6 @@
"type": "string" "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

@@ -714,60 +714,60 @@ func init() { proto.RegisterFile("secret.proto", fileDescriptor_6acf428160d7a216
var fileDescriptor_6acf428160d7a216 = []byte{ var fileDescriptor_6acf428160d7a216 = []byte{
// 713 bytes of a gzipped FileDescriptorProto // 713 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x4f, 0x4f, 0xdb, 0x4a, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x4e, 0xdb, 0x4a,
0x10, 0x97, 0x13, 0x08, 0x64, 0xc8, 0xd3, 0xe3, 0x2d, 0x79, 0x60, 0x4c, 0x1e, 0x0a, 0x8b, 0x9e, 0x14, 0x96, 0x13, 0x08, 0xe4, 0x90, 0xab, 0xcb, 0x1d, 0x72, 0xc1, 0x98, 0x5c, 0x14, 0x06, 0x5d,
0x04, 0x54, 0xb2, 0x49, 0x38, 0xf0, 0xa7, 0x87, 0x0a, 0x15, 0xc4, 0x81, 0xaa, 0x07, 0xa3, 0x56, 0x09, 0xa8, 0x64, 0x93, 0xb0, 0xe0, 0xa7, 0x8b, 0x0a, 0x15, 0xc4, 0x82, 0xaa, 0x0b, 0xa3, 0x56,
0xbd, 0x54, 0xea, 0x92, 0x4c, 0xa9, 0x15, 0xb0, 0xdd, 0xec, 0x06, 0x35, 0xa2, 0x91, 0xaa, 0x9e, 0xdd, 0x54, 0xea, 0x90, 0x9c, 0x52, 0x2b, 0x60, 0xbb, 0x99, 0x09, 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8a, 0x1f, 0x01, 0xd3, 0x08, 0x00, 0x00, 0xff, 0x9d, 0x7b, 0x21, 0x46, 0xdb, 0x08, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var _ context.Context var _ context.Context
var _ grpc.ClientConnInterface var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6 const _ = grpc.SupportPackageIsVersion4
// SecretServiceClient is the client API for SecretService service. // SecretServiceClient is the client API for SecretService service.
// //
@@ -784,10 +784,10 @@ type SecretServiceClient interface {
} }
type secretServiceClient struct { type secretServiceClient struct {
cc grpc.ClientConnInterface cc *grpc.ClientConn
} }
func NewSecretServiceClient(cc grpc.ClientConnInterface) SecretServiceClient { func NewSecretServiceClient(cc *grpc.ClientConn) SecretServiceClient {
return &secretServiceClient{cc} return &secretServiceClient{cc}
} }

View File

@@ -573,14 +573,18 @@ func local_request_SecretService_AddSecretKeyValue_0(ctx context.Context, marsha
} }
var (
filter_SecretService_UpdateSecretKeyValue_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_UpdateSecretKeyValue_0(ctx context.Context, marshaler runtime.Marshaler, client SecretServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { func request_SecretService_UpdateSecretKeyValue_0(ctx context.Context, marshaler runtime.Marshaler, client SecretServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq UpdateSecretKeyValueRequest var protoReq UpdateSecretKeyValueRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
newReader, berr := utilities.IOReaderFactory(req.Body)
if berr != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
}
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Secret); err != nil && err != io.EOF {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
var ( var (
val string val string
ok bool ok bool
@@ -610,13 +614,6 @@ func request_SecretService_UpdateSecretKeyValue_0(ctx context.Context, marshaler
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", "secret.name", err)
} }
if err := req.ParseForm(); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SecretService_UpdateSecretKeyValue_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := client.UpdateSecretKeyValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) msg, err := client.UpdateSecretKeyValue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err return msg, metadata, err
@@ -626,6 +623,14 @@ func local_request_SecretService_UpdateSecretKeyValue_0(ctx context.Context, mar
var protoReq UpdateSecretKeyValueRequest var protoReq UpdateSecretKeyValueRequest
var metadata runtime.ServerMetadata var metadata runtime.ServerMetadata
newReader, berr := utilities.IOReaderFactory(req.Body)
if berr != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
}
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Secret); err != nil && err != io.EOF {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
var ( var (
val string val string
ok bool ok bool
@@ -655,10 +660,6 @@ func local_request_SecretService_UpdateSecretKeyValue_0(ctx context.Context, mar
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", "secret.name", err)
} }
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_SecretService_UpdateSecretKeyValue_0); err != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := server.UpdateSecretKeyValue(ctx, &protoReq) msg, err := server.UpdateSecretKeyValue(ctx, &protoReq)
return msg, metadata, err return msg, metadata, err

View File

@@ -20,12 +20,6 @@
"schema": { "schema": {
"$ref": "#/definitions/apiListSecretsResponse" "$ref": "#/definitions/apiListSecretsResponse"
} }
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
} }
}, },
"parameters": [ "parameters": [
@@ -48,12 +42,6 @@
"schema": { "schema": {
"properties": {} "properties": {}
} }
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
} }
}, },
"parameters": [ "parameters": [
@@ -86,12 +74,6 @@
"schema": { "schema": {
"$ref": "#/definitions/apiSecret" "$ref": "#/definitions/apiSecret"
} }
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
} }
}, },
"parameters": [ "parameters": [
@@ -120,12 +102,6 @@
"schema": { "schema": {
"$ref": "#/definitions/apiDeleteSecretResponse" "$ref": "#/definitions/apiDeleteSecretResponse"
} }
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
} }
}, },
"parameters": [ "parameters": [
@@ -156,12 +132,6 @@
"schema": { "schema": {
"$ref": "#/definitions/apiSecretExistsResponse" "$ref": "#/definitions/apiSecretExistsResponse"
} }
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
} }
}, },
"parameters": [ "parameters": [
@@ -192,12 +162,6 @@
"schema": { "schema": {
"$ref": "#/definitions/apiAddSecretKeyValueResponse" "$ref": "#/definitions/apiAddSecretKeyValueResponse"
} }
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
} }
}, },
"parameters": [ "parameters": [
@@ -234,12 +198,6 @@
"schema": { "schema": {
"$ref": "#/definitions/apiUpdateSecretKeyValueResponse" "$ref": "#/definitions/apiUpdateSecretKeyValueResponse"
} }
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
} }
}, },
"parameters": [ "parameters": [
@@ -254,6 +212,14 @@
"in": "path", "in": "path",
"required": true, "required": true,
"type": "string" "type": "string"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/apiSecret"
}
} }
], ],
"tags": [ "tags": [
@@ -270,12 +236,6 @@
"schema": { "schema": {
"$ref": "#/definitions/apiDeleteSecretKeyResponse" "$ref": "#/definitions/apiDeleteSecretKeyResponse"
} }
},
"default": {
"description": "An unexpected error response",
"schema": {
"$ref": "#/definitions/runtimeError"
}
} }
}, },
"parameters": [ "parameters": [
@@ -378,39 +338,6 @@
"format": "boolean" "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. // Reference imports to suppress errors if they are not otherwise used.
var _ context.Context var _ context.Context
var _ grpc.ClientConnInterface var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6 const _ = grpc.SupportPackageIsVersion4
// WorkflowServiceClient is the client API for WorkflowService service. // WorkflowServiceClient is the client API for WorkflowService service.
// //
@@ -882,10 +882,10 @@ type WorkflowServiceClient interface {
} }
type workflowServiceClient struct { type workflowServiceClient struct {
cc grpc.ClientConnInterface cc *grpc.ClientConn
} }
func NewWorkflowServiceClient(cc grpc.ClientConnInterface) WorkflowServiceClient { func NewWorkflowServiceClient(cc *grpc.ClientConn) WorkflowServiceClient {
return &workflowServiceClient{cc} return &workflowServiceClient{cc}
} }

View File

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