diff --git a/api/metric.swagger.json b/api/metric.swagger.json index 3f2cd1a..20d6fa3 100644 --- a/api/metric.swagger.json +++ b/api/metric.swagger.json @@ -11,39 +11,5 @@ "application/json" ], "paths": {}, - "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" - } - } - } - } - } + "definitions": {} } diff --git a/api/namespace.pb.go b/api/namespace.pb.go index 52b8e42..1b114ff 100644 --- a/api/namespace.pb.go +++ b/api/namespace.pb.go @@ -140,11 +140,11 @@ var fileDescriptor_ecb1e126f615f5dd = []byte{ // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConnInterface +var _ grpc.ClientConn // 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.SupportPackageIsVersion6 +const _ = grpc.SupportPackageIsVersion4 // NamespaceServiceClient is the client API for NamespaceService service. // @@ -154,10 +154,10 @@ type NamespaceServiceClient interface { } type namespaceServiceClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewNamespaceServiceClient(cc grpc.ClientConnInterface) NamespaceServiceClient { +func NewNamespaceServiceClient(cc *grpc.ClientConn) NamespaceServiceClient { return &namespaceServiceClient{cc} } diff --git a/api/namespace.swagger.json b/api/namespace.swagger.json index 447ff85..1cbd51f 100644 --- a/api/namespace.swagger.json +++ b/api/namespace.swagger.json @@ -20,12 +20,6 @@ "schema": { "$ref": "#/definitions/apiListNamespacesResponse" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "tags": [ @@ -57,39 +51,6 @@ "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" - } - } - } } } } diff --git a/api/secret.pb.go b/api/secret.pb.go index 011d07f..971f47b 100644 --- a/api/secret.pb.go +++ b/api/secret.pb.go @@ -714,60 +714,60 @@ func init() { proto.RegisterFile("secret.proto", fileDescriptor_6acf428160d7a216 var fileDescriptor_6acf428160d7a216 = []byte{ // 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, - 0x0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a, 0x73, 0x48, 0x5d, 0x32, 0xdf, 0xf1, 0xe0, 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, + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x4e, 0xdb, 0x4a, + 0x14, 0x96, 0x13, 0x08, 0xe4, 0x90, 0xab, 0xcb, 0x1d, 0x72, 0xc1, 0x98, 0x5c, 0x14, 0x06, 0x5d, + 0x09, 0xa8, 0x64, 0x93, 0xb0, 0xe0, 0xa7, 0x8b, 0x0a, 0x15, 0xc4, 0x82, 0xaa, 0x0b, 0xa3, 0x56, + 0xdd, 0x54, 0xea, 0x90, 0x9c, 0x52, 0x2b, 0x60, 0xbb, 0x99, 0x09, 0x6a, 0x44, 0x23, 0x55, 0x7d, + 0x81, 0x56, 0x62, 0xdb, 0xb7, 0xea, 0x2b, 0xf4, 0x41, 0x2a, 0xcf, 0x8c, 0x1d, 0x87, 0x18, 0x70, + 0xa9, 0xba, 0xf3, 0xcc, 0xe7, 0x39, 0xdf, 0x77, 0xbe, 0x73, 0xe6, 0x0c, 0x54, 0x38, 0xb6, 0xba, + 0x28, 0xec, 0xb0, 0x1b, 0x88, 0x80, 0x14, 0x59, 0xe8, 0x59, 0x4b, 0x67, 0x41, 0x70, 0x76, 0x8e, + 0x8e, 0xdc, 0x3a, 0xed, 0xbd, 0x75, 0xf0, 0x22, 0x14, 0x7d, 0xf5, 0x87, 0x55, 0xd3, 0x20, 0x0b, + 0x3d, 0x87, 0xf9, 0x7e, 0x20, 0x98, 0xf0, 0x02, 0x9f, 0x2b, 0x94, 0xbe, 0x06, 0x73, 0xbf, 0xdd, + 0x3e, 0x91, 0x21, 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, 0xaf, 0xf9, 0x50, 0x79, 0xa7, 0x25, 0x79, 0x9d, 0xb7, 0x7e, 0x06, 0x00, 0x00, 0xff, + 0xff, 0x9d, 0x7b, 0x21, 0x46, 0xdb, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConnInterface +var _ grpc.ClientConn // 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.SupportPackageIsVersion6 +const _ = grpc.SupportPackageIsVersion4 // SecretServiceClient is the client API for SecretService service. // @@ -784,10 +784,10 @@ type SecretServiceClient interface { } type secretServiceClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewSecretServiceClient(cc grpc.ClientConnInterface) SecretServiceClient { +func NewSecretServiceClient(cc *grpc.ClientConn) SecretServiceClient { return &secretServiceClient{cc} } diff --git a/api/secret.pb.gw.go b/api/secret.pb.gw.go index f58bbc8..a88e134 100644 --- a/api/secret.pb.gw.go +++ b/api/secret.pb.gw.go @@ -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) { var protoReq UpdateSecretKeyValueRequest 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 ( val string 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) } - 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)) return msg, metadata, err @@ -626,6 +623,14 @@ func local_request_SecretService_UpdateSecretKeyValue_0(ctx context.Context, mar var protoReq UpdateSecretKeyValueRequest 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 ( val string 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) } - 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) return msg, metadata, err diff --git a/api/secret.swagger.json b/api/secret.swagger.json index cfd4dbf..b4c787d 100644 --- a/api/secret.swagger.json +++ b/api/secret.swagger.json @@ -20,12 +20,6 @@ "schema": { "$ref": "#/definitions/apiListSecretsResponse" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -48,12 +42,6 @@ "schema": { "properties": {} } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -86,12 +74,6 @@ "schema": { "$ref": "#/definitions/apiSecret" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -120,12 +102,6 @@ "schema": { "$ref": "#/definitions/apiDeleteSecretResponse" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -156,12 +132,6 @@ "schema": { "$ref": "#/definitions/apiSecretExistsResponse" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -192,12 +162,6 @@ "schema": { "$ref": "#/definitions/apiAddSecretKeyValueResponse" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -234,12 +198,6 @@ "schema": { "$ref": "#/definitions/apiUpdateSecretKeyValueResponse" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -254,6 +212,14 @@ "in": "path", "required": true, "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/apiSecret" + } } ], "tags": [ @@ -270,12 +236,6 @@ "schema": { "$ref": "#/definitions/apiDeleteSecretKeyResponse" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -378,39 +338,6 @@ "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" - } - } - } } } } diff --git a/api/workflow.pb.go b/api/workflow.pb.go index fd9f8e3..6dbf5d2 100644 --- a/api/workflow.pb.go +++ b/api/workflow.pb.go @@ -853,11 +853,11 @@ var fileDescriptor_892c7f566756b0be = []byte{ // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConnInterface +var _ grpc.ClientConn // 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.SupportPackageIsVersion6 +const _ = grpc.SupportPackageIsVersion4 // WorkflowServiceClient is the client API for WorkflowService service. // @@ -882,10 +882,10 @@ type WorkflowServiceClient interface { } type workflowServiceClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewWorkflowServiceClient(cc grpc.ClientConnInterface) WorkflowServiceClient { +func NewWorkflowServiceClient(cc *grpc.ClientConn) WorkflowServiceClient { return &workflowServiceClient{cc} } diff --git a/api/workflow.swagger.json b/api/workflow.swagger.json index a7fd910..a70f3bc 100644 --- a/api/workflow.swagger.json +++ b/api/workflow.swagger.json @@ -20,12 +20,6 @@ "schema": { "$ref": "#/definitions/apiListWorkflowTemplatesResponse" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -48,12 +42,6 @@ "schema": { "$ref": "#/definitions/apiWorkflowTemplate" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -86,12 +74,6 @@ "schema": { "$ref": "#/definitions/apiWorkflowTemplate" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -129,12 +111,6 @@ "schema": { "$ref": "#/definitions/apiArchiveWorkflowTemplateResponse" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -165,12 +141,6 @@ "schema": { "$ref": "#/definitions/apiListWorkflowTemplateVersionsResponse" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -201,12 +171,6 @@ "schema": { "$ref": "#/definitions/apiWorkflowTemplate" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -244,12 +208,6 @@ "schema": { "$ref": "#/definitions/apiWorkflowTemplate" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -288,12 +246,6 @@ "schema": { "$ref": "#/definitions/apiWorkflowTemplate" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -339,12 +291,6 @@ "schema": { "$ref": "#/definitions/apiListWorkflowsResponse" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -394,12 +340,6 @@ "schema": { "$ref": "#/definitions/apiWorkflow" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -432,12 +372,6 @@ "schema": { "$ref": "#/definitions/apiWorkflow" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -466,22 +400,7 @@ "200": { "description": "A successful response.(streaming responses)", "schema": { - "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" + "$ref": "#/x-stream-definitions/apiLogEntry" } } }, @@ -525,12 +444,6 @@ "schema": { "$ref": "#/definitions/apiGetWorkflowMetricsResponse" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -567,12 +480,6 @@ "schema": { "$ref": "#/definitions/apiWorkflow" } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -603,12 +510,6 @@ "schema": { "properties": {} } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } } }, "parameters": [ @@ -637,22 +538,7 @@ "200": { "description": "A successful response.(streaming responses)", "schema": { - "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" + "$ref": "#/x-stream-definitions/apiWorkflow" } } }, @@ -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": { "type": "object", "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" + } } } diff --git a/api/workflow_template.swagger.json b/api/workflow_template.swagger.json index 715dd49..c161cb1 100644 --- a/api/workflow_template.swagger.json +++ b/api/workflow_template.swagger.json @@ -11,39 +11,5 @@ "application/json" ], "paths": {}, - "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" - } - } - } - } - } + "definitions": {} }