diff --git a/dist/gateway/spaceone/api/alert-manager/v1/webhook.pb.gw.go b/dist/gateway/spaceone/api/alert-manager/v1/webhook.pb.gw.go index 8f30ebf0a..d2a9c329b 100755 --- a/dist/gateway/spaceone/api/alert-manager/v1/webhook.pb.gw.go +++ b/dist/gateway/spaceone/api/alert-manager/v1/webhook.pb.gw.go @@ -108,30 +108,6 @@ func local_request_Webhook_UpdatePlugin_0(ctx context.Context, marshaler runtime return msg, metadata, err } -func request_Webhook_VerifyPlugin_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.WebhookClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq extV1.WebhookRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := client.VerifyPlugin(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_Webhook_VerifyPlugin_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.WebhookServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq extV1.WebhookRequest - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.VerifyPlugin(ctx, &protoReq) - return msg, metadata, err -} - func request_Webhook_Enable_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.WebhookClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var ( protoReq extV1.WebhookRequest @@ -342,26 +318,6 @@ func RegisterWebhookHandlerServer(ctx context.Context, mux *runtime.ServeMux, se } forward_Webhook_UpdatePlugin_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle(http.MethodPost, pattern_Webhook_VerifyPlugin_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.alert_manager.v1.Webhook/VerifyPlugin", runtime.WithHTTPPathPattern("/alert-manager/v1/webhook/verify-plugin")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Webhook_VerifyPlugin_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_Webhook_VerifyPlugin_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle(http.MethodPost, pattern_Webhook_Enable_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -573,23 +529,6 @@ func RegisterWebhookHandlerClient(ctx context.Context, mux *runtime.ServeMux, cl } forward_Webhook_UpdatePlugin_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle(http.MethodPost, pattern_Webhook_VerifyPlugin_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.alert_manager.v1.Webhook/VerifyPlugin", runtime.WithHTTPPathPattern("/alert-manager/v1/webhook/verify-plugin")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Webhook_VerifyPlugin_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_Webhook_VerifyPlugin_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle(http.MethodPost, pattern_Webhook_Enable_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -699,7 +638,6 @@ var ( pattern_Webhook_Create_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"alert-manager", "v1", "webhook", "create"}, "")) pattern_Webhook_Update_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"alert-manager", "v1", "webhook", "update"}, "")) pattern_Webhook_UpdatePlugin_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"alert-manager", "v1", "webhook", "update-plugin"}, "")) - pattern_Webhook_VerifyPlugin_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"alert-manager", "v1", "webhook", "verify-plugin"}, "")) pattern_Webhook_Enable_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"alert-manager", "v1", "webhook", "enable"}, "")) pattern_Webhook_Disable_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"alert-manager", "v1", "webhook", "disable"}, "")) pattern_Webhook_Delete_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"alert-manager", "v1", "webhook", "delete"}, "")) @@ -712,7 +650,6 @@ var ( forward_Webhook_Create_0 = runtime.ForwardResponseMessage forward_Webhook_Update_0 = runtime.ForwardResponseMessage forward_Webhook_UpdatePlugin_0 = runtime.ForwardResponseMessage - forward_Webhook_VerifyPlugin_0 = runtime.ForwardResponseMessage forward_Webhook_Enable_0 = runtime.ForwardResponseMessage forward_Webhook_Disable_0 = runtime.ForwardResponseMessage forward_Webhook_Delete_0 = runtime.ForwardResponseMessage diff --git a/dist/go/spaceone/api/alert-manager/v1/webhook.pb.go b/dist/go/spaceone/api/alert-manager/v1/webhook.pb.go index cff821294..203b391c3 100755 --- a/dist/go/spaceone/api/alert-manager/v1/webhook.pb.go +++ b/dist/go/spaceone/api/alert-manager/v1/webhook.pb.go @@ -1082,7 +1082,7 @@ var file_spaceone_api_alert_manager_v1_webhook_proto_rawDesc = []byte{ 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x74, 0x6f, - 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xb9, 0x0b, 0x0a, 0x07, 0x57, 0x65, 0x62, + 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xac, 0x0a, 0x0a, 0x07, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x12, 0x96, 0x01, 0x0a, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x33, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, @@ -1113,73 +1113,64 @@ var file_spaceone_api_alert_manager_v1_webhook_proto_rawDesc = []byte{ 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x2d, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x12, 0x8a, 0x01, 0x0a, 0x0d, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x70, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x2d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x32, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2d, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, - 0x6f, 0x6b, 0x2f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x2d, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x12, 0x90, 0x01, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x2e, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, - 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, - 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, - 0x6f, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x3a, 0x01, - 0x2a, 0x22, 0x20, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2f, 0x65, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x12, - 0x2d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, - 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, - 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, - 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x6c, - 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x57, - 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x26, 0x3a, 0x01, 0x2a, 0x22, 0x21, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2d, 0x6d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, - 0x2f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x7c, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x12, 0x2d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, - 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x25, 0x3a, 0x01, 0x2a, 0x22, 0x20, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2d, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2f, - 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x03, 0x67, 0x65, 0x74, 0x12, 0x2d, + 0x67, 0x69, 0x6e, 0x12, 0x90, 0x01, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, - 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2d, 0x6d, 0x61, 0x6e, + 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x25, 0x3a, 0x01, 0x2a, 0x22, 0x20, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2f, - 0x67, 0x65, 0x74, 0x12, 0x91, 0x01, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x31, 0x2e, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x6c, 0x65, 0x72, - 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, - 0x68, 0x6f, 0x6f, 0x6b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, - 0x2b, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, + 0x6c, 0x65, 0x12, 0x2d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2c, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x3a, 0x01, 0x2a, 0x22, 0x21, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, + 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x65, 0x62, 0x68, + 0x6f, 0x6f, 0x6b, 0x2f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x7c, 0x0a, 0x06, 0x64, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x2d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2b, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x25, 0x3a, 0x01, 0x2a, 0x22, 0x20, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2d, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, + 0x6f, 0x6b, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x03, 0x67, 0x65, + 0x74, 0x12, 0x2d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, + 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x28, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2d, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, + 0x6f, 0x6b, 0x2f, 0x67, 0x65, 0x74, 0x12, 0x91, 0x01, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, + 0x31, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, - 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x29, 0x82, 0xd3, + 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x1a, 0x2b, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, + 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x3a, 0x01, 0x2a, 0x22, 0x1e, 0x2f, 0x61, 0x6c, 0x65, + 0x72, 0x74, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x65, + 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x7b, 0x0a, 0x04, 0x73, 0x74, + 0x61, 0x74, 0x12, 0x2f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, + 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x3a, 0x01, 0x2a, 0x22, 0x1e, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, - 0x6f, 0x6b, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x7b, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x74, 0x12, - 0x2f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x61, - 0x6c, 0x65, 0x72, 0x74, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, - 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x23, 0x3a, 0x01, 0x2a, 0x22, 0x1e, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2d, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x2f, - 0x73, 0x74, 0x61, 0x74, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6f, 0x72, 0x65, 0x74, 0x2d, 0x69, 0x6f, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6c, 0x65, 0x72, 0x74, 0x2d, - 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x6f, 0x6b, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x66, 0x6f, 0x72, 0x65, 0x74, + 0x2d, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x2f, 0x67, 0x6f, 0x2f, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6c, 0x65, + 0x72, 0x74, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1236,25 +1227,23 @@ var file_spaceone_api_alert_manager_v1_webhook_proto_depIdxs = []int32{ 6, // 16: spaceone.api.alert_manager.v1.Webhook.create:input_type -> spaceone.api.alert_manager.v1.WebhookCreateRequest 7, // 17: spaceone.api.alert_manager.v1.Webhook.update:input_type -> spaceone.api.alert_manager.v1.WebhookUpdateRequest 8, // 18: spaceone.api.alert_manager.v1.Webhook.update_plugin:input_type -> spaceone.api.alert_manager.v1.WebhookUpdatePluginRequest - 9, // 19: spaceone.api.alert_manager.v1.Webhook.verify_plugin:input_type -> spaceone.api.alert_manager.v1.WebhookRequest - 9, // 20: spaceone.api.alert_manager.v1.Webhook.enable:input_type -> spaceone.api.alert_manager.v1.WebhookRequest - 9, // 21: spaceone.api.alert_manager.v1.Webhook.disable:input_type -> spaceone.api.alert_manager.v1.WebhookRequest - 9, // 22: spaceone.api.alert_manager.v1.Webhook.delete:input_type -> spaceone.api.alert_manager.v1.WebhookRequest - 9, // 23: spaceone.api.alert_manager.v1.Webhook.get:input_type -> spaceone.api.alert_manager.v1.WebhookRequest - 10, // 24: spaceone.api.alert_manager.v1.Webhook.list:input_type -> spaceone.api.alert_manager.v1.WebhookSearchQuery - 11, // 25: spaceone.api.alert_manager.v1.Webhook.stat:input_type -> spaceone.api.alert_manager.v1.WebhookStatQuery - 12, // 26: spaceone.api.alert_manager.v1.Webhook.create:output_type -> spaceone.api.alert_manager.v1.WebhookInfo - 12, // 27: spaceone.api.alert_manager.v1.Webhook.update:output_type -> spaceone.api.alert_manager.v1.WebhookInfo - 12, // 28: spaceone.api.alert_manager.v1.Webhook.update_plugin:output_type -> spaceone.api.alert_manager.v1.WebhookInfo - 17, // 29: spaceone.api.alert_manager.v1.Webhook.verify_plugin:output_type -> google.protobuf.Empty - 12, // 30: spaceone.api.alert_manager.v1.Webhook.enable:output_type -> spaceone.api.alert_manager.v1.WebhookInfo - 12, // 31: spaceone.api.alert_manager.v1.Webhook.disable:output_type -> spaceone.api.alert_manager.v1.WebhookInfo - 17, // 32: spaceone.api.alert_manager.v1.Webhook.delete:output_type -> google.protobuf.Empty - 12, // 33: spaceone.api.alert_manager.v1.Webhook.get:output_type -> spaceone.api.alert_manager.v1.WebhookInfo - 13, // 34: spaceone.api.alert_manager.v1.Webhook.list:output_type -> spaceone.api.alert_manager.v1.WebhooksInfo - 14, // 35: spaceone.api.alert_manager.v1.Webhook.stat:output_type -> google.protobuf.Struct - 26, // [26:36] is the sub-list for method output_type - 16, // [16:26] is the sub-list for method input_type + 9, // 19: spaceone.api.alert_manager.v1.Webhook.enable:input_type -> spaceone.api.alert_manager.v1.WebhookRequest + 9, // 20: spaceone.api.alert_manager.v1.Webhook.disable:input_type -> spaceone.api.alert_manager.v1.WebhookRequest + 9, // 21: spaceone.api.alert_manager.v1.Webhook.delete:input_type -> spaceone.api.alert_manager.v1.WebhookRequest + 9, // 22: spaceone.api.alert_manager.v1.Webhook.get:input_type -> spaceone.api.alert_manager.v1.WebhookRequest + 10, // 23: spaceone.api.alert_manager.v1.Webhook.list:input_type -> spaceone.api.alert_manager.v1.WebhookSearchQuery + 11, // 24: spaceone.api.alert_manager.v1.Webhook.stat:input_type -> spaceone.api.alert_manager.v1.WebhookStatQuery + 12, // 25: spaceone.api.alert_manager.v1.Webhook.create:output_type -> spaceone.api.alert_manager.v1.WebhookInfo + 12, // 26: spaceone.api.alert_manager.v1.Webhook.update:output_type -> spaceone.api.alert_manager.v1.WebhookInfo + 12, // 27: spaceone.api.alert_manager.v1.Webhook.update_plugin:output_type -> spaceone.api.alert_manager.v1.WebhookInfo + 12, // 28: spaceone.api.alert_manager.v1.Webhook.enable:output_type -> spaceone.api.alert_manager.v1.WebhookInfo + 12, // 29: spaceone.api.alert_manager.v1.Webhook.disable:output_type -> spaceone.api.alert_manager.v1.WebhookInfo + 17, // 30: spaceone.api.alert_manager.v1.Webhook.delete:output_type -> google.protobuf.Empty + 12, // 31: spaceone.api.alert_manager.v1.Webhook.get:output_type -> spaceone.api.alert_manager.v1.WebhookInfo + 13, // 32: spaceone.api.alert_manager.v1.Webhook.list:output_type -> spaceone.api.alert_manager.v1.WebhooksInfo + 14, // 33: spaceone.api.alert_manager.v1.Webhook.stat:output_type -> google.protobuf.Struct + 25, // [25:34] is the sub-list for method output_type + 16, // [16:25] is the sub-list for method input_type 16, // [16:16] is the sub-list for extension type_name 16, // [16:16] is the sub-list for extension extendee 0, // [0:16] is the sub-list for field type_name diff --git a/dist/go/spaceone/api/alert-manager/v1/webhook_grpc.pb.go b/dist/go/spaceone/api/alert-manager/v1/webhook_grpc.pb.go index 499e09e72..ca993f1bf 100755 --- a/dist/go/spaceone/api/alert-manager/v1/webhook_grpc.pb.go +++ b/dist/go/spaceone/api/alert-manager/v1/webhook_grpc.pb.go @@ -24,7 +24,6 @@ const ( Webhook_Create_FullMethodName = "/spaceone.api.alert_manager.v1.Webhook/create" Webhook_Update_FullMethodName = "/spaceone.api.alert_manager.v1.Webhook/update" Webhook_UpdatePlugin_FullMethodName = "/spaceone.api.alert_manager.v1.Webhook/update_plugin" - Webhook_VerifyPlugin_FullMethodName = "/spaceone.api.alert_manager.v1.Webhook/verify_plugin" Webhook_Enable_FullMethodName = "/spaceone.api.alert_manager.v1.Webhook/enable" Webhook_Disable_FullMethodName = "/spaceone.api.alert_manager.v1.Webhook/disable" Webhook_Delete_FullMethodName = "/spaceone.api.alert_manager.v1.Webhook/delete" @@ -40,7 +39,6 @@ type WebhookClient interface { Create(ctx context.Context, in *WebhookCreateRequest, opts ...grpc.CallOption) (*WebhookInfo, error) Update(ctx context.Context, in *WebhookUpdateRequest, opts ...grpc.CallOption) (*WebhookInfo, error) UpdatePlugin(ctx context.Context, in *WebhookUpdatePluginRequest, opts ...grpc.CallOption) (*WebhookInfo, error) - VerifyPlugin(ctx context.Context, in *WebhookRequest, opts ...grpc.CallOption) (*empty.Empty, error) Enable(ctx context.Context, in *WebhookRequest, opts ...grpc.CallOption) (*WebhookInfo, error) Disable(ctx context.Context, in *WebhookRequest, opts ...grpc.CallOption) (*WebhookInfo, error) Delete(ctx context.Context, in *WebhookRequest, opts ...grpc.CallOption) (*empty.Empty, error) @@ -87,16 +85,6 @@ func (c *webhookClient) UpdatePlugin(ctx context.Context, in *WebhookUpdatePlugi return out, nil } -func (c *webhookClient) VerifyPlugin(ctx context.Context, in *WebhookRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(empty.Empty) - err := c.cc.Invoke(ctx, Webhook_VerifyPlugin_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *webhookClient) Enable(ctx context.Context, in *WebhookRequest, opts ...grpc.CallOption) (*WebhookInfo, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(WebhookInfo) @@ -164,7 +152,6 @@ type WebhookServer interface { Create(context.Context, *WebhookCreateRequest) (*WebhookInfo, error) Update(context.Context, *WebhookUpdateRequest) (*WebhookInfo, error) UpdatePlugin(context.Context, *WebhookUpdatePluginRequest) (*WebhookInfo, error) - VerifyPlugin(context.Context, *WebhookRequest) (*empty.Empty, error) Enable(context.Context, *WebhookRequest) (*WebhookInfo, error) Disable(context.Context, *WebhookRequest) (*WebhookInfo, error) Delete(context.Context, *WebhookRequest) (*empty.Empty, error) @@ -190,9 +177,6 @@ func (UnimplementedWebhookServer) Update(context.Context, *WebhookUpdateRequest) func (UnimplementedWebhookServer) UpdatePlugin(context.Context, *WebhookUpdatePluginRequest) (*WebhookInfo, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdatePlugin not implemented") } -func (UnimplementedWebhookServer) VerifyPlugin(context.Context, *WebhookRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method VerifyPlugin not implemented") -} func (UnimplementedWebhookServer) Enable(context.Context, *WebhookRequest) (*WebhookInfo, error) { return nil, status.Errorf(codes.Unimplemented, "method Enable not implemented") } @@ -286,24 +270,6 @@ func _Webhook_UpdatePlugin_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } -func _Webhook_VerifyPlugin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(WebhookRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(WebhookServer).VerifyPlugin(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Webhook_VerifyPlugin_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(WebhookServer).VerifyPlugin(ctx, req.(*WebhookRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Webhook_Enable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(WebhookRequest) if err := dec(in); err != nil { @@ -431,10 +397,6 @@ var Webhook_ServiceDesc = grpc.ServiceDesc{ MethodName: "update_plugin", Handler: _Webhook_UpdatePlugin_Handler, }, - { - MethodName: "verify_plugin", - Handler: _Webhook_VerifyPlugin_Handler, - }, { MethodName: "enable", Handler: _Webhook_Enable_Handler, diff --git a/dist/json/cloudforet/api/alert_manager/v1/Webhook.json b/dist/json/cloudforet/api/alert_manager/v1/Webhook.json index 8e9ae1899..8e24f6641 100755 --- a/dist/json/cloudforet/api/alert_manager/v1/Webhook.json +++ b/dist/json/cloudforet/api/alert_manager/v1/Webhook.json @@ -793,29 +793,6 @@ } } }, - { - "name": "verify_plugin", - "description": "", - "requestType": "WebhookRequest", - "requestLongType": "WebhookRequest", - "requestFullType": "spaceone.api.alert_manager.v1.WebhookRequest", - "requestStreaming": false, - "responseType": "Empty", - "responseLongType": ".google.protobuf.Empty", - "responseFullType": "google.protobuf.Empty", - "responseStreaming": false, - "options": { - "google.api.http": { - "rules": [ - { - "method": "POST", - "pattern": "/alert-manager/v1/webhook/verify-plugin", - "body": "*" - } - ] - } - } - }, { "name": "enable", "description": "", diff --git a/dist/openapi/cloudforet/api/alert_manager/v1/openapi.json b/dist/openapi/cloudforet/api/alert_manager/v1/openapi.json index eb46b6579..4a30862a0 100755 --- a/dist/openapi/cloudforet/api/alert_manager/v1/openapi.json +++ b/dist/openapi/cloudforet/api/alert_manager/v1/openapi.json @@ -1393,29 +1393,6 @@ }} } ,"security": [{"HTTPBearer": []}] } - },"/alert-manager/webhook/verify-plugin": { - "post": { - "tags": ["alert-manager > webhook"], - "summary": "Verify Plugin", - "operationId" : "", - "description": "### Description \n", - "requestBody": { - "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |webhook_id||string|True|\n
", - "content": { - "application/json": { - "schema": { - "properties": {"webhook_id" : {"type": "string","title": "WEBHOOK_ID" } } - }, - "examples":{"Schema":{} - } - } - },"required": true - }, - "responses": { - "200": { - "description": "Successfull Response"} - } - ,"security": [{"HTTPBearer": []}] } },"/alert-manager/webhook/enable": { "post": { "tags": ["alert-manager > webhook"], diff --git a/dist/python/build/lib/spaceone/api/alert_manager/v1/webhook_pb2.py b/dist/python/build/lib/spaceone/api/alert_manager/v1/webhook_pb2.py index 68807c58d..1cda696f1 100644 --- a/dist/python/build/lib/spaceone/api/alert_manager/v1/webhook_pb2.py +++ b/dist/python/build/lib/spaceone/api/alert_manager/v1/webhook_pb2.py @@ -18,7 +18,7 @@ from spaceone.api.core.v2 import query_pb2 as spaceone_dot_api_dot_core_dot_v2_dot_query__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+spaceone/api/alert_manager/v1/webhook.proto\x12\x1dspaceone.api.alert_manager.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a spaceone/api/core/v2/query.proto\"/\n\x0fWebhookRequests\x12\r\n\x05total\x18\x01 \x01(\x03\x12\r\n\x05\x65rror\x18\x02 \x01(\x03\"\xaa\x02\n\x11WebhookPluginInfo\x12\x11\n\tplugin_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12(\n\x07options\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12Y\n\x0cupgrade_mode\x18\x05 \x01(\x0e\x32\x43.spaceone.api.alert_manager.v1.WebhookPluginInfo.WebhookUpgradeMode\"A\n\x12WebhookUpgradeMode\x12\x15\n\x11UPGRADE_MODE_NONE\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\n\n\x06MANUAL\x10\x02\"\xa6\x01\n\x14WebhookCreateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x45\n\x0bplugin_info\x18\x02 \x01(\x0b\x32\x30.spaceone.api.alert_manager.v1.WebhookPluginInfo\x12%\n\x04tags\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x12\n\nservice_id\x18\x15 \x01(\t\"_\n\x14WebhookUpdateRequest\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12%\n\x04tags\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\"\x92\x02\n\x1aWebhookUpdatePluginRequest\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12(\n\x07options\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x62\n\x0cupgrade_mode\x18\x04 \x01(\x0e\x32L.spaceone.api.alert_manager.v1.WebhookUpdatePluginRequest.WebhookUpgradeMode\"A\n\x12WebhookUpgradeMode\x12\x15\n\x11UPGRADE_MODE_NONE\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\n\n\x06MANUAL\x10\x02\"$\n\x0eWebhookRequest\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\"\xb2\x02\n\x12WebhookSearchQuery\x12*\n\x05query\x18\x01 \x01(\x0b\x32\x1b.spaceone.api.core.v2.Query\x12\x12\n\nwebhook_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12M\n\x05state\x18\x04 \x01(\x0e\x32>.spaceone.api.alert_manager.v1.WebhookSearchQuery.WebhookState\x12\x12\n\naccess_key\x18\x05 \x01(\t\x12\x14\n\x0cworkspace_id\x18\x15 \x01(\t\x12\x12\n\nservice_id\x18\x16 \x01(\t\"A\n\x0cWebhookState\x12\x16\n\x12WEBHOOK_STATE_NONE\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\"H\n\x10WebhookStatQuery\x12\x34\n\x05query\x18\x01 \x01(\x0b\x32%.spaceone.api.core.v2.StatisticsQuery\"\xe4\x03\n\x0bWebhookInfo\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x46\n\x05state\x18\x03 \x01(\x0e\x32\x37.spaceone.api.alert_manager.v1.WebhookInfo.WebhookState\x12\x12\n\naccess_key\x18\x04 \x01(\t\x12\x13\n\x0bwebhook_url\x18\x05 \x01(\t\x12\x45\n\x0bplugin_info\x18\x06 \x01(\x0b\x32\x30.spaceone.api.alert_manager.v1.WebhookPluginInfo\x12@\n\x08requests\x18\x07 \x01(\x0b\x32..spaceone.api.alert_manager.v1.WebhookRequests\x12%\n\x04tags\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x11\n\tdomain_id\x18\x15 \x01(\t\x12\x14\n\x0cworkspace_id\x18\x16 \x01(\t\x12\x12\n\nservice_id\x18\x17 \x01(\t\x12\x12\n\ncreated_at\x18\x1f \x01(\t\"A\n\x0cWebhookState\x12\x16\n\x12WEBHOOK_STATE_NONE\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\"`\n\x0cWebhooksInfo\x12;\n\x07results\x18\x01 \x03(\x0b\x32*.spaceone.api.alert_manager.v1.WebhookInfo\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\x32\xb9\x0b\n\x07Webhook\x12\x96\x01\n\x06\x63reate\x12\x33.spaceone.api.alert_manager.v1.WebhookCreateRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/create:\x01*\x12\x96\x01\n\x06update\x12\x33.spaceone.api.alert_manager.v1.WebhookUpdateRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/update:\x01*\x12\xaa\x01\n\rupdate_plugin\x12\x39.spaceone.api.alert_manager.v1.WebhookUpdatePluginRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"2\x82\xd3\xe4\x93\x02,\"\'/alert-manager/v1/webhook/update-plugin:\x01*\x12\x8a\x01\n\rverify_plugin\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02,\"\'/alert-manager/v1/webhook/verify-plugin:\x01*\x12\x90\x01\n\x06\x65nable\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/enable:\x01*\x12\x92\x01\n\x07\x64isable\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\",\x82\xd3\xe4\x93\x02&\"!/alert-manager/v1/webhook/disable:\x01*\x12|\n\x06\x64\x65lete\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a\x16.google.protobuf.Empty\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/delete:\x01*\x12\x8a\x01\n\x03get\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"(\x82\xd3\xe4\x93\x02\"\"\x1d/alert-manager/v1/webhook/get:\x01*\x12\x91\x01\n\x04list\x12\x31.spaceone.api.alert_manager.v1.WebhookSearchQuery\x1a+.spaceone.api.alert_manager.v1.WebhooksInfo\")\x82\xd3\xe4\x93\x02#\"\x1e/alert-manager/v1/webhook/list:\x01*\x12{\n\x04stat\x12/.spaceone.api.alert_manager.v1.WebhookStatQuery\x1a\x17.google.protobuf.Struct\")\x82\xd3\xe4\x93\x02#\"\x1e/alert-manager/v1/webhook/stat:\x01*BDZBgithub.com/cloudforet-io/api/dist/go/spaceone/api/alert-manager/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+spaceone/api/alert_manager/v1/webhook.proto\x12\x1dspaceone.api.alert_manager.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a spaceone/api/core/v2/query.proto\"/\n\x0fWebhookRequests\x12\r\n\x05total\x18\x01 \x01(\x03\x12\r\n\x05\x65rror\x18\x02 \x01(\x03\"\xaa\x02\n\x11WebhookPluginInfo\x12\x11\n\tplugin_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12(\n\x07options\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12Y\n\x0cupgrade_mode\x18\x05 \x01(\x0e\x32\x43.spaceone.api.alert_manager.v1.WebhookPluginInfo.WebhookUpgradeMode\"A\n\x12WebhookUpgradeMode\x12\x15\n\x11UPGRADE_MODE_NONE\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\n\n\x06MANUAL\x10\x02\"\xa6\x01\n\x14WebhookCreateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x45\n\x0bplugin_info\x18\x02 \x01(\x0b\x32\x30.spaceone.api.alert_manager.v1.WebhookPluginInfo\x12%\n\x04tags\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x12\n\nservice_id\x18\x15 \x01(\t\"_\n\x14WebhookUpdateRequest\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12%\n\x04tags\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\"\x92\x02\n\x1aWebhookUpdatePluginRequest\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12(\n\x07options\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x62\n\x0cupgrade_mode\x18\x04 \x01(\x0e\x32L.spaceone.api.alert_manager.v1.WebhookUpdatePluginRequest.WebhookUpgradeMode\"A\n\x12WebhookUpgradeMode\x12\x15\n\x11UPGRADE_MODE_NONE\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\n\n\x06MANUAL\x10\x02\"$\n\x0eWebhookRequest\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\"\xb2\x02\n\x12WebhookSearchQuery\x12*\n\x05query\x18\x01 \x01(\x0b\x32\x1b.spaceone.api.core.v2.Query\x12\x12\n\nwebhook_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12M\n\x05state\x18\x04 \x01(\x0e\x32>.spaceone.api.alert_manager.v1.WebhookSearchQuery.WebhookState\x12\x12\n\naccess_key\x18\x05 \x01(\t\x12\x14\n\x0cworkspace_id\x18\x15 \x01(\t\x12\x12\n\nservice_id\x18\x16 \x01(\t\"A\n\x0cWebhookState\x12\x16\n\x12WEBHOOK_STATE_NONE\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\"H\n\x10WebhookStatQuery\x12\x34\n\x05query\x18\x01 \x01(\x0b\x32%.spaceone.api.core.v2.StatisticsQuery\"\xe4\x03\n\x0bWebhookInfo\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x46\n\x05state\x18\x03 \x01(\x0e\x32\x37.spaceone.api.alert_manager.v1.WebhookInfo.WebhookState\x12\x12\n\naccess_key\x18\x04 \x01(\t\x12\x13\n\x0bwebhook_url\x18\x05 \x01(\t\x12\x45\n\x0bplugin_info\x18\x06 \x01(\x0b\x32\x30.spaceone.api.alert_manager.v1.WebhookPluginInfo\x12@\n\x08requests\x18\x07 \x01(\x0b\x32..spaceone.api.alert_manager.v1.WebhookRequests\x12%\n\x04tags\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x11\n\tdomain_id\x18\x15 \x01(\t\x12\x14\n\x0cworkspace_id\x18\x16 \x01(\t\x12\x12\n\nservice_id\x18\x17 \x01(\t\x12\x12\n\ncreated_at\x18\x1f \x01(\t\"A\n\x0cWebhookState\x12\x16\n\x12WEBHOOK_STATE_NONE\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\"`\n\x0cWebhooksInfo\x12;\n\x07results\x18\x01 \x03(\x0b\x32*.spaceone.api.alert_manager.v1.WebhookInfo\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\x32\xac\n\n\x07Webhook\x12\x96\x01\n\x06\x63reate\x12\x33.spaceone.api.alert_manager.v1.WebhookCreateRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/create:\x01*\x12\x96\x01\n\x06update\x12\x33.spaceone.api.alert_manager.v1.WebhookUpdateRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/update:\x01*\x12\xaa\x01\n\rupdate_plugin\x12\x39.spaceone.api.alert_manager.v1.WebhookUpdatePluginRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"2\x82\xd3\xe4\x93\x02,\"\'/alert-manager/v1/webhook/update-plugin:\x01*\x12\x90\x01\n\x06\x65nable\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/enable:\x01*\x12\x92\x01\n\x07\x64isable\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\",\x82\xd3\xe4\x93\x02&\"!/alert-manager/v1/webhook/disable:\x01*\x12|\n\x06\x64\x65lete\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a\x16.google.protobuf.Empty\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/delete:\x01*\x12\x8a\x01\n\x03get\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"(\x82\xd3\xe4\x93\x02\"\"\x1d/alert-manager/v1/webhook/get:\x01*\x12\x91\x01\n\x04list\x12\x31.spaceone.api.alert_manager.v1.WebhookSearchQuery\x1a+.spaceone.api.alert_manager.v1.WebhooksInfo\")\x82\xd3\xe4\x93\x02#\"\x1e/alert-manager/v1/webhook/list:\x01*\x12{\n\x04stat\x12/.spaceone.api.alert_manager.v1.WebhookStatQuery\x1a\x17.google.protobuf.Struct\")\x82\xd3\xe4\x93\x02#\"\x1e/alert-manager/v1/webhook/stat:\x01*BDZBgithub.com/cloudforet-io/api/dist/go/spaceone/api/alert-manager/v1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -32,8 +32,6 @@ _globals['_WEBHOOK'].methods_by_name['update']._serialized_options = b'\202\323\344\223\002%\" /alert-manager/v1/webhook/update:\001*' _globals['_WEBHOOK'].methods_by_name['update_plugin']._loaded_options = None _globals['_WEBHOOK'].methods_by_name['update_plugin']._serialized_options = b'\202\323\344\223\002,\"\'/alert-manager/v1/webhook/update-plugin:\001*' - _globals['_WEBHOOK'].methods_by_name['verify_plugin']._loaded_options = None - _globals['_WEBHOOK'].methods_by_name['verify_plugin']._serialized_options = b'\202\323\344\223\002,\"\'/alert-manager/v1/webhook/verify-plugin:\001*' _globals['_WEBHOOK'].methods_by_name['enable']._loaded_options = None _globals['_WEBHOOK'].methods_by_name['enable']._serialized_options = b'\202\323\344\223\002%\" /alert-manager/v1/webhook/enable:\001*' _globals['_WEBHOOK'].methods_by_name['disable']._loaded_options = None @@ -75,5 +73,5 @@ _globals['_WEBHOOKSINFO']._serialized_start=2002 _globals['_WEBHOOKSINFO']._serialized_end=2098 _globals['_WEBHOOK']._serialized_start=2101 - _globals['_WEBHOOK']._serialized_end=3566 + _globals['_WEBHOOK']._serialized_end=3425 # @@protoc_insertion_point(module_scope) diff --git a/dist/python/build/lib/spaceone/api/alert_manager/v1/webhook_pb2_grpc.py b/dist/python/build/lib/spaceone/api/alert_manager/v1/webhook_pb2_grpc.py index cbd4e0c3f..0ae17f108 100644 --- a/dist/python/build/lib/spaceone/api/alert_manager/v1/webhook_pb2_grpc.py +++ b/dist/python/build/lib/spaceone/api/alert_manager/v1/webhook_pb2_grpc.py @@ -56,11 +56,6 @@ def __init__(self, channel): request_serializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookUpdatePluginRequest.SerializeToString, response_deserializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookInfo.FromString, _registered_method=True) - self.verify_plugin = channel.unary_unary( - '/spaceone.api.alert_manager.v1.Webhook/verify_plugin', - request_serializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - _registered_method=True) self.enable = channel.unary_unary( '/spaceone.api.alert_manager.v1.Webhook/enable', request_serializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookRequest.SerializeToString, @@ -114,12 +109,6 @@ def update_plugin(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def verify_plugin(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - def enable(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) @@ -174,11 +163,6 @@ def add_WebhookServicer_to_server(servicer, server): request_deserializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookUpdatePluginRequest.FromString, response_serializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookInfo.SerializeToString, ), - 'verify_plugin': grpc.unary_unary_rpc_method_handler( - servicer.verify_plugin, - request_deserializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), 'enable': grpc.unary_unary_rpc_method_handler( servicer.enable, request_deserializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookRequest.FromString, @@ -301,33 +285,6 @@ def update_plugin(request, metadata, _registered_method=True) - @staticmethod - def verify_plugin(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/spaceone.api.alert_manager.v1.Webhook/verify_plugin', - spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - @staticmethod def enable(request, target, diff --git a/dist/python/dist/spaceone_api-2.0.352.tar.gz b/dist/python/dist/spaceone_api-2.0.352.tar.gz deleted file mode 100644 index 217dc8c6c..000000000 Binary files a/dist/python/dist/spaceone_api-2.0.352.tar.gz and /dev/null differ diff --git a/dist/python/dist/spaceone_api-2.0.352-py3-none-any.whl b/dist/python/dist/spaceone_api-2.0.353-py3-none-any.whl similarity index 87% rename from dist/python/dist/spaceone_api-2.0.352-py3-none-any.whl rename to dist/python/dist/spaceone_api-2.0.353-py3-none-any.whl index fb939ef59..33d9bfdad 100644 Binary files a/dist/python/dist/spaceone_api-2.0.352-py3-none-any.whl and b/dist/python/dist/spaceone_api-2.0.353-py3-none-any.whl differ diff --git a/dist/python/dist/spaceone_api-2.0.353.tar.gz b/dist/python/dist/spaceone_api-2.0.353.tar.gz new file mode 100644 index 000000000..52ed4218b Binary files /dev/null and b/dist/python/dist/spaceone_api-2.0.353.tar.gz differ diff --git a/dist/python/spaceone/api/alert_manager/v1/webhook_pb2.py b/dist/python/spaceone/api/alert_manager/v1/webhook_pb2.py index 68807c58d..1cda696f1 100755 --- a/dist/python/spaceone/api/alert_manager/v1/webhook_pb2.py +++ b/dist/python/spaceone/api/alert_manager/v1/webhook_pb2.py @@ -18,7 +18,7 @@ from spaceone.api.core.v2 import query_pb2 as spaceone_dot_api_dot_core_dot_v2_dot_query__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+spaceone/api/alert_manager/v1/webhook.proto\x12\x1dspaceone.api.alert_manager.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a spaceone/api/core/v2/query.proto\"/\n\x0fWebhookRequests\x12\r\n\x05total\x18\x01 \x01(\x03\x12\r\n\x05\x65rror\x18\x02 \x01(\x03\"\xaa\x02\n\x11WebhookPluginInfo\x12\x11\n\tplugin_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12(\n\x07options\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12Y\n\x0cupgrade_mode\x18\x05 \x01(\x0e\x32\x43.spaceone.api.alert_manager.v1.WebhookPluginInfo.WebhookUpgradeMode\"A\n\x12WebhookUpgradeMode\x12\x15\n\x11UPGRADE_MODE_NONE\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\n\n\x06MANUAL\x10\x02\"\xa6\x01\n\x14WebhookCreateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x45\n\x0bplugin_info\x18\x02 \x01(\x0b\x32\x30.spaceone.api.alert_manager.v1.WebhookPluginInfo\x12%\n\x04tags\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x12\n\nservice_id\x18\x15 \x01(\t\"_\n\x14WebhookUpdateRequest\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12%\n\x04tags\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\"\x92\x02\n\x1aWebhookUpdatePluginRequest\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12(\n\x07options\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x62\n\x0cupgrade_mode\x18\x04 \x01(\x0e\x32L.spaceone.api.alert_manager.v1.WebhookUpdatePluginRequest.WebhookUpgradeMode\"A\n\x12WebhookUpgradeMode\x12\x15\n\x11UPGRADE_MODE_NONE\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\n\n\x06MANUAL\x10\x02\"$\n\x0eWebhookRequest\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\"\xb2\x02\n\x12WebhookSearchQuery\x12*\n\x05query\x18\x01 \x01(\x0b\x32\x1b.spaceone.api.core.v2.Query\x12\x12\n\nwebhook_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12M\n\x05state\x18\x04 \x01(\x0e\x32>.spaceone.api.alert_manager.v1.WebhookSearchQuery.WebhookState\x12\x12\n\naccess_key\x18\x05 \x01(\t\x12\x14\n\x0cworkspace_id\x18\x15 \x01(\t\x12\x12\n\nservice_id\x18\x16 \x01(\t\"A\n\x0cWebhookState\x12\x16\n\x12WEBHOOK_STATE_NONE\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\"H\n\x10WebhookStatQuery\x12\x34\n\x05query\x18\x01 \x01(\x0b\x32%.spaceone.api.core.v2.StatisticsQuery\"\xe4\x03\n\x0bWebhookInfo\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x46\n\x05state\x18\x03 \x01(\x0e\x32\x37.spaceone.api.alert_manager.v1.WebhookInfo.WebhookState\x12\x12\n\naccess_key\x18\x04 \x01(\t\x12\x13\n\x0bwebhook_url\x18\x05 \x01(\t\x12\x45\n\x0bplugin_info\x18\x06 \x01(\x0b\x32\x30.spaceone.api.alert_manager.v1.WebhookPluginInfo\x12@\n\x08requests\x18\x07 \x01(\x0b\x32..spaceone.api.alert_manager.v1.WebhookRequests\x12%\n\x04tags\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x11\n\tdomain_id\x18\x15 \x01(\t\x12\x14\n\x0cworkspace_id\x18\x16 \x01(\t\x12\x12\n\nservice_id\x18\x17 \x01(\t\x12\x12\n\ncreated_at\x18\x1f \x01(\t\"A\n\x0cWebhookState\x12\x16\n\x12WEBHOOK_STATE_NONE\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\"`\n\x0cWebhooksInfo\x12;\n\x07results\x18\x01 \x03(\x0b\x32*.spaceone.api.alert_manager.v1.WebhookInfo\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\x32\xb9\x0b\n\x07Webhook\x12\x96\x01\n\x06\x63reate\x12\x33.spaceone.api.alert_manager.v1.WebhookCreateRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/create:\x01*\x12\x96\x01\n\x06update\x12\x33.spaceone.api.alert_manager.v1.WebhookUpdateRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/update:\x01*\x12\xaa\x01\n\rupdate_plugin\x12\x39.spaceone.api.alert_manager.v1.WebhookUpdatePluginRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"2\x82\xd3\xe4\x93\x02,\"\'/alert-manager/v1/webhook/update-plugin:\x01*\x12\x8a\x01\n\rverify_plugin\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02,\"\'/alert-manager/v1/webhook/verify-plugin:\x01*\x12\x90\x01\n\x06\x65nable\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/enable:\x01*\x12\x92\x01\n\x07\x64isable\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\",\x82\xd3\xe4\x93\x02&\"!/alert-manager/v1/webhook/disable:\x01*\x12|\n\x06\x64\x65lete\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a\x16.google.protobuf.Empty\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/delete:\x01*\x12\x8a\x01\n\x03get\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"(\x82\xd3\xe4\x93\x02\"\"\x1d/alert-manager/v1/webhook/get:\x01*\x12\x91\x01\n\x04list\x12\x31.spaceone.api.alert_manager.v1.WebhookSearchQuery\x1a+.spaceone.api.alert_manager.v1.WebhooksInfo\")\x82\xd3\xe4\x93\x02#\"\x1e/alert-manager/v1/webhook/list:\x01*\x12{\n\x04stat\x12/.spaceone.api.alert_manager.v1.WebhookStatQuery\x1a\x17.google.protobuf.Struct\")\x82\xd3\xe4\x93\x02#\"\x1e/alert-manager/v1/webhook/stat:\x01*BDZBgithub.com/cloudforet-io/api/dist/go/spaceone/api/alert-manager/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+spaceone/api/alert_manager/v1/webhook.proto\x12\x1dspaceone.api.alert_manager.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a spaceone/api/core/v2/query.proto\"/\n\x0fWebhookRequests\x12\r\n\x05total\x18\x01 \x01(\x03\x12\r\n\x05\x65rror\x18\x02 \x01(\x03\"\xaa\x02\n\x11WebhookPluginInfo\x12\x11\n\tplugin_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12(\n\x07options\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12)\n\x08metadata\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12Y\n\x0cupgrade_mode\x18\x05 \x01(\x0e\x32\x43.spaceone.api.alert_manager.v1.WebhookPluginInfo.WebhookUpgradeMode\"A\n\x12WebhookUpgradeMode\x12\x15\n\x11UPGRADE_MODE_NONE\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\n\n\x06MANUAL\x10\x02\"\xa6\x01\n\x14WebhookCreateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x45\n\x0bplugin_info\x18\x02 \x01(\x0b\x32\x30.spaceone.api.alert_manager.v1.WebhookPluginInfo\x12%\n\x04tags\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x12\n\nservice_id\x18\x15 \x01(\t\"_\n\x14WebhookUpdateRequest\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12%\n\x04tags\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\"\x92\x02\n\x1aWebhookUpdatePluginRequest\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12(\n\x07options\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x62\n\x0cupgrade_mode\x18\x04 \x01(\x0e\x32L.spaceone.api.alert_manager.v1.WebhookUpdatePluginRequest.WebhookUpgradeMode\"A\n\x12WebhookUpgradeMode\x12\x15\n\x11UPGRADE_MODE_NONE\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\n\n\x06MANUAL\x10\x02\"$\n\x0eWebhookRequest\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\"\xb2\x02\n\x12WebhookSearchQuery\x12*\n\x05query\x18\x01 \x01(\x0b\x32\x1b.spaceone.api.core.v2.Query\x12\x12\n\nwebhook_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12M\n\x05state\x18\x04 \x01(\x0e\x32>.spaceone.api.alert_manager.v1.WebhookSearchQuery.WebhookState\x12\x12\n\naccess_key\x18\x05 \x01(\t\x12\x14\n\x0cworkspace_id\x18\x15 \x01(\t\x12\x12\n\nservice_id\x18\x16 \x01(\t\"A\n\x0cWebhookState\x12\x16\n\x12WEBHOOK_STATE_NONE\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\"H\n\x10WebhookStatQuery\x12\x34\n\x05query\x18\x01 \x01(\x0b\x32%.spaceone.api.core.v2.StatisticsQuery\"\xe4\x03\n\x0bWebhookInfo\x12\x12\n\nwebhook_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x46\n\x05state\x18\x03 \x01(\x0e\x32\x37.spaceone.api.alert_manager.v1.WebhookInfo.WebhookState\x12\x12\n\naccess_key\x18\x04 \x01(\t\x12\x13\n\x0bwebhook_url\x18\x05 \x01(\t\x12\x45\n\x0bplugin_info\x18\x06 \x01(\x0b\x32\x30.spaceone.api.alert_manager.v1.WebhookPluginInfo\x12@\n\x08requests\x18\x07 \x01(\x0b\x32..spaceone.api.alert_manager.v1.WebhookRequests\x12%\n\x04tags\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x11\n\tdomain_id\x18\x15 \x01(\t\x12\x14\n\x0cworkspace_id\x18\x16 \x01(\t\x12\x12\n\nservice_id\x18\x17 \x01(\t\x12\x12\n\ncreated_at\x18\x1f \x01(\t\"A\n\x0cWebhookState\x12\x16\n\x12WEBHOOK_STATE_NONE\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\"`\n\x0cWebhooksInfo\x12;\n\x07results\x18\x01 \x03(\x0b\x32*.spaceone.api.alert_manager.v1.WebhookInfo\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\x32\xac\n\n\x07Webhook\x12\x96\x01\n\x06\x63reate\x12\x33.spaceone.api.alert_manager.v1.WebhookCreateRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/create:\x01*\x12\x96\x01\n\x06update\x12\x33.spaceone.api.alert_manager.v1.WebhookUpdateRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/update:\x01*\x12\xaa\x01\n\rupdate_plugin\x12\x39.spaceone.api.alert_manager.v1.WebhookUpdatePluginRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"2\x82\xd3\xe4\x93\x02,\"\'/alert-manager/v1/webhook/update-plugin:\x01*\x12\x90\x01\n\x06\x65nable\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/enable:\x01*\x12\x92\x01\n\x07\x64isable\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\",\x82\xd3\xe4\x93\x02&\"!/alert-manager/v1/webhook/disable:\x01*\x12|\n\x06\x64\x65lete\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a\x16.google.protobuf.Empty\"+\x82\xd3\xe4\x93\x02%\" /alert-manager/v1/webhook/delete:\x01*\x12\x8a\x01\n\x03get\x12-.spaceone.api.alert_manager.v1.WebhookRequest\x1a*.spaceone.api.alert_manager.v1.WebhookInfo\"(\x82\xd3\xe4\x93\x02\"\"\x1d/alert-manager/v1/webhook/get:\x01*\x12\x91\x01\n\x04list\x12\x31.spaceone.api.alert_manager.v1.WebhookSearchQuery\x1a+.spaceone.api.alert_manager.v1.WebhooksInfo\")\x82\xd3\xe4\x93\x02#\"\x1e/alert-manager/v1/webhook/list:\x01*\x12{\n\x04stat\x12/.spaceone.api.alert_manager.v1.WebhookStatQuery\x1a\x17.google.protobuf.Struct\")\x82\xd3\xe4\x93\x02#\"\x1e/alert-manager/v1/webhook/stat:\x01*BDZBgithub.com/cloudforet-io/api/dist/go/spaceone/api/alert-manager/v1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -32,8 +32,6 @@ _globals['_WEBHOOK'].methods_by_name['update']._serialized_options = b'\202\323\344\223\002%\" /alert-manager/v1/webhook/update:\001*' _globals['_WEBHOOK'].methods_by_name['update_plugin']._loaded_options = None _globals['_WEBHOOK'].methods_by_name['update_plugin']._serialized_options = b'\202\323\344\223\002,\"\'/alert-manager/v1/webhook/update-plugin:\001*' - _globals['_WEBHOOK'].methods_by_name['verify_plugin']._loaded_options = None - _globals['_WEBHOOK'].methods_by_name['verify_plugin']._serialized_options = b'\202\323\344\223\002,\"\'/alert-manager/v1/webhook/verify-plugin:\001*' _globals['_WEBHOOK'].methods_by_name['enable']._loaded_options = None _globals['_WEBHOOK'].methods_by_name['enable']._serialized_options = b'\202\323\344\223\002%\" /alert-manager/v1/webhook/enable:\001*' _globals['_WEBHOOK'].methods_by_name['disable']._loaded_options = None @@ -75,5 +73,5 @@ _globals['_WEBHOOKSINFO']._serialized_start=2002 _globals['_WEBHOOKSINFO']._serialized_end=2098 _globals['_WEBHOOK']._serialized_start=2101 - _globals['_WEBHOOK']._serialized_end=3566 + _globals['_WEBHOOK']._serialized_end=3425 # @@protoc_insertion_point(module_scope) diff --git a/dist/python/spaceone/api/alert_manager/v1/webhook_pb2_grpc.py b/dist/python/spaceone/api/alert_manager/v1/webhook_pb2_grpc.py index cbd4e0c3f..0ae17f108 100755 --- a/dist/python/spaceone/api/alert_manager/v1/webhook_pb2_grpc.py +++ b/dist/python/spaceone/api/alert_manager/v1/webhook_pb2_grpc.py @@ -56,11 +56,6 @@ def __init__(self, channel): request_serializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookUpdatePluginRequest.SerializeToString, response_deserializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookInfo.FromString, _registered_method=True) - self.verify_plugin = channel.unary_unary( - '/spaceone.api.alert_manager.v1.Webhook/verify_plugin', - request_serializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookRequest.SerializeToString, - response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - _registered_method=True) self.enable = channel.unary_unary( '/spaceone.api.alert_manager.v1.Webhook/enable', request_serializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookRequest.SerializeToString, @@ -114,12 +109,6 @@ def update_plugin(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def verify_plugin(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - def enable(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) @@ -174,11 +163,6 @@ def add_WebhookServicer_to_server(servicer, server): request_deserializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookUpdatePluginRequest.FromString, response_serializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookInfo.SerializeToString, ), - 'verify_plugin': grpc.unary_unary_rpc_method_handler( - servicer.verify_plugin, - request_deserializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookRequest.FromString, - response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, - ), 'enable': grpc.unary_unary_rpc_method_handler( servicer.enable, request_deserializer=spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookRequest.FromString, @@ -301,33 +285,6 @@ def update_plugin(request, metadata, _registered_method=True) - @staticmethod - def verify_plugin(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/spaceone.api.alert_manager.v1.Webhook/verify_plugin', - spaceone_dot_api_dot_alert__manager_dot_v1_dot_webhook__pb2.WebhookRequest.SerializeToString, - google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - @staticmethod def enable(request, target, diff --git a/dist/python/spaceone_api.egg-info/PKG-INFO b/dist/python/spaceone_api.egg-info/PKG-INFO index 4fe64479f..e9932bcf1 100644 --- a/dist/python/spaceone_api.egg-info/PKG-INFO +++ b/dist/python/spaceone_api.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: spaceone-api -Version: 2.0.352 +Version: 2.0.353 Summary: Coreforet API Protobuf Home-page: https://cloudforet.io/ Author: MEGAZONE Cloud Corp.