diff --git a/dist/gateway/spaceone/api/mzc-service-api/v1/contract.pb.gw.go b/dist/gateway/spaceone/api/mzc-service-api/v1/contract.pb.gw.go new file mode 100755 index 000000000..87096015e --- /dev/null +++ b/dist/gateway/spaceone/api/mzc-service-api/v1/contract.pb.gw.go @@ -0,0 +1,550 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: spaceone/api/mzc_service_api/v1/contract.proto + +/* +Package v1 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package v1 + +import ( + "context" + "io" + "net/http" + + extV1 "github.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_Contract_Create_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.ContractClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.ContractCreateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Create(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Contract_Create_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.ContractServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.ContractCreateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Create(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Contract_Update_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.ContractClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.ContractUpdateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Update(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Contract_Update_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.ContractServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.ContractUpdateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Update(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Contract_Terminate_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.ContractClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.ContractRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Terminate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Contract_Terminate_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.ContractServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.ContractRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Terminate(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Contract_Get_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.ContractClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.ContractRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Get(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Contract_Get_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.ContractServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.ContractRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Get(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Contract_List_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.ContractClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.ContractSearchQuery + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.List(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Contract_List_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.ContractServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.ContractSearchQuery + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.List(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Contract_Stat_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.ContractClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.ContractStatQuery + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Stat(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Contract_Stat_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.ContractServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.ContractStatQuery + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Stat(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterContractHandlerServer registers the http handlers for service Contract to "mux". +// UnaryRPC :call ContractServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterContractHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. +func RegisterContractHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.ContractServer) error { + + mux.Handle("POST", pattern_Contract_Create_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Contract/Create", runtime.WithHTTPPathPattern("/mzc-service-api/v1/contract/create")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Contract_Create_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_Contract_Create_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Contract_Update_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Contract/Update", runtime.WithHTTPPathPattern("/mzc-service-api/v1/contract/update")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Contract_Update_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_Contract_Update_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Contract_Terminate_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Contract/Terminate", runtime.WithHTTPPathPattern("/mzc-service-api/v1/contract/terminate")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Contract_Terminate_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_Contract_Terminate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Contract_Get_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Contract/Get", runtime.WithHTTPPathPattern("/mzc-service-api/v1/contract/get")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Contract_Get_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_Contract_Get_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Contract_List_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Contract/List", runtime.WithHTTPPathPattern("/mzc-service-api/v1/contract/list")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Contract_List_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_Contract_List_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Contract_Stat_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Contract/Stat", runtime.WithHTTPPathPattern("/mzc-service-api/v1/contract/stat")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Contract_Stat_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_Contract_Stat_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterContractHandlerFromEndpoint is same as RegisterContractHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterContractHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.NewClient(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterContractHandler(ctx, mux, conn) +} + +// RegisterContractHandler registers the http handlers for service Contract to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterContractHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterContractHandlerClient(ctx, mux, extV1.NewContractClient(conn)) +} + +// RegisterContractHandlerClient registers the http handlers for service Contract +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extV1.ContractClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extV1.ContractClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "extV1.ContractClient" to call the correct interceptors. This client ignores the HTTP middlewares. +func RegisterContractHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.ContractClient) error { + + mux.Handle("POST", pattern_Contract_Create_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Contract/Create", runtime.WithHTTPPathPattern("/mzc-service-api/v1/contract/create")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Contract_Create_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Contract_Create_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Contract_Update_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Contract/Update", runtime.WithHTTPPathPattern("/mzc-service-api/v1/contract/update")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Contract_Update_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Contract_Update_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Contract_Terminate_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Contract/Terminate", runtime.WithHTTPPathPattern("/mzc-service-api/v1/contract/terminate")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Contract_Terminate_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Contract_Terminate_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Contract_Get_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Contract/Get", runtime.WithHTTPPathPattern("/mzc-service-api/v1/contract/get")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Contract_Get_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Contract_Get_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Contract_List_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Contract/List", runtime.WithHTTPPathPattern("/mzc-service-api/v1/contract/list")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Contract_List_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Contract_List_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Contract_Stat_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Contract/Stat", runtime.WithHTTPPathPattern("/mzc-service-api/v1/contract/stat")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Contract_Stat_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Contract_Stat_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Contract_Create_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "contract", "create"}, "")) + + pattern_Contract_Update_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "contract", "update"}, "")) + + pattern_Contract_Terminate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "contract", "terminate"}, "")) + + pattern_Contract_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "contract", "get"}, "")) + + pattern_Contract_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "contract", "list"}, "")) + + pattern_Contract_Stat_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "contract", "stat"}, "")) +) + +var ( + forward_Contract_Create_0 = runtime.ForwardResponseMessage + + forward_Contract_Update_0 = runtime.ForwardResponseMessage + + forward_Contract_Terminate_0 = runtime.ForwardResponseMessage + + forward_Contract_Get_0 = runtime.ForwardResponseMessage + + forward_Contract_List_0 = runtime.ForwardResponseMessage + + forward_Contract_Stat_0 = runtime.ForwardResponseMessage +) diff --git a/dist/gateway/spaceone/api/mzc-service-api/v1/offering.pb.gw.go b/dist/gateway/spaceone/api/mzc-service-api/v1/offering.pb.gw.go new file mode 100755 index 000000000..348bcef98 --- /dev/null +++ b/dist/gateway/spaceone/api/mzc-service-api/v1/offering.pb.gw.go @@ -0,0 +1,550 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: spaceone/api/mzc_service_api/v1/offering.proto + +/* +Package v1 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package v1 + +import ( + "context" + "io" + "net/http" + + extV1 "github.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_Offering_Create_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OfferingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OfferingCreateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Create(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Offering_Create_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OfferingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OfferingCreateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Create(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Offering_Update_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OfferingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OfferingUpdateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Update(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Offering_Update_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OfferingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OfferingUpdateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Update(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Offering_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OfferingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OfferingRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Delete(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Offering_Delete_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OfferingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OfferingRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Delete(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Offering_Get_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OfferingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OfferingRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Get(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Offering_Get_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OfferingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OfferingRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Get(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Offering_List_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OfferingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OfferingSearchQuery + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.List(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Offering_List_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OfferingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OfferingSearchQuery + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.List(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Offering_Stat_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OfferingClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OfferingStatQuery + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Stat(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Offering_Stat_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OfferingServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OfferingStatQuery + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Stat(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterOfferingHandlerServer registers the http handlers for service Offering to "mux". +// UnaryRPC :call OfferingServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterOfferingHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. +func RegisterOfferingHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.OfferingServer) error { + + mux.Handle("POST", pattern_Offering_Create_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Offering/Create", runtime.WithHTTPPathPattern("/mzc-service-api/v1/offering/create")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Offering_Create_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_Offering_Create_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Offering_Update_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Offering/Update", runtime.WithHTTPPathPattern("/mzc-service-api/v1/offering/update")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Offering_Update_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_Offering_Update_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Offering_Delete_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Offering/Delete", runtime.WithHTTPPathPattern("/mzc-service-api/v1/offering/delete")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Offering_Delete_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_Offering_Delete_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Offering_Get_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Offering/Get", runtime.WithHTTPPathPattern("/mzc-service-api/v1/offering/get")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Offering_Get_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_Offering_Get_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Offering_List_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Offering/List", runtime.WithHTTPPathPattern("/mzc-service-api/v1/offering/list")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Offering_List_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_Offering_List_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Offering_Stat_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Offering/Stat", runtime.WithHTTPPathPattern("/mzc-service-api/v1/offering/stat")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Offering_Stat_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_Offering_Stat_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterOfferingHandlerFromEndpoint is same as RegisterOfferingHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterOfferingHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.NewClient(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterOfferingHandler(ctx, mux, conn) +} + +// RegisterOfferingHandler registers the http handlers for service Offering to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterOfferingHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterOfferingHandlerClient(ctx, mux, extV1.NewOfferingClient(conn)) +} + +// RegisterOfferingHandlerClient registers the http handlers for service Offering +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extV1.OfferingClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extV1.OfferingClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "extV1.OfferingClient" to call the correct interceptors. This client ignores the HTTP middlewares. +func RegisterOfferingHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.OfferingClient) error { + + mux.Handle("POST", pattern_Offering_Create_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Offering/Create", runtime.WithHTTPPathPattern("/mzc-service-api/v1/offering/create")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Offering_Create_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Offering_Create_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Offering_Update_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Offering/Update", runtime.WithHTTPPathPattern("/mzc-service-api/v1/offering/update")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Offering_Update_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Offering_Update_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Offering_Delete_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Offering/Delete", runtime.WithHTTPPathPattern("/mzc-service-api/v1/offering/delete")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Offering_Delete_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Offering_Delete_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Offering_Get_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Offering/Get", runtime.WithHTTPPathPattern("/mzc-service-api/v1/offering/get")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Offering_Get_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Offering_Get_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Offering_List_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Offering/List", runtime.WithHTTPPathPattern("/mzc-service-api/v1/offering/list")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Offering_List_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Offering_List_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Offering_Stat_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Offering/Stat", runtime.WithHTTPPathPattern("/mzc-service-api/v1/offering/stat")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Offering_Stat_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Offering_Stat_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Offering_Create_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "offering", "create"}, "")) + + pattern_Offering_Update_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "offering", "update"}, "")) + + pattern_Offering_Delete_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "offering", "delete"}, "")) + + pattern_Offering_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "offering", "get"}, "")) + + pattern_Offering_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "offering", "list"}, "")) + + pattern_Offering_Stat_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "offering", "stat"}, "")) +) + +var ( + forward_Offering_Create_0 = runtime.ForwardResponseMessage + + forward_Offering_Update_0 = runtime.ForwardResponseMessage + + forward_Offering_Delete_0 = runtime.ForwardResponseMessage + + forward_Offering_Get_0 = runtime.ForwardResponseMessage + + forward_Offering_List_0 = runtime.ForwardResponseMessage + + forward_Offering_Stat_0 = runtime.ForwardResponseMessage +) diff --git a/dist/gateway/spaceone/api/mzc-service-api/v1/organization.pb.gw.go b/dist/gateway/spaceone/api/mzc-service-api/v1/organization.pb.gw.go new file mode 100755 index 000000000..f0876ecf0 --- /dev/null +++ b/dist/gateway/spaceone/api/mzc-service-api/v1/organization.pb.gw.go @@ -0,0 +1,704 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: spaceone/api/mzc_service_api/v1/organization.proto + +/* +Package v1 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package v1 + +import ( + "context" + "io" + "net/http" + + extV1 "github.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1" + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_Organization_Create_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OrganizationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationCreateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Create(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Organization_Create_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OrganizationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationCreateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Create(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Organization_Update_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OrganizationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationUpdateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Update(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Organization_Update_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OrganizationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationUpdateRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Update(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Organization_Enable_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OrganizationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Enable(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Organization_Enable_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OrganizationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Enable(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Organization_Disable_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OrganizationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Disable(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Organization_Disable_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OrganizationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Disable(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Organization_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OrganizationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Delete(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Organization_Delete_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OrganizationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Delete(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Organization_Get_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OrganizationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Get(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Organization_Get_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OrganizationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationRequest + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Get(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Organization_List_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OrganizationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationSearchQuery + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.List(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Organization_List_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OrganizationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationSearchQuery + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.List(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Organization_Stat_0(ctx context.Context, marshaler runtime.Marshaler, client extV1.OrganizationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationStatQuery + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.Stat(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Organization_Stat_0(ctx context.Context, marshaler runtime.Marshaler, server extV1.OrganizationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq extV1.OrganizationStatQuery + var metadata runtime.ServerMetadata + + if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.Stat(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterOrganizationHandlerServer registers the http handlers for service Organization to "mux". +// UnaryRPC :call OrganizationServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterOrganizationHandlerFromEndpoint instead. +// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. +func RegisterOrganizationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.OrganizationServer) error { + + mux.Handle("POST", pattern_Organization_Create_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Create", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/create")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Organization_Create_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_Organization_Create_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_Update_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Update", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/update")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Organization_Update_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_Organization_Update_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_Enable_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Enable", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/enable")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Organization_Enable_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_Organization_Enable_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_Disable_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Disable", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/disable")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Organization_Disable_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_Organization_Disable_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_Delete_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Delete", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/delete")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Organization_Delete_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_Organization_Delete_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_Get_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Get", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/get")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Organization_Get_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_Organization_Get_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_List_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/List", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/list")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Organization_List_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_Organization_List_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_Stat_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateIncomingContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Stat", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/stat")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Organization_Stat_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_Organization_Stat_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterOrganizationHandlerFromEndpoint is same as RegisterOrganizationHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterOrganizationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.NewClient(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterOrganizationHandler(ctx, mux, conn) +} + +// RegisterOrganizationHandler registers the http handlers for service Organization to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterOrganizationHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterOrganizationHandlerClient(ctx, mux, extV1.NewOrganizationClient(conn)) +} + +// RegisterOrganizationHandlerClient registers the http handlers for service Organization +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extV1.OrganizationClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extV1.OrganizationClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "extV1.OrganizationClient" to call the correct interceptors. This client ignores the HTTP middlewares. +func RegisterOrganizationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.OrganizationClient) error { + + mux.Handle("POST", pattern_Organization_Create_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Create", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/create")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Organization_Create_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Organization_Create_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_Update_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Update", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/update")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Organization_Update_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Organization_Update_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_Enable_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Enable", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/enable")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Organization_Enable_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Organization_Enable_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_Disable_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Disable", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/disable")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Organization_Disable_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Organization_Disable_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_Delete_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Delete", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/delete")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Organization_Delete_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Organization_Delete_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_Get_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Get", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/get")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Organization_Get_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Organization_Get_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_List_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/List", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/list")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Organization_List_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Organization_List_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Organization_Stat_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) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spaceone.api.mzc_service_api.v1.Organization/Stat", runtime.WithHTTPPathPattern("/mzc-service-api/v1/organization/stat")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Organization_Stat_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_Organization_Stat_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Organization_Create_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "organization", "create"}, "")) + + pattern_Organization_Update_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "organization", "update"}, "")) + + pattern_Organization_Enable_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "organization", "enable"}, "")) + + pattern_Organization_Disable_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "organization", "disable"}, "")) + + pattern_Organization_Delete_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "organization", "delete"}, "")) + + pattern_Organization_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "organization", "get"}, "")) + + pattern_Organization_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "organization", "list"}, "")) + + pattern_Organization_Stat_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"mzc-service-api", "v1", "organization", "stat"}, "")) +) + +var ( + forward_Organization_Create_0 = runtime.ForwardResponseMessage + + forward_Organization_Update_0 = runtime.ForwardResponseMessage + + forward_Organization_Enable_0 = runtime.ForwardResponseMessage + + forward_Organization_Disable_0 = runtime.ForwardResponseMessage + + forward_Organization_Delete_0 = runtime.ForwardResponseMessage + + forward_Organization_Get_0 = runtime.ForwardResponseMessage + + forward_Organization_List_0 = runtime.ForwardResponseMessage + + forward_Organization_Stat_0 = runtime.ForwardResponseMessage +) diff --git a/dist/go.mod b/dist/go.mod index 6402ee5de..c735d3468 100755 --- a/dist/go.mod +++ b/dist/go.mod @@ -6,7 +6,7 @@ replace github.com/cloudforet-io/api => ./ require ( github.com/golang/protobuf v1.5.4 - github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 + github.com/grpc-ecosystem/grpc-gateway/v2 v2.23.0 google.golang.org/genproto/googleapis/api v0.0.0-20241021214115-324edc3d5d38 google.golang.org/grpc v1.67.1 google.golang.org/protobuf v1.35.1 @@ -15,6 +15,6 @@ require ( require ( golang.org/x/net v0.28.0 // indirect golang.org/x/sys v0.24.0 // indirect - golang.org/x/text v0.17.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect + golang.org/x/text v0.19.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38 // indirect ) diff --git a/dist/go.sum b/dist/go.sum index de53484ac..f6d51f274 100755 --- a/dist/go.sum +++ b/dist/go.sum @@ -2,18 +2,18 @@ github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 h1:asbCHRVmodnJTuQ3qamDwqVOIjwqUPTYmYuemVOx+Ys= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0/go.mod h1:ggCgvZ2r7uOoQjOyu2Y1NhHmEPPzzuhWgcza5M1Ji1I= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.23.0 h1:ad0vkEBuk23VJzZR9nkLVG0YAoN9coASF1GusYX6AlU= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.23.0/go.mod h1:igFoXX2ELCW06bol23DWPB5BEWfZISOzSP5K2sbLea0= golang.org/x/net v0.28.0 h1:a9JDOJc5GMUJ0+UDqmLT86WiEy7iWyIhz8gz8E4e5hE= golang.org/x/net v0.28.0/go.mod h1:yqtgsTWOOnlGLG9GFRrK3++bGOUEkNBoHZc8MEDWPNg= golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= -golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM= +golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= google.golang.org/genproto/googleapis/api v0.0.0-20241021214115-324edc3d5d38 h1:2oV8dfuIkM1Ti7DwXc0BJfnwr9csz4TDXI9EmiI+Rbw= google.golang.org/genproto/googleapis/api v0.0.0-20241021214115-324edc3d5d38/go.mod h1:vuAjtvlwkDKF6L1GQ0SokiRLCGFfeBUXWr/aFFkHACc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 h1:X58yt85/IXCx0Y3ZwN6sEIKZzQtDEYaBWrDvErdXrRE= -google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38 h1:zciRKQ4kBpFgpfC5QQCVtnnNAcLIqweL7plyZRQHVpI= +google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI= google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E= google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA= google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA= diff --git a/dist/go/spaceone/api/mzc-service-api/v1/contract.pb.go b/dist/go/spaceone/api/mzc-service-api/v1/contract.pb.go new file mode 100755 index 000000000..cae0fcfa0 --- /dev/null +++ b/dist/go/spaceone/api/mzc-service-api/v1/contract.pb.go @@ -0,0 +1,1027 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.1 +// protoc v3.6.1 +// source: spaceone/api/mzc_service_api/v1/contract.proto + +package v1 + +import ( + v2 "github.com/cloudforet-io/api/dist/go/spaceone/api/core/v2" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ContractStatus int32 + +const ( + ContractStatus_CONTRACT_STATUS_NONE ContractStatus = 0 + ContractStatus_ACTIVE ContractStatus = 1 + ContractStatus_TERMINATED ContractStatus = 2 + ContractStatus_EXPIRED ContractStatus = 3 +) + +// Enum value maps for ContractStatus. +var ( + ContractStatus_name = map[int32]string{ + 0: "CONTRACT_STATUS_NONE", + 1: "ACTIVE", + 2: "TERMINATED", + 3: "EXPIRED", + } + ContractStatus_value = map[string]int32{ + "CONTRACT_STATUS_NONE": 0, + "ACTIVE": 1, + "TERMINATED": 2, + "EXPIRED": 3, + } +) + +func (x ContractStatus) Enum() *ContractStatus { + p := new(ContractStatus) + *p = x + return p +} + +func (x ContractStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ContractStatus) Descriptor() protoreflect.EnumDescriptor { + return file_spaceone_api_mzc_service_api_v1_contract_proto_enumTypes[0].Descriptor() +} + +func (ContractStatus) Type() protoreflect.EnumType { + return &file_spaceone_api_mzc_service_api_v1_contract_proto_enumTypes[0] +} + +func (x ContractStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ContractStatus.Descriptor instead. +func (ContractStatus) EnumDescriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescGZIP(), []int{0} +} + +type ContractRenewalType int32 + +const ( + ContractRenewalType_CONTRACT_RENEWAL_TYPE_NONE ContractRenewalType = 0 + ContractRenewalType_AUTO ContractRenewalType = 1 + ContractRenewalType_MANUAL ContractRenewalType = 2 + ContractRenewalType_NOT_RENEW ContractRenewalType = 3 +) + +// Enum value maps for ContractRenewalType. +var ( + ContractRenewalType_name = map[int32]string{ + 0: "CONTRACT_RENEWAL_TYPE_NONE", + 1: "AUTO", + 2: "MANUAL", + 3: "NOT_RENEW", + } + ContractRenewalType_value = map[string]int32{ + "CONTRACT_RENEWAL_TYPE_NONE": 0, + "AUTO": 1, + "MANUAL": 2, + "NOT_RENEW": 3, + } +) + +func (x ContractRenewalType) Enum() *ContractRenewalType { + p := new(ContractRenewalType) + *p = x + return p +} + +func (x ContractRenewalType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ContractRenewalType) Descriptor() protoreflect.EnumDescriptor { + return file_spaceone_api_mzc_service_api_v1_contract_proto_enumTypes[1].Descriptor() +} + +func (ContractRenewalType) Type() protoreflect.EnumType { + return &file_spaceone_api_mzc_service_api_v1_contract_proto_enumTypes[1] +} + +func (x ContractRenewalType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ContractRenewalType.Descriptor instead. +func (ContractRenewalType) EnumDescriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescGZIP(), []int{1} +} + +type ContractCreateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` + OfferingId string `protobuf:"bytes,2,opt,name=offering_id,json=offeringId,proto3" json:"offering_id,omitempty"` + // +optional + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // +optional + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + StartDate string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` + EndDate string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + // +optional + SignedDate string `protobuf:"bytes,7,opt,name=signed_date,json=signedDate,proto3" json:"signed_date,omitempty"` + // +optional + RenewalType ContractRenewalType `protobuf:"varint,8,opt,name=renewal_type,json=renewalType,proto3,enum=spaceone.api.mzc_service_api.v1.ContractRenewalType" json:"renewal_type,omitempty"` + // +optional + Tags *_struct.Struct `protobuf:"bytes,15,opt,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *ContractCreateRequest) Reset() { + *x = ContractCreateRequest{} + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractCreateRequest) ProtoMessage() {} + +func (x *ContractCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContractCreateRequest.ProtoReflect.Descriptor instead. +func (*ContractCreateRequest) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescGZIP(), []int{0} +} + +func (x *ContractCreateRequest) GetOrgId() string { + if x != nil { + return x.OrgId + } + return "" +} + +func (x *ContractCreateRequest) GetOfferingId() string { + if x != nil { + return x.OfferingId + } + return "" +} + +func (x *ContractCreateRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ContractCreateRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *ContractCreateRequest) GetStartDate() string { + if x != nil { + return x.StartDate + } + return "" +} + +func (x *ContractCreateRequest) GetEndDate() string { + if x != nil { + return x.EndDate + } + return "" +} + +func (x *ContractCreateRequest) GetSignedDate() string { + if x != nil { + return x.SignedDate + } + return "" +} + +func (x *ContractCreateRequest) GetRenewalType() ContractRenewalType { + if x != nil { + return x.RenewalType + } + return ContractRenewalType_CONTRACT_RENEWAL_TYPE_NONE +} + +func (x *ContractCreateRequest) GetTags() *_struct.Struct { + if x != nil { + return x.Tags + } + return nil +} + +type ContractUpdateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // +optional + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // +optional + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // +optional + StartDate string `protobuf:"bytes,4,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` + // +optional + EndDate string `protobuf:"bytes,5,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + // +optional + SignedDate string `protobuf:"bytes,6,opt,name=signed_date,json=signedDate,proto3" json:"signed_date,omitempty"` + // +optional + RenewalType ContractRenewalType `protobuf:"varint,7,opt,name=renewal_type,json=renewalType,proto3,enum=spaceone.api.mzc_service_api.v1.ContractRenewalType" json:"renewal_type,omitempty"` + // +optional + Tags *_struct.Struct `protobuf:"bytes,15,opt,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *ContractUpdateRequest) Reset() { + *x = ContractUpdateRequest{} + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractUpdateRequest) ProtoMessage() {} + +func (x *ContractUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContractUpdateRequest.ProtoReflect.Descriptor instead. +func (*ContractUpdateRequest) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescGZIP(), []int{1} +} + +func (x *ContractUpdateRequest) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" +} + +func (x *ContractUpdateRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ContractUpdateRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *ContractUpdateRequest) GetStartDate() string { + if x != nil { + return x.StartDate + } + return "" +} + +func (x *ContractUpdateRequest) GetEndDate() string { + if x != nil { + return x.EndDate + } + return "" +} + +func (x *ContractUpdateRequest) GetSignedDate() string { + if x != nil { + return x.SignedDate + } + return "" +} + +func (x *ContractUpdateRequest) GetRenewalType() ContractRenewalType { + if x != nil { + return x.RenewalType + } + return ContractRenewalType_CONTRACT_RENEWAL_TYPE_NONE +} + +func (x *ContractUpdateRequest) GetTags() *_struct.Struct { + if x != nil { + return x.Tags + } + return nil +} + +type ContractRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` +} + +func (x *ContractRequest) Reset() { + *x = ContractRequest{} + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractRequest) ProtoMessage() {} + +func (x *ContractRequest) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContractRequest.ProtoReflect.Descriptor instead. +func (*ContractRequest) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescGZIP(), []int{2} +} + +func (x *ContractRequest) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" +} + +type ContractSearchQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +optional + Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + // +optional + ContractId string `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + // +optional + OrgId string `protobuf:"bytes,3,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` + // +optional + OfferingId string `protobuf:"bytes,4,opt,name=offering_id,json=offeringId,proto3" json:"offering_id,omitempty"` + // +optional + Status ContractStatus `protobuf:"varint,5,opt,name=status,proto3,enum=spaceone.api.mzc_service_api.v1.ContractStatus" json:"status,omitempty"` + // +optional + RenewalType ContractRenewalType `protobuf:"varint,6,opt,name=renewal_type,json=renewalType,proto3,enum=spaceone.api.mzc_service_api.v1.ContractRenewalType" json:"renewal_type,omitempty"` +} + +func (x *ContractSearchQuery) Reset() { + *x = ContractSearchQuery{} + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractSearchQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractSearchQuery) ProtoMessage() {} + +func (x *ContractSearchQuery) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContractSearchQuery.ProtoReflect.Descriptor instead. +func (*ContractSearchQuery) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescGZIP(), []int{3} +} + +func (x *ContractSearchQuery) GetQuery() *v2.Query { + if x != nil { + return x.Query + } + return nil +} + +func (x *ContractSearchQuery) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" +} + +func (x *ContractSearchQuery) GetOrgId() string { + if x != nil { + return x.OrgId + } + return "" +} + +func (x *ContractSearchQuery) GetOfferingId() string { + if x != nil { + return x.OfferingId + } + return "" +} + +func (x *ContractSearchQuery) GetStatus() ContractStatus { + if x != nil { + return x.Status + } + return ContractStatus_CONTRACT_STATUS_NONE +} + +func (x *ContractSearchQuery) GetRenewalType() ContractRenewalType { + if x != nil { + return x.RenewalType + } + return ContractRenewalType_CONTRACT_RENEWAL_TYPE_NONE +} + +type ContractInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` + OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` + OfferingId string `protobuf:"bytes,3,opt,name=offering_id,json=offeringId,proto3" json:"offering_id,omitempty"` + Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` + Status ContractStatus `protobuf:"varint,5,opt,name=status,proto3,enum=spaceone.api.mzc_service_api.v1.ContractStatus" json:"status,omitempty"` + Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + StartDate string `protobuf:"bytes,7,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` + EndDate string `protobuf:"bytes,8,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` + SignedDate string `protobuf:"bytes,9,opt,name=signed_date,json=signedDate,proto3" json:"signed_date,omitempty"` + RenewalType ContractRenewalType `protobuf:"varint,10,opt,name=renewal_type,json=renewalType,proto3,enum=spaceone.api.mzc_service_api.v1.ContractRenewalType" json:"renewal_type,omitempty"` + Tags *_struct.Struct `protobuf:"bytes,15,opt,name=tags,proto3" json:"tags,omitempty"` + DomainId string `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` + CreatedAt string `protobuf:"bytes,31,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,32,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *ContractInfo) Reset() { + *x = ContractInfo{} + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractInfo) ProtoMessage() {} + +func (x *ContractInfo) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContractInfo.ProtoReflect.Descriptor instead. +func (*ContractInfo) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescGZIP(), []int{4} +} + +func (x *ContractInfo) GetContractId() string { + if x != nil { + return x.ContractId + } + return "" +} + +func (x *ContractInfo) GetOrgId() string { + if x != nil { + return x.OrgId + } + return "" +} + +func (x *ContractInfo) GetOfferingId() string { + if x != nil { + return x.OfferingId + } + return "" +} + +func (x *ContractInfo) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ContractInfo) GetStatus() ContractStatus { + if x != nil { + return x.Status + } + return ContractStatus_CONTRACT_STATUS_NONE +} + +func (x *ContractInfo) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *ContractInfo) GetStartDate() string { + if x != nil { + return x.StartDate + } + return "" +} + +func (x *ContractInfo) GetEndDate() string { + if x != nil { + return x.EndDate + } + return "" +} + +func (x *ContractInfo) GetSignedDate() string { + if x != nil { + return x.SignedDate + } + return "" +} + +func (x *ContractInfo) GetRenewalType() ContractRenewalType { + if x != nil { + return x.RenewalType + } + return ContractRenewalType_CONTRACT_RENEWAL_TYPE_NONE +} + +func (x *ContractInfo) GetTags() *_struct.Struct { + if x != nil { + return x.Tags + } + return nil +} + +func (x *ContractInfo) GetDomainId() string { + if x != nil { + return x.DomainId + } + return "" +} + +func (x *ContractInfo) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *ContractInfo) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +type ContractsInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Results []*ContractInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` +} + +func (x *ContractsInfo) Reset() { + *x = ContractsInfo{} + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractsInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractsInfo) ProtoMessage() {} + +func (x *ContractsInfo) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContractsInfo.ProtoReflect.Descriptor instead. +func (*ContractsInfo) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescGZIP(), []int{5} +} + +func (x *ContractsInfo) GetResults() []*ContractInfo { + if x != nil { + return x.Results + } + return nil +} + +func (x *ContractsInfo) GetTotalCount() int32 { + if x != nil { + return x.TotalCount + } + return 0 +} + +type ContractStatQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *ContractStatQuery) Reset() { + *x = ContractStatQuery{} + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContractStatQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContractStatQuery) ProtoMessage() {} + +func (x *ContractStatQuery) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContractStatQuery.ProtoReflect.Descriptor instead. +func (*ContractStatQuery) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescGZIP(), []int{6} +} + +func (x *ContractStatQuery) GetQuery() *v2.StatisticsQuery { + if x != nil { + return x.Query + } + return nil +} + +var File_spaceone_api_mzc_service_api_v1_contract_proto protoreflect.FileDescriptor + +var file_spaceone_api_mzc_service_api_v1_contract_proto_rawDesc = []byte{ + 0x0a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, + 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x1f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, + 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6f, 0x6e, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x32, + 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe6, 0x02, 0x0a, + 0x15, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x1f, 0x0a, + 0x0b, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x64, 0x61, + 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x44, + 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1f, + 0x0a, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, + 0x57, 0x0a, 0x0c, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x52, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x72, 0x65, 0x6e, + 0x65, 0x77, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, + 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, + 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xcf, 0x02, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, + 0x74, 0x44, 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x64, 0x61, 0x74, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x44, 0x61, 0x74, 0x65, + 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x44, 0x61, 0x74, + 0x65, 0x12, 0x57, 0x0a, 0x0c, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, + 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x72, + 0x65, 0x6e, 0x65, 0x77, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x61, + 0x67, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, + 0x74, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x32, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x22, 0xc3, 0x02, 0x0a, 0x13, + 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x12, 0x31, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, + 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x1f, + 0x0a, 0x0b, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x12, + 0x47, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x2f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, + 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x57, 0x0a, 0x0c, 0x72, 0x65, 0x6e, 0x65, + 0x77, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, + 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x6c, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x6c, 0x54, 0x79, 0x70, + 0x65, 0x22, 0xa2, 0x04, 0x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x66, + 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x47, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x2f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, + 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x44, 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, + 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6e, 0x64, + 0x44, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x64, + 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x69, 0x67, 0x6e, 0x65, + 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x57, 0x0a, 0x0c, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x6c, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x6c, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x0b, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2b, + 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, + 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x20, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x79, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x47, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 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, 0x22, 0x50, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x74, 0x61, + 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3b, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x61, + 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2a, 0x53, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4f, 0x4e, 0x54, 0x52, 0x41, 0x43, + 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, + 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x54, + 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x45, + 0x58, 0x50, 0x49, 0x52, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x5a, 0x0a, 0x13, 0x43, 0x6f, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x74, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x1e, 0x0a, 0x1a, 0x43, 0x4f, 0x4e, 0x54, 0x52, 0x41, 0x43, 0x54, 0x5f, 0x52, 0x45, 0x4e, 0x45, + 0x57, 0x41, 0x4c, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, + 0x08, 0x0a, 0x04, 0x41, 0x55, 0x54, 0x4f, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x41, 0x4e, + 0x55, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x4e, + 0x45, 0x57, 0x10, 0x03, 0x32, 0x90, 0x07, 0x0a, 0x08, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x12, 0x9f, 0x01, 0x0a, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x36, 0x2e, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, + 0x6e, 0x66, 0x6f, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x22, 0x23, + 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, + 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2f, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x36, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, + 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, + 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, + 0x22, 0x23, 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2f, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x88, 0x01, 0x0a, 0x09, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, + 0x61, 0x74, 0x65, 0x12, 0x30, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 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, 0x31, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x3a, 0x01, 0x2a, 0x22, 0x26, 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2f, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x74, 0x65, + 0x12, 0x93, 0x01, 0x0a, 0x03, 0x67, 0x65, 0x74, 0x12, 0x30, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, + 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, + 0x74, 0x72, 0x61, 0x63, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x25, 0x3a, 0x01, 0x2a, 0x22, 0x20, 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x2f, 0x67, 0x65, 0x74, 0x12, 0x9a, 0x01, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, + 0x34, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, + 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x2e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, + 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x3a, 0x01, 0x2a, + 0x22, 0x21, 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x2f, 0x6c, + 0x69, 0x73, 0x74, 0x12, 0x81, 0x01, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x74, 0x12, 0x32, 0x2e, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 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, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x26, 0x3a, 0x01, 0x2a, 0x22, 0x21, 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, + 0x63, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x42, 0x46, 0x5a, 0x44, 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, 0x6d, 0x7a, 0x63, + 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescOnce sync.Once + file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescData = file_spaceone_api_mzc_service_api_v1_contract_proto_rawDesc +) + +func file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescGZIP() []byte { + file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescOnce.Do(func() { + file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescData = protoimpl.X.CompressGZIP(file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescData) + }) + return file_spaceone_api_mzc_service_api_v1_contract_proto_rawDescData +} + +var file_spaceone_api_mzc_service_api_v1_contract_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_spaceone_api_mzc_service_api_v1_contract_proto_goTypes = []any{ + (ContractStatus)(0), // 0: spaceone.api.mzc_service_api.v1.ContractStatus + (ContractRenewalType)(0), // 1: spaceone.api.mzc_service_api.v1.ContractRenewalType + (*ContractCreateRequest)(nil), // 2: spaceone.api.mzc_service_api.v1.ContractCreateRequest + (*ContractUpdateRequest)(nil), // 3: spaceone.api.mzc_service_api.v1.ContractUpdateRequest + (*ContractRequest)(nil), // 4: spaceone.api.mzc_service_api.v1.ContractRequest + (*ContractSearchQuery)(nil), // 5: spaceone.api.mzc_service_api.v1.ContractSearchQuery + (*ContractInfo)(nil), // 6: spaceone.api.mzc_service_api.v1.ContractInfo + (*ContractsInfo)(nil), // 7: spaceone.api.mzc_service_api.v1.ContractsInfo + (*ContractStatQuery)(nil), // 8: spaceone.api.mzc_service_api.v1.ContractStatQuery + (*_struct.Struct)(nil), // 9: google.protobuf.Struct + (*v2.Query)(nil), // 10: spaceone.api.core.v2.Query + (*v2.StatisticsQuery)(nil), // 11: spaceone.api.core.v2.StatisticsQuery + (*empty.Empty)(nil), // 12: google.protobuf.Empty +} +var file_spaceone_api_mzc_service_api_v1_contract_proto_depIdxs = []int32{ + 1, // 0: spaceone.api.mzc_service_api.v1.ContractCreateRequest.renewal_type:type_name -> spaceone.api.mzc_service_api.v1.ContractRenewalType + 9, // 1: spaceone.api.mzc_service_api.v1.ContractCreateRequest.tags:type_name -> google.protobuf.Struct + 1, // 2: spaceone.api.mzc_service_api.v1.ContractUpdateRequest.renewal_type:type_name -> spaceone.api.mzc_service_api.v1.ContractRenewalType + 9, // 3: spaceone.api.mzc_service_api.v1.ContractUpdateRequest.tags:type_name -> google.protobuf.Struct + 10, // 4: spaceone.api.mzc_service_api.v1.ContractSearchQuery.query:type_name -> spaceone.api.core.v2.Query + 0, // 5: spaceone.api.mzc_service_api.v1.ContractSearchQuery.status:type_name -> spaceone.api.mzc_service_api.v1.ContractStatus + 1, // 6: spaceone.api.mzc_service_api.v1.ContractSearchQuery.renewal_type:type_name -> spaceone.api.mzc_service_api.v1.ContractRenewalType + 0, // 7: spaceone.api.mzc_service_api.v1.ContractInfo.status:type_name -> spaceone.api.mzc_service_api.v1.ContractStatus + 1, // 8: spaceone.api.mzc_service_api.v1.ContractInfo.renewal_type:type_name -> spaceone.api.mzc_service_api.v1.ContractRenewalType + 9, // 9: spaceone.api.mzc_service_api.v1.ContractInfo.tags:type_name -> google.protobuf.Struct + 6, // 10: spaceone.api.mzc_service_api.v1.ContractsInfo.results:type_name -> spaceone.api.mzc_service_api.v1.ContractInfo + 11, // 11: spaceone.api.mzc_service_api.v1.ContractStatQuery.query:type_name -> spaceone.api.core.v2.StatisticsQuery + 2, // 12: spaceone.api.mzc_service_api.v1.Contract.create:input_type -> spaceone.api.mzc_service_api.v1.ContractCreateRequest + 3, // 13: spaceone.api.mzc_service_api.v1.Contract.update:input_type -> spaceone.api.mzc_service_api.v1.ContractUpdateRequest + 4, // 14: spaceone.api.mzc_service_api.v1.Contract.terminate:input_type -> spaceone.api.mzc_service_api.v1.ContractRequest + 4, // 15: spaceone.api.mzc_service_api.v1.Contract.get:input_type -> spaceone.api.mzc_service_api.v1.ContractRequest + 5, // 16: spaceone.api.mzc_service_api.v1.Contract.list:input_type -> spaceone.api.mzc_service_api.v1.ContractSearchQuery + 8, // 17: spaceone.api.mzc_service_api.v1.Contract.stat:input_type -> spaceone.api.mzc_service_api.v1.ContractStatQuery + 6, // 18: spaceone.api.mzc_service_api.v1.Contract.create:output_type -> spaceone.api.mzc_service_api.v1.ContractInfo + 6, // 19: spaceone.api.mzc_service_api.v1.Contract.update:output_type -> spaceone.api.mzc_service_api.v1.ContractInfo + 12, // 20: spaceone.api.mzc_service_api.v1.Contract.terminate:output_type -> google.protobuf.Empty + 6, // 21: spaceone.api.mzc_service_api.v1.Contract.get:output_type -> spaceone.api.mzc_service_api.v1.ContractInfo + 7, // 22: spaceone.api.mzc_service_api.v1.Contract.list:output_type -> spaceone.api.mzc_service_api.v1.ContractsInfo + 9, // 23: spaceone.api.mzc_service_api.v1.Contract.stat:output_type -> google.protobuf.Struct + 18, // [18:24] is the sub-list for method output_type + 12, // [12:18] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_spaceone_api_mzc_service_api_v1_contract_proto_init() } +func file_spaceone_api_mzc_service_api_v1_contract_proto_init() { + if File_spaceone_api_mzc_service_api_v1_contract_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_spaceone_api_mzc_service_api_v1_contract_proto_rawDesc, + NumEnums: 2, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_spaceone_api_mzc_service_api_v1_contract_proto_goTypes, + DependencyIndexes: file_spaceone_api_mzc_service_api_v1_contract_proto_depIdxs, + EnumInfos: file_spaceone_api_mzc_service_api_v1_contract_proto_enumTypes, + MessageInfos: file_spaceone_api_mzc_service_api_v1_contract_proto_msgTypes, + }.Build() + File_spaceone_api_mzc_service_api_v1_contract_proto = out.File + file_spaceone_api_mzc_service_api_v1_contract_proto_rawDesc = nil + file_spaceone_api_mzc_service_api_v1_contract_proto_goTypes = nil + file_spaceone_api_mzc_service_api_v1_contract_proto_depIdxs = nil +} diff --git a/dist/go/spaceone/api/mzc-service-api/v1/contract_grpc.pb.go b/dist/go/spaceone/api/mzc-service-api/v1/contract_grpc.pb.go new file mode 100755 index 000000000..7e3359711 --- /dev/null +++ b/dist/go/spaceone/api/mzc-service-api/v1/contract_grpc.pb.go @@ -0,0 +1,313 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.6.1 +// source: spaceone/api/mzc_service_api/v1/contract.proto + +package v1 + +import ( + context "context" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Contract_Create_FullMethodName = "/spaceone.api.mzc_service_api.v1.Contract/create" + Contract_Update_FullMethodName = "/spaceone.api.mzc_service_api.v1.Contract/update" + Contract_Terminate_FullMethodName = "/spaceone.api.mzc_service_api.v1.Contract/terminate" + Contract_Get_FullMethodName = "/spaceone.api.mzc_service_api.v1.Contract/get" + Contract_List_FullMethodName = "/spaceone.api.mzc_service_api.v1.Contract/list" + Contract_Stat_FullMethodName = "/spaceone.api.mzc_service_api.v1.Contract/stat" +) + +// ContractClient is the client API for Contract service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ContractClient interface { + Create(ctx context.Context, in *ContractCreateRequest, opts ...grpc.CallOption) (*ContractInfo, error) + Update(ctx context.Context, in *ContractUpdateRequest, opts ...grpc.CallOption) (*ContractInfo, error) + Terminate(ctx context.Context, in *ContractRequest, opts ...grpc.CallOption) (*empty.Empty, error) + Get(ctx context.Context, in *ContractRequest, opts ...grpc.CallOption) (*ContractInfo, error) + List(ctx context.Context, in *ContractSearchQuery, opts ...grpc.CallOption) (*ContractsInfo, error) + Stat(ctx context.Context, in *ContractStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error) +} + +type contractClient struct { + cc grpc.ClientConnInterface +} + +func NewContractClient(cc grpc.ClientConnInterface) ContractClient { + return &contractClient{cc} +} + +func (c *contractClient) Create(ctx context.Context, in *ContractCreateRequest, opts ...grpc.CallOption) (*ContractInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ContractInfo) + err := c.cc.Invoke(ctx, Contract_Create_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *contractClient) Update(ctx context.Context, in *ContractUpdateRequest, opts ...grpc.CallOption) (*ContractInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ContractInfo) + err := c.cc.Invoke(ctx, Contract_Update_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *contractClient) Terminate(ctx context.Context, in *ContractRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(empty.Empty) + err := c.cc.Invoke(ctx, Contract_Terminate_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *contractClient) Get(ctx context.Context, in *ContractRequest, opts ...grpc.CallOption) (*ContractInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ContractInfo) + err := c.cc.Invoke(ctx, Contract_Get_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *contractClient) List(ctx context.Context, in *ContractSearchQuery, opts ...grpc.CallOption) (*ContractsInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ContractsInfo) + err := c.cc.Invoke(ctx, Contract_List_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *contractClient) Stat(ctx context.Context, in *ContractStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(_struct.Struct) + err := c.cc.Invoke(ctx, Contract_Stat_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ContractServer is the server API for Contract service. +// All implementations must embed UnimplementedContractServer +// for forward compatibility. +type ContractServer interface { + Create(context.Context, *ContractCreateRequest) (*ContractInfo, error) + Update(context.Context, *ContractUpdateRequest) (*ContractInfo, error) + Terminate(context.Context, *ContractRequest) (*empty.Empty, error) + Get(context.Context, *ContractRequest) (*ContractInfo, error) + List(context.Context, *ContractSearchQuery) (*ContractsInfo, error) + Stat(context.Context, *ContractStatQuery) (*_struct.Struct, error) + mustEmbedUnimplementedContractServer() +} + +// UnimplementedContractServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedContractServer struct{} + +func (UnimplementedContractServer) Create(context.Context, *ContractCreateRequest) (*ContractInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (UnimplementedContractServer) Update(context.Context, *ContractUpdateRequest) (*ContractInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (UnimplementedContractServer) Terminate(context.Context, *ContractRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Terminate not implemented") +} +func (UnimplementedContractServer) Get(context.Context, *ContractRequest) (*ContractInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (UnimplementedContractServer) List(context.Context, *ContractSearchQuery) (*ContractsInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (UnimplementedContractServer) Stat(context.Context, *ContractStatQuery) (*_struct.Struct, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stat not implemented") +} +func (UnimplementedContractServer) mustEmbedUnimplementedContractServer() {} +func (UnimplementedContractServer) testEmbeddedByValue() {} + +// UnsafeContractServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ContractServer will +// result in compilation errors. +type UnsafeContractServer interface { + mustEmbedUnimplementedContractServer() +} + +func RegisterContractServer(s grpc.ServiceRegistrar, srv ContractServer) { + // If the following call pancis, it indicates UnimplementedContractServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Contract_ServiceDesc, srv) +} + +func _Contract_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ContractCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ContractServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Contract_Create_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ContractServer).Create(ctx, req.(*ContractCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Contract_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ContractUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ContractServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Contract_Update_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ContractServer).Update(ctx, req.(*ContractUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Contract_Terminate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ContractRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ContractServer).Terminate(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Contract_Terminate_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ContractServer).Terminate(ctx, req.(*ContractRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Contract_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ContractRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ContractServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Contract_Get_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ContractServer).Get(ctx, req.(*ContractRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Contract_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ContractSearchQuery) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ContractServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Contract_List_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ContractServer).List(ctx, req.(*ContractSearchQuery)) + } + return interceptor(ctx, in, info, handler) +} + +func _Contract_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ContractStatQuery) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ContractServer).Stat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Contract_Stat_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ContractServer).Stat(ctx, req.(*ContractStatQuery)) + } + return interceptor(ctx, in, info, handler) +} + +// Contract_ServiceDesc is the grpc.ServiceDesc for Contract service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Contract_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "spaceone.api.mzc_service_api.v1.Contract", + HandlerType: (*ContractServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "create", + Handler: _Contract_Create_Handler, + }, + { + MethodName: "update", + Handler: _Contract_Update_Handler, + }, + { + MethodName: "terminate", + Handler: _Contract_Terminate_Handler, + }, + { + MethodName: "get", + Handler: _Contract_Get_Handler, + }, + { + MethodName: "list", + Handler: _Contract_List_Handler, + }, + { + MethodName: "stat", + Handler: _Contract_Stat_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "spaceone/api/mzc_service_api/v1/contract.proto", +} diff --git a/dist/go/spaceone/api/mzc-service-api/v1/offering.pb.go b/dist/go/spaceone/api/mzc-service-api/v1/offering.pb.go new file mode 100755 index 000000000..18a27d910 --- /dev/null +++ b/dist/go/spaceone/api/mzc-service-api/v1/offering.pb.go @@ -0,0 +1,921 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.1 +// protoc v3.6.1 +// source: spaceone/api/mzc_service_api/v1/offering.proto + +package v1 + +import ( + v2 "github.com/cloudforet-io/api/dist/go/spaceone/api/core/v2" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type OfferingStatus int32 + +const ( + OfferingStatus_OFFERING_STATUS_NONE OfferingStatus = 0 + OfferingStatus_AVAILABLE OfferingStatus = 1 + OfferingStatus_UNAVAILABLE OfferingStatus = 2 + OfferingStatus_DISCONTINUED OfferingStatus = 3 +) + +// Enum value maps for OfferingStatus. +var ( + OfferingStatus_name = map[int32]string{ + 0: "OFFERING_STATUS_NONE", + 1: "AVAILABLE", + 2: "UNAVAILABLE", + 3: "DISCONTINUED", + } + OfferingStatus_value = map[string]int32{ + "OFFERING_STATUS_NONE": 0, + "AVAILABLE": 1, + "UNAVAILABLE": 2, + "DISCONTINUED": 3, + } +) + +func (x OfferingStatus) Enum() *OfferingStatus { + p := new(OfferingStatus) + *p = x + return p +} + +func (x OfferingStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (OfferingStatus) Descriptor() protoreflect.EnumDescriptor { + return file_spaceone_api_mzc_service_api_v1_offering_proto_enumTypes[0].Descriptor() +} + +func (OfferingStatus) Type() protoreflect.EnumType { + return &file_spaceone_api_mzc_service_api_v1_offering_proto_enumTypes[0] +} + +func (x OfferingStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use OfferingStatus.Descriptor instead. +func (OfferingStatus) EnumDescriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescGZIP(), []int{0} +} + +type OfferingCreateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"` + // +optional + Price float32 `protobuf:"fixed32,3,opt,name=price,proto3" json:"price,omitempty"` + // +optional + Currency string `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"` + // +optional + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + // +optional + Terms string `protobuf:"bytes,6,opt,name=terms,proto3" json:"terms,omitempty"` + // +optional + WebsiteUrl string `protobuf:"bytes,7,opt,name=website_url,json=websiteUrl,proto3" json:"website_url,omitempty"` + // +optional + Tags *_struct.Struct `protobuf:"bytes,15,opt,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *OfferingCreateRequest) Reset() { + *x = OfferingCreateRequest{} + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OfferingCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OfferingCreateRequest) ProtoMessage() {} + +func (x *OfferingCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OfferingCreateRequest.ProtoReflect.Descriptor instead. +func (*OfferingCreateRequest) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescGZIP(), []int{0} +} + +func (x *OfferingCreateRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *OfferingCreateRequest) GetCategory() string { + if x != nil { + return x.Category + } + return "" +} + +func (x *OfferingCreateRequest) GetPrice() float32 { + if x != nil { + return x.Price + } + return 0 +} + +func (x *OfferingCreateRequest) GetCurrency() string { + if x != nil { + return x.Currency + } + return "" +} + +func (x *OfferingCreateRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *OfferingCreateRequest) GetTerms() string { + if x != nil { + return x.Terms + } + return "" +} + +func (x *OfferingCreateRequest) GetWebsiteUrl() string { + if x != nil { + return x.WebsiteUrl + } + return "" +} + +func (x *OfferingCreateRequest) GetTags() *_struct.Struct { + if x != nil { + return x.Tags + } + return nil +} + +type OfferingUpdateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OfferingId string `protobuf:"bytes,1,opt,name=offering_id,json=offeringId,proto3" json:"offering_id,omitempty"` + // +optional + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // +optional + Status OfferingStatus `protobuf:"varint,3,opt,name=status,proto3,enum=spaceone.api.mzc_service_api.v1.OfferingStatus" json:"status,omitempty"` + // +optional + Price float32 `protobuf:"fixed32,4,opt,name=price,proto3" json:"price,omitempty"` + // +optional + Currency string `protobuf:"bytes,5,opt,name=currency,proto3" json:"currency,omitempty"` + // +optional + Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + // +optional + Terms string `protobuf:"bytes,7,opt,name=terms,proto3" json:"terms,omitempty"` + // +optional + WebsiteUrl string `protobuf:"bytes,8,opt,name=website_url,json=websiteUrl,proto3" json:"website_url,omitempty"` + // +optional + Tags *_struct.Struct `protobuf:"bytes,15,opt,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *OfferingUpdateRequest) Reset() { + *x = OfferingUpdateRequest{} + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OfferingUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OfferingUpdateRequest) ProtoMessage() {} + +func (x *OfferingUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OfferingUpdateRequest.ProtoReflect.Descriptor instead. +func (*OfferingUpdateRequest) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescGZIP(), []int{1} +} + +func (x *OfferingUpdateRequest) GetOfferingId() string { + if x != nil { + return x.OfferingId + } + return "" +} + +func (x *OfferingUpdateRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *OfferingUpdateRequest) GetStatus() OfferingStatus { + if x != nil { + return x.Status + } + return OfferingStatus_OFFERING_STATUS_NONE +} + +func (x *OfferingUpdateRequest) GetPrice() float32 { + if x != nil { + return x.Price + } + return 0 +} + +func (x *OfferingUpdateRequest) GetCurrency() string { + if x != nil { + return x.Currency + } + return "" +} + +func (x *OfferingUpdateRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *OfferingUpdateRequest) GetTerms() string { + if x != nil { + return x.Terms + } + return "" +} + +func (x *OfferingUpdateRequest) GetWebsiteUrl() string { + if x != nil { + return x.WebsiteUrl + } + return "" +} + +func (x *OfferingUpdateRequest) GetTags() *_struct.Struct { + if x != nil { + return x.Tags + } + return nil +} + +type OfferingRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OfferingId string `protobuf:"bytes,1,opt,name=offering_id,json=offeringId,proto3" json:"offering_id,omitempty"` +} + +func (x *OfferingRequest) Reset() { + *x = OfferingRequest{} + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OfferingRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OfferingRequest) ProtoMessage() {} + +func (x *OfferingRequest) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OfferingRequest.ProtoReflect.Descriptor instead. +func (*OfferingRequest) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescGZIP(), []int{2} +} + +func (x *OfferingRequest) GetOfferingId() string { + if x != nil { + return x.OfferingId + } + return "" +} + +type OfferingSearchQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +optional + Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + // +optional + OfferingId string `protobuf:"bytes,2,opt,name=offering_id,json=offeringId,proto3" json:"offering_id,omitempty"` + // +optional + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // +optional + Status OfferingStatus `protobuf:"varint,4,opt,name=status,proto3,enum=spaceone.api.mzc_service_api.v1.OfferingStatus" json:"status,omitempty"` +} + +func (x *OfferingSearchQuery) Reset() { + *x = OfferingSearchQuery{} + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OfferingSearchQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OfferingSearchQuery) ProtoMessage() {} + +func (x *OfferingSearchQuery) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OfferingSearchQuery.ProtoReflect.Descriptor instead. +func (*OfferingSearchQuery) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescGZIP(), []int{3} +} + +func (x *OfferingSearchQuery) GetQuery() *v2.Query { + if x != nil { + return x.Query + } + return nil +} + +func (x *OfferingSearchQuery) GetOfferingId() string { + if x != nil { + return x.OfferingId + } + return "" +} + +func (x *OfferingSearchQuery) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *OfferingSearchQuery) GetStatus() OfferingStatus { + if x != nil { + return x.Status + } + return OfferingStatus_OFFERING_STATUS_NONE +} + +type OfferingInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OfferingId string `protobuf:"bytes,1,opt,name=offering_id,json=offeringId,proto3" json:"offering_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"` + Status OfferingStatus `protobuf:"varint,4,opt,name=status,proto3,enum=spaceone.api.mzc_service_api.v1.OfferingStatus" json:"status,omitempty"` + Price float32 `protobuf:"fixed32,5,opt,name=price,proto3" json:"price,omitempty"` + Currency string `protobuf:"bytes,6,opt,name=currency,proto3" json:"currency,omitempty"` + Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` + Terms string `protobuf:"bytes,8,opt,name=terms,proto3" json:"terms,omitempty"` + WebsiteUrl string `protobuf:"bytes,9,opt,name=website_url,json=websiteUrl,proto3" json:"website_url,omitempty"` + Tags *_struct.Struct `protobuf:"bytes,15,opt,name=tags,proto3" json:"tags,omitempty"` + DomainId string `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` + CreatedAt string `protobuf:"bytes,31,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,32,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *OfferingInfo) Reset() { + *x = OfferingInfo{} + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OfferingInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OfferingInfo) ProtoMessage() {} + +func (x *OfferingInfo) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OfferingInfo.ProtoReflect.Descriptor instead. +func (*OfferingInfo) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescGZIP(), []int{4} +} + +func (x *OfferingInfo) GetOfferingId() string { + if x != nil { + return x.OfferingId + } + return "" +} + +func (x *OfferingInfo) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *OfferingInfo) GetCategory() string { + if x != nil { + return x.Category + } + return "" +} + +func (x *OfferingInfo) GetStatus() OfferingStatus { + if x != nil { + return x.Status + } + return OfferingStatus_OFFERING_STATUS_NONE +} + +func (x *OfferingInfo) GetPrice() float32 { + if x != nil { + return x.Price + } + return 0 +} + +func (x *OfferingInfo) GetCurrency() string { + if x != nil { + return x.Currency + } + return "" +} + +func (x *OfferingInfo) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *OfferingInfo) GetTerms() string { + if x != nil { + return x.Terms + } + return "" +} + +func (x *OfferingInfo) GetWebsiteUrl() string { + if x != nil { + return x.WebsiteUrl + } + return "" +} + +func (x *OfferingInfo) GetTags() *_struct.Struct { + if x != nil { + return x.Tags + } + return nil +} + +func (x *OfferingInfo) GetDomainId() string { + if x != nil { + return x.DomainId + } + return "" +} + +func (x *OfferingInfo) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *OfferingInfo) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +type OfferingsInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Results []*OfferingInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` +} + +func (x *OfferingsInfo) Reset() { + *x = OfferingsInfo{} + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OfferingsInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OfferingsInfo) ProtoMessage() {} + +func (x *OfferingsInfo) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OfferingsInfo.ProtoReflect.Descriptor instead. +func (*OfferingsInfo) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescGZIP(), []int{5} +} + +func (x *OfferingsInfo) GetResults() []*OfferingInfo { + if x != nil { + return x.Results + } + return nil +} + +func (x *OfferingsInfo) GetTotalCount() int32 { + if x != nil { + return x.TotalCount + } + return 0 +} + +type OfferingStatQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *OfferingStatQuery) Reset() { + *x = OfferingStatQuery{} + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OfferingStatQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OfferingStatQuery) ProtoMessage() {} + +func (x *OfferingStatQuery) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OfferingStatQuery.ProtoReflect.Descriptor instead. +func (*OfferingStatQuery) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescGZIP(), []int{6} +} + +func (x *OfferingStatQuery) GetQuery() *v2.StatisticsQuery { + if x != nil { + return x.Query + } + return nil +} + +var File_spaceone_api_mzc_service_api_v1_offering_proto protoreflect.FileDescriptor + +var file_spaceone_api_mzc_service_api_v1_offering_proto_rawDesc = []byte{ + 0x0a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, + 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x1f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, + 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6f, 0x6e, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x32, + 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xff, 0x01, 0x0a, + 0x15, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, + 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, + 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x65, + 0x72, 0x6d, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x65, 0x72, 0x6d, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x55, 0x72, + 0x6c, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0xcd, + 0x02, 0x0a, 0x15, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x66, 0x66, 0x65, + 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, + 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x47, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, + 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x65, + 0x72, 0x6d, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x65, 0x72, 0x6d, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x55, 0x72, + 0x6c, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x32, + 0x0a, 0x0f, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, + 0x49, 0x64, 0x22, 0xc6, 0x01, 0x0a, 0x13, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x53, + 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x31, 0x0a, 0x05, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x1f, 0x0a, + 0x0b, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x2f, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xbb, 0x03, 0x0a, 0x0c, + 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, + 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x47, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2f, 0x2e, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, + 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x65, + 0x72, 0x6d, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x65, 0x72, 0x6d, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x65, 0x62, 0x73, 0x69, 0x74, 0x65, 0x55, 0x72, + 0x6c, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1b, + 0x0a, 0x09, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x15, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x20, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x79, 0x0a, 0x0d, 0x4f, 0x66, 0x66, + 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x47, 0x0a, 0x07, 0x72, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x66, + 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 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, 0x22, 0x50, 0x0a, 0x11, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, + 0x53, 0x74, 0x61, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x3b, 0x0a, 0x05, 0x71, 0x75, 0x65, + 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32, 0x2e, + 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, + 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2a, 0x5c, 0x0a, 0x0e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, + 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x46, 0x46, 0x45, + 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, + 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, + 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, + 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x4e, 0x54, 0x49, 0x4e, 0x55, + 0x45, 0x44, 0x10, 0x03, 0x32, 0x8a, 0x07, 0x0a, 0x08, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, + 0x67, 0x12, 0x9f, 0x01, 0x0a, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x36, 0x2e, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, + 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x49, + 0x6e, 0x66, 0x6f, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x22, 0x23, + 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, + 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x36, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, + 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, + 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x3a, 0x01, 0x2a, + 0x22, 0x23, 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x82, 0x01, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x12, 0x30, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 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, 0x2e, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x28, 0x3a, 0x01, 0x2a, 0x22, 0x23, 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x66, 0x66, 0x65, 0x72, + 0x69, 0x6e, 0x67, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x03, 0x67, + 0x65, 0x74, 0x12, 0x30, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x49, + 0x6e, 0x66, 0x6f, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x3a, 0x01, 0x2a, 0x22, 0x20, + 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, + 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x67, 0x65, 0x74, + 0x12, 0x9a, 0x01, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x34, 0x2e, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x66, 0x66, 0x65, + 0x72, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, + 0x2e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, + 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, + 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x3a, 0x01, 0x2a, 0x22, 0x21, 0x2f, 0x6d, 0x7a, 0x63, + 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, + 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x81, 0x01, + 0x0a, 0x04, 0x73, 0x74, 0x61, 0x74, 0x12, 0x32, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, + 0x67, 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, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x3a, 0x01, 0x2a, 0x22, 0x21, + 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, + 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x69, 0x6e, 0x67, 0x2f, 0x73, 0x74, 0x61, + 0x74, 0x42, 0x46, 0x5a, 0x44, 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, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescOnce sync.Once + file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescData = file_spaceone_api_mzc_service_api_v1_offering_proto_rawDesc +) + +func file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescGZIP() []byte { + file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescOnce.Do(func() { + file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescData = protoimpl.X.CompressGZIP(file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescData) + }) + return file_spaceone_api_mzc_service_api_v1_offering_proto_rawDescData +} + +var file_spaceone_api_mzc_service_api_v1_offering_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_spaceone_api_mzc_service_api_v1_offering_proto_goTypes = []any{ + (OfferingStatus)(0), // 0: spaceone.api.mzc_service_api.v1.OfferingStatus + (*OfferingCreateRequest)(nil), // 1: spaceone.api.mzc_service_api.v1.OfferingCreateRequest + (*OfferingUpdateRequest)(nil), // 2: spaceone.api.mzc_service_api.v1.OfferingUpdateRequest + (*OfferingRequest)(nil), // 3: spaceone.api.mzc_service_api.v1.OfferingRequest + (*OfferingSearchQuery)(nil), // 4: spaceone.api.mzc_service_api.v1.OfferingSearchQuery + (*OfferingInfo)(nil), // 5: spaceone.api.mzc_service_api.v1.OfferingInfo + (*OfferingsInfo)(nil), // 6: spaceone.api.mzc_service_api.v1.OfferingsInfo + (*OfferingStatQuery)(nil), // 7: spaceone.api.mzc_service_api.v1.OfferingStatQuery + (*_struct.Struct)(nil), // 8: google.protobuf.Struct + (*v2.Query)(nil), // 9: spaceone.api.core.v2.Query + (*v2.StatisticsQuery)(nil), // 10: spaceone.api.core.v2.StatisticsQuery + (*empty.Empty)(nil), // 11: google.protobuf.Empty +} +var file_spaceone_api_mzc_service_api_v1_offering_proto_depIdxs = []int32{ + 8, // 0: spaceone.api.mzc_service_api.v1.OfferingCreateRequest.tags:type_name -> google.protobuf.Struct + 0, // 1: spaceone.api.mzc_service_api.v1.OfferingUpdateRequest.status:type_name -> spaceone.api.mzc_service_api.v1.OfferingStatus + 8, // 2: spaceone.api.mzc_service_api.v1.OfferingUpdateRequest.tags:type_name -> google.protobuf.Struct + 9, // 3: spaceone.api.mzc_service_api.v1.OfferingSearchQuery.query:type_name -> spaceone.api.core.v2.Query + 0, // 4: spaceone.api.mzc_service_api.v1.OfferingSearchQuery.status:type_name -> spaceone.api.mzc_service_api.v1.OfferingStatus + 0, // 5: spaceone.api.mzc_service_api.v1.OfferingInfo.status:type_name -> spaceone.api.mzc_service_api.v1.OfferingStatus + 8, // 6: spaceone.api.mzc_service_api.v1.OfferingInfo.tags:type_name -> google.protobuf.Struct + 5, // 7: spaceone.api.mzc_service_api.v1.OfferingsInfo.results:type_name -> spaceone.api.mzc_service_api.v1.OfferingInfo + 10, // 8: spaceone.api.mzc_service_api.v1.OfferingStatQuery.query:type_name -> spaceone.api.core.v2.StatisticsQuery + 1, // 9: spaceone.api.mzc_service_api.v1.Offering.create:input_type -> spaceone.api.mzc_service_api.v1.OfferingCreateRequest + 2, // 10: spaceone.api.mzc_service_api.v1.Offering.update:input_type -> spaceone.api.mzc_service_api.v1.OfferingUpdateRequest + 3, // 11: spaceone.api.mzc_service_api.v1.Offering.delete:input_type -> spaceone.api.mzc_service_api.v1.OfferingRequest + 3, // 12: spaceone.api.mzc_service_api.v1.Offering.get:input_type -> spaceone.api.mzc_service_api.v1.OfferingRequest + 4, // 13: spaceone.api.mzc_service_api.v1.Offering.list:input_type -> spaceone.api.mzc_service_api.v1.OfferingSearchQuery + 7, // 14: spaceone.api.mzc_service_api.v1.Offering.stat:input_type -> spaceone.api.mzc_service_api.v1.OfferingStatQuery + 5, // 15: spaceone.api.mzc_service_api.v1.Offering.create:output_type -> spaceone.api.mzc_service_api.v1.OfferingInfo + 5, // 16: spaceone.api.mzc_service_api.v1.Offering.update:output_type -> spaceone.api.mzc_service_api.v1.OfferingInfo + 11, // 17: spaceone.api.mzc_service_api.v1.Offering.delete:output_type -> google.protobuf.Empty + 5, // 18: spaceone.api.mzc_service_api.v1.Offering.get:output_type -> spaceone.api.mzc_service_api.v1.OfferingInfo + 6, // 19: spaceone.api.mzc_service_api.v1.Offering.list:output_type -> spaceone.api.mzc_service_api.v1.OfferingsInfo + 8, // 20: spaceone.api.mzc_service_api.v1.Offering.stat:output_type -> google.protobuf.Struct + 15, // [15:21] is the sub-list for method output_type + 9, // [9:15] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name +} + +func init() { file_spaceone_api_mzc_service_api_v1_offering_proto_init() } +func file_spaceone_api_mzc_service_api_v1_offering_proto_init() { + if File_spaceone_api_mzc_service_api_v1_offering_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_spaceone_api_mzc_service_api_v1_offering_proto_rawDesc, + NumEnums: 1, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_spaceone_api_mzc_service_api_v1_offering_proto_goTypes, + DependencyIndexes: file_spaceone_api_mzc_service_api_v1_offering_proto_depIdxs, + EnumInfos: file_spaceone_api_mzc_service_api_v1_offering_proto_enumTypes, + MessageInfos: file_spaceone_api_mzc_service_api_v1_offering_proto_msgTypes, + }.Build() + File_spaceone_api_mzc_service_api_v1_offering_proto = out.File + file_spaceone_api_mzc_service_api_v1_offering_proto_rawDesc = nil + file_spaceone_api_mzc_service_api_v1_offering_proto_goTypes = nil + file_spaceone_api_mzc_service_api_v1_offering_proto_depIdxs = nil +} diff --git a/dist/go/spaceone/api/mzc-service-api/v1/offering_grpc.pb.go b/dist/go/spaceone/api/mzc-service-api/v1/offering_grpc.pb.go new file mode 100755 index 000000000..6e2b24c06 --- /dev/null +++ b/dist/go/spaceone/api/mzc-service-api/v1/offering_grpc.pb.go @@ -0,0 +1,313 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.6.1 +// source: spaceone/api/mzc_service_api/v1/offering.proto + +package v1 + +import ( + context "context" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Offering_Create_FullMethodName = "/spaceone.api.mzc_service_api.v1.Offering/create" + Offering_Update_FullMethodName = "/spaceone.api.mzc_service_api.v1.Offering/update" + Offering_Delete_FullMethodName = "/spaceone.api.mzc_service_api.v1.Offering/delete" + Offering_Get_FullMethodName = "/spaceone.api.mzc_service_api.v1.Offering/get" + Offering_List_FullMethodName = "/spaceone.api.mzc_service_api.v1.Offering/list" + Offering_Stat_FullMethodName = "/spaceone.api.mzc_service_api.v1.Offering/stat" +) + +// OfferingClient is the client API for Offering service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type OfferingClient interface { + Create(ctx context.Context, in *OfferingCreateRequest, opts ...grpc.CallOption) (*OfferingInfo, error) + Update(ctx context.Context, in *OfferingUpdateRequest, opts ...grpc.CallOption) (*OfferingInfo, error) + Delete(ctx context.Context, in *OfferingRequest, opts ...grpc.CallOption) (*empty.Empty, error) + Get(ctx context.Context, in *OfferingRequest, opts ...grpc.CallOption) (*OfferingInfo, error) + List(ctx context.Context, in *OfferingSearchQuery, opts ...grpc.CallOption) (*OfferingsInfo, error) + Stat(ctx context.Context, in *OfferingStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error) +} + +type offeringClient struct { + cc grpc.ClientConnInterface +} + +func NewOfferingClient(cc grpc.ClientConnInterface) OfferingClient { + return &offeringClient{cc} +} + +func (c *offeringClient) Create(ctx context.Context, in *OfferingCreateRequest, opts ...grpc.CallOption) (*OfferingInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OfferingInfo) + err := c.cc.Invoke(ctx, Offering_Create_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *offeringClient) Update(ctx context.Context, in *OfferingUpdateRequest, opts ...grpc.CallOption) (*OfferingInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OfferingInfo) + err := c.cc.Invoke(ctx, Offering_Update_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *offeringClient) Delete(ctx context.Context, in *OfferingRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(empty.Empty) + err := c.cc.Invoke(ctx, Offering_Delete_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *offeringClient) Get(ctx context.Context, in *OfferingRequest, opts ...grpc.CallOption) (*OfferingInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OfferingInfo) + err := c.cc.Invoke(ctx, Offering_Get_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *offeringClient) List(ctx context.Context, in *OfferingSearchQuery, opts ...grpc.CallOption) (*OfferingsInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OfferingsInfo) + err := c.cc.Invoke(ctx, Offering_List_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *offeringClient) Stat(ctx context.Context, in *OfferingStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(_struct.Struct) + err := c.cc.Invoke(ctx, Offering_Stat_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// OfferingServer is the server API for Offering service. +// All implementations must embed UnimplementedOfferingServer +// for forward compatibility. +type OfferingServer interface { + Create(context.Context, *OfferingCreateRequest) (*OfferingInfo, error) + Update(context.Context, *OfferingUpdateRequest) (*OfferingInfo, error) + Delete(context.Context, *OfferingRequest) (*empty.Empty, error) + Get(context.Context, *OfferingRequest) (*OfferingInfo, error) + List(context.Context, *OfferingSearchQuery) (*OfferingsInfo, error) + Stat(context.Context, *OfferingStatQuery) (*_struct.Struct, error) + mustEmbedUnimplementedOfferingServer() +} + +// UnimplementedOfferingServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedOfferingServer struct{} + +func (UnimplementedOfferingServer) Create(context.Context, *OfferingCreateRequest) (*OfferingInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (UnimplementedOfferingServer) Update(context.Context, *OfferingUpdateRequest) (*OfferingInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (UnimplementedOfferingServer) Delete(context.Context, *OfferingRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (UnimplementedOfferingServer) Get(context.Context, *OfferingRequest) (*OfferingInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (UnimplementedOfferingServer) List(context.Context, *OfferingSearchQuery) (*OfferingsInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (UnimplementedOfferingServer) Stat(context.Context, *OfferingStatQuery) (*_struct.Struct, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stat not implemented") +} +func (UnimplementedOfferingServer) mustEmbedUnimplementedOfferingServer() {} +func (UnimplementedOfferingServer) testEmbeddedByValue() {} + +// UnsafeOfferingServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to OfferingServer will +// result in compilation errors. +type UnsafeOfferingServer interface { + mustEmbedUnimplementedOfferingServer() +} + +func RegisterOfferingServer(s grpc.ServiceRegistrar, srv OfferingServer) { + // If the following call pancis, it indicates UnimplementedOfferingServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Offering_ServiceDesc, srv) +} + +func _Offering_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OfferingCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OfferingServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Offering_Create_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OfferingServer).Create(ctx, req.(*OfferingCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Offering_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OfferingUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OfferingServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Offering_Update_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OfferingServer).Update(ctx, req.(*OfferingUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Offering_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OfferingRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OfferingServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Offering_Delete_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OfferingServer).Delete(ctx, req.(*OfferingRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Offering_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OfferingRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OfferingServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Offering_Get_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OfferingServer).Get(ctx, req.(*OfferingRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Offering_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OfferingSearchQuery) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OfferingServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Offering_List_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OfferingServer).List(ctx, req.(*OfferingSearchQuery)) + } + return interceptor(ctx, in, info, handler) +} + +func _Offering_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OfferingStatQuery) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OfferingServer).Stat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Offering_Stat_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OfferingServer).Stat(ctx, req.(*OfferingStatQuery)) + } + return interceptor(ctx, in, info, handler) +} + +// Offering_ServiceDesc is the grpc.ServiceDesc for Offering service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Offering_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "spaceone.api.mzc_service_api.v1.Offering", + HandlerType: (*OfferingServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "create", + Handler: _Offering_Create_Handler, + }, + { + MethodName: "update", + Handler: _Offering_Update_Handler, + }, + { + MethodName: "delete", + Handler: _Offering_Delete_Handler, + }, + { + MethodName: "get", + Handler: _Offering_Get_Handler, + }, + { + MethodName: "list", + Handler: _Offering_List_Handler, + }, + { + MethodName: "stat", + Handler: _Offering_Stat_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "spaceone/api/mzc_service_api/v1/offering.proto", +} diff --git a/dist/go/spaceone/api/mzc-service-api/v1/organization.pb.go b/dist/go/spaceone/api/mzc-service-api/v1/organization.pb.go new file mode 100755 index 000000000..515eb959e --- /dev/null +++ b/dist/go/spaceone/api/mzc-service-api/v1/organization.pb.go @@ -0,0 +1,1014 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.1 +// protoc v3.6.1 +// source: spaceone/api/mzc_service_api/v1/organization.proto + +package v1 + +import ( + v2 "github.com/cloudforet-io/api/dist/go/spaceone/api/core/v2" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" + _ "google.golang.org/genproto/googleapis/api/annotations" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type OrganizationState int32 + +const ( + OrganizationState_ORGANIZATION_STATE_NONE OrganizationState = 0 + OrganizationState_ENABLED OrganizationState = 1 + OrganizationState_DISABLED OrganizationState = 2 +) + +// Enum value maps for OrganizationState. +var ( + OrganizationState_name = map[int32]string{ + 0: "ORGANIZATION_STATE_NONE", + 1: "ENABLED", + 2: "DISABLED", + } + OrganizationState_value = map[string]int32{ + "ORGANIZATION_STATE_NONE": 0, + "ENABLED": 1, + "DISABLED": 2, + } +) + +func (x OrganizationState) Enum() *OrganizationState { + p := new(OrganizationState) + *p = x + return p +} + +func (x OrganizationState) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (OrganizationState) Descriptor() protoreflect.EnumDescriptor { + return file_spaceone_api_mzc_service_api_v1_organization_proto_enumTypes[0].Descriptor() +} + +func (OrganizationState) Type() protoreflect.EnumType { + return &file_spaceone_api_mzc_service_api_v1_organization_proto_enumTypes[0] +} + +func (x OrganizationState) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use OrganizationState.Descriptor instead. +func (OrganizationState) EnumDescriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescGZIP(), []int{0} +} + +type OrganizationCreateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + // +optional + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + // +optional + Industry string `protobuf:"bytes,3,opt,name=industry,proto3" json:"industry,omitempty"` + // +optional + RegistrationNumber string `protobuf:"bytes,4,opt,name=registration_number,json=registrationNumber,proto3" json:"registration_number,omitempty"` + // +optional + Country string `protobuf:"bytes,5,opt,name=country,proto3" json:"country,omitempty"` + // +optional + Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` + // +optional + ContactPerson string `protobuf:"bytes,7,opt,name=contact_person,json=contactPerson,proto3" json:"contact_person,omitempty"` + // +optional + ContactEmail string `protobuf:"bytes,8,opt,name=contact_email,json=contactEmail,proto3" json:"contact_email,omitempty"` + // +optional + ContactPhone string `protobuf:"bytes,9,opt,name=contact_phone,json=contactPhone,proto3" json:"contact_phone,omitempty"` + // +optional + Tags *_struct.Struct `protobuf:"bytes,15,opt,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *OrganizationCreateRequest) Reset() { + *x = OrganizationCreateRequest{} + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrganizationCreateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationCreateRequest) ProtoMessage() {} + +func (x *OrganizationCreateRequest) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrganizationCreateRequest.ProtoReflect.Descriptor instead. +func (*OrganizationCreateRequest) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescGZIP(), []int{0} +} + +func (x *OrganizationCreateRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *OrganizationCreateRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *OrganizationCreateRequest) GetIndustry() string { + if x != nil { + return x.Industry + } + return "" +} + +func (x *OrganizationCreateRequest) GetRegistrationNumber() string { + if x != nil { + return x.RegistrationNumber + } + return "" +} + +func (x *OrganizationCreateRequest) GetCountry() string { + if x != nil { + return x.Country + } + return "" +} + +func (x *OrganizationCreateRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *OrganizationCreateRequest) GetContactPerson() string { + if x != nil { + return x.ContactPerson + } + return "" +} + +func (x *OrganizationCreateRequest) GetContactEmail() string { + if x != nil { + return x.ContactEmail + } + return "" +} + +func (x *OrganizationCreateRequest) GetContactPhone() string { + if x != nil { + return x.ContactPhone + } + return "" +} + +func (x *OrganizationCreateRequest) GetTags() *_struct.Struct { + if x != nil { + return x.Tags + } + return nil +} + +type OrganizationUpdateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + // +optional + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + // +optional + Industry string `protobuf:"bytes,4,opt,name=industry,proto3" json:"industry,omitempty"` + // +optional + RegistrationNumber string `protobuf:"bytes,5,opt,name=registration_number,json=registrationNumber,proto3" json:"registration_number,omitempty"` + // +optional + Country string `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"` + // +optional + Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` + // +optional + ContactPerson string `protobuf:"bytes,8,opt,name=contact_person,json=contactPerson,proto3" json:"contact_person,omitempty"` + // +optional + ContactEmail string `protobuf:"bytes,9,opt,name=contact_email,json=contactEmail,proto3" json:"contact_email,omitempty"` + // +optional + ContactPhone string `protobuf:"bytes,10,opt,name=contact_phone,json=contactPhone,proto3" json:"contact_phone,omitempty"` + // +optional + Tags *_struct.Struct `protobuf:"bytes,15,opt,name=tags,proto3" json:"tags,omitempty"` +} + +func (x *OrganizationUpdateRequest) Reset() { + *x = OrganizationUpdateRequest{} + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrganizationUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationUpdateRequest) ProtoMessage() {} + +func (x *OrganizationUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrganizationUpdateRequest.ProtoReflect.Descriptor instead. +func (*OrganizationUpdateRequest) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescGZIP(), []int{1} +} + +func (x *OrganizationUpdateRequest) GetOrgId() string { + if x != nil { + return x.OrgId + } + return "" +} + +func (x *OrganizationUpdateRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *OrganizationUpdateRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *OrganizationUpdateRequest) GetIndustry() string { + if x != nil { + return x.Industry + } + return "" +} + +func (x *OrganizationUpdateRequest) GetRegistrationNumber() string { + if x != nil { + return x.RegistrationNumber + } + return "" +} + +func (x *OrganizationUpdateRequest) GetCountry() string { + if x != nil { + return x.Country + } + return "" +} + +func (x *OrganizationUpdateRequest) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *OrganizationUpdateRequest) GetContactPerson() string { + if x != nil { + return x.ContactPerson + } + return "" +} + +func (x *OrganizationUpdateRequest) GetContactEmail() string { + if x != nil { + return x.ContactEmail + } + return "" +} + +func (x *OrganizationUpdateRequest) GetContactPhone() string { + if x != nil { + return x.ContactPhone + } + return "" +} + +func (x *OrganizationUpdateRequest) GetTags() *_struct.Struct { + if x != nil { + return x.Tags + } + return nil +} + +type OrganizationRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` +} + +func (x *OrganizationRequest) Reset() { + *x = OrganizationRequest{} + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrganizationRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationRequest) ProtoMessage() {} + +func (x *OrganizationRequest) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrganizationRequest.ProtoReflect.Descriptor instead. +func (*OrganizationRequest) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescGZIP(), []int{2} +} + +func (x *OrganizationRequest) GetOrgId() string { + if x != nil { + return x.OrgId + } + return "" +} + +type OrganizationSearchQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // +optional + Query *v2.Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` + // +optional + OrgId string `protobuf:"bytes,2,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` + // +optional + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + // +optional + State OrganizationState `protobuf:"varint,4,opt,name=state,proto3,enum=spaceone.api.mzc_service_api.v1.OrganizationState" json:"state,omitempty"` +} + +func (x *OrganizationSearchQuery) Reset() { + *x = OrganizationSearchQuery{} + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrganizationSearchQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationSearchQuery) ProtoMessage() {} + +func (x *OrganizationSearchQuery) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrganizationSearchQuery.ProtoReflect.Descriptor instead. +func (*OrganizationSearchQuery) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescGZIP(), []int{3} +} + +func (x *OrganizationSearchQuery) GetQuery() *v2.Query { + if x != nil { + return x.Query + } + return nil +} + +func (x *OrganizationSearchQuery) GetOrgId() string { + if x != nil { + return x.OrgId + } + return "" +} + +func (x *OrganizationSearchQuery) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *OrganizationSearchQuery) GetState() OrganizationState { + if x != nil { + return x.State + } + return OrganizationState_ORGANIZATION_STATE_NONE +} + +type OrganizationInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + State OrganizationState `protobuf:"varint,3,opt,name=state,proto3,enum=spaceone.api.mzc_service_api.v1.OrganizationState" json:"state,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + Industry string `protobuf:"bytes,5,opt,name=industry,proto3" json:"industry,omitempty"` + RegistrationNumber string `protobuf:"bytes,6,opt,name=registration_number,json=registrationNumber,proto3" json:"registration_number,omitempty"` + Country string `protobuf:"bytes,7,opt,name=country,proto3" json:"country,omitempty"` + Address string `protobuf:"bytes,8,opt,name=address,proto3" json:"address,omitempty"` + ContactPerson string `protobuf:"bytes,9,opt,name=contact_person,json=contactPerson,proto3" json:"contact_person,omitempty"` + ContactEmail string `protobuf:"bytes,10,opt,name=contact_email,json=contactEmail,proto3" json:"contact_email,omitempty"` + ContactPhone string `protobuf:"bytes,11,opt,name=contact_phone,json=contactPhone,proto3" json:"contact_phone,omitempty"` + Tags *_struct.Struct `protobuf:"bytes,15,opt,name=tags,proto3" json:"tags,omitempty"` + DomainId string `protobuf:"bytes,21,opt,name=domain_id,json=domainId,proto3" json:"domain_id,omitempty"` + CreatedAt string `protobuf:"bytes,31,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt string `protobuf:"bytes,32,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` +} + +func (x *OrganizationInfo) Reset() { + *x = OrganizationInfo{} + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrganizationInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationInfo) ProtoMessage() {} + +func (x *OrganizationInfo) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrganizationInfo.ProtoReflect.Descriptor instead. +func (*OrganizationInfo) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescGZIP(), []int{4} +} + +func (x *OrganizationInfo) GetOrgId() string { + if x != nil { + return x.OrgId + } + return "" +} + +func (x *OrganizationInfo) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *OrganizationInfo) GetState() OrganizationState { + if x != nil { + return x.State + } + return OrganizationState_ORGANIZATION_STATE_NONE +} + +func (x *OrganizationInfo) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *OrganizationInfo) GetIndustry() string { + if x != nil { + return x.Industry + } + return "" +} + +func (x *OrganizationInfo) GetRegistrationNumber() string { + if x != nil { + return x.RegistrationNumber + } + return "" +} + +func (x *OrganizationInfo) GetCountry() string { + if x != nil { + return x.Country + } + return "" +} + +func (x *OrganizationInfo) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *OrganizationInfo) GetContactPerson() string { + if x != nil { + return x.ContactPerson + } + return "" +} + +func (x *OrganizationInfo) GetContactEmail() string { + if x != nil { + return x.ContactEmail + } + return "" +} + +func (x *OrganizationInfo) GetContactPhone() string { + if x != nil { + return x.ContactPhone + } + return "" +} + +func (x *OrganizationInfo) GetTags() *_struct.Struct { + if x != nil { + return x.Tags + } + return nil +} + +func (x *OrganizationInfo) GetDomainId() string { + if x != nil { + return x.DomainId + } + return "" +} + +func (x *OrganizationInfo) GetCreatedAt() string { + if x != nil { + return x.CreatedAt + } + return "" +} + +func (x *OrganizationInfo) GetUpdatedAt() string { + if x != nil { + return x.UpdatedAt + } + return "" +} + +type OrganizationsInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Results []*OrganizationInfo `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` +} + +func (x *OrganizationsInfo) Reset() { + *x = OrganizationsInfo{} + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrganizationsInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationsInfo) ProtoMessage() {} + +func (x *OrganizationsInfo) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrganizationsInfo.ProtoReflect.Descriptor instead. +func (*OrganizationsInfo) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescGZIP(), []int{5} +} + +func (x *OrganizationsInfo) GetResults() []*OrganizationInfo { + if x != nil { + return x.Results + } + return nil +} + +func (x *OrganizationsInfo) GetTotalCount() int32 { + if x != nil { + return x.TotalCount + } + return 0 +} + +type OrganizationStatQuery struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Query *v2.StatisticsQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` +} + +func (x *OrganizationStatQuery) Reset() { + *x = OrganizationStatQuery{} + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OrganizationStatQuery) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OrganizationStatQuery) ProtoMessage() {} + +func (x *OrganizationStatQuery) ProtoReflect() protoreflect.Message { + mi := &file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OrganizationStatQuery.ProtoReflect.Descriptor instead. +func (*OrganizationStatQuery) Descriptor() ([]byte, []int) { + return file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescGZIP(), []int{6} +} + +func (x *OrganizationStatQuery) GetQuery() *v2.StatisticsQuery { + if x != nil { + return x.Query + } + return nil +} + +var File_spaceone_api_mzc_service_api_v1_organization_proto protoreflect.FileDescriptor + +var file_spaceone_api_mzc_service_api_v1_organization_proto_rawDesc = []byte{ + 0x0a, 0x32, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, + 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x72, + 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xf0, 0x02, 0x0a, 0x19, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x64, 0x75, 0x73, 0x74, 0x72, 0x79, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x64, 0x75, 0x73, 0x74, 0x72, 0x79, + 0x12, 0x2f, 0x0a, 0x13, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x5f, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x45, 0x6d, 0x61, 0x69, + 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x70, 0x68, 0x6f, + 0x6e, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, + 0x74, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0f, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x22, 0x87, 0x03, 0x0a, 0x19, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, + 0x0a, 0x08, 0x69, 0x6e, 0x64, 0x75, 0x73, 0x74, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x69, 0x6e, 0x64, 0x75, 0x73, 0x74, 0x72, 0x79, 0x12, 0x2f, 0x0a, 0x13, 0x72, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, + 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x70, 0x65, 0x72, 0x73, 0x6f, + 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, + 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, + 0x74, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x63, + 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x68, 0x6f, 0x6e, 0x65, + 0x12, 0x2b, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x22, 0x2c, 0x0a, + 0x13, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x22, 0xc1, 0x01, 0x0a, 0x17, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x61, 0x72, + 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x31, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, + 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, + 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x48, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, + 0xa3, 0x04, 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x48, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x32, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, + 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x69, + 0x6e, 0x64, 0x75, 0x73, 0x74, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, + 0x6e, 0x64, 0x75, 0x73, 0x74, 0x72, 0x79, 0x12, 0x2f, 0x0a, 0x13, 0x72, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x25, 0x0a, 0x0e, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x65, 0x72, + 0x73, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x5f, 0x65, + 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x63, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, + 0x61, 0x63, 0x74, 0x5f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x2b, 0x0a, + 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, + 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x61, 0x74, 0x18, 0x20, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x81, 0x01, 0x0a, 0x11, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x4b, 0x0a, 0x07, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x22, 0x54, 0x0a, 0x15, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x12, 0x3b, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, + 0x69, 0x63, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2a, + 0x4b, 0x0a, 0x11, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4f, 0x52, 0x47, 0x41, 0x4e, 0x49, 0x5a, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, + 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, + 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x32, 0xa0, 0x0a, 0x0a, + 0x0c, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0xab, 0x01, + 0x0a, 0x06, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x3a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, + 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, + 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0xab, 0x01, 0x0a, 0x06, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x3a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, + 0x22, 0x27, 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, + 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0xa5, 0x01, 0x0a, 0x06, 0x65, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x12, 0x34, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, + 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x32, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x3a, 0x01, 0x2a, 0x22, 0x27, 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x65, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x12, 0xa7, 0x01, 0x0a, 0x07, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x34, 0x2e, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, + 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x01, + 0x2a, 0x22, 0x28, 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, + 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x8a, 0x01, 0x0a, 0x06, + 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x34, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, 0x70, + 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x03, 0x67, 0x65, 0x74, + 0x12, 0x34, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, + 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x29, 0x3a, 0x01, 0x2a, 0x22, 0x24, 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, + 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x65, 0x74, 0x12, 0xa6, 0x01, 0x0a, 0x04, 0x6c, + 0x69, 0x73, 0x74, 0x12, 0x38, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x32, 0x2e, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, + 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x49, 0x6e, 0x66, + 0x6f, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x3a, 0x01, 0x2a, 0x22, 0x25, 0x2f, 0x6d, + 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, + 0x31, 0x2f, 0x6f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6c, + 0x69, 0x73, 0x74, 0x12, 0x89, 0x01, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x74, 0x12, 0x36, 0x2e, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6f, 0x6e, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x7a, 0x63, 0x5f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, + 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x30, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x3a, 0x01, 0x2a, 0x22, 0x25, 0x2f, 0x6d, 0x7a, 0x63, 0x2d, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x72, + 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x42, + 0x46, 0x5a, 0x44, 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, 0x6d, 0x7a, 0x63, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescOnce sync.Once + file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescData = file_spaceone_api_mzc_service_api_v1_organization_proto_rawDesc +) + +func file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescGZIP() []byte { + file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescOnce.Do(func() { + file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescData = protoimpl.X.CompressGZIP(file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescData) + }) + return file_spaceone_api_mzc_service_api_v1_organization_proto_rawDescData +} + +var file_spaceone_api_mzc_service_api_v1_organization_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_spaceone_api_mzc_service_api_v1_organization_proto_goTypes = []any{ + (OrganizationState)(0), // 0: spaceone.api.mzc_service_api.v1.OrganizationState + (*OrganizationCreateRequest)(nil), // 1: spaceone.api.mzc_service_api.v1.OrganizationCreateRequest + (*OrganizationUpdateRequest)(nil), // 2: spaceone.api.mzc_service_api.v1.OrganizationUpdateRequest + (*OrganizationRequest)(nil), // 3: spaceone.api.mzc_service_api.v1.OrganizationRequest + (*OrganizationSearchQuery)(nil), // 4: spaceone.api.mzc_service_api.v1.OrganizationSearchQuery + (*OrganizationInfo)(nil), // 5: spaceone.api.mzc_service_api.v1.OrganizationInfo + (*OrganizationsInfo)(nil), // 6: spaceone.api.mzc_service_api.v1.OrganizationsInfo + (*OrganizationStatQuery)(nil), // 7: spaceone.api.mzc_service_api.v1.OrganizationStatQuery + (*_struct.Struct)(nil), // 8: google.protobuf.Struct + (*v2.Query)(nil), // 9: spaceone.api.core.v2.Query + (*v2.StatisticsQuery)(nil), // 10: spaceone.api.core.v2.StatisticsQuery + (*empty.Empty)(nil), // 11: google.protobuf.Empty +} +var file_spaceone_api_mzc_service_api_v1_organization_proto_depIdxs = []int32{ + 8, // 0: spaceone.api.mzc_service_api.v1.OrganizationCreateRequest.tags:type_name -> google.protobuf.Struct + 8, // 1: spaceone.api.mzc_service_api.v1.OrganizationUpdateRequest.tags:type_name -> google.protobuf.Struct + 9, // 2: spaceone.api.mzc_service_api.v1.OrganizationSearchQuery.query:type_name -> spaceone.api.core.v2.Query + 0, // 3: spaceone.api.mzc_service_api.v1.OrganizationSearchQuery.state:type_name -> spaceone.api.mzc_service_api.v1.OrganizationState + 0, // 4: spaceone.api.mzc_service_api.v1.OrganizationInfo.state:type_name -> spaceone.api.mzc_service_api.v1.OrganizationState + 8, // 5: spaceone.api.mzc_service_api.v1.OrganizationInfo.tags:type_name -> google.protobuf.Struct + 5, // 6: spaceone.api.mzc_service_api.v1.OrganizationsInfo.results:type_name -> spaceone.api.mzc_service_api.v1.OrganizationInfo + 10, // 7: spaceone.api.mzc_service_api.v1.OrganizationStatQuery.query:type_name -> spaceone.api.core.v2.StatisticsQuery + 1, // 8: spaceone.api.mzc_service_api.v1.Organization.create:input_type -> spaceone.api.mzc_service_api.v1.OrganizationCreateRequest + 2, // 9: spaceone.api.mzc_service_api.v1.Organization.update:input_type -> spaceone.api.mzc_service_api.v1.OrganizationUpdateRequest + 3, // 10: spaceone.api.mzc_service_api.v1.Organization.enable:input_type -> spaceone.api.mzc_service_api.v1.OrganizationRequest + 3, // 11: spaceone.api.mzc_service_api.v1.Organization.disable:input_type -> spaceone.api.mzc_service_api.v1.OrganizationRequest + 3, // 12: spaceone.api.mzc_service_api.v1.Organization.delete:input_type -> spaceone.api.mzc_service_api.v1.OrganizationRequest + 3, // 13: spaceone.api.mzc_service_api.v1.Organization.get:input_type -> spaceone.api.mzc_service_api.v1.OrganizationRequest + 4, // 14: spaceone.api.mzc_service_api.v1.Organization.list:input_type -> spaceone.api.mzc_service_api.v1.OrganizationSearchQuery + 7, // 15: spaceone.api.mzc_service_api.v1.Organization.stat:input_type -> spaceone.api.mzc_service_api.v1.OrganizationStatQuery + 5, // 16: spaceone.api.mzc_service_api.v1.Organization.create:output_type -> spaceone.api.mzc_service_api.v1.OrganizationInfo + 5, // 17: spaceone.api.mzc_service_api.v1.Organization.update:output_type -> spaceone.api.mzc_service_api.v1.OrganizationInfo + 5, // 18: spaceone.api.mzc_service_api.v1.Organization.enable:output_type -> spaceone.api.mzc_service_api.v1.OrganizationInfo + 5, // 19: spaceone.api.mzc_service_api.v1.Organization.disable:output_type -> spaceone.api.mzc_service_api.v1.OrganizationInfo + 11, // 20: spaceone.api.mzc_service_api.v1.Organization.delete:output_type -> google.protobuf.Empty + 5, // 21: spaceone.api.mzc_service_api.v1.Organization.get:output_type -> spaceone.api.mzc_service_api.v1.OrganizationInfo + 6, // 22: spaceone.api.mzc_service_api.v1.Organization.list:output_type -> spaceone.api.mzc_service_api.v1.OrganizationsInfo + 8, // 23: spaceone.api.mzc_service_api.v1.Organization.stat:output_type -> google.protobuf.Struct + 16, // [16:24] is the sub-list for method output_type + 8, // [8:16] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_spaceone_api_mzc_service_api_v1_organization_proto_init() } +func file_spaceone_api_mzc_service_api_v1_organization_proto_init() { + if File_spaceone_api_mzc_service_api_v1_organization_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_spaceone_api_mzc_service_api_v1_organization_proto_rawDesc, + NumEnums: 1, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_spaceone_api_mzc_service_api_v1_organization_proto_goTypes, + DependencyIndexes: file_spaceone_api_mzc_service_api_v1_organization_proto_depIdxs, + EnumInfos: file_spaceone_api_mzc_service_api_v1_organization_proto_enumTypes, + MessageInfos: file_spaceone_api_mzc_service_api_v1_organization_proto_msgTypes, + }.Build() + File_spaceone_api_mzc_service_api_v1_organization_proto = out.File + file_spaceone_api_mzc_service_api_v1_organization_proto_rawDesc = nil + file_spaceone_api_mzc_service_api_v1_organization_proto_goTypes = nil + file_spaceone_api_mzc_service_api_v1_organization_proto_depIdxs = nil +} diff --git a/dist/go/spaceone/api/mzc-service-api/v1/organization_grpc.pb.go b/dist/go/spaceone/api/mzc-service-api/v1/organization_grpc.pb.go new file mode 100755 index 000000000..b7ed223a1 --- /dev/null +++ b/dist/go/spaceone/api/mzc-service-api/v1/organization_grpc.pb.go @@ -0,0 +1,389 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc v3.6.1 +// source: spaceone/api/mzc_service_api/v1/organization.proto + +package v1 + +import ( + context "context" + empty "github.com/golang/protobuf/ptypes/empty" + _struct "github.com/golang/protobuf/ptypes/struct" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + Organization_Create_FullMethodName = "/spaceone.api.mzc_service_api.v1.Organization/create" + Organization_Update_FullMethodName = "/spaceone.api.mzc_service_api.v1.Organization/update" + Organization_Enable_FullMethodName = "/spaceone.api.mzc_service_api.v1.Organization/enable" + Organization_Disable_FullMethodName = "/spaceone.api.mzc_service_api.v1.Organization/disable" + Organization_Delete_FullMethodName = "/spaceone.api.mzc_service_api.v1.Organization/delete" + Organization_Get_FullMethodName = "/spaceone.api.mzc_service_api.v1.Organization/get" + Organization_List_FullMethodName = "/spaceone.api.mzc_service_api.v1.Organization/list" + Organization_Stat_FullMethodName = "/spaceone.api.mzc_service_api.v1.Organization/stat" +) + +// OrganizationClient is the client API for Organization service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type OrganizationClient interface { + Create(ctx context.Context, in *OrganizationCreateRequest, opts ...grpc.CallOption) (*OrganizationInfo, error) + Update(ctx context.Context, in *OrganizationUpdateRequest, opts ...grpc.CallOption) (*OrganizationInfo, error) + Enable(ctx context.Context, in *OrganizationRequest, opts ...grpc.CallOption) (*OrganizationInfo, error) + Disable(ctx context.Context, in *OrganizationRequest, opts ...grpc.CallOption) (*OrganizationInfo, error) + Delete(ctx context.Context, in *OrganizationRequest, opts ...grpc.CallOption) (*empty.Empty, error) + Get(ctx context.Context, in *OrganizationRequest, opts ...grpc.CallOption) (*OrganizationInfo, error) + List(ctx context.Context, in *OrganizationSearchQuery, opts ...grpc.CallOption) (*OrganizationsInfo, error) + Stat(ctx context.Context, in *OrganizationStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error) +} + +type organizationClient struct { + cc grpc.ClientConnInterface +} + +func NewOrganizationClient(cc grpc.ClientConnInterface) OrganizationClient { + return &organizationClient{cc} +} + +func (c *organizationClient) Create(ctx context.Context, in *OrganizationCreateRequest, opts ...grpc.CallOption) (*OrganizationInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OrganizationInfo) + err := c.cc.Invoke(ctx, Organization_Create_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *organizationClient) Update(ctx context.Context, in *OrganizationUpdateRequest, opts ...grpc.CallOption) (*OrganizationInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OrganizationInfo) + err := c.cc.Invoke(ctx, Organization_Update_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *organizationClient) Enable(ctx context.Context, in *OrganizationRequest, opts ...grpc.CallOption) (*OrganizationInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OrganizationInfo) + err := c.cc.Invoke(ctx, Organization_Enable_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *organizationClient) Disable(ctx context.Context, in *OrganizationRequest, opts ...grpc.CallOption) (*OrganizationInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OrganizationInfo) + err := c.cc.Invoke(ctx, Organization_Disable_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *organizationClient) Delete(ctx context.Context, in *OrganizationRequest, opts ...grpc.CallOption) (*empty.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(empty.Empty) + err := c.cc.Invoke(ctx, Organization_Delete_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *organizationClient) Get(ctx context.Context, in *OrganizationRequest, opts ...grpc.CallOption) (*OrganizationInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OrganizationInfo) + err := c.cc.Invoke(ctx, Organization_Get_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *organizationClient) List(ctx context.Context, in *OrganizationSearchQuery, opts ...grpc.CallOption) (*OrganizationsInfo, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(OrganizationsInfo) + err := c.cc.Invoke(ctx, Organization_List_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *organizationClient) Stat(ctx context.Context, in *OrganizationStatQuery, opts ...grpc.CallOption) (*_struct.Struct, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(_struct.Struct) + err := c.cc.Invoke(ctx, Organization_Stat_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// OrganizationServer is the server API for Organization service. +// All implementations must embed UnimplementedOrganizationServer +// for forward compatibility. +type OrganizationServer interface { + Create(context.Context, *OrganizationCreateRequest) (*OrganizationInfo, error) + Update(context.Context, *OrganizationUpdateRequest) (*OrganizationInfo, error) + Enable(context.Context, *OrganizationRequest) (*OrganizationInfo, error) + Disable(context.Context, *OrganizationRequest) (*OrganizationInfo, error) + Delete(context.Context, *OrganizationRequest) (*empty.Empty, error) + Get(context.Context, *OrganizationRequest) (*OrganizationInfo, error) + List(context.Context, *OrganizationSearchQuery) (*OrganizationsInfo, error) + Stat(context.Context, *OrganizationStatQuery) (*_struct.Struct, error) + mustEmbedUnimplementedOrganizationServer() +} + +// UnimplementedOrganizationServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedOrganizationServer struct{} + +func (UnimplementedOrganizationServer) Create(context.Context, *OrganizationCreateRequest) (*OrganizationInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (UnimplementedOrganizationServer) Update(context.Context, *OrganizationUpdateRequest) (*OrganizationInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (UnimplementedOrganizationServer) Enable(context.Context, *OrganizationRequest) (*OrganizationInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method Enable not implemented") +} +func (UnimplementedOrganizationServer) Disable(context.Context, *OrganizationRequest) (*OrganizationInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method Disable not implemented") +} +func (UnimplementedOrganizationServer) Delete(context.Context, *OrganizationRequest) (*empty.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (UnimplementedOrganizationServer) Get(context.Context, *OrganizationRequest) (*OrganizationInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (UnimplementedOrganizationServer) List(context.Context, *OrganizationSearchQuery) (*OrganizationsInfo, error) { + return nil, status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (UnimplementedOrganizationServer) Stat(context.Context, *OrganizationStatQuery) (*_struct.Struct, error) { + return nil, status.Errorf(codes.Unimplemented, "method Stat not implemented") +} +func (UnimplementedOrganizationServer) mustEmbedUnimplementedOrganizationServer() {} +func (UnimplementedOrganizationServer) testEmbeddedByValue() {} + +// UnsafeOrganizationServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to OrganizationServer will +// result in compilation errors. +type UnsafeOrganizationServer interface { + mustEmbedUnimplementedOrganizationServer() +} + +func RegisterOrganizationServer(s grpc.ServiceRegistrar, srv OrganizationServer) { + // If the following call pancis, it indicates UnimplementedOrganizationServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&Organization_ServiceDesc, srv) +} + +func _Organization_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrganizationCreateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OrganizationServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Organization_Create_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OrganizationServer).Create(ctx, req.(*OrganizationCreateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Organization_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrganizationUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OrganizationServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Organization_Update_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OrganizationServer).Update(ctx, req.(*OrganizationUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Organization_Enable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrganizationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OrganizationServer).Enable(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Organization_Enable_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OrganizationServer).Enable(ctx, req.(*OrganizationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Organization_Disable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrganizationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OrganizationServer).Disable(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Organization_Disable_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OrganizationServer).Disable(ctx, req.(*OrganizationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Organization_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrganizationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OrganizationServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Organization_Delete_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OrganizationServer).Delete(ctx, req.(*OrganizationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Organization_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrganizationRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OrganizationServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Organization_Get_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OrganizationServer).Get(ctx, req.(*OrganizationRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Organization_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrganizationSearchQuery) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OrganizationServer).List(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Organization_List_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OrganizationServer).List(ctx, req.(*OrganizationSearchQuery)) + } + return interceptor(ctx, in, info, handler) +} + +func _Organization_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(OrganizationStatQuery) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(OrganizationServer).Stat(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Organization_Stat_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(OrganizationServer).Stat(ctx, req.(*OrganizationStatQuery)) + } + return interceptor(ctx, in, info, handler) +} + +// Organization_ServiceDesc is the grpc.ServiceDesc for Organization service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var Organization_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "spaceone.api.mzc_service_api.v1.Organization", + HandlerType: (*OrganizationServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "create", + Handler: _Organization_Create_Handler, + }, + { + MethodName: "update", + Handler: _Organization_Update_Handler, + }, + { + MethodName: "enable", + Handler: _Organization_Enable_Handler, + }, + { + MethodName: "disable", + Handler: _Organization_Disable_Handler, + }, + { + MethodName: "delete", + Handler: _Organization_Delete_Handler, + }, + { + MethodName: "get", + Handler: _Organization_Get_Handler, + }, + { + MethodName: "list", + Handler: _Organization_List_Handler, + }, + { + MethodName: "stat", + Handler: _Organization_Stat_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "spaceone/api/mzc_service_api/v1/organization.proto", +} diff --git a/dist/json/cloudforet/api/mzc_service_api/v1/Contract.json b/dist/json/cloudforet/api/mzc_service_api/v1/Contract.json new file mode 100755 index 000000000..84253f6d4 --- /dev/null +++ b/dist/json/cloudforet/api/mzc_service_api/v1/Contract.json @@ -0,0 +1,965 @@ +{ + "files": [ + { + "name": "spaceone/api/mzc_service_api/v1/contract.proto", + "description": "", + "package": "spaceone.api.mzc_service_api.v1", + "hasEnums": true, + "hasExtensions": false, + "hasMessages": true, + "hasServices": true, + "enums": [ + { + "name": "ContractRenewalType", + "longName": "ContractRenewalType", + "fullName": "spaceone.api.mzc_service_api.v1.ContractRenewalType", + "description": "", + "values": [ + { + "name": "CONTRACT_RENEWAL_TYPE_NONE", + "number": "0", + "description": "" + }, + { + "name": "AUTO", + "number": "1", + "description": "" + }, + { + "name": "MANUAL", + "number": "2", + "description": "" + }, + { + "name": "NOT_RENEW", + "number": "3", + "description": "" + } + ] + }, + { + "name": "ContractStatus", + "longName": "ContractStatus", + "fullName": "spaceone.api.mzc_service_api.v1.ContractStatus", + "description": "", + "values": [ + { + "name": "CONTRACT_STATUS_NONE", + "number": "0", + "description": "" + }, + { + "name": "ACTIVE", + "number": "1", + "description": "" + }, + { + "name": "TERMINATED", + "number": "2", + "description": "" + }, + { + "name": "EXPIRED", + "number": "3", + "description": "" + } + ] + } + ], + "extensions": [], + "messages": [ + { + "name": "ContractCreateRequest", + "longName": "ContractCreateRequest", + "fullName": "spaceone.api.mzc_service_api.v1.ContractCreateRequest", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "org_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "offering_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "name", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "description", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "start_date", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "end_date", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "signed_date", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "renewal_type", + "description": "+optional", + "label": "", + "type": "ContractRenewalType", + "longType": "ContractRenewalType", + "fullType": "spaceone.api.mzc_service_api.v1.ContractRenewalType", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "tags", + "description": "+optional", + "label": "", + "type": "Struct", + "longType": "google.protobuf.Struct", + "fullType": "google.protobuf.Struct", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "ContractInfo", + "longName": "ContractInfo", + "fullName": "spaceone.api.mzc_service_api.v1.ContractInfo", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "contract_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "org_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "offering_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "name", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "status", + "description": "", + "label": "", + "type": "ContractStatus", + "longType": "ContractStatus", + "fullType": "spaceone.api.mzc_service_api.v1.ContractStatus", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "description", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "start_date", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "end_date", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "signed_date", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "renewal_type", + "description": "", + "label": "", + "type": "ContractRenewalType", + "longType": "ContractRenewalType", + "fullType": "spaceone.api.mzc_service_api.v1.ContractRenewalType", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "tags", + "description": "", + "label": "", + "type": "Struct", + "longType": "google.protobuf.Struct", + "fullType": "google.protobuf.Struct", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "domain_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "created_at", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "updated_at", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "ContractRequest", + "longName": "ContractRequest", + "fullName": "spaceone.api.mzc_service_api.v1.ContractRequest", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "contract_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "ContractSearchQuery", + "longName": "ContractSearchQuery", + "fullName": "spaceone.api.mzc_service_api.v1.ContractSearchQuery", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "query", + "description": "+optional", + "label": "", + "type": "Query", + "longType": "spaceone.api.core.v2.Query", + "fullType": "spaceone.api.core.v2.Query", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "contract_id", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "org_id", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "offering_id", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "status", + "description": "+optional", + "label": "", + "type": "ContractStatus", + "longType": "ContractStatus", + "fullType": "spaceone.api.mzc_service_api.v1.ContractStatus", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "renewal_type", + "description": "+optional", + "label": "", + "type": "ContractRenewalType", + "longType": "ContractRenewalType", + "fullType": "spaceone.api.mzc_service_api.v1.ContractRenewalType", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "ContractStatQuery", + "longName": "ContractStatQuery", + "fullName": "spaceone.api.mzc_service_api.v1.ContractStatQuery", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "query", + "description": "", + "label": "", + "type": "StatisticsQuery", + "longType": "spaceone.api.core.v2.StatisticsQuery", + "fullType": "spaceone.api.core.v2.StatisticsQuery", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "ContractUpdateRequest", + "longName": "ContractUpdateRequest", + "fullName": "spaceone.api.mzc_service_api.v1.ContractUpdateRequest", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "contract_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "name", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "description", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "start_date", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "end_date", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "signed_date", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "renewal_type", + "description": "+optional", + "label": "", + "type": "ContractRenewalType", + "longType": "ContractRenewalType", + "fullType": "spaceone.api.mzc_service_api.v1.ContractRenewalType", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "tags", + "description": "+optional", + "label": "", + "type": "Struct", + "longType": "google.protobuf.Struct", + "fullType": "google.protobuf.Struct", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "ContractsInfo", + "longName": "ContractsInfo", + "fullName": "spaceone.api.mzc_service_api.v1.ContractsInfo", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "results", + "description": "", + "label": "repeated", + "type": "ContractInfo", + "longType": "ContractInfo", + "fullType": "spaceone.api.mzc_service_api.v1.ContractInfo", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "total_count", + "description": "", + "label": "", + "type": "int32", + "longType": "int32", + "fullType": "int32", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + } + ], + "services": [ + { + "name": "Contract", + "longName": "Contract", + "fullName": "spaceone.api.mzc_service_api.v1.Contract", + "description": "", + "methods": [ + { + "name": "create", + "description": "", + "requestType": "ContractCreateRequest", + "requestLongType": "ContractCreateRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.ContractCreateRequest", + "requestStreaming": false, + "responseType": "ContractInfo", + "responseLongType": "ContractInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.ContractInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/contract/create", + "body": "*" + } + ] + } + } + }, + { + "name": "update", + "description": "", + "requestType": "ContractUpdateRequest", + "requestLongType": "ContractUpdateRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.ContractUpdateRequest", + "requestStreaming": false, + "responseType": "ContractInfo", + "responseLongType": "ContractInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.ContractInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/contract/update", + "body": "*" + } + ] + } + } + }, + { + "name": "terminate", + "description": "", + "requestType": "ContractRequest", + "requestLongType": "ContractRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.ContractRequest", + "requestStreaming": false, + "responseType": "Empty", + "responseLongType": ".google.protobuf.Empty", + "responseFullType": "google.protobuf.Empty", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/contract/terminate", + "body": "*" + } + ] + } + } + }, + { + "name": "get", + "description": "", + "requestType": "ContractRequest", + "requestLongType": "ContractRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.ContractRequest", + "requestStreaming": false, + "responseType": "ContractInfo", + "responseLongType": "ContractInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.ContractInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/contract/get", + "body": "*" + } + ] + } + } + }, + { + "name": "list", + "description": "", + "requestType": "ContractSearchQuery", + "requestLongType": "ContractSearchQuery", + "requestFullType": "spaceone.api.mzc_service_api.v1.ContractSearchQuery", + "requestStreaming": false, + "responseType": "ContractsInfo", + "responseLongType": "ContractsInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.ContractsInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/contract/list", + "body": "*" + } + ] + } + } + }, + { + "name": "stat", + "description": "", + "requestType": "ContractStatQuery", + "requestLongType": "ContractStatQuery", + "requestFullType": "spaceone.api.mzc_service_api.v1.ContractStatQuery", + "requestStreaming": false, + "responseType": "Struct", + "responseLongType": ".google.protobuf.Struct", + "responseFullType": "google.protobuf.Struct", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/contract/stat", + "body": "*" + } + ] + } + } + } + ] + } + ] + } + ], + "scalarValueTypes": [ + { + "protoType": "double", + "notes": "", + "cppType": "double", + "csType": "double", + "goType": "float64", + "javaType": "double", + "phpType": "float", + "pythonType": "float", + "rubyType": "Float" + }, + { + "protoType": "float", + "notes": "", + "cppType": "float", + "csType": "float", + "goType": "float32", + "javaType": "float", + "phpType": "float", + "pythonType": "float", + "rubyType": "Float" + }, + { + "protoType": "int32", + "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.", + "cppType": "int32", + "csType": "int", + "goType": "int32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "int64", + "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.", + "cppType": "int64", + "csType": "long", + "goType": "int64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum" + }, + { + "protoType": "uint32", + "notes": "Uses variable-length encoding.", + "cppType": "uint32", + "csType": "uint", + "goType": "uint32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int/long", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "uint64", + "notes": "Uses variable-length encoding.", + "cppType": "uint64", + "csType": "ulong", + "goType": "uint64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "sint32", + "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.", + "cppType": "int32", + "csType": "int", + "goType": "int32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "sint64", + "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.", + "cppType": "int64", + "csType": "long", + "goType": "int64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum" + }, + { + "protoType": "fixed32", + "notes": "Always four bytes. More efficient than uint32 if values are often greater than 2^28.", + "cppType": "uint32", + "csType": "uint", + "goType": "uint32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "fixed64", + "notes": "Always eight bytes. More efficient than uint64 if values are often greater than 2^56.", + "cppType": "uint64", + "csType": "ulong", + "goType": "uint64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum" + }, + { + "protoType": "sfixed32", + "notes": "Always four bytes.", + "cppType": "int32", + "csType": "int", + "goType": "int32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "sfixed64", + "notes": "Always eight bytes.", + "cppType": "int64", + "csType": "long", + "goType": "int64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum" + }, + { + "protoType": "bool", + "notes": "", + "cppType": "bool", + "csType": "bool", + "goType": "bool", + "javaType": "boolean", + "phpType": "boolean", + "pythonType": "boolean", + "rubyType": "TrueClass/FalseClass" + }, + { + "protoType": "string", + "notes": "A string must always contain UTF-8 encoded or 7-bit ASCII text.", + "cppType": "string", + "csType": "string", + "goType": "string", + "javaType": "String", + "phpType": "string", + "pythonType": "str/unicode", + "rubyType": "String (UTF-8)" + }, + { + "protoType": "bytes", + "notes": "May contain any arbitrary sequence of bytes.", + "cppType": "string", + "csType": "ByteString", + "goType": "[]byte", + "javaType": "ByteString", + "phpType": "string", + "pythonType": "str", + "rubyType": "String (ASCII-8BIT)" + } + ] +} \ No newline at end of file diff --git a/dist/json/cloudforet/api/mzc_service_api/v1/Offering.json b/dist/json/cloudforet/api/mzc_service_api/v1/Offering.json new file mode 100755 index 000000000..2d58069b8 --- /dev/null +++ b/dist/json/cloudforet/api/mzc_service_api/v1/Offering.json @@ -0,0 +1,901 @@ +{ + "files": [ + { + "name": "spaceone/api/mzc_service_api/v1/offering.proto", + "description": "", + "package": "spaceone.api.mzc_service_api.v1", + "hasEnums": true, + "hasExtensions": false, + "hasMessages": true, + "hasServices": true, + "enums": [ + { + "name": "OfferingStatus", + "longName": "OfferingStatus", + "fullName": "spaceone.api.mzc_service_api.v1.OfferingStatus", + "description": "", + "values": [ + { + "name": "OFFERING_STATUS_NONE", + "number": "0", + "description": "" + }, + { + "name": "AVAILABLE", + "number": "1", + "description": "" + }, + { + "name": "UNAVAILABLE", + "number": "2", + "description": "" + }, + { + "name": "DISCONTINUED", + "number": "3", + "description": "" + } + ] + } + ], + "extensions": [], + "messages": [ + { + "name": "OfferingCreateRequest", + "longName": "OfferingCreateRequest", + "fullName": "spaceone.api.mzc_service_api.v1.OfferingCreateRequest", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "name", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "category", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "price", + "description": "+optional", + "label": "", + "type": "float", + "longType": "float", + "fullType": "float", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "currency", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "description", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "terms", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "website_url", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "tags", + "description": "+optional", + "label": "", + "type": "Struct", + "longType": "google.protobuf.Struct", + "fullType": "google.protobuf.Struct", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "OfferingInfo", + "longName": "OfferingInfo", + "fullName": "spaceone.api.mzc_service_api.v1.OfferingInfo", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "offering_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "name", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "category", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "status", + "description": "", + "label": "", + "type": "OfferingStatus", + "longType": "OfferingStatus", + "fullType": "spaceone.api.mzc_service_api.v1.OfferingStatus", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "price", + "description": "", + "label": "", + "type": "float", + "longType": "float", + "fullType": "float", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "currency", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "description", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "terms", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "website_url", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "tags", + "description": "", + "label": "", + "type": "Struct", + "longType": "google.protobuf.Struct", + "fullType": "google.protobuf.Struct", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "domain_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "created_at", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "updated_at", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "OfferingRequest", + "longName": "OfferingRequest", + "fullName": "spaceone.api.mzc_service_api.v1.OfferingRequest", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "offering_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "OfferingSearchQuery", + "longName": "OfferingSearchQuery", + "fullName": "spaceone.api.mzc_service_api.v1.OfferingSearchQuery", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "query", + "description": "+optional", + "label": "", + "type": "Query", + "longType": "spaceone.api.core.v2.Query", + "fullType": "spaceone.api.core.v2.Query", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "offering_id", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "name", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "status", + "description": "+optional", + "label": "", + "type": "OfferingStatus", + "longType": "OfferingStatus", + "fullType": "spaceone.api.mzc_service_api.v1.OfferingStatus", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "OfferingStatQuery", + "longName": "OfferingStatQuery", + "fullName": "spaceone.api.mzc_service_api.v1.OfferingStatQuery", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "query", + "description": "", + "label": "", + "type": "StatisticsQuery", + "longType": "spaceone.api.core.v2.StatisticsQuery", + "fullType": "spaceone.api.core.v2.StatisticsQuery", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "OfferingUpdateRequest", + "longName": "OfferingUpdateRequest", + "fullName": "spaceone.api.mzc_service_api.v1.OfferingUpdateRequest", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "offering_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "name", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "status", + "description": "+optional", + "label": "", + "type": "OfferingStatus", + "longType": "OfferingStatus", + "fullType": "spaceone.api.mzc_service_api.v1.OfferingStatus", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "price", + "description": "+optional", + "label": "", + "type": "float", + "longType": "float", + "fullType": "float", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "currency", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "description", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "terms", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "website_url", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "tags", + "description": "+optional", + "label": "", + "type": "Struct", + "longType": "google.protobuf.Struct", + "fullType": "google.protobuf.Struct", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "OfferingsInfo", + "longName": "OfferingsInfo", + "fullName": "spaceone.api.mzc_service_api.v1.OfferingsInfo", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "results", + "description": "", + "label": "repeated", + "type": "OfferingInfo", + "longType": "OfferingInfo", + "fullType": "spaceone.api.mzc_service_api.v1.OfferingInfo", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "total_count", + "description": "", + "label": "", + "type": "int32", + "longType": "int32", + "fullType": "int32", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + } + ], + "services": [ + { + "name": "Offering", + "longName": "Offering", + "fullName": "spaceone.api.mzc_service_api.v1.Offering", + "description": "", + "methods": [ + { + "name": "create", + "description": "", + "requestType": "OfferingCreateRequest", + "requestLongType": "OfferingCreateRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.OfferingCreateRequest", + "requestStreaming": false, + "responseType": "OfferingInfo", + "responseLongType": "OfferingInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.OfferingInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/offering/create", + "body": "*" + } + ] + } + } + }, + { + "name": "update", + "description": "", + "requestType": "OfferingUpdateRequest", + "requestLongType": "OfferingUpdateRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.OfferingUpdateRequest", + "requestStreaming": false, + "responseType": "OfferingInfo", + "responseLongType": "OfferingInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.OfferingInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/offering/update", + "body": "*" + } + ] + } + } + }, + { + "name": "delete", + "description": "", + "requestType": "OfferingRequest", + "requestLongType": "OfferingRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.OfferingRequest", + "requestStreaming": false, + "responseType": "Empty", + "responseLongType": ".google.protobuf.Empty", + "responseFullType": "google.protobuf.Empty", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/offering/delete", + "body": "*" + } + ] + } + } + }, + { + "name": "get", + "description": "", + "requestType": "OfferingRequest", + "requestLongType": "OfferingRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.OfferingRequest", + "requestStreaming": false, + "responseType": "OfferingInfo", + "responseLongType": "OfferingInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.OfferingInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/offering/get", + "body": "*" + } + ] + } + } + }, + { + "name": "list", + "description": "", + "requestType": "OfferingSearchQuery", + "requestLongType": "OfferingSearchQuery", + "requestFullType": "spaceone.api.mzc_service_api.v1.OfferingSearchQuery", + "requestStreaming": false, + "responseType": "OfferingsInfo", + "responseLongType": "OfferingsInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.OfferingsInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/offering/list", + "body": "*" + } + ] + } + } + }, + { + "name": "stat", + "description": "", + "requestType": "OfferingStatQuery", + "requestLongType": "OfferingStatQuery", + "requestFullType": "spaceone.api.mzc_service_api.v1.OfferingStatQuery", + "requestStreaming": false, + "responseType": "Struct", + "responseLongType": ".google.protobuf.Struct", + "responseFullType": "google.protobuf.Struct", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/offering/stat", + "body": "*" + } + ] + } + } + } + ] + } + ] + } + ], + "scalarValueTypes": [ + { + "protoType": "double", + "notes": "", + "cppType": "double", + "csType": "double", + "goType": "float64", + "javaType": "double", + "phpType": "float", + "pythonType": "float", + "rubyType": "Float" + }, + { + "protoType": "float", + "notes": "", + "cppType": "float", + "csType": "float", + "goType": "float32", + "javaType": "float", + "phpType": "float", + "pythonType": "float", + "rubyType": "Float" + }, + { + "protoType": "int32", + "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.", + "cppType": "int32", + "csType": "int", + "goType": "int32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "int64", + "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.", + "cppType": "int64", + "csType": "long", + "goType": "int64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum" + }, + { + "protoType": "uint32", + "notes": "Uses variable-length encoding.", + "cppType": "uint32", + "csType": "uint", + "goType": "uint32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int/long", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "uint64", + "notes": "Uses variable-length encoding.", + "cppType": "uint64", + "csType": "ulong", + "goType": "uint64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "sint32", + "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.", + "cppType": "int32", + "csType": "int", + "goType": "int32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "sint64", + "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.", + "cppType": "int64", + "csType": "long", + "goType": "int64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum" + }, + { + "protoType": "fixed32", + "notes": "Always four bytes. More efficient than uint32 if values are often greater than 2^28.", + "cppType": "uint32", + "csType": "uint", + "goType": "uint32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "fixed64", + "notes": "Always eight bytes. More efficient than uint64 if values are often greater than 2^56.", + "cppType": "uint64", + "csType": "ulong", + "goType": "uint64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum" + }, + { + "protoType": "sfixed32", + "notes": "Always four bytes.", + "cppType": "int32", + "csType": "int", + "goType": "int32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "sfixed64", + "notes": "Always eight bytes.", + "cppType": "int64", + "csType": "long", + "goType": "int64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum" + }, + { + "protoType": "bool", + "notes": "", + "cppType": "bool", + "csType": "bool", + "goType": "bool", + "javaType": "boolean", + "phpType": "boolean", + "pythonType": "boolean", + "rubyType": "TrueClass/FalseClass" + }, + { + "protoType": "string", + "notes": "A string must always contain UTF-8 encoded or 7-bit ASCII text.", + "cppType": "string", + "csType": "string", + "goType": "string", + "javaType": "String", + "phpType": "string", + "pythonType": "str/unicode", + "rubyType": "String (UTF-8)" + }, + { + "protoType": "bytes", + "notes": "May contain any arbitrary sequence of bytes.", + "cppType": "string", + "csType": "ByteString", + "goType": "[]byte", + "javaType": "ByteString", + "phpType": "string", + "pythonType": "str", + "rubyType": "String (ASCII-8BIT)" + } + ] +} \ No newline at end of file diff --git a/dist/json/cloudforet/api/mzc_service_api/v1/Organization.json b/dist/json/cloudforet/api/mzc_service_api/v1/Organization.json new file mode 100755 index 000000000..56166a3a3 --- /dev/null +++ b/dist/json/cloudforet/api/mzc_service_api/v1/Organization.json @@ -0,0 +1,1014 @@ +{ + "files": [ + { + "name": "spaceone/api/mzc_service_api/v1/organization.proto", + "description": "", + "package": "spaceone.api.mzc_service_api.v1", + "hasEnums": true, + "hasExtensions": false, + "hasMessages": true, + "hasServices": true, + "enums": [ + { + "name": "OrganizationState", + "longName": "OrganizationState", + "fullName": "spaceone.api.mzc_service_api.v1.OrganizationState", + "description": "", + "values": [ + { + "name": "ORGANIZATION_STATE_NONE", + "number": "0", + "description": "" + }, + { + "name": "ENABLED", + "number": "1", + "description": "" + }, + { + "name": "DISABLED", + "number": "2", + "description": "" + } + ] + } + ], + "extensions": [], + "messages": [ + { + "name": "OrganizationCreateRequest", + "longName": "OrganizationCreateRequest", + "fullName": "spaceone.api.mzc_service_api.v1.OrganizationCreateRequest", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "name", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "description", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "industry", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "registration_number", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "country", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "address", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "contact_person", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "contact_email", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "contact_phone", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "tags", + "description": "+optional", + "label": "", + "type": "Struct", + "longType": "google.protobuf.Struct", + "fullType": "google.protobuf.Struct", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "OrganizationInfo", + "longName": "OrganizationInfo", + "fullName": "spaceone.api.mzc_service_api.v1.OrganizationInfo", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "org_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "name", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "state", + "description": "", + "label": "", + "type": "OrganizationState", + "longType": "OrganizationState", + "fullType": "spaceone.api.mzc_service_api.v1.OrganizationState", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "description", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "industry", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "registration_number", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "country", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "address", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "contact_person", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "contact_email", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "contact_phone", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "tags", + "description": "", + "label": "", + "type": "Struct", + "longType": "google.protobuf.Struct", + "fullType": "google.protobuf.Struct", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "domain_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "created_at", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "updated_at", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "OrganizationRequest", + "longName": "OrganizationRequest", + "fullName": "spaceone.api.mzc_service_api.v1.OrganizationRequest", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "org_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "OrganizationSearchQuery", + "longName": "OrganizationSearchQuery", + "fullName": "spaceone.api.mzc_service_api.v1.OrganizationSearchQuery", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "query", + "description": "+optional", + "label": "", + "type": "Query", + "longType": "spaceone.api.core.v2.Query", + "fullType": "spaceone.api.core.v2.Query", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "org_id", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "name", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "state", + "description": "+optional", + "label": "", + "type": "OrganizationState", + "longType": "OrganizationState", + "fullType": "spaceone.api.mzc_service_api.v1.OrganizationState", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "OrganizationStatQuery", + "longName": "OrganizationStatQuery", + "fullName": "spaceone.api.mzc_service_api.v1.OrganizationStatQuery", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "query", + "description": "", + "label": "", + "type": "StatisticsQuery", + "longType": "spaceone.api.core.v2.StatisticsQuery", + "fullType": "spaceone.api.core.v2.StatisticsQuery", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "OrganizationUpdateRequest", + "longName": "OrganizationUpdateRequest", + "fullName": "spaceone.api.mzc_service_api.v1.OrganizationUpdateRequest", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "org_id", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "name", + "description": "", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "description", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "industry", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "registration_number", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "country", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "address", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "contact_person", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "contact_email", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "contact_phone", + "description": "+optional", + "label": "", + "type": "string", + "longType": "string", + "fullType": "string", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "tags", + "description": "+optional", + "label": "", + "type": "Struct", + "longType": "google.protobuf.Struct", + "fullType": "google.protobuf.Struct", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + }, + { + "name": "OrganizationsInfo", + "longName": "OrganizationsInfo", + "fullName": "spaceone.api.mzc_service_api.v1.OrganizationsInfo", + "description": "", + "hasExtensions": false, + "hasFields": true, + "hasOneofs": false, + "extensions": [], + "fields": [ + { + "name": "results", + "description": "", + "label": "repeated", + "type": "OrganizationInfo", + "longType": "OrganizationInfo", + "fullType": "spaceone.api.mzc_service_api.v1.OrganizationInfo", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + }, + { + "name": "total_count", + "description": "", + "label": "", + "type": "int32", + "longType": "int32", + "fullType": "int32", + "ismap": false, + "isoneof": false, + "oneofdecl": "", + "defaultValue": "" + } + ] + } + ], + "services": [ + { + "name": "Organization", + "longName": "Organization", + "fullName": "spaceone.api.mzc_service_api.v1.Organization", + "description": "", + "methods": [ + { + "name": "create", + "description": "", + "requestType": "OrganizationCreateRequest", + "requestLongType": "OrganizationCreateRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.OrganizationCreateRequest", + "requestStreaming": false, + "responseType": "OrganizationInfo", + "responseLongType": "OrganizationInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.OrganizationInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/organization/create", + "body": "*" + } + ] + } + } + }, + { + "name": "update", + "description": "", + "requestType": "OrganizationUpdateRequest", + "requestLongType": "OrganizationUpdateRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.OrganizationUpdateRequest", + "requestStreaming": false, + "responseType": "OrganizationInfo", + "responseLongType": "OrganizationInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.OrganizationInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/organization/update", + "body": "*" + } + ] + } + } + }, + { + "name": "enable", + "description": "", + "requestType": "OrganizationRequest", + "requestLongType": "OrganizationRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.OrganizationRequest", + "requestStreaming": false, + "responseType": "OrganizationInfo", + "responseLongType": "OrganizationInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.OrganizationInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/organization/enable", + "body": "*" + } + ] + } + } + }, + { + "name": "disable", + "description": "", + "requestType": "OrganizationRequest", + "requestLongType": "OrganizationRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.OrganizationRequest", + "requestStreaming": false, + "responseType": "OrganizationInfo", + "responseLongType": "OrganizationInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.OrganizationInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/organization/disable", + "body": "*" + } + ] + } + } + }, + { + "name": "delete", + "description": "", + "requestType": "OrganizationRequest", + "requestLongType": "OrganizationRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.OrganizationRequest", + "requestStreaming": false, + "responseType": "Empty", + "responseLongType": ".google.protobuf.Empty", + "responseFullType": "google.protobuf.Empty", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/organization/delete", + "body": "*" + } + ] + } + } + }, + { + "name": "get", + "description": "", + "requestType": "OrganizationRequest", + "requestLongType": "OrganizationRequest", + "requestFullType": "spaceone.api.mzc_service_api.v1.OrganizationRequest", + "requestStreaming": false, + "responseType": "OrganizationInfo", + "responseLongType": "OrganizationInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.OrganizationInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/organization/get", + "body": "*" + } + ] + } + } + }, + { + "name": "list", + "description": "", + "requestType": "OrganizationSearchQuery", + "requestLongType": "OrganizationSearchQuery", + "requestFullType": "spaceone.api.mzc_service_api.v1.OrganizationSearchQuery", + "requestStreaming": false, + "responseType": "OrganizationsInfo", + "responseLongType": "OrganizationsInfo", + "responseFullType": "spaceone.api.mzc_service_api.v1.OrganizationsInfo", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/organization/list", + "body": "*" + } + ] + } + } + }, + { + "name": "stat", + "description": "", + "requestType": "OrganizationStatQuery", + "requestLongType": "OrganizationStatQuery", + "requestFullType": "spaceone.api.mzc_service_api.v1.OrganizationStatQuery", + "requestStreaming": false, + "responseType": "Struct", + "responseLongType": ".google.protobuf.Struct", + "responseFullType": "google.protobuf.Struct", + "responseStreaming": false, + "options": { + "google.api.http": { + "rules": [ + { + "method": "POST", + "pattern": "/mzc-service-api/v1/organization/stat", + "body": "*" + } + ] + } + } + } + ] + } + ] + } + ], + "scalarValueTypes": [ + { + "protoType": "double", + "notes": "", + "cppType": "double", + "csType": "double", + "goType": "float64", + "javaType": "double", + "phpType": "float", + "pythonType": "float", + "rubyType": "Float" + }, + { + "protoType": "float", + "notes": "", + "cppType": "float", + "csType": "float", + "goType": "float32", + "javaType": "float", + "phpType": "float", + "pythonType": "float", + "rubyType": "Float" + }, + { + "protoType": "int32", + "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead.", + "cppType": "int32", + "csType": "int", + "goType": "int32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "int64", + "notes": "Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead.", + "cppType": "int64", + "csType": "long", + "goType": "int64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum" + }, + { + "protoType": "uint32", + "notes": "Uses variable-length encoding.", + "cppType": "uint32", + "csType": "uint", + "goType": "uint32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int/long", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "uint64", + "notes": "Uses variable-length encoding.", + "cppType": "uint64", + "csType": "ulong", + "goType": "uint64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "sint32", + "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s.", + "cppType": "int32", + "csType": "int", + "goType": "int32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "sint64", + "notes": "Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s.", + "cppType": "int64", + "csType": "long", + "goType": "int64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum" + }, + { + "protoType": "fixed32", + "notes": "Always four bytes. More efficient than uint32 if values are often greater than 2^28.", + "cppType": "uint32", + "csType": "uint", + "goType": "uint32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "fixed64", + "notes": "Always eight bytes. More efficient than uint64 if values are often greater than 2^56.", + "cppType": "uint64", + "csType": "ulong", + "goType": "uint64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum" + }, + { + "protoType": "sfixed32", + "notes": "Always four bytes.", + "cppType": "int32", + "csType": "int", + "goType": "int32", + "javaType": "int", + "phpType": "integer", + "pythonType": "int", + "rubyType": "Bignum or Fixnum (as required)" + }, + { + "protoType": "sfixed64", + "notes": "Always eight bytes.", + "cppType": "int64", + "csType": "long", + "goType": "int64", + "javaType": "long", + "phpType": "integer/string", + "pythonType": "int/long", + "rubyType": "Bignum" + }, + { + "protoType": "bool", + "notes": "", + "cppType": "bool", + "csType": "bool", + "goType": "bool", + "javaType": "boolean", + "phpType": "boolean", + "pythonType": "boolean", + "rubyType": "TrueClass/FalseClass" + }, + { + "protoType": "string", + "notes": "A string must always contain UTF-8 encoded or 7-bit ASCII text.", + "cppType": "string", + "csType": "string", + "goType": "string", + "javaType": "String", + "phpType": "string", + "pythonType": "str/unicode", + "rubyType": "String (UTF-8)" + }, + { + "protoType": "bytes", + "notes": "May contain any arbitrary sequence of bytes.", + "cppType": "string", + "csType": "ByteString", + "goType": "[]byte", + "javaType": "ByteString", + "phpType": "string", + "pythonType": "str", + "rubyType": "String (ASCII-8BIT)" + } + ] +} \ No newline at end of file diff --git a/dist/openapi/cloudforet/api/mzc_service_api/v1/openapi.json b/dist/openapi/cloudforet/api/mzc_service_api/v1/openapi.json new file mode 100755 index 000000000..e31e89893 --- /dev/null +++ b/dist/openapi/cloudforet/api/mzc_service_api/v1/openapi.json @@ -0,0 +1,947 @@ +{ + "openapi": "3.1.0", + "externalDocs":{ + "description": "Home", + "url": "/docs" + }, + "info": { + "title": "Mzc Service Api API", + "version": "3.1.0" + }, + "paths":{"/mzc-service-api/organization/create": { + "post": { + "tags": ["mzc-service-api > organization"], + "summary": "Create", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |name||string|True|\n |description||string||\n |industry||string||\n |registration_number||string||\n |country||string||\n |address||string||\n |contact_person||string||\n |contact_email||string||\n |contact_phone||string||\n |tags||Struct||\n
", + "content": { + "application/json": { + "schema": { + "properties": {"name" : {"type": "string","title": "NAME" },"description" : {"type": "string","title": "DESCRIPTION" },"industry" : {"type": "string","title": "INDUSTRY" },"registration_number" : {"type": "string","title": "REGISTRATION_NUMBER" },"country" : {"type": "string","title": "COUNTRY" },"address" : {"type": "string","title": "ADDRESS" },"contact_person" : {"type": "string","title": "CONTACT_PERSON" },"contact_email" : {"type": "string","title": "CONTACT_EMAIL" },"contact_phone" : {"type": "string","title": "CONTACT_PHONE" },"tags" : {"type": "object","title": "TAGS" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/OrganizationInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/OrganizationInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/organization/update": { + "post": { + "tags": ["mzc-service-api > organization"], + "summary": "Update", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |org_id||string|True|\n |name||string|True|\n |description||string||\n |industry||string||\n |registration_number||string||\n |country||string||\n |address||string||\n |contact_person||string||\n |contact_email||string||\n |contact_phone||string||\n |tags||Struct||\n
", + "content": { + "application/json": { + "schema": { + "properties": {"org_id" : {"type": "string","title": "ORG_ID" },"name" : {"type": "string","title": "NAME" },"description" : {"type": "string","title": "DESCRIPTION" },"industry" : {"type": "string","title": "INDUSTRY" },"registration_number" : {"type": "string","title": "REGISTRATION_NUMBER" },"country" : {"type": "string","title": "COUNTRY" },"address" : {"type": "string","title": "ADDRESS" },"contact_person" : {"type": "string","title": "CONTACT_PERSON" },"contact_email" : {"type": "string","title": "CONTACT_EMAIL" },"contact_phone" : {"type": "string","title": "CONTACT_PHONE" },"tags" : {"type": "object","title": "TAGS" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/OrganizationInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/OrganizationInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/organization/enable": { + "post": { + "tags": ["mzc-service-api > organization"], + "summary": "Enable", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |org_id||string|True|\n
", + "content": { + "application/json": { + "schema": { + "properties": {"org_id" : {"type": "string","title": "ORG_ID" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/OrganizationInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/OrganizationInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/organization/disable": { + "post": { + "tags": ["mzc-service-api > organization"], + "summary": "Disable", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |org_id||string|True|\n
", + "content": { + "application/json": { + "schema": { + "properties": {"org_id" : {"type": "string","title": "ORG_ID" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/OrganizationInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/OrganizationInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/organization/delete": { + "post": { + "tags": ["mzc-service-api > organization"], + "summary": "Delete", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |org_id||string|True|\n
", + "content": { + "application/json": { + "schema": { + "properties": {"org_id" : {"type": "string","title": "ORG_ID" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response"} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/organization/get": { + "post": { + "tags": ["mzc-service-api > organization"], + "summary": "Get", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |org_id||string|True|\n
", + "content": { + "application/json": { + "schema": { + "properties": {"org_id" : {"type": "string","title": "ORG_ID" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/OrganizationInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/OrganizationInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/organization/list": { + "post": { + "tags": ["mzc-service-api > organization"], + "summary": "List", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |query||Query||\n |org_id||string||\n |name||string||\n |state|ENABLED, DISABLED |string||\n
", + "content": { + "application/json": { + "schema": { + "properties": {"query" : {"$ref": "#/components/schemas/Query","title": "QUERY" },"org_id" : {"type": "string","title": "ORG_ID" },"name" : {"type": "string","title": "NAME" },"state" : {"type": "string","title": "STATE" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/OrganizationsInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/OrganizationsInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/organization/stat": { + "post": { + "tags": ["mzc-service-api > organization"], + "summary": "Stat", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |query||StatisticsQuery|True|\n
", + "content": { + "application/json": { + "schema": { + "properties": {"query" : {"$ref": "#/components/schemas/StatisticsQuery","title": "QUERY" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"type": "object"}, + "examples": { + "Schema": {"type": "object"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/contract/create": { + "post": { + "tags": ["mzc-service-api > contract"], + "summary": "Create", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |org_id||string|True|\n |offering_id||string|True|\n |start_date||string|True|\n |end_date||string|True|\n |name||string||\n |description||string||\n |signed_date||string||\n |renewal_type|AUTO, MANUAL, NOT_RENEW |string||\n |tags||Struct||\n
", + "content": { + "application/json": { + "schema": { + "properties": {"org_id" : {"type": "string","title": "ORG_ID" },"offering_id" : {"type": "string","title": "OFFERING_ID" },"name" : {"type": "string","title": "NAME" },"description" : {"type": "string","title": "DESCRIPTION" },"start_date" : {"type": "string","title": "START_DATE" },"end_date" : {"type": "string","title": "END_DATE" },"signed_date" : {"type": "string","title": "SIGNED_DATE" },"renewal_type" : {"type": "string","title": "RENEWAL_TYPE" },"tags" : {"type": "object","title": "TAGS" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/ContractInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/ContractInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/contract/update": { + "post": { + "tags": ["mzc-service-api > contract"], + "summary": "Update", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |contract_id||string|True|\n |name||string||\n |description||string||\n |start_date||string||\n |end_date||string||\n |signed_date||string||\n |renewal_type|AUTO, MANUAL, NOT_RENEW |string||\n |tags||Struct||\n
", + "content": { + "application/json": { + "schema": { + "properties": {"contract_id" : {"type": "string","title": "CONTRACT_ID" },"name" : {"type": "string","title": "NAME" },"description" : {"type": "string","title": "DESCRIPTION" },"start_date" : {"type": "string","title": "START_DATE" },"end_date" : {"type": "string","title": "END_DATE" },"signed_date" : {"type": "string","title": "SIGNED_DATE" },"renewal_type" : {"type": "string","title": "RENEWAL_TYPE" },"tags" : {"type": "object","title": "TAGS" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/ContractInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/ContractInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/contract/terminate": { + "post": { + "tags": ["mzc-service-api > contract"], + "summary": "Terminate", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |contract_id||string|True|\n
", + "content": { + "application/json": { + "schema": { + "properties": {"contract_id" : {"type": "string","title": "CONTRACT_ID" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response"} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/contract/get": { + "post": { + "tags": ["mzc-service-api > contract"], + "summary": "Get", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |contract_id||string|True|\n
", + "content": { + "application/json": { + "schema": { + "properties": {"contract_id" : {"type": "string","title": "CONTRACT_ID" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/ContractInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/ContractInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/contract/list": { + "post": { + "tags": ["mzc-service-api > contract"], + "summary": "List", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |query||Query||\n |contract_id||string||\n |org_id||string||\n |offering_id||string||\n |status|ACTIVE, TERMINATED, EXPIRED |string||\n |renewal_type|AUTO, MANUAL, NOT_RENEW |string||\n
", + "content": { + "application/json": { + "schema": { + "properties": {"query" : {"$ref": "#/components/schemas/Query","title": "QUERY" },"contract_id" : {"type": "string","title": "CONTRACT_ID" },"org_id" : {"type": "string","title": "ORG_ID" },"offering_id" : {"type": "string","title": "OFFERING_ID" },"status" : {"type": "string","title": "STATUS" },"renewal_type" : {"type": "string","title": "RENEWAL_TYPE" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/ContractsInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/ContractsInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/contract/stat": { + "post": { + "tags": ["mzc-service-api > contract"], + "summary": "Stat", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |query||StatisticsQuery|True|\n
", + "content": { + "application/json": { + "schema": { + "properties": {"query" : {"$ref": "#/components/schemas/StatisticsQuery","title": "QUERY" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"type": "object"}, + "examples": { + "Schema": {"type": "object"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/offering/create": { + "post": { + "tags": ["mzc-service-api > offering"], + "summary": "Create", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |name||string|True|\n |category||string|True|\n |price||float||\n |currency||string||\n |description||string||\n |terms||string||\n |website_url||string||\n |tags||Struct||\n
", + "content": { + "application/json": { + "schema": { + "properties": {"name" : {"type": "string","title": "NAME" },"category" : {"type": "string","title": "CATEGORY" },"price" : {"type": "float","title": "PRICE" },"currency" : {"type": "string","title": "CURRENCY" },"description" : {"type": "string","title": "DESCRIPTION" },"terms" : {"type": "string","title": "TERMS" },"website_url" : {"type": "string","title": "WEBSITE_URL" },"tags" : {"type": "object","title": "TAGS" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/OfferingInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/OfferingInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/offering/update": { + "post": { + "tags": ["mzc-service-api > offering"], + "summary": "Update", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |offering_id||string|True|\n |name||string||\n |status|AVAILABLE, UNAVAILABLE, DISCONTINUED |string||\n |price||float||\n |currency||string||\n |description||string||\n |terms||string||\n |website_url||string||\n |tags||Struct||\n
", + "content": { + "application/json": { + "schema": { + "properties": {"offering_id" : {"type": "string","title": "OFFERING_ID" },"name" : {"type": "string","title": "NAME" },"status" : {"type": "string","title": "STATUS" },"price" : {"type": "float","title": "PRICE" },"currency" : {"type": "string","title": "CURRENCY" },"description" : {"type": "string","title": "DESCRIPTION" },"terms" : {"type": "string","title": "TERMS" },"website_url" : {"type": "string","title": "WEBSITE_URL" },"tags" : {"type": "object","title": "TAGS" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/OfferingInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/OfferingInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/offering/delete": { + "post": { + "tags": ["mzc-service-api > offering"], + "summary": "Delete", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |offering_id||string|True|\n
", + "content": { + "application/json": { + "schema": { + "properties": {"offering_id" : {"type": "string","title": "OFFERING_ID" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response"} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/offering/get": { + "post": { + "tags": ["mzc-service-api > offering"], + "summary": "Get", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |offering_id||string|True|\n
", + "content": { + "application/json": { + "schema": { + "properties": {"offering_id" : {"type": "string","title": "OFFERING_ID" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/OfferingInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/OfferingInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/offering/list": { + "post": { + "tags": ["mzc-service-api > offering"], + "summary": "List", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |query||Query||\n |offering_id||string||\n |name||string||\n |status|AVAILABLE, UNAVAILABLE, DISCONTINUED |string||\n
", + "content": { + "application/json": { + "schema": { + "properties": {"query" : {"$ref": "#/components/schemas/Query","title": "QUERY" },"offering_id" : {"type": "string","title": "OFFERING_ID" },"name" : {"type": "string","title": "NAME" },"status" : {"type": "string","title": "STATUS" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"$ref": "#/components/schemas/OfferingsInfo"}, + "examples": { + "Schema": {"$ref": "#/components/schemas/OfferingsInfo"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"/mzc-service-api/offering/stat": { + "post": { + "tags": ["mzc-service-api > offering"], + "summary": "Stat", + "operationId" : "", + "description": "### Description \n", + "requestBody": { + "description": "\n| Key | Description | Type | Required|\n|-------------------|---------------------------------------------------------------|-----------|-------|\n |query||StatisticsQuery|True|\n
", + "content": { + "application/json": { + "schema": { + "properties": {"query" : {"$ref": "#/components/schemas/StatisticsQuery","title": "QUERY" } } + }, + "examples":{"Schema":{} + } + } + },"required": true + }, + "responses": { + "200": { + "description": "Successfull Response","content":{ + "application/json": { + "schema": {"type": "object"}, + "examples": { + "Schema": {"type": "object"}} + } + }} + } + ,"security": [{"HTTPBearer": []}] } + },"securitySchemes": {"HTTPBearer": {"type": "http","scheme": "bearer","bearerFormat": "JWT"}} + }, + "components":{ + "schemas": { + "OrganizationCreateRequest": { + "properties" : {"name" : {"type": "string","title": "NAME"},"description" : {"type": "string","title": "DESCRIPTION"},"industry" : {"type": "string","title": "INDUSTRY"},"registration_number" : {"type": "string","title": "REGISTRATION_NUMBER"},"country" : {"type": "string","title": "COUNTRY"},"address" : {"type": "string","title": "ADDRESS"},"contact_person" : {"type": "string","title": "CONTACT_PERSON"},"contact_email" : {"type": "string","title": "CONTACT_EMAIL"},"contact_phone" : {"type": "string","title": "CONTACT_PHONE"},"tags" : {"type": "object","title": "TAGS"}}, + "type": "object", + "required": ["name"], + "title": "OrganizationCreateRequest" + } + , "OrganizationInfo": { + "properties" : {"org_id" : {"type": "string","title": "ORG_ID"},"name" : {"type": "string","title": "NAME"},"state" : {"type": "string","title": "STATE"},"description" : {"type": "string","title": "DESCRIPTION"},"industry" : {"type": "string","title": "INDUSTRY"},"registration_number" : {"type": "string","title": "REGISTRATION_NUMBER"},"country" : {"type": "string","title": "COUNTRY"},"address" : {"type": "string","title": "ADDRESS"},"contact_person" : {"type": "string","title": "CONTACT_PERSON"},"contact_email" : {"type": "string","title": "CONTACT_EMAIL"},"contact_phone" : {"type": "string","title": "CONTACT_PHONE"},"tags" : {"type": "object","title": "TAGS"},"domain_id" : {"type": "string","title": "DOMAIN_ID"},"created_at" : {"type": "string","title": "CREATED_AT"},"updated_at" : {"type": "string","title": "UPDATED_AT"}}, + "type": "object", + "required": ["org_id","name","state","description","industry","registration_number","country","address","contact_person","contact_email","contact_phone","tags","domain_id","created_at","updated_at"], + "title": "OrganizationInfo" + } + , "OrganizationRequest": { + "properties" : {"org_id" : {"type": "string","title": "ORG_ID"}}, + "type": "object", + "required": ["org_id"], + "title": "OrganizationRequest" + } + , "OrganizationSearchQuery": { + "properties" : {"query" : {"$ref": "#/components/schemas/Query","title": "QUERY"},"org_id" : {"type": "string","title": "ORG_ID"},"name" : {"type": "string","title": "NAME"},"state" : {"type": "string","title": "STATE"}}, + "type": "object", + "required": [], + "title": "OrganizationSearchQuery" + } + , "OrganizationStatQuery": { + "properties" : {"query" : {"$ref": "#/components/schemas/StatisticsQuery","title": "QUERY"}}, + "type": "object", + "required": ["query"], + "title": "OrganizationStatQuery" + } + , "OrganizationUpdateRequest": { + "properties" : {"org_id" : {"type": "string","title": "ORG_ID"},"name" : {"type": "string","title": "NAME"},"description" : {"type": "string","title": "DESCRIPTION"},"industry" : {"type": "string","title": "INDUSTRY"},"registration_number" : {"type": "string","title": "REGISTRATION_NUMBER"},"country" : {"type": "string","title": "COUNTRY"},"address" : {"type": "string","title": "ADDRESS"},"contact_person" : {"type": "string","title": "CONTACT_PERSON"},"contact_email" : {"type": "string","title": "CONTACT_EMAIL"},"contact_phone" : {"type": "string","title": "CONTACT_PHONE"},"tags" : {"type": "object","title": "TAGS"}}, + "type": "object", + "required": ["org_id","name"], + "title": "OrganizationUpdateRequest" + } + , "OrganizationsInfo": { + "properties" : {"results" : {"items": {"$ref": "#/components/schemas/OrganizationInfo"}, + "type": "array","$ref": "#/components/schemas/OrganizationInfo","title": "RESULTS"},"total_count" : {"type": "integer","title": "TOTAL_COUNT"}}, + "type": "object", + "required": ["results","total_count"], + "title": "OrganizationsInfo" + } + , "AuthenticationRequest": { + "properties" : {"domain_id" : {"type": "string","title": "DOMAIN_ID"}}, + "type": "object", + "required": ["domain_id"], + "title": "AuthenticationRequest" + } + , "AuthenticationResponse": { + "properties" : {"domain_id" : {"type": "string","title": "DOMAIN_ID"},"public_key" : {"type": "string","title": "PUBLIC_KEY"}}, + "type": "object", + "required": ["domain_id","public_key"], + "title": "AuthenticationResponse" + } + , "AuthorizationRequest": { + "properties" : {"service" : {"type": "string","title": "SERVICE"},"resource" : {"type": "string","title": "RESOURCE"},"verb" : {"type": "string","title": "VERB"},"scope" : {"type": "Scope","title": "SCOPE"},"domain_id" : {"type": "string","title": "DOMAIN_ID"},"project_id" : {"type": "string","title": "PROJECT_ID"},"project_group_id" : {"type": "string","title": "PROJECT_GROUP_ID"},"user_id" : {"type": "string","title": "USER_ID"},"require_project_id" : {"type": "boolean","title": "REQUIRE_PROJECT_ID"},"require_project_group_id" : {"type": "boolean","title": "REQUIRE_PROJECT_GROUP_ID"},"require_user_id" : {"type": "boolean","title": "REQUIRE_USER_ID"},"require_domain_id" : {"type": "boolean","title": "REQUIRE_DOMAIN_ID"}}, + "type": "object", + "required": ["service","resource","verb","scope","domain_id","project_id","project_group_id","user_id","require_project_id","require_project_group_id","require_user_id","require_domain_id"], + "title": "AuthorizationRequest" + } + , "AuthorizationResponse": { + "properties" : {"role_type" : {"type": "string","title": "ROLE_TYPE"},"projects" : {"items": {"type": "string"}, + "type": "array","title": "PROJECTS"},"project_groups" : {"items": {"type": "string"}, + "type": "array","title": "PROJECT_GROUPS"}}, + "type": "object", + "required": ["role_type","projects","project_groups"], + "title": "AuthorizationResponse" + } + , "EventRequest": { + "properties" : {"service" : {"type": "string","title": "SERVICE"},"resource" : {"type": "string","title": "RESOURCE"},"verb" : {"type": "string","title": "VERB"},"status" : {"type": "string","title": "STATUS"},"message" : {"type": "object","title": "MESSAGE"}}, + "type": "object", + "required": ["service","resource","verb","status","message"], + "title": "EventRequest" + } + , "VersionInfo": { + "properties" : {"version" : {"type": "string","title": "VERSION"}}, + "type": "object", + "required": ["version"], + "title": "VersionInfo" + } + , "AggregateCount": { + "properties" : {"name" : {"type": "string","title": "NAME"}}, + "type": "object", + "required": ["name"], + "title": "AggregateCount" + } + , "AggregateGroup": { + "properties" : {"keys" : {"items": {"$ref": "#/components/schemas/AggregateGroupKey"}, + "type": "array","$ref": "#/components/schemas/AggregateGroupKey","title": "KEYS"},"fields" : {"items": {"$ref": "#/components/schemas/AggregateGroupField"}, + "type": "array","$ref": "#/components/schemas/AggregateGroupField","title": "FIELDS"}}, + "type": "object", + "required": ["keys","fields"], + "title": "AggregateGroup" + } + , "AggregateGroupField": { + "properties" : {"key" : {"type": "string","title": "KEY"},"k" : {"type": "string","title": "K"},"name" : {"type": "string","title": "NAME"},"n" : {"type": "string","title": "N"},"operator" : {"type": "string","title": "OPERATOR"},"o" : {"type": "string","title": "O"},"fields" : {"items": {"$ref": "#/components/schemas/AggregateGroupSubField"}, + "type": "array","$ref": "#/components/schemas/AggregateGroupSubField","title": "FIELDS"},"conditions" : {"items": {"$ref": "#/components/schemas/AggregateSubCondition"}, + "type": "array","$ref": "#/components/schemas/AggregateSubCondition","title": "CONDITIONS"}}, + "type": "object", + "required": ["key","k","name","n","operator","o","fields","conditions"], + "title": "AggregateGroupField" + } + , "AggregateGroupKey": { + "properties" : {"key" : {"type": "string","title": "KEY"},"k" : {"type": "string","title": "K"},"name" : {"type": "string","title": "NAME"},"n" : {"type": "string","title": "N"},"date_format" : {"type": "string","title": "DATE_FORMAT"}}, + "type": "object", + "required": ["key","k","name","n","date_format"], + "title": "AggregateGroupKey" + } + , "AggregateGroupSubField": { + "properties" : {"key" : {"type": "string","title": "KEY"},"k" : {"type": "string","title": "K"},"name" : {"type": "string","title": "NAME"},"n" : {"type": "string","title": "N"}}, + "type": "object", + "required": ["key","k","name","n"], + "title": "AggregateGroupSubField" + } + , "AggregateProject": { + "properties" : {"fields" : {"items": {"$ref": "#/components/schemas/AggregateProjectField"}, + "type": "array","$ref": "#/components/schemas/AggregateProjectField","title": "FIELDS"},"exclude_keys" : {"type": "boolean","title": "EXCLUDE_KEYS"}}, + "type": "object", + "required": ["fields","exclude_keys"], + "title": "AggregateProject" + } + , "AggregateProjectField": { + "properties" : {"key" : {"type": "string","title": "KEY"},"k" : {"type": "string","title": "K"},"name" : {"type": "string","title": "NAME"},"n" : {"type": "string","title": "N"},"operator" : {"type": "string","title": "OPERATOR"},"o" : {"type": "string","title": "O"}}, + "type": "object", + "required": ["key","k","name","n","operator","o"], + "title": "AggregateProjectField" + } + , "AggregateSort": { + "properties" : {"key" : {"type": "string","title": "KEY"},"desc" : {"type": "boolean","title": "DESC"},"keys" : {"items": {"$ref": "#/components/schemas/SortKey"}, + "type": "array","$ref": "#/components/schemas/SortKey","title": "KEYS"}}, + "type": "object", + "required": ["key","desc","keys"], + "title": "AggregateSort" + } + , "AggregateSubCondition": { + "properties" : {"key" : {"type": "string","title": "KEY"},"k" : {"type": "string","title": "K"},"value" : {"type": "Value","title": "VALUE"},"v" : {"type": "Value","title": "V"},"operator" : {"type": "string","title": "OPERATOR"},"o" : {"type": "string","title": "O"}}, + "type": "object", + "required": ["key","k","value","v","operator","o"], + "title": "AggregateSubCondition" + } + , "AggregateUnwind": { + "properties" : {"path" : {"type": "string","title": "PATH"}}, + "type": "object", + "required": ["path"], + "title": "AggregateUnwind" + } + , "AnalyzeQuery": { + "properties" : {"group_by" : {"items": {"type": "string"}, + "type": "array","title": "GROUP_BY"},"field_group" : {"items": {"type": "string"}, + "type": "array","title": "FIELD_GROUP"},"filter" : {"items": {"$ref": "#/components/schemas/Filter"}, + "type": "array","$ref": "#/components/schemas/Filter","title": "FILTER"},"filter_or" : {"items": {"$ref": "#/components/schemas/Filter"}, + "type": "array","$ref": "#/components/schemas/Filter","title": "FILTER_OR"},"page" : {"$ref": "#/components/schemas/Page","title": "PAGE"},"sort" : {"items": {"$ref": "#/components/schemas/SortKey"}, + "type": "array","$ref": "#/components/schemas/SortKey","title": "SORT"},"fields" : {"type": "object","title": "FIELDS"},"select" : {"type": "object","title": "SELECT"},"keyword" : {"type": "string","title": "KEYWORD"}}, + "type": "object", + "required": ["group_by","field_group","filter","filter_or","page","sort","fields","select","keyword"], + "title": "AnalyzeQuery" + } + , "ExportAnalyzeQuery": { + "properties" : {"filter" : {"items": {"$ref": "#/components/schemas/Filter"}, + "type": "array","$ref": "#/components/schemas/Filter","title": "FILTER"},"filter_or" : {"items": {"$ref": "#/components/schemas/Filter"}, + "type": "array","$ref": "#/components/schemas/Filter","title": "FILTER_OR"},"keyword" : {"type": "string","title": "KEYWORD"},"sort" : {"items": {"$ref": "#/components/schemas/SortKey"}, + "type": "array","$ref": "#/components/schemas/SortKey","title": "SORT"},"group_by" : {"items": {"type": "string"}, + "type": "array","title": "GROUP_BY"},"fields" : {"type": "object","title": "FIELDS"},"select" : {"type": "object","title": "SELECT"},"page" : {"$ref": "#/components/schemas/Page","title": "PAGE"}}, + "type": "object", + "required": ["filter","filter_or","keyword","sort","group_by","fields","select","page"], + "title": "ExportAnalyzeQuery" + } + , "ExportOption": { + "properties" : {"name" : {"type": "string","title": "NAME"},"title" : {"type": "string","title": "TITLE"},"query_type" : {"type": "QueryType","title": "QUERY_TYPE"},"search_query" : {"$ref": "#/components/schemas/ExportSearchQuery","title": "SEARCH_QUERY"},"analyze_query" : {"$ref": "#/components/schemas/ExportAnalyzeQuery","title": "ANALYZE_QUERY"}}, + "type": "object", + "required": ["name","title","query_type","search_query","analyze_query"], + "title": "ExportOption" + } + , "ExportSearchQuery": { + "properties" : {"filter" : {"items": {"$ref": "#/components/schemas/Filter"}, + "type": "array","$ref": "#/components/schemas/Filter","title": "FILTER"},"filter_or" : {"items": {"$ref": "#/components/schemas/Filter"}, + "type": "array","$ref": "#/components/schemas/Filter","title": "FILTER_OR"},"keyword" : {"type": "string","title": "KEYWORD"},"sort" : {"items": {"$ref": "#/components/schemas/SortKey"}, + "type": "array","$ref": "#/components/schemas/SortKey","title": "SORT"},"fields" : {"type": "array","title": "FIELDS"},"unwind" : {"$ref": "#/components/schemas/Unwind","title": "UNWIND"},"page" : {"$ref": "#/components/schemas/Page","title": "PAGE"}}, + "type": "object", + "required": ["filter","filter_or","keyword","sort","fields","unwind","page"], + "title": "ExportSearchQuery" + } + , "Filter": { + "properties" : {"key" : {"type": "string","title": "KEY"},"k" : {"type": "string","title": "K"},"value" : {"type": "Value","title": "VALUE"},"v" : {"type": "Value","title": "V"},"operator" : {"type": "string","title": "OPERATOR"},"o" : {"type": "string","title": "O"}}, + "type": "object", + "required": ["key","k","value","v","operator","o"], + "title": "Filter" + } + , "Page": { + "properties" : {"start" : {"type": "integer/long","title": "START"},"limit" : {"type": "integer/long","title": "LIMIT"}}, + "type": "object", + "required": ["start","limit"], + "title": "Page" + } + , "Query": { + "properties" : {"filter" : {"items": {"$ref": "#/components/schemas/Filter"}, + "type": "array","$ref": "#/components/schemas/Filter","title": "FILTER"},"filter_or" : {"items": {"$ref": "#/components/schemas/Filter"}, + "type": "array","$ref": "#/components/schemas/Filter","title": "FILTER_OR"},"sort" : {"$ref": "#/components/schemas/Sort","title": "SORT"},"page" : {"$ref": "#/components/schemas/Page","title": "PAGE"},"minimal" : {"type": "boolean","title": "MINIMAL"},"count_only" : {"type": "boolean","title": "COUNT_ONLY"},"only" : {"items": {"type": "string"}, + "type": "array","title": "ONLY"},"keyword" : {"type": "string","title": "KEYWORD"},"unwind" : {"$ref": "#/components/schemas/Unwind","title": "UNWIND"}}, + "type": "object", + "required": ["filter","filter_or","sort","page","minimal","count_only","only","keyword","unwind"], + "title": "Query" + } + , "Sort": { + "properties" : {"key" : {"type": "string","title": "KEY"},"desc" : {"type": "boolean","title": "DESC"},"keys" : {"items": {"$ref": "#/components/schemas/SortKey"}, + "type": "array","$ref": "#/components/schemas/SortKey","title": "KEYS"}}, + "type": "object", + "required": ["key","desc","keys"], + "title": "Sort" + } + , "SortKey": { + "properties" : {"key" : {"type": "string","title": "KEY"},"desc" : {"type": "boolean","title": "DESC"}}, + "type": "object", + "required": ["key","desc"], + "title": "SortKey" + } + , "StatisticsAggregate": { + "properties" : {"unwind" : {"$ref": "#/components/schemas/AggregateUnwind","title": "UNWIND"},"group" : {"$ref": "#/components/schemas/AggregateGroup","title": "GROUP"},"count" : {"$ref": "#/components/schemas/AggregateCount","title": "COUNT"},"sort" : {"$ref": "#/components/schemas/AggregateSort","title": "SORT"},"project" : {"$ref": "#/components/schemas/AggregateProject","title": "PROJECT"},"limit" : {"type": "integer","title": "LIMIT"},"skip" : {"type": "integer","title": "SKIP"}}, + "type": "object", + "required": ["unwind","group","count","sort","project","limit","skip"], + "title": "StatisticsAggregate" + } + , "StatisticsQuery": { + "properties" : {"filter" : {"items": {"$ref": "#/components/schemas/Filter"}, + "type": "array","$ref": "#/components/schemas/Filter","title": "FILTER"},"filter_or" : {"items": {"$ref": "#/components/schemas/Filter"}, + "type": "array","$ref": "#/components/schemas/Filter","title": "FILTER_OR"},"aggregate" : {"items": {"$ref": "#/components/schemas/StatisticsAggregate"}, + "type": "array","$ref": "#/components/schemas/StatisticsAggregate","title": "AGGREGATE"},"page" : {"$ref": "#/components/schemas/Page","title": "PAGE"},"distinct" : {"type": "string","title": "DISTINCT"},"keyword" : {"type": "string","title": "KEYWORD"}}, + "type": "object", + "required": ["filter","filter_or","aggregate","page","distinct","keyword"], + "title": "StatisticsQuery" + } + , "TimeSeriesAnalyzeQuery": { + "properties" : {"granularity" : {"type": "Granularity","title": "GRANULARITY"},"start" : {"type": "string","title": "START"},"end" : {"type": "string","title": "END"},"group_by" : {"items": {"type": "string"}, + "type": "array","title": "GROUP_BY"},"field_group" : {"items": {"type": "string"}, + "type": "array","title": "FIELD_GROUP"},"filter" : {"items": {"$ref": "#/components/schemas/Filter"}, + "type": "array","$ref": "#/components/schemas/Filter","title": "FILTER"},"filter_or" : {"items": {"$ref": "#/components/schemas/Filter"}, + "type": "array","$ref": "#/components/schemas/Filter","title": "FILTER_OR"},"page" : {"$ref": "#/components/schemas/Page","title": "PAGE"},"sort" : {"items": {"$ref": "#/components/schemas/SortKey"}, + "type": "array","$ref": "#/components/schemas/SortKey","title": "SORT"},"fields" : {"type": "object","title": "FIELDS"},"select" : {"type": "object","title": "SELECT"},"keyword" : {"type": "string","title": "KEYWORD"}}, + "type": "object", + "required": ["granularity","start","end","group_by","field_group","filter","filter_or","page","sort","fields","select","keyword"], + "title": "TimeSeriesAnalyzeQuery" + } + , "Unwind": { + "properties" : {"path" : {"type": "string","title": "PATH"},"filter" : {"items": {"$ref": "#/components/schemas/Filter"}, + "type": "array","$ref": "#/components/schemas/Filter","title": "FILTER"}}, + "type": "object", + "required": ["path","filter"], + "title": "Unwind" + } + , "ContractCreateRequest": { + "properties" : {"org_id" : {"type": "string","title": "ORG_ID"},"offering_id" : {"type": "string","title": "OFFERING_ID"},"name" : {"type": "string","title": "NAME"},"description" : {"type": "string","title": "DESCRIPTION"},"start_date" : {"type": "string","title": "START_DATE"},"end_date" : {"type": "string","title": "END_DATE"},"signed_date" : {"type": "string","title": "SIGNED_DATE"},"renewal_type" : {"type": "string","title": "RENEWAL_TYPE"},"tags" : {"type": "object","title": "TAGS"}}, + "type": "object", + "required": ["org_id","offering_id","start_date","end_date"], + "title": "ContractCreateRequest" + } + , "ContractInfo": { + "properties" : {"contract_id" : {"type": "string","title": "CONTRACT_ID"},"org_id" : {"type": "string","title": "ORG_ID"},"offering_id" : {"type": "string","title": "OFFERING_ID"},"name" : {"type": "string","title": "NAME"},"status" : {"type": "string","title": "STATUS"},"description" : {"type": "string","title": "DESCRIPTION"},"start_date" : {"type": "string","title": "START_DATE"},"end_date" : {"type": "string","title": "END_DATE"},"signed_date" : {"type": "string","title": "SIGNED_DATE"},"renewal_type" : {"type": "string","title": "RENEWAL_TYPE"},"tags" : {"type": "object","title": "TAGS"},"domain_id" : {"type": "string","title": "DOMAIN_ID"},"created_at" : {"type": "string","title": "CREATED_AT"},"updated_at" : {"type": "string","title": "UPDATED_AT"}}, + "type": "object", + "required": ["contract_id","org_id","offering_id","name","status","description","start_date","end_date","signed_date","renewal_type","tags","domain_id","created_at","updated_at"], + "title": "ContractInfo" + } + , "ContractRequest": { + "properties" : {"contract_id" : {"type": "string","title": "CONTRACT_ID"}}, + "type": "object", + "required": ["contract_id"], + "title": "ContractRequest" + } + , "ContractSearchQuery": { + "properties" : {"query" : {"$ref": "#/components/schemas/Query","title": "QUERY"},"contract_id" : {"type": "string","title": "CONTRACT_ID"},"org_id" : {"type": "string","title": "ORG_ID"},"offering_id" : {"type": "string","title": "OFFERING_ID"},"status" : {"type": "string","title": "STATUS"},"renewal_type" : {"type": "string","title": "RENEWAL_TYPE"}}, + "type": "object", + "required": [], + "title": "ContractSearchQuery" + } + , "ContractStatQuery": { + "properties" : {"query" : {"$ref": "#/components/schemas/StatisticsQuery","title": "QUERY"}}, + "type": "object", + "required": ["query"], + "title": "ContractStatQuery" + } + , "ContractUpdateRequest": { + "properties" : {"contract_id" : {"type": "string","title": "CONTRACT_ID"},"name" : {"type": "string","title": "NAME"},"description" : {"type": "string","title": "DESCRIPTION"},"start_date" : {"type": "string","title": "START_DATE"},"end_date" : {"type": "string","title": "END_DATE"},"signed_date" : {"type": "string","title": "SIGNED_DATE"},"renewal_type" : {"type": "string","title": "RENEWAL_TYPE"},"tags" : {"type": "object","title": "TAGS"}}, + "type": "object", + "required": ["contract_id"], + "title": "ContractUpdateRequest" + } + , "ContractsInfo": { + "properties" : {"results" : {"items": {"$ref": "#/components/schemas/ContractInfo"}, + "type": "array","$ref": "#/components/schemas/ContractInfo","title": "RESULTS"},"total_count" : {"type": "integer","title": "TOTAL_COUNT"}}, + "type": "object", + "required": ["results","total_count"], + "title": "ContractsInfo" + } + , "OfferingCreateRequest": { + "properties" : {"name" : {"type": "string","title": "NAME"},"category" : {"type": "string","title": "CATEGORY"},"price" : {"type": "float","title": "PRICE"},"currency" : {"type": "string","title": "CURRENCY"},"description" : {"type": "string","title": "DESCRIPTION"},"terms" : {"type": "string","title": "TERMS"},"website_url" : {"type": "string","title": "WEBSITE_URL"},"tags" : {"type": "object","title": "TAGS"}}, + "type": "object", + "required": ["name","category"], + "title": "OfferingCreateRequest" + } + , "OfferingInfo": { + "properties" : {"offering_id" : {"type": "string","title": "OFFERING_ID"},"name" : {"type": "string","title": "NAME"},"category" : {"type": "string","title": "CATEGORY"},"status" : {"type": "string","title": "STATUS"},"price" : {"type": "float","title": "PRICE"},"currency" : {"type": "string","title": "CURRENCY"},"description" : {"type": "string","title": "DESCRIPTION"},"terms" : {"type": "string","title": "TERMS"},"website_url" : {"type": "string","title": "WEBSITE_URL"},"tags" : {"type": "object","title": "TAGS"},"domain_id" : {"type": "string","title": "DOMAIN_ID"},"created_at" : {"type": "string","title": "CREATED_AT"},"updated_at" : {"type": "string","title": "UPDATED_AT"}}, + "type": "object", + "required": ["offering_id","name","category","status","price","currency","description","terms","website_url","tags","domain_id","created_at","updated_at"], + "title": "OfferingInfo" + } + , "OfferingRequest": { + "properties" : {"offering_id" : {"type": "string","title": "OFFERING_ID"}}, + "type": "object", + "required": ["offering_id"], + "title": "OfferingRequest" + } + , "OfferingSearchQuery": { + "properties" : {"query" : {"$ref": "#/components/schemas/Query","title": "QUERY"},"offering_id" : {"type": "string","title": "OFFERING_ID"},"name" : {"type": "string","title": "NAME"},"status" : {"type": "string","title": "STATUS"}}, + "type": "object", + "required": [], + "title": "OfferingSearchQuery" + } + , "OfferingStatQuery": { + "properties" : {"query" : {"$ref": "#/components/schemas/StatisticsQuery","title": "QUERY"}}, + "type": "object", + "required": ["query"], + "title": "OfferingStatQuery" + } + , "OfferingUpdateRequest": { + "properties" : {"offering_id" : {"type": "string","title": "OFFERING_ID"},"name" : {"type": "string","title": "NAME"},"status" : {"type": "string","title": "STATUS"},"price" : {"type": "float","title": "PRICE"},"currency" : {"type": "string","title": "CURRENCY"},"description" : {"type": "string","title": "DESCRIPTION"},"terms" : {"type": "string","title": "TERMS"},"website_url" : {"type": "string","title": "WEBSITE_URL"},"tags" : {"type": "object","title": "TAGS"}}, + "type": "object", + "required": ["offering_id"], + "title": "OfferingUpdateRequest" + } + , "OfferingsInfo": { + "properties" : {"results" : {"items": {"$ref": "#/components/schemas/OfferingInfo"}, + "type": "array","$ref": "#/components/schemas/OfferingInfo","title": "RESULTS"},"total_count" : {"type": "integer","title": "TOTAL_COUNT"}}, + "type": "object", + "required": ["results","total_count"], + "title": "OfferingsInfo" + } + }, + "Struct": {"properties": {"type": "object","title": "Struct"}}, + "HTTPValidationError": { + "properties": { + "detail": { + "items": { + "$ref": "#/components/schemas/ValidationError" + }, + "type": "array", + "title": "Detail" + } + }, + "type": "object", + "title": "HTTPValidationError" + }, + "ValidationError": { + "properties": { + "loc": { + "items": { + "anyOf": [{"type": "string"}, {"type": "integer"}] + }, + "type": "array", + "title": "Location" + }, + "msg": {"type": "string","title": "Message"}, + "type": {"type": "string","title": "Error Type"} + }, + "type": "object", + "required": ["loc","msg","type"], + "title": "ValidationError" + }, + "securitySchemes": {"HTTPBearer": {"type": "http","scheme": "bearer"} + } + } +} \ No newline at end of file diff --git a/dist/python/build/lib/spaceone/api/mzc_service_api/__init__.py b/dist/python/build/lib/spaceone/api/mzc_service_api/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/dist/python/build/lib/spaceone/api/mzc_service_api/v1/__init__.py b/dist/python/build/lib/spaceone/api/mzc_service_api/v1/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/dist/python/build/lib/spaceone/api/mzc_service_api/v1/contract_pb2.py b/dist/python/build/lib/spaceone/api/mzc_service_api/v1/contract_pb2.py new file mode 100644 index 000000000..86f1f8bcc --- /dev/null +++ b/dist/python/build/lib/spaceone/api/mzc_service_api/v1/contract_pb2.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: spaceone/api/mzc_service_api/v1/contract.proto +# Protobuf Python Version: 5.26.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +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/mzc_service_api/v1/contract.proto\x12\x1fspaceone.api.mzc_service_api.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a spaceone/api/core/v2/query.proto\"\x8d\x02\n\x15\x43ontractCreateRequest\x12\x0e\n\x06org_id\x18\x01 \x01(\t\x12\x13\n\x0boffering_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x12\n\nstart_date\x18\x05 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x06 \x01(\t\x12\x13\n\x0bsigned_date\x18\x07 \x01(\t\x12J\n\x0crenewal_type\x18\x08 \x01(\x0e\x32\x34.spaceone.api.mzc_service_api.v1.ContractRenewalType\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\"\xfd\x01\n\x15\x43ontractUpdateRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x12\n\nstart_date\x18\x04 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x05 \x01(\t\x12\x13\n\x0bsigned_date\x18\x06 \x01(\t\x12J\n\x0crenewal_type\x18\x07 \x01(\x0e\x32\x34.spaceone.api.mzc_service_api.v1.ContractRenewalType\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\"&\n\x0f\x43ontractRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\"\x88\x02\n\x13\x43ontractSearchQuery\x12*\n\x05query\x18\x01 \x01(\x0b\x32\x1b.spaceone.api.core.v2.Query\x12\x13\n\x0b\x63ontract_id\x18\x02 \x01(\t\x12\x0e\n\x06org_id\x18\x03 \x01(\t\x12\x13\n\x0boffering_id\x18\x04 \x01(\t\x12?\n\x06status\x18\x05 \x01(\x0e\x32/.spaceone.api.mzc_service_api.v1.ContractStatus\x12J\n\x0crenewal_type\x18\x06 \x01(\x0e\x32\x34.spaceone.api.mzc_service_api.v1.ContractRenewalType\"\x95\x03\n\x0c\x43ontractInfo\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x0e\n\x06org_id\x18\x02 \x01(\t\x12\x13\n\x0boffering_id\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12?\n\x06status\x18\x05 \x01(\x0e\x32/.spaceone.api.mzc_service_api.v1.ContractStatus\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x12\n\nstart_date\x18\x07 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x08 \x01(\t\x12\x13\n\x0bsigned_date\x18\t \x01(\t\x12J\n\x0crenewal_type\x18\n \x01(\x0e\x32\x34.spaceone.api.mzc_service_api.v1.ContractRenewalType\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x11\n\tdomain_id\x18\x15 \x01(\t\x12\x12\n\ncreated_at\x18\x1f \x01(\t\x12\x12\n\nupdated_at\x18 \x01(\t\"d\n\rContractsInfo\x12>\n\x07results\x18\x01 \x03(\x0b\x32-.spaceone.api.mzc_service_api.v1.ContractInfo\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\"I\n\x11\x43ontractStatQuery\x12\x34\n\x05query\x18\x01 \x01(\x0b\x32%.spaceone.api.core.v2.StatisticsQuery*S\n\x0e\x43ontractStatus\x12\x18\n\x14\x43ONTRACT_STATUS_NONE\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0e\n\nTERMINATED\x10\x02\x12\x0b\n\x07\x45XPIRED\x10\x03*Z\n\x13\x43ontractRenewalType\x12\x1e\n\x1a\x43ONTRACT_RENEWAL_TYPE_NONE\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\n\n\x06MANUAL\x10\x02\x12\r\n\tNOT_RENEW\x10\x03\x32\x90\x07\n\x08\x43ontract\x12\x9f\x01\n\x06\x63reate\x12\x36.spaceone.api.mzc_service_api.v1.ContractCreateRequest\x1a-.spaceone.api.mzc_service_api.v1.ContractInfo\".\x82\xd3\xe4\x93\x02(\"#/mzc-service-api/v1/contract/create:\x01*\x12\x9f\x01\n\x06update\x12\x36.spaceone.api.mzc_service_api.v1.ContractUpdateRequest\x1a-.spaceone.api.mzc_service_api.v1.ContractInfo\".\x82\xd3\xe4\x93\x02(\"#/mzc-service-api/v1/contract/update:\x01*\x12\x88\x01\n\tterminate\x12\x30.spaceone.api.mzc_service_api.v1.ContractRequest\x1a\x16.google.protobuf.Empty\"1\x82\xd3\xe4\x93\x02+\"&/mzc-service-api/v1/contract/terminate:\x01*\x12\x93\x01\n\x03get\x12\x30.spaceone.api.mzc_service_api.v1.ContractRequest\x1a-.spaceone.api.mzc_service_api.v1.ContractInfo\"+\x82\xd3\xe4\x93\x02%\" /mzc-service-api/v1/contract/get:\x01*\x12\x9a\x01\n\x04list\x12\x34.spaceone.api.mzc_service_api.v1.ContractSearchQuery\x1a..spaceone.api.mzc_service_api.v1.ContractsInfo\",\x82\xd3\xe4\x93\x02&\"!/mzc-service-api/v1/contract/list:\x01*\x12\x81\x01\n\x04stat\x12\x32.spaceone.api.mzc_service_api.v1.ContractStatQuery\x1a\x17.google.protobuf.Struct\",\x82\xd3\xe4\x93\x02&\"!/mzc-service-api/v1/contract/stat:\x01*BFZDgithub.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spaceone.api.mzc_service_api.v1.contract_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'ZDgithub.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1' + _globals['_CONTRACT'].methods_by_name['create']._loaded_options = None + _globals['_CONTRACT'].methods_by_name['create']._serialized_options = b'\202\323\344\223\002(\"#/mzc-service-api/v1/contract/create:\001*' + _globals['_CONTRACT'].methods_by_name['update']._loaded_options = None + _globals['_CONTRACT'].methods_by_name['update']._serialized_options = b'\202\323\344\223\002(\"#/mzc-service-api/v1/contract/update:\001*' + _globals['_CONTRACT'].methods_by_name['terminate']._loaded_options = None + _globals['_CONTRACT'].methods_by_name['terminate']._serialized_options = b'\202\323\344\223\002+\"&/mzc-service-api/v1/contract/terminate:\001*' + _globals['_CONTRACT'].methods_by_name['get']._loaded_options = None + _globals['_CONTRACT'].methods_by_name['get']._serialized_options = b'\202\323\344\223\002%\" /mzc-service-api/v1/contract/get:\001*' + _globals['_CONTRACT'].methods_by_name['list']._loaded_options = None + _globals['_CONTRACT'].methods_by_name['list']._serialized_options = b'\202\323\344\223\002&\"!/mzc-service-api/v1/contract/list:\001*' + _globals['_CONTRACT'].methods_by_name['stat']._loaded_options = None + _globals['_CONTRACT'].methods_by_name['stat']._serialized_options = b'\202\323\344\223\002&\"!/mzc-service-api/v1/contract/stat:\001*' + _globals['_CONTRACTSTATUS']._serialized_start=1626 + _globals['_CONTRACTSTATUS']._serialized_end=1709 + _globals['_CONTRACTRENEWALTYPE']._serialized_start=1711 + _globals['_CONTRACTRENEWALTYPE']._serialized_end=1801 + _globals['_CONTRACTCREATEREQUEST']._serialized_start=207 + _globals['_CONTRACTCREATEREQUEST']._serialized_end=476 + _globals['_CONTRACTUPDATEREQUEST']._serialized_start=479 + _globals['_CONTRACTUPDATEREQUEST']._serialized_end=732 + _globals['_CONTRACTREQUEST']._serialized_start=734 + _globals['_CONTRACTREQUEST']._serialized_end=772 + _globals['_CONTRACTSEARCHQUERY']._serialized_start=775 + _globals['_CONTRACTSEARCHQUERY']._serialized_end=1039 + _globals['_CONTRACTINFO']._serialized_start=1042 + _globals['_CONTRACTINFO']._serialized_end=1447 + _globals['_CONTRACTSINFO']._serialized_start=1449 + _globals['_CONTRACTSINFO']._serialized_end=1549 + _globals['_CONTRACTSTATQUERY']._serialized_start=1551 + _globals['_CONTRACTSTATQUERY']._serialized_end=1624 + _globals['_CONTRACT']._serialized_start=1804 + _globals['_CONTRACT']._serialized_end=2716 +# @@protoc_insertion_point(module_scope) diff --git a/dist/python/build/lib/spaceone/api/mzc_service_api/v1/contract_pb2_grpc.py b/dist/python/build/lib/spaceone/api/mzc_service_api/v1/contract_pb2_grpc.py new file mode 100644 index 000000000..dbdfd5e8a --- /dev/null +++ b/dist/python/build/lib/spaceone/api/mzc_service_api/v1/contract_pb2_grpc.py @@ -0,0 +1,319 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +import warnings + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from spaceone.api.mzc_service_api.v1 import contract_pb2 as spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2 + +GRPC_GENERATED_VERSION = '1.64.1' +GRPC_VERSION = grpc.__version__ +EXPECTED_ERROR_RELEASE = '1.65.0' +SCHEDULED_RELEASE_DATE = 'June 25, 2024' +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + warnings.warn( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in spaceone/api/mzc_service_api/v1/contract_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + + f' This warning will become an error in {EXPECTED_ERROR_RELEASE},' + + f' scheduled for release on {SCHEDULED_RELEASE_DATE}.', + RuntimeWarning + ) + + +class ContractStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.create = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Contract/create', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractCreateRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.FromString, + _registered_method=True) + self.update = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Contract/update', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractUpdateRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.FromString, + _registered_method=True) + self.terminate = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Contract/terminate', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + _registered_method=True) + self.get = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Contract/get', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.FromString, + _registered_method=True) + self.list = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Contract/list', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractSearchQuery.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractsInfo.FromString, + _registered_method=True) + self.stat = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Contract/stat', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractStatQuery.SerializeToString, + response_deserializer=google_dot_protobuf_dot_struct__pb2.Struct.FromString, + _registered_method=True) + + +class ContractServicer(object): + """Missing associated documentation comment in .proto file.""" + + def create(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 update(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 terminate(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 get(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 list(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 stat(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 add_ContractServicer_to_server(servicer, server): + rpc_method_handlers = { + 'create': grpc.unary_unary_rpc_method_handler( + servicer.create, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractCreateRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.SerializeToString, + ), + 'update': grpc.unary_unary_rpc_method_handler( + servicer.update, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractUpdateRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.SerializeToString, + ), + 'terminate': grpc.unary_unary_rpc_method_handler( + servicer.terminate, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'get': grpc.unary_unary_rpc_method_handler( + servicer.get, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.SerializeToString, + ), + 'list': grpc.unary_unary_rpc_method_handler( + servicer.list, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractSearchQuery.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractsInfo.SerializeToString, + ), + 'stat': grpc.unary_unary_rpc_method_handler( + servicer.stat, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractStatQuery.FromString, + response_serializer=google_dot_protobuf_dot_struct__pb2.Struct.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'spaceone.api.mzc_service_api.v1.Contract', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('spaceone.api.mzc_service_api.v1.Contract', rpc_method_handlers) + + + # This class is part of an EXPERIMENTAL API. +class Contract(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def create(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.mzc_service_api.v1.Contract/create', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractCreateRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def update(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.mzc_service_api.v1.Contract/update', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractUpdateRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def terminate(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.mzc_service_api.v1.Contract/terminate', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractRequest.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 get(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.mzc_service_api.v1.Contract/get', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def list(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.mzc_service_api.v1.Contract/list', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractSearchQuery.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractsInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def stat(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.mzc_service_api.v1.Contract/stat', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractStatQuery.SerializeToString, + google_dot_protobuf_dot_struct__pb2.Struct.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/dist/python/build/lib/spaceone/api/mzc_service_api/v1/offering_pb2.py b/dist/python/build/lib/spaceone/api/mzc_service_api/v1/offering_pb2.py new file mode 100644 index 000000000..62b1e2805 --- /dev/null +++ b/dist/python/build/lib/spaceone/api/mzc_service_api/v1/offering_pb2.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: spaceone/api/mzc_service_api/v1/offering.proto +# Protobuf Python Version: 5.26.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +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/mzc_service_api/v1/offering.proto\x12\x1fspaceone.api.mzc_service_api.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a spaceone/api/core/v2/query.proto\"\xb8\x01\n\x15OfferingCreateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x02 \x01(\t\x12\r\n\x05price\x18\x03 \x01(\x02\x12\x10\n\x08\x63urrency\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\r\n\x05terms\x18\x06 \x01(\t\x12\x13\n\x0bwebsite_url\x18\x07 \x01(\t\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\"\xfc\x01\n\x15OfferingUpdateRequest\x12\x13\n\x0boffering_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12?\n\x06status\x18\x03 \x01(\x0e\x32/.spaceone.api.mzc_service_api.v1.OfferingStatus\x12\r\n\x05price\x18\x04 \x01(\x02\x12\x10\n\x08\x63urrency\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\r\n\x05terms\x18\x07 \x01(\t\x12\x13\n\x0bwebsite_url\x18\x08 \x01(\t\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\"&\n\x0fOfferingRequest\x12\x13\n\x0boffering_id\x18\x01 \x01(\t\"\xa5\x01\n\x13OfferingSearchQuery\x12*\n\x05query\x18\x01 \x01(\x0b\x32\x1b.spaceone.api.core.v2.Query\x12\x13\n\x0boffering_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12?\n\x06status\x18\x04 \x01(\x0e\x32/.spaceone.api.mzc_service_api.v1.OfferingStatus\"\xc0\x02\n\x0cOfferingInfo\x12\x13\n\x0boffering_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x03 \x01(\t\x12?\n\x06status\x18\x04 \x01(\x0e\x32/.spaceone.api.mzc_service_api.v1.OfferingStatus\x12\r\n\x05price\x18\x05 \x01(\x02\x12\x10\n\x08\x63urrency\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\r\n\x05terms\x18\x08 \x01(\t\x12\x13\n\x0bwebsite_url\x18\t \x01(\t\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x11\n\tdomain_id\x18\x15 \x01(\t\x12\x12\n\ncreated_at\x18\x1f \x01(\t\x12\x12\n\nupdated_at\x18 \x01(\t\"d\n\rOfferingsInfo\x12>\n\x07results\x18\x01 \x03(\x0b\x32-.spaceone.api.mzc_service_api.v1.OfferingInfo\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\"I\n\x11OfferingStatQuery\x12\x34\n\x05query\x18\x01 \x01(\x0b\x32%.spaceone.api.core.v2.StatisticsQuery*\\\n\x0eOfferingStatus\x12\x18\n\x14OFFERING_STATUS_NONE\x10\x00\x12\r\n\tAVAILABLE\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x10\n\x0c\x44ISCONTINUED\x10\x03\x32\x8a\x07\n\x08Offering\x12\x9f\x01\n\x06\x63reate\x12\x36.spaceone.api.mzc_service_api.v1.OfferingCreateRequest\x1a-.spaceone.api.mzc_service_api.v1.OfferingInfo\".\x82\xd3\xe4\x93\x02(\"#/mzc-service-api/v1/offering/create:\x01*\x12\x9f\x01\n\x06update\x12\x36.spaceone.api.mzc_service_api.v1.OfferingUpdateRequest\x1a-.spaceone.api.mzc_service_api.v1.OfferingInfo\".\x82\xd3\xe4\x93\x02(\"#/mzc-service-api/v1/offering/update:\x01*\x12\x82\x01\n\x06\x64\x65lete\x12\x30.spaceone.api.mzc_service_api.v1.OfferingRequest\x1a\x16.google.protobuf.Empty\".\x82\xd3\xe4\x93\x02(\"#/mzc-service-api/v1/offering/delete:\x01*\x12\x93\x01\n\x03get\x12\x30.spaceone.api.mzc_service_api.v1.OfferingRequest\x1a-.spaceone.api.mzc_service_api.v1.OfferingInfo\"+\x82\xd3\xe4\x93\x02%\" /mzc-service-api/v1/offering/get:\x01*\x12\x9a\x01\n\x04list\x12\x34.spaceone.api.mzc_service_api.v1.OfferingSearchQuery\x1a..spaceone.api.mzc_service_api.v1.OfferingsInfo\",\x82\xd3\xe4\x93\x02&\"!/mzc-service-api/v1/offering/list:\x01*\x12\x81\x01\n\x04stat\x12\x32.spaceone.api.mzc_service_api.v1.OfferingStatQuery\x1a\x17.google.protobuf.Struct\",\x82\xd3\xe4\x93\x02&\"!/mzc-service-api/v1/offering/stat:\x01*BFZDgithub.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spaceone.api.mzc_service_api.v1.offering_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'ZDgithub.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1' + _globals['_OFFERING'].methods_by_name['create']._loaded_options = None + _globals['_OFFERING'].methods_by_name['create']._serialized_options = b'\202\323\344\223\002(\"#/mzc-service-api/v1/offering/create:\001*' + _globals['_OFFERING'].methods_by_name['update']._loaded_options = None + _globals['_OFFERING'].methods_by_name['update']._serialized_options = b'\202\323\344\223\002(\"#/mzc-service-api/v1/offering/update:\001*' + _globals['_OFFERING'].methods_by_name['delete']._loaded_options = None + _globals['_OFFERING'].methods_by_name['delete']._serialized_options = b'\202\323\344\223\002(\"#/mzc-service-api/v1/offering/delete:\001*' + _globals['_OFFERING'].methods_by_name['get']._loaded_options = None + _globals['_OFFERING'].methods_by_name['get']._serialized_options = b'\202\323\344\223\002%\" /mzc-service-api/v1/offering/get:\001*' + _globals['_OFFERING'].methods_by_name['list']._loaded_options = None + _globals['_OFFERING'].methods_by_name['list']._serialized_options = b'\202\323\344\223\002&\"!/mzc-service-api/v1/offering/list:\001*' + _globals['_OFFERING'].methods_by_name['stat']._loaded_options = None + _globals['_OFFERING'].methods_by_name['stat']._serialized_options = b'\202\323\344\223\002&\"!/mzc-service-api/v1/offering/stat:\001*' + _globals['_OFFERINGSTATUS']._serialized_start=1356 + _globals['_OFFERINGSTATUS']._serialized_end=1448 + _globals['_OFFERINGCREATEREQUEST']._serialized_start=207 + _globals['_OFFERINGCREATEREQUEST']._serialized_end=391 + _globals['_OFFERINGUPDATEREQUEST']._serialized_start=394 + _globals['_OFFERINGUPDATEREQUEST']._serialized_end=646 + _globals['_OFFERINGREQUEST']._serialized_start=648 + _globals['_OFFERINGREQUEST']._serialized_end=686 + _globals['_OFFERINGSEARCHQUERY']._serialized_start=689 + _globals['_OFFERINGSEARCHQUERY']._serialized_end=854 + _globals['_OFFERINGINFO']._serialized_start=857 + _globals['_OFFERINGINFO']._serialized_end=1177 + _globals['_OFFERINGSINFO']._serialized_start=1179 + _globals['_OFFERINGSINFO']._serialized_end=1279 + _globals['_OFFERINGSTATQUERY']._serialized_start=1281 + _globals['_OFFERINGSTATQUERY']._serialized_end=1354 + _globals['_OFFERING']._serialized_start=1451 + _globals['_OFFERING']._serialized_end=2357 +# @@protoc_insertion_point(module_scope) diff --git a/dist/python/build/lib/spaceone/api/mzc_service_api/v1/offering_pb2_grpc.py b/dist/python/build/lib/spaceone/api/mzc_service_api/v1/offering_pb2_grpc.py new file mode 100644 index 000000000..f74feecee --- /dev/null +++ b/dist/python/build/lib/spaceone/api/mzc_service_api/v1/offering_pb2_grpc.py @@ -0,0 +1,319 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +import warnings + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from spaceone.api.mzc_service_api.v1 import offering_pb2 as spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2 + +GRPC_GENERATED_VERSION = '1.64.1' +GRPC_VERSION = grpc.__version__ +EXPECTED_ERROR_RELEASE = '1.65.0' +SCHEDULED_RELEASE_DATE = 'June 25, 2024' +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + warnings.warn( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in spaceone/api/mzc_service_api/v1/offering_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + + f' This warning will become an error in {EXPECTED_ERROR_RELEASE},' + + f' scheduled for release on {SCHEDULED_RELEASE_DATE}.', + RuntimeWarning + ) + + +class OfferingStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.create = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Offering/create', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingCreateRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.FromString, + _registered_method=True) + self.update = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Offering/update', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingUpdateRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.FromString, + _registered_method=True) + self.delete = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Offering/delete', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + _registered_method=True) + self.get = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Offering/get', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.FromString, + _registered_method=True) + self.list = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Offering/list', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingSearchQuery.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingsInfo.FromString, + _registered_method=True) + self.stat = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Offering/stat', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingStatQuery.SerializeToString, + response_deserializer=google_dot_protobuf_dot_struct__pb2.Struct.FromString, + _registered_method=True) + + +class OfferingServicer(object): + """Missing associated documentation comment in .proto file.""" + + def create(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 update(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 delete(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 get(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 list(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 stat(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 add_OfferingServicer_to_server(servicer, server): + rpc_method_handlers = { + 'create': grpc.unary_unary_rpc_method_handler( + servicer.create, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingCreateRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.SerializeToString, + ), + 'update': grpc.unary_unary_rpc_method_handler( + servicer.update, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingUpdateRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.SerializeToString, + ), + 'delete': grpc.unary_unary_rpc_method_handler( + servicer.delete, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'get': grpc.unary_unary_rpc_method_handler( + servicer.get, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.SerializeToString, + ), + 'list': grpc.unary_unary_rpc_method_handler( + servicer.list, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingSearchQuery.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingsInfo.SerializeToString, + ), + 'stat': grpc.unary_unary_rpc_method_handler( + servicer.stat, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingStatQuery.FromString, + response_serializer=google_dot_protobuf_dot_struct__pb2.Struct.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'spaceone.api.mzc_service_api.v1.Offering', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('spaceone.api.mzc_service_api.v1.Offering', rpc_method_handlers) + + + # This class is part of an EXPERIMENTAL API. +class Offering(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def create(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.mzc_service_api.v1.Offering/create', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingCreateRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def update(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.mzc_service_api.v1.Offering/update', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingUpdateRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def delete(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.mzc_service_api.v1.Offering/delete', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingRequest.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 get(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.mzc_service_api.v1.Offering/get', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def list(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.mzc_service_api.v1.Offering/list', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingSearchQuery.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingsInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def stat(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.mzc_service_api.v1.Offering/stat', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingStatQuery.SerializeToString, + google_dot_protobuf_dot_struct__pb2.Struct.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/dist/python/build/lib/spaceone/api/mzc_service_api/v1/organization_pb2.py b/dist/python/build/lib/spaceone/api/mzc_service_api/v1/organization_pb2.py new file mode 100644 index 000000000..7cb3d2111 --- /dev/null +++ b/dist/python/build/lib/spaceone/api/mzc_service_api/v1/organization_pb2.py @@ -0,0 +1,63 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: spaceone/api/mzc_service_api/v1/organization.proto +# Protobuf Python Version: 5.26.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +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'\n2spaceone/api/mzc_service_api/v1/organization.proto\x12\x1fspaceone.api.mzc_service_api.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a spaceone/api/core/v2/query.proto\"\xfc\x01\n\x19OrganizationCreateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x10\n\x08industry\x18\x03 \x01(\t\x12\x1b\n\x13registration_number\x18\x04 \x01(\t\x12\x0f\n\x07\x63ountry\x18\x05 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x06 \x01(\t\x12\x16\n\x0e\x63ontact_person\x18\x07 \x01(\t\x12\x15\n\rcontact_email\x18\x08 \x01(\t\x12\x15\n\rcontact_phone\x18\t \x01(\t\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\"\x8c\x02\n\x19OrganizationUpdateRequest\x12\x0e\n\x06org_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x10\n\x08industry\x18\x04 \x01(\t\x12\x1b\n\x13registration_number\x18\x05 \x01(\t\x12\x0f\n\x07\x63ountry\x18\x06 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x07 \x01(\t\x12\x16\n\x0e\x63ontact_person\x18\x08 \x01(\t\x12\x15\n\rcontact_email\x18\t \x01(\t\x12\x15\n\rcontact_phone\x18\n \x01(\t\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\"%\n\x13OrganizationRequest\x12\x0e\n\x06org_id\x18\x01 \x01(\t\"\xa6\x01\n\x17OrganizationSearchQuery\x12*\n\x05query\x18\x01 \x01(\x0b\x32\x1b.spaceone.api.core.v2.Query\x12\x0e\n\x06org_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x41\n\x05state\x18\x04 \x01(\x0e\x32\x32.spaceone.api.mzc_service_api.v1.OrganizationState\"\x81\x03\n\x10OrganizationInfo\x12\x0e\n\x06org_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x41\n\x05state\x18\x03 \x01(\x0e\x32\x32.spaceone.api.mzc_service_api.v1.OrganizationState\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x10\n\x08industry\x18\x05 \x01(\t\x12\x1b\n\x13registration_number\x18\x06 \x01(\t\x12\x0f\n\x07\x63ountry\x18\x07 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x08 \x01(\t\x12\x16\n\x0e\x63ontact_person\x18\t \x01(\t\x12\x15\n\rcontact_email\x18\n \x01(\t\x12\x15\n\rcontact_phone\x18\x0b \x01(\t\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x11\n\tdomain_id\x18\x15 \x01(\t\x12\x12\n\ncreated_at\x18\x1f \x01(\t\x12\x12\n\nupdated_at\x18 \x01(\t\"l\n\x11OrganizationsInfo\x12\x42\n\x07results\x18\x01 \x03(\x0b\x32\x31.spaceone.api.mzc_service_api.v1.OrganizationInfo\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\"M\n\x15OrganizationStatQuery\x12\x34\n\x05query\x18\x01 \x01(\x0b\x32%.spaceone.api.core.v2.StatisticsQuery*K\n\x11OrganizationState\x12\x1b\n\x17ORGANIZATION_STATE_NONE\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x32\xa0\n\n\x0cOrganization\x12\xab\x01\n\x06\x63reate\x12:.spaceone.api.mzc_service_api.v1.OrganizationCreateRequest\x1a\x31.spaceone.api.mzc_service_api.v1.OrganizationInfo\"2\x82\xd3\xe4\x93\x02,\"\'/mzc-service-api/v1/organization/create:\x01*\x12\xab\x01\n\x06update\x12:.spaceone.api.mzc_service_api.v1.OrganizationUpdateRequest\x1a\x31.spaceone.api.mzc_service_api.v1.OrganizationInfo\"2\x82\xd3\xe4\x93\x02,\"\'/mzc-service-api/v1/organization/update:\x01*\x12\xa5\x01\n\x06\x65nable\x12\x34.spaceone.api.mzc_service_api.v1.OrganizationRequest\x1a\x31.spaceone.api.mzc_service_api.v1.OrganizationInfo\"2\x82\xd3\xe4\x93\x02,\"\'/mzc-service-api/v1/organization/enable:\x01*\x12\xa7\x01\n\x07\x64isable\x12\x34.spaceone.api.mzc_service_api.v1.OrganizationRequest\x1a\x31.spaceone.api.mzc_service_api.v1.OrganizationInfo\"3\x82\xd3\xe4\x93\x02-\"(/mzc-service-api/v1/organization/disable:\x01*\x12\x8a\x01\n\x06\x64\x65lete\x12\x34.spaceone.api.mzc_service_api.v1.OrganizationRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02,\"\'/mzc-service-api/v1/organization/delete:\x01*\x12\x9f\x01\n\x03get\x12\x34.spaceone.api.mzc_service_api.v1.OrganizationRequest\x1a\x31.spaceone.api.mzc_service_api.v1.OrganizationInfo\"/\x82\xd3\xe4\x93\x02)\"$/mzc-service-api/v1/organization/get:\x01*\x12\xa6\x01\n\x04list\x12\x38.spaceone.api.mzc_service_api.v1.OrganizationSearchQuery\x1a\x32.spaceone.api.mzc_service_api.v1.OrganizationsInfo\"0\x82\xd3\xe4\x93\x02*\"%/mzc-service-api/v1/organization/list:\x01*\x12\x89\x01\n\x04stat\x12\x36.spaceone.api.mzc_service_api.v1.OrganizationStatQuery\x1a\x17.google.protobuf.Struct\"0\x82\xd3\xe4\x93\x02*\"%/mzc-service-api/v1/organization/stat:\x01*BFZDgithub.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spaceone.api.mzc_service_api.v1.organization_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'ZDgithub.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1' + _globals['_ORGANIZATION'].methods_by_name['create']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['create']._serialized_options = b'\202\323\344\223\002,\"\'/mzc-service-api/v1/organization/create:\001*' + _globals['_ORGANIZATION'].methods_by_name['update']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['update']._serialized_options = b'\202\323\344\223\002,\"\'/mzc-service-api/v1/organization/update:\001*' + _globals['_ORGANIZATION'].methods_by_name['enable']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['enable']._serialized_options = b'\202\323\344\223\002,\"\'/mzc-service-api/v1/organization/enable:\001*' + _globals['_ORGANIZATION'].methods_by_name['disable']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['disable']._serialized_options = b'\202\323\344\223\002-\"(/mzc-service-api/v1/organization/disable:\001*' + _globals['_ORGANIZATION'].methods_by_name['delete']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['delete']._serialized_options = b'\202\323\344\223\002,\"\'/mzc-service-api/v1/organization/delete:\001*' + _globals['_ORGANIZATION'].methods_by_name['get']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['get']._serialized_options = b'\202\323\344\223\002)\"$/mzc-service-api/v1/organization/get:\001*' + _globals['_ORGANIZATION'].methods_by_name['list']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['list']._serialized_options = b'\202\323\344\223\002*\"%/mzc-service-api/v1/organization/list:\001*' + _globals['_ORGANIZATION'].methods_by_name['stat']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['stat']._serialized_options = b'\202\323\344\223\002*\"%/mzc-service-api/v1/organization/stat:\001*' + _globals['_ORGANIZATIONSTATE']._serialized_start=1521 + _globals['_ORGANIZATIONSTATE']._serialized_end=1596 + _globals['_ORGANIZATIONCREATEREQUEST']._serialized_start=211 + _globals['_ORGANIZATIONCREATEREQUEST']._serialized_end=463 + _globals['_ORGANIZATIONUPDATEREQUEST']._serialized_start=466 + _globals['_ORGANIZATIONUPDATEREQUEST']._serialized_end=734 + _globals['_ORGANIZATIONREQUEST']._serialized_start=736 + _globals['_ORGANIZATIONREQUEST']._serialized_end=773 + _globals['_ORGANIZATIONSEARCHQUERY']._serialized_start=776 + _globals['_ORGANIZATIONSEARCHQUERY']._serialized_end=942 + _globals['_ORGANIZATIONINFO']._serialized_start=945 + _globals['_ORGANIZATIONINFO']._serialized_end=1330 + _globals['_ORGANIZATIONSINFO']._serialized_start=1332 + _globals['_ORGANIZATIONSINFO']._serialized_end=1440 + _globals['_ORGANIZATIONSTATQUERY']._serialized_start=1442 + _globals['_ORGANIZATIONSTATQUERY']._serialized_end=1519 + _globals['_ORGANIZATION']._serialized_start=1599 + _globals['_ORGANIZATION']._serialized_end=2911 +# @@protoc_insertion_point(module_scope) diff --git a/dist/python/build/lib/spaceone/api/mzc_service_api/v1/organization_pb2_grpc.py b/dist/python/build/lib/spaceone/api/mzc_service_api/v1/organization_pb2_grpc.py new file mode 100644 index 000000000..fcac9eefa --- /dev/null +++ b/dist/python/build/lib/spaceone/api/mzc_service_api/v1/organization_pb2_grpc.py @@ -0,0 +1,405 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +import warnings + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from spaceone.api.mzc_service_api.v1 import organization_pb2 as spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2 + +GRPC_GENERATED_VERSION = '1.64.1' +GRPC_VERSION = grpc.__version__ +EXPECTED_ERROR_RELEASE = '1.65.0' +SCHEDULED_RELEASE_DATE = 'June 25, 2024' +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + warnings.warn( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in spaceone/api/mzc_service_api/v1/organization_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + + f' This warning will become an error in {EXPECTED_ERROR_RELEASE},' + + f' scheduled for release on {SCHEDULED_RELEASE_DATE}.', + RuntimeWarning + ) + + +class OrganizationStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.create = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/create', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationCreateRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + _registered_method=True) + self.update = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/update', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationUpdateRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + _registered_method=True) + self.enable = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/enable', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + _registered_method=True) + self.disable = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/disable', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + _registered_method=True) + self.delete = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/delete', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + _registered_method=True) + self.get = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/get', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + _registered_method=True) + self.list = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/list', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationSearchQuery.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationsInfo.FromString, + _registered_method=True) + self.stat = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/stat', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationStatQuery.SerializeToString, + response_deserializer=google_dot_protobuf_dot_struct__pb2.Struct.FromString, + _registered_method=True) + + +class OrganizationServicer(object): + """Missing associated documentation comment in .proto file.""" + + def create(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 update(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) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def disable(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 delete(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 get(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 list(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 stat(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 add_OrganizationServicer_to_server(servicer, server): + rpc_method_handlers = { + 'create': grpc.unary_unary_rpc_method_handler( + servicer.create, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationCreateRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.SerializeToString, + ), + 'update': grpc.unary_unary_rpc_method_handler( + servicer.update, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationUpdateRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.SerializeToString, + ), + 'enable': grpc.unary_unary_rpc_method_handler( + servicer.enable, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.SerializeToString, + ), + 'disable': grpc.unary_unary_rpc_method_handler( + servicer.disable, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.SerializeToString, + ), + 'delete': grpc.unary_unary_rpc_method_handler( + servicer.delete, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'get': grpc.unary_unary_rpc_method_handler( + servicer.get, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.SerializeToString, + ), + 'list': grpc.unary_unary_rpc_method_handler( + servicer.list, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationSearchQuery.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationsInfo.SerializeToString, + ), + 'stat': grpc.unary_unary_rpc_method_handler( + servicer.stat, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationStatQuery.FromString, + response_serializer=google_dot_protobuf_dot_struct__pb2.Struct.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'spaceone.api.mzc_service_api.v1.Organization', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('spaceone.api.mzc_service_api.v1.Organization', rpc_method_handlers) + + + # This class is part of an EXPERIMENTAL API. +class Organization(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def create(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.mzc_service_api.v1.Organization/create', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationCreateRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def update(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.mzc_service_api.v1.Organization/update', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationUpdateRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def enable(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.mzc_service_api.v1.Organization/enable', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def disable(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.mzc_service_api.v1.Organization/disable', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def delete(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.mzc_service_api.v1.Organization/delete', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.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 get(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.mzc_service_api.v1.Organization/get', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def list(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.mzc_service_api.v1.Organization/list', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationSearchQuery.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationsInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def stat(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.mzc_service_api.v1.Organization/stat', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationStatQuery.SerializeToString, + google_dot_protobuf_dot_struct__pb2.Struct.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/dist/python/dist/spaceone-api-2.0.288.tar.gz b/dist/python/dist/spaceone-api-2.0.288.tar.gz deleted file mode 100644 index a056ccba6..000000000 Binary files a/dist/python/dist/spaceone-api-2.0.288.tar.gz and /dev/null differ diff --git a/dist/python/dist/spaceone-api-2.0.289.tar.gz b/dist/python/dist/spaceone-api-2.0.289.tar.gz new file mode 100644 index 000000000..c2c0b3697 Binary files /dev/null and b/dist/python/dist/spaceone-api-2.0.289.tar.gz differ diff --git a/dist/python/dist/spaceone_api-2.0.288-py3-none-any.whl b/dist/python/dist/spaceone_api-2.0.289-py3-none-any.whl similarity index 87% rename from dist/python/dist/spaceone_api-2.0.288-py3-none-any.whl rename to dist/python/dist/spaceone_api-2.0.289-py3-none-any.whl index 7bfdcca1c..6dc7b7630 100644 Binary files a/dist/python/dist/spaceone_api-2.0.288-py3-none-any.whl and b/dist/python/dist/spaceone_api-2.0.289-py3-none-any.whl differ diff --git a/dist/python/spaceone/api/mzc_service_api/__init__.py b/dist/python/spaceone/api/mzc_service_api/__init__.py new file mode 100755 index 000000000..e69de29bb diff --git a/dist/python/spaceone/api/mzc_service_api/v1/__init__.py b/dist/python/spaceone/api/mzc_service_api/v1/__init__.py new file mode 100755 index 000000000..e69de29bb diff --git a/dist/python/spaceone/api/mzc_service_api/v1/contract_pb2.py b/dist/python/spaceone/api/mzc_service_api/v1/contract_pb2.py new file mode 100755 index 000000000..86f1f8bcc --- /dev/null +++ b/dist/python/spaceone/api/mzc_service_api/v1/contract_pb2.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: spaceone/api/mzc_service_api/v1/contract.proto +# Protobuf Python Version: 5.26.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +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/mzc_service_api/v1/contract.proto\x12\x1fspaceone.api.mzc_service_api.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a spaceone/api/core/v2/query.proto\"\x8d\x02\n\x15\x43ontractCreateRequest\x12\x0e\n\x06org_id\x18\x01 \x01(\t\x12\x13\n\x0boffering_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x12\n\nstart_date\x18\x05 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x06 \x01(\t\x12\x13\n\x0bsigned_date\x18\x07 \x01(\t\x12J\n\x0crenewal_type\x18\x08 \x01(\x0e\x32\x34.spaceone.api.mzc_service_api.v1.ContractRenewalType\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\"\xfd\x01\n\x15\x43ontractUpdateRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x12\n\nstart_date\x18\x04 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x05 \x01(\t\x12\x13\n\x0bsigned_date\x18\x06 \x01(\t\x12J\n\x0crenewal_type\x18\x07 \x01(\x0e\x32\x34.spaceone.api.mzc_service_api.v1.ContractRenewalType\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\"&\n\x0f\x43ontractRequest\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\"\x88\x02\n\x13\x43ontractSearchQuery\x12*\n\x05query\x18\x01 \x01(\x0b\x32\x1b.spaceone.api.core.v2.Query\x12\x13\n\x0b\x63ontract_id\x18\x02 \x01(\t\x12\x0e\n\x06org_id\x18\x03 \x01(\t\x12\x13\n\x0boffering_id\x18\x04 \x01(\t\x12?\n\x06status\x18\x05 \x01(\x0e\x32/.spaceone.api.mzc_service_api.v1.ContractStatus\x12J\n\x0crenewal_type\x18\x06 \x01(\x0e\x32\x34.spaceone.api.mzc_service_api.v1.ContractRenewalType\"\x95\x03\n\x0c\x43ontractInfo\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\t\x12\x0e\n\x06org_id\x18\x02 \x01(\t\x12\x13\n\x0boffering_id\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12?\n\x06status\x18\x05 \x01(\x0e\x32/.spaceone.api.mzc_service_api.v1.ContractStatus\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x12\n\nstart_date\x18\x07 \x01(\t\x12\x10\n\x08\x65nd_date\x18\x08 \x01(\t\x12\x13\n\x0bsigned_date\x18\t \x01(\t\x12J\n\x0crenewal_type\x18\n \x01(\x0e\x32\x34.spaceone.api.mzc_service_api.v1.ContractRenewalType\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x11\n\tdomain_id\x18\x15 \x01(\t\x12\x12\n\ncreated_at\x18\x1f \x01(\t\x12\x12\n\nupdated_at\x18 \x01(\t\"d\n\rContractsInfo\x12>\n\x07results\x18\x01 \x03(\x0b\x32-.spaceone.api.mzc_service_api.v1.ContractInfo\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\"I\n\x11\x43ontractStatQuery\x12\x34\n\x05query\x18\x01 \x01(\x0b\x32%.spaceone.api.core.v2.StatisticsQuery*S\n\x0e\x43ontractStatus\x12\x18\n\x14\x43ONTRACT_STATUS_NONE\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0e\n\nTERMINATED\x10\x02\x12\x0b\n\x07\x45XPIRED\x10\x03*Z\n\x13\x43ontractRenewalType\x12\x1e\n\x1a\x43ONTRACT_RENEWAL_TYPE_NONE\x10\x00\x12\x08\n\x04\x41UTO\x10\x01\x12\n\n\x06MANUAL\x10\x02\x12\r\n\tNOT_RENEW\x10\x03\x32\x90\x07\n\x08\x43ontract\x12\x9f\x01\n\x06\x63reate\x12\x36.spaceone.api.mzc_service_api.v1.ContractCreateRequest\x1a-.spaceone.api.mzc_service_api.v1.ContractInfo\".\x82\xd3\xe4\x93\x02(\"#/mzc-service-api/v1/contract/create:\x01*\x12\x9f\x01\n\x06update\x12\x36.spaceone.api.mzc_service_api.v1.ContractUpdateRequest\x1a-.spaceone.api.mzc_service_api.v1.ContractInfo\".\x82\xd3\xe4\x93\x02(\"#/mzc-service-api/v1/contract/update:\x01*\x12\x88\x01\n\tterminate\x12\x30.spaceone.api.mzc_service_api.v1.ContractRequest\x1a\x16.google.protobuf.Empty\"1\x82\xd3\xe4\x93\x02+\"&/mzc-service-api/v1/contract/terminate:\x01*\x12\x93\x01\n\x03get\x12\x30.spaceone.api.mzc_service_api.v1.ContractRequest\x1a-.spaceone.api.mzc_service_api.v1.ContractInfo\"+\x82\xd3\xe4\x93\x02%\" /mzc-service-api/v1/contract/get:\x01*\x12\x9a\x01\n\x04list\x12\x34.spaceone.api.mzc_service_api.v1.ContractSearchQuery\x1a..spaceone.api.mzc_service_api.v1.ContractsInfo\",\x82\xd3\xe4\x93\x02&\"!/mzc-service-api/v1/contract/list:\x01*\x12\x81\x01\n\x04stat\x12\x32.spaceone.api.mzc_service_api.v1.ContractStatQuery\x1a\x17.google.protobuf.Struct\",\x82\xd3\xe4\x93\x02&\"!/mzc-service-api/v1/contract/stat:\x01*BFZDgithub.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spaceone.api.mzc_service_api.v1.contract_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'ZDgithub.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1' + _globals['_CONTRACT'].methods_by_name['create']._loaded_options = None + _globals['_CONTRACT'].methods_by_name['create']._serialized_options = b'\202\323\344\223\002(\"#/mzc-service-api/v1/contract/create:\001*' + _globals['_CONTRACT'].methods_by_name['update']._loaded_options = None + _globals['_CONTRACT'].methods_by_name['update']._serialized_options = b'\202\323\344\223\002(\"#/mzc-service-api/v1/contract/update:\001*' + _globals['_CONTRACT'].methods_by_name['terminate']._loaded_options = None + _globals['_CONTRACT'].methods_by_name['terminate']._serialized_options = b'\202\323\344\223\002+\"&/mzc-service-api/v1/contract/terminate:\001*' + _globals['_CONTRACT'].methods_by_name['get']._loaded_options = None + _globals['_CONTRACT'].methods_by_name['get']._serialized_options = b'\202\323\344\223\002%\" /mzc-service-api/v1/contract/get:\001*' + _globals['_CONTRACT'].methods_by_name['list']._loaded_options = None + _globals['_CONTRACT'].methods_by_name['list']._serialized_options = b'\202\323\344\223\002&\"!/mzc-service-api/v1/contract/list:\001*' + _globals['_CONTRACT'].methods_by_name['stat']._loaded_options = None + _globals['_CONTRACT'].methods_by_name['stat']._serialized_options = b'\202\323\344\223\002&\"!/mzc-service-api/v1/contract/stat:\001*' + _globals['_CONTRACTSTATUS']._serialized_start=1626 + _globals['_CONTRACTSTATUS']._serialized_end=1709 + _globals['_CONTRACTRENEWALTYPE']._serialized_start=1711 + _globals['_CONTRACTRENEWALTYPE']._serialized_end=1801 + _globals['_CONTRACTCREATEREQUEST']._serialized_start=207 + _globals['_CONTRACTCREATEREQUEST']._serialized_end=476 + _globals['_CONTRACTUPDATEREQUEST']._serialized_start=479 + _globals['_CONTRACTUPDATEREQUEST']._serialized_end=732 + _globals['_CONTRACTREQUEST']._serialized_start=734 + _globals['_CONTRACTREQUEST']._serialized_end=772 + _globals['_CONTRACTSEARCHQUERY']._serialized_start=775 + _globals['_CONTRACTSEARCHQUERY']._serialized_end=1039 + _globals['_CONTRACTINFO']._serialized_start=1042 + _globals['_CONTRACTINFO']._serialized_end=1447 + _globals['_CONTRACTSINFO']._serialized_start=1449 + _globals['_CONTRACTSINFO']._serialized_end=1549 + _globals['_CONTRACTSTATQUERY']._serialized_start=1551 + _globals['_CONTRACTSTATQUERY']._serialized_end=1624 + _globals['_CONTRACT']._serialized_start=1804 + _globals['_CONTRACT']._serialized_end=2716 +# @@protoc_insertion_point(module_scope) diff --git a/dist/python/spaceone/api/mzc_service_api/v1/contract_pb2_grpc.py b/dist/python/spaceone/api/mzc_service_api/v1/contract_pb2_grpc.py new file mode 100755 index 000000000..dbdfd5e8a --- /dev/null +++ b/dist/python/spaceone/api/mzc_service_api/v1/contract_pb2_grpc.py @@ -0,0 +1,319 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +import warnings + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from spaceone.api.mzc_service_api.v1 import contract_pb2 as spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2 + +GRPC_GENERATED_VERSION = '1.64.1' +GRPC_VERSION = grpc.__version__ +EXPECTED_ERROR_RELEASE = '1.65.0' +SCHEDULED_RELEASE_DATE = 'June 25, 2024' +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + warnings.warn( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in spaceone/api/mzc_service_api/v1/contract_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + + f' This warning will become an error in {EXPECTED_ERROR_RELEASE},' + + f' scheduled for release on {SCHEDULED_RELEASE_DATE}.', + RuntimeWarning + ) + + +class ContractStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.create = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Contract/create', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractCreateRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.FromString, + _registered_method=True) + self.update = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Contract/update', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractUpdateRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.FromString, + _registered_method=True) + self.terminate = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Contract/terminate', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + _registered_method=True) + self.get = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Contract/get', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.FromString, + _registered_method=True) + self.list = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Contract/list', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractSearchQuery.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractsInfo.FromString, + _registered_method=True) + self.stat = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Contract/stat', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractStatQuery.SerializeToString, + response_deserializer=google_dot_protobuf_dot_struct__pb2.Struct.FromString, + _registered_method=True) + + +class ContractServicer(object): + """Missing associated documentation comment in .proto file.""" + + def create(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 update(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 terminate(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 get(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 list(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 stat(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 add_ContractServicer_to_server(servicer, server): + rpc_method_handlers = { + 'create': grpc.unary_unary_rpc_method_handler( + servicer.create, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractCreateRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.SerializeToString, + ), + 'update': grpc.unary_unary_rpc_method_handler( + servicer.update, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractUpdateRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.SerializeToString, + ), + 'terminate': grpc.unary_unary_rpc_method_handler( + servicer.terminate, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'get': grpc.unary_unary_rpc_method_handler( + servicer.get, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.SerializeToString, + ), + 'list': grpc.unary_unary_rpc_method_handler( + servicer.list, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractSearchQuery.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractsInfo.SerializeToString, + ), + 'stat': grpc.unary_unary_rpc_method_handler( + servicer.stat, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractStatQuery.FromString, + response_serializer=google_dot_protobuf_dot_struct__pb2.Struct.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'spaceone.api.mzc_service_api.v1.Contract', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('spaceone.api.mzc_service_api.v1.Contract', rpc_method_handlers) + + + # This class is part of an EXPERIMENTAL API. +class Contract(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def create(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.mzc_service_api.v1.Contract/create', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractCreateRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def update(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.mzc_service_api.v1.Contract/update', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractUpdateRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def terminate(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.mzc_service_api.v1.Contract/terminate', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractRequest.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 get(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.mzc_service_api.v1.Contract/get', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def list(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.mzc_service_api.v1.Contract/list', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractSearchQuery.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractsInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def stat(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.mzc_service_api.v1.Contract/stat', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_contract__pb2.ContractStatQuery.SerializeToString, + google_dot_protobuf_dot_struct__pb2.Struct.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/dist/python/spaceone/api/mzc_service_api/v1/offering_pb2.py b/dist/python/spaceone/api/mzc_service_api/v1/offering_pb2.py new file mode 100755 index 000000000..62b1e2805 --- /dev/null +++ b/dist/python/spaceone/api/mzc_service_api/v1/offering_pb2.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: spaceone/api/mzc_service_api/v1/offering.proto +# Protobuf Python Version: 5.26.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +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/mzc_service_api/v1/offering.proto\x12\x1fspaceone.api.mzc_service_api.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a spaceone/api/core/v2/query.proto\"\xb8\x01\n\x15OfferingCreateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x02 \x01(\t\x12\r\n\x05price\x18\x03 \x01(\x02\x12\x10\n\x08\x63urrency\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\r\n\x05terms\x18\x06 \x01(\t\x12\x13\n\x0bwebsite_url\x18\x07 \x01(\t\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\"\xfc\x01\n\x15OfferingUpdateRequest\x12\x13\n\x0boffering_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12?\n\x06status\x18\x03 \x01(\x0e\x32/.spaceone.api.mzc_service_api.v1.OfferingStatus\x12\r\n\x05price\x18\x04 \x01(\x02\x12\x10\n\x08\x63urrency\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\r\n\x05terms\x18\x07 \x01(\t\x12\x13\n\x0bwebsite_url\x18\x08 \x01(\t\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\"&\n\x0fOfferingRequest\x12\x13\n\x0boffering_id\x18\x01 \x01(\t\"\xa5\x01\n\x13OfferingSearchQuery\x12*\n\x05query\x18\x01 \x01(\x0b\x32\x1b.spaceone.api.core.v2.Query\x12\x13\n\x0boffering_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12?\n\x06status\x18\x04 \x01(\x0e\x32/.spaceone.api.mzc_service_api.v1.OfferingStatus\"\xc0\x02\n\x0cOfferingInfo\x12\x13\n\x0boffering_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08\x63\x61tegory\x18\x03 \x01(\t\x12?\n\x06status\x18\x04 \x01(\x0e\x32/.spaceone.api.mzc_service_api.v1.OfferingStatus\x12\r\n\x05price\x18\x05 \x01(\x02\x12\x10\n\x08\x63urrency\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\r\n\x05terms\x18\x08 \x01(\t\x12\x13\n\x0bwebsite_url\x18\t \x01(\t\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x11\n\tdomain_id\x18\x15 \x01(\t\x12\x12\n\ncreated_at\x18\x1f \x01(\t\x12\x12\n\nupdated_at\x18 \x01(\t\"d\n\rOfferingsInfo\x12>\n\x07results\x18\x01 \x03(\x0b\x32-.spaceone.api.mzc_service_api.v1.OfferingInfo\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\"I\n\x11OfferingStatQuery\x12\x34\n\x05query\x18\x01 \x01(\x0b\x32%.spaceone.api.core.v2.StatisticsQuery*\\\n\x0eOfferingStatus\x12\x18\n\x14OFFERING_STATUS_NONE\x10\x00\x12\r\n\tAVAILABLE\x10\x01\x12\x0f\n\x0bUNAVAILABLE\x10\x02\x12\x10\n\x0c\x44ISCONTINUED\x10\x03\x32\x8a\x07\n\x08Offering\x12\x9f\x01\n\x06\x63reate\x12\x36.spaceone.api.mzc_service_api.v1.OfferingCreateRequest\x1a-.spaceone.api.mzc_service_api.v1.OfferingInfo\".\x82\xd3\xe4\x93\x02(\"#/mzc-service-api/v1/offering/create:\x01*\x12\x9f\x01\n\x06update\x12\x36.spaceone.api.mzc_service_api.v1.OfferingUpdateRequest\x1a-.spaceone.api.mzc_service_api.v1.OfferingInfo\".\x82\xd3\xe4\x93\x02(\"#/mzc-service-api/v1/offering/update:\x01*\x12\x82\x01\n\x06\x64\x65lete\x12\x30.spaceone.api.mzc_service_api.v1.OfferingRequest\x1a\x16.google.protobuf.Empty\".\x82\xd3\xe4\x93\x02(\"#/mzc-service-api/v1/offering/delete:\x01*\x12\x93\x01\n\x03get\x12\x30.spaceone.api.mzc_service_api.v1.OfferingRequest\x1a-.spaceone.api.mzc_service_api.v1.OfferingInfo\"+\x82\xd3\xe4\x93\x02%\" /mzc-service-api/v1/offering/get:\x01*\x12\x9a\x01\n\x04list\x12\x34.spaceone.api.mzc_service_api.v1.OfferingSearchQuery\x1a..spaceone.api.mzc_service_api.v1.OfferingsInfo\",\x82\xd3\xe4\x93\x02&\"!/mzc-service-api/v1/offering/list:\x01*\x12\x81\x01\n\x04stat\x12\x32.spaceone.api.mzc_service_api.v1.OfferingStatQuery\x1a\x17.google.protobuf.Struct\",\x82\xd3\xe4\x93\x02&\"!/mzc-service-api/v1/offering/stat:\x01*BFZDgithub.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spaceone.api.mzc_service_api.v1.offering_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'ZDgithub.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1' + _globals['_OFFERING'].methods_by_name['create']._loaded_options = None + _globals['_OFFERING'].methods_by_name['create']._serialized_options = b'\202\323\344\223\002(\"#/mzc-service-api/v1/offering/create:\001*' + _globals['_OFFERING'].methods_by_name['update']._loaded_options = None + _globals['_OFFERING'].methods_by_name['update']._serialized_options = b'\202\323\344\223\002(\"#/mzc-service-api/v1/offering/update:\001*' + _globals['_OFFERING'].methods_by_name['delete']._loaded_options = None + _globals['_OFFERING'].methods_by_name['delete']._serialized_options = b'\202\323\344\223\002(\"#/mzc-service-api/v1/offering/delete:\001*' + _globals['_OFFERING'].methods_by_name['get']._loaded_options = None + _globals['_OFFERING'].methods_by_name['get']._serialized_options = b'\202\323\344\223\002%\" /mzc-service-api/v1/offering/get:\001*' + _globals['_OFFERING'].methods_by_name['list']._loaded_options = None + _globals['_OFFERING'].methods_by_name['list']._serialized_options = b'\202\323\344\223\002&\"!/mzc-service-api/v1/offering/list:\001*' + _globals['_OFFERING'].methods_by_name['stat']._loaded_options = None + _globals['_OFFERING'].methods_by_name['stat']._serialized_options = b'\202\323\344\223\002&\"!/mzc-service-api/v1/offering/stat:\001*' + _globals['_OFFERINGSTATUS']._serialized_start=1356 + _globals['_OFFERINGSTATUS']._serialized_end=1448 + _globals['_OFFERINGCREATEREQUEST']._serialized_start=207 + _globals['_OFFERINGCREATEREQUEST']._serialized_end=391 + _globals['_OFFERINGUPDATEREQUEST']._serialized_start=394 + _globals['_OFFERINGUPDATEREQUEST']._serialized_end=646 + _globals['_OFFERINGREQUEST']._serialized_start=648 + _globals['_OFFERINGREQUEST']._serialized_end=686 + _globals['_OFFERINGSEARCHQUERY']._serialized_start=689 + _globals['_OFFERINGSEARCHQUERY']._serialized_end=854 + _globals['_OFFERINGINFO']._serialized_start=857 + _globals['_OFFERINGINFO']._serialized_end=1177 + _globals['_OFFERINGSINFO']._serialized_start=1179 + _globals['_OFFERINGSINFO']._serialized_end=1279 + _globals['_OFFERINGSTATQUERY']._serialized_start=1281 + _globals['_OFFERINGSTATQUERY']._serialized_end=1354 + _globals['_OFFERING']._serialized_start=1451 + _globals['_OFFERING']._serialized_end=2357 +# @@protoc_insertion_point(module_scope) diff --git a/dist/python/spaceone/api/mzc_service_api/v1/offering_pb2_grpc.py b/dist/python/spaceone/api/mzc_service_api/v1/offering_pb2_grpc.py new file mode 100755 index 000000000..f74feecee --- /dev/null +++ b/dist/python/spaceone/api/mzc_service_api/v1/offering_pb2_grpc.py @@ -0,0 +1,319 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +import warnings + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from spaceone.api.mzc_service_api.v1 import offering_pb2 as spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2 + +GRPC_GENERATED_VERSION = '1.64.1' +GRPC_VERSION = grpc.__version__ +EXPECTED_ERROR_RELEASE = '1.65.0' +SCHEDULED_RELEASE_DATE = 'June 25, 2024' +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + warnings.warn( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in spaceone/api/mzc_service_api/v1/offering_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + + f' This warning will become an error in {EXPECTED_ERROR_RELEASE},' + + f' scheduled for release on {SCHEDULED_RELEASE_DATE}.', + RuntimeWarning + ) + + +class OfferingStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.create = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Offering/create', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingCreateRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.FromString, + _registered_method=True) + self.update = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Offering/update', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingUpdateRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.FromString, + _registered_method=True) + self.delete = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Offering/delete', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + _registered_method=True) + self.get = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Offering/get', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.FromString, + _registered_method=True) + self.list = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Offering/list', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingSearchQuery.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingsInfo.FromString, + _registered_method=True) + self.stat = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Offering/stat', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingStatQuery.SerializeToString, + response_deserializer=google_dot_protobuf_dot_struct__pb2.Struct.FromString, + _registered_method=True) + + +class OfferingServicer(object): + """Missing associated documentation comment in .proto file.""" + + def create(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 update(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 delete(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 get(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 list(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 stat(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 add_OfferingServicer_to_server(servicer, server): + rpc_method_handlers = { + 'create': grpc.unary_unary_rpc_method_handler( + servicer.create, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingCreateRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.SerializeToString, + ), + 'update': grpc.unary_unary_rpc_method_handler( + servicer.update, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingUpdateRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.SerializeToString, + ), + 'delete': grpc.unary_unary_rpc_method_handler( + servicer.delete, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'get': grpc.unary_unary_rpc_method_handler( + servicer.get, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.SerializeToString, + ), + 'list': grpc.unary_unary_rpc_method_handler( + servicer.list, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingSearchQuery.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingsInfo.SerializeToString, + ), + 'stat': grpc.unary_unary_rpc_method_handler( + servicer.stat, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingStatQuery.FromString, + response_serializer=google_dot_protobuf_dot_struct__pb2.Struct.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'spaceone.api.mzc_service_api.v1.Offering', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('spaceone.api.mzc_service_api.v1.Offering', rpc_method_handlers) + + + # This class is part of an EXPERIMENTAL API. +class Offering(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def create(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.mzc_service_api.v1.Offering/create', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingCreateRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def update(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.mzc_service_api.v1.Offering/update', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingUpdateRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def delete(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.mzc_service_api.v1.Offering/delete', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingRequest.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 get(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.mzc_service_api.v1.Offering/get', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def list(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.mzc_service_api.v1.Offering/list', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingSearchQuery.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingsInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def stat(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.mzc_service_api.v1.Offering/stat', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_offering__pb2.OfferingStatQuery.SerializeToString, + google_dot_protobuf_dot_struct__pb2.Struct.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/dist/python/spaceone/api/mzc_service_api/v1/organization_pb2.py b/dist/python/spaceone/api/mzc_service_api/v1/organization_pb2.py new file mode 100755 index 000000000..7cb3d2111 --- /dev/null +++ b/dist/python/spaceone/api/mzc_service_api/v1/organization_pb2.py @@ -0,0 +1,63 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: spaceone/api/mzc_service_api/v1/organization.proto +# Protobuf Python Version: 5.26.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +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'\n2spaceone/api/mzc_service_api/v1/organization.proto\x12\x1fspaceone.api.mzc_service_api.v1\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1cgoogle/api/annotations.proto\x1a spaceone/api/core/v2/query.proto\"\xfc\x01\n\x19OrganizationCreateRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x10\n\x08industry\x18\x03 \x01(\t\x12\x1b\n\x13registration_number\x18\x04 \x01(\t\x12\x0f\n\x07\x63ountry\x18\x05 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x06 \x01(\t\x12\x16\n\x0e\x63ontact_person\x18\x07 \x01(\t\x12\x15\n\rcontact_email\x18\x08 \x01(\t\x12\x15\n\rcontact_phone\x18\t \x01(\t\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\"\x8c\x02\n\x19OrganizationUpdateRequest\x12\x0e\n\x06org_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x10\n\x08industry\x18\x04 \x01(\t\x12\x1b\n\x13registration_number\x18\x05 \x01(\t\x12\x0f\n\x07\x63ountry\x18\x06 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x07 \x01(\t\x12\x16\n\x0e\x63ontact_person\x18\x08 \x01(\t\x12\x15\n\rcontact_email\x18\t \x01(\t\x12\x15\n\rcontact_phone\x18\n \x01(\t\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\"%\n\x13OrganizationRequest\x12\x0e\n\x06org_id\x18\x01 \x01(\t\"\xa6\x01\n\x17OrganizationSearchQuery\x12*\n\x05query\x18\x01 \x01(\x0b\x32\x1b.spaceone.api.core.v2.Query\x12\x0e\n\x06org_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x41\n\x05state\x18\x04 \x01(\x0e\x32\x32.spaceone.api.mzc_service_api.v1.OrganizationState\"\x81\x03\n\x10OrganizationInfo\x12\x0e\n\x06org_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x41\n\x05state\x18\x03 \x01(\x0e\x32\x32.spaceone.api.mzc_service_api.v1.OrganizationState\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x10\n\x08industry\x18\x05 \x01(\t\x12\x1b\n\x13registration_number\x18\x06 \x01(\t\x12\x0f\n\x07\x63ountry\x18\x07 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x08 \x01(\t\x12\x16\n\x0e\x63ontact_person\x18\t \x01(\t\x12\x15\n\rcontact_email\x18\n \x01(\t\x12\x15\n\rcontact_phone\x18\x0b \x01(\t\x12%\n\x04tags\x18\x0f \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x11\n\tdomain_id\x18\x15 \x01(\t\x12\x12\n\ncreated_at\x18\x1f \x01(\t\x12\x12\n\nupdated_at\x18 \x01(\t\"l\n\x11OrganizationsInfo\x12\x42\n\x07results\x18\x01 \x03(\x0b\x32\x31.spaceone.api.mzc_service_api.v1.OrganizationInfo\x12\x13\n\x0btotal_count\x18\x02 \x01(\x05\"M\n\x15OrganizationStatQuery\x12\x34\n\x05query\x18\x01 \x01(\x0b\x32%.spaceone.api.core.v2.StatisticsQuery*K\n\x11OrganizationState\x12\x1b\n\x17ORGANIZATION_STATE_NONE\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x32\xa0\n\n\x0cOrganization\x12\xab\x01\n\x06\x63reate\x12:.spaceone.api.mzc_service_api.v1.OrganizationCreateRequest\x1a\x31.spaceone.api.mzc_service_api.v1.OrganizationInfo\"2\x82\xd3\xe4\x93\x02,\"\'/mzc-service-api/v1/organization/create:\x01*\x12\xab\x01\n\x06update\x12:.spaceone.api.mzc_service_api.v1.OrganizationUpdateRequest\x1a\x31.spaceone.api.mzc_service_api.v1.OrganizationInfo\"2\x82\xd3\xe4\x93\x02,\"\'/mzc-service-api/v1/organization/update:\x01*\x12\xa5\x01\n\x06\x65nable\x12\x34.spaceone.api.mzc_service_api.v1.OrganizationRequest\x1a\x31.spaceone.api.mzc_service_api.v1.OrganizationInfo\"2\x82\xd3\xe4\x93\x02,\"\'/mzc-service-api/v1/organization/enable:\x01*\x12\xa7\x01\n\x07\x64isable\x12\x34.spaceone.api.mzc_service_api.v1.OrganizationRequest\x1a\x31.spaceone.api.mzc_service_api.v1.OrganizationInfo\"3\x82\xd3\xe4\x93\x02-\"(/mzc-service-api/v1/organization/disable:\x01*\x12\x8a\x01\n\x06\x64\x65lete\x12\x34.spaceone.api.mzc_service_api.v1.OrganizationRequest\x1a\x16.google.protobuf.Empty\"2\x82\xd3\xe4\x93\x02,\"\'/mzc-service-api/v1/organization/delete:\x01*\x12\x9f\x01\n\x03get\x12\x34.spaceone.api.mzc_service_api.v1.OrganizationRequest\x1a\x31.spaceone.api.mzc_service_api.v1.OrganizationInfo\"/\x82\xd3\xe4\x93\x02)\"$/mzc-service-api/v1/organization/get:\x01*\x12\xa6\x01\n\x04list\x12\x38.spaceone.api.mzc_service_api.v1.OrganizationSearchQuery\x1a\x32.spaceone.api.mzc_service_api.v1.OrganizationsInfo\"0\x82\xd3\xe4\x93\x02*\"%/mzc-service-api/v1/organization/list:\x01*\x12\x89\x01\n\x04stat\x12\x36.spaceone.api.mzc_service_api.v1.OrganizationStatQuery\x1a\x17.google.protobuf.Struct\"0\x82\xd3\xe4\x93\x02*\"%/mzc-service-api/v1/organization/stat:\x01*BFZDgithub.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'spaceone.api.mzc_service_api.v1.organization_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'ZDgithub.com/cloudforet-io/api/dist/go/spaceone/api/mzc-service-api/v1' + _globals['_ORGANIZATION'].methods_by_name['create']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['create']._serialized_options = b'\202\323\344\223\002,\"\'/mzc-service-api/v1/organization/create:\001*' + _globals['_ORGANIZATION'].methods_by_name['update']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['update']._serialized_options = b'\202\323\344\223\002,\"\'/mzc-service-api/v1/organization/update:\001*' + _globals['_ORGANIZATION'].methods_by_name['enable']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['enable']._serialized_options = b'\202\323\344\223\002,\"\'/mzc-service-api/v1/organization/enable:\001*' + _globals['_ORGANIZATION'].methods_by_name['disable']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['disable']._serialized_options = b'\202\323\344\223\002-\"(/mzc-service-api/v1/organization/disable:\001*' + _globals['_ORGANIZATION'].methods_by_name['delete']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['delete']._serialized_options = b'\202\323\344\223\002,\"\'/mzc-service-api/v1/organization/delete:\001*' + _globals['_ORGANIZATION'].methods_by_name['get']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['get']._serialized_options = b'\202\323\344\223\002)\"$/mzc-service-api/v1/organization/get:\001*' + _globals['_ORGANIZATION'].methods_by_name['list']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['list']._serialized_options = b'\202\323\344\223\002*\"%/mzc-service-api/v1/organization/list:\001*' + _globals['_ORGANIZATION'].methods_by_name['stat']._loaded_options = None + _globals['_ORGANIZATION'].methods_by_name['stat']._serialized_options = b'\202\323\344\223\002*\"%/mzc-service-api/v1/organization/stat:\001*' + _globals['_ORGANIZATIONSTATE']._serialized_start=1521 + _globals['_ORGANIZATIONSTATE']._serialized_end=1596 + _globals['_ORGANIZATIONCREATEREQUEST']._serialized_start=211 + _globals['_ORGANIZATIONCREATEREQUEST']._serialized_end=463 + _globals['_ORGANIZATIONUPDATEREQUEST']._serialized_start=466 + _globals['_ORGANIZATIONUPDATEREQUEST']._serialized_end=734 + _globals['_ORGANIZATIONREQUEST']._serialized_start=736 + _globals['_ORGANIZATIONREQUEST']._serialized_end=773 + _globals['_ORGANIZATIONSEARCHQUERY']._serialized_start=776 + _globals['_ORGANIZATIONSEARCHQUERY']._serialized_end=942 + _globals['_ORGANIZATIONINFO']._serialized_start=945 + _globals['_ORGANIZATIONINFO']._serialized_end=1330 + _globals['_ORGANIZATIONSINFO']._serialized_start=1332 + _globals['_ORGANIZATIONSINFO']._serialized_end=1440 + _globals['_ORGANIZATIONSTATQUERY']._serialized_start=1442 + _globals['_ORGANIZATIONSTATQUERY']._serialized_end=1519 + _globals['_ORGANIZATION']._serialized_start=1599 + _globals['_ORGANIZATION']._serialized_end=2911 +# @@protoc_insertion_point(module_scope) diff --git a/dist/python/spaceone/api/mzc_service_api/v1/organization_pb2_grpc.py b/dist/python/spaceone/api/mzc_service_api/v1/organization_pb2_grpc.py new file mode 100755 index 000000000..fcac9eefa --- /dev/null +++ b/dist/python/spaceone/api/mzc_service_api/v1/organization_pb2_grpc.py @@ -0,0 +1,405 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +import warnings + +from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +from spaceone.api.mzc_service_api.v1 import organization_pb2 as spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2 + +GRPC_GENERATED_VERSION = '1.64.1' +GRPC_VERSION = grpc.__version__ +EXPECTED_ERROR_RELEASE = '1.65.0' +SCHEDULED_RELEASE_DATE = 'June 25, 2024' +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + warnings.warn( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in spaceone/api/mzc_service_api/v1/organization_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + + f' This warning will become an error in {EXPECTED_ERROR_RELEASE},' + + f' scheduled for release on {SCHEDULED_RELEASE_DATE}.', + RuntimeWarning + ) + + +class OrganizationStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.create = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/create', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationCreateRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + _registered_method=True) + self.update = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/update', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationUpdateRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + _registered_method=True) + self.enable = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/enable', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + _registered_method=True) + self.disable = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/disable', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + _registered_method=True) + self.delete = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/delete', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, + _registered_method=True) + self.get = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/get', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + _registered_method=True) + self.list = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/list', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationSearchQuery.SerializeToString, + response_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationsInfo.FromString, + _registered_method=True) + self.stat = channel.unary_unary( + '/spaceone.api.mzc_service_api.v1.Organization/stat', + request_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationStatQuery.SerializeToString, + response_deserializer=google_dot_protobuf_dot_struct__pb2.Struct.FromString, + _registered_method=True) + + +class OrganizationServicer(object): + """Missing associated documentation comment in .proto file.""" + + def create(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 update(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) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def disable(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 delete(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 get(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 list(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 stat(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 add_OrganizationServicer_to_server(servicer, server): + rpc_method_handlers = { + 'create': grpc.unary_unary_rpc_method_handler( + servicer.create, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationCreateRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.SerializeToString, + ), + 'update': grpc.unary_unary_rpc_method_handler( + servicer.update, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationUpdateRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.SerializeToString, + ), + 'enable': grpc.unary_unary_rpc_method_handler( + servicer.enable, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.SerializeToString, + ), + 'disable': grpc.unary_unary_rpc_method_handler( + servicer.disable, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.SerializeToString, + ), + 'delete': grpc.unary_unary_rpc_method_handler( + servicer.delete, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.FromString, + response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, + ), + 'get': grpc.unary_unary_rpc_method_handler( + servicer.get, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.SerializeToString, + ), + 'list': grpc.unary_unary_rpc_method_handler( + servicer.list, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationSearchQuery.FromString, + response_serializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationsInfo.SerializeToString, + ), + 'stat': grpc.unary_unary_rpc_method_handler( + servicer.stat, + request_deserializer=spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationStatQuery.FromString, + response_serializer=google_dot_protobuf_dot_struct__pb2.Struct.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'spaceone.api.mzc_service_api.v1.Organization', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('spaceone.api.mzc_service_api.v1.Organization', rpc_method_handlers) + + + # This class is part of an EXPERIMENTAL API. +class Organization(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def create(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.mzc_service_api.v1.Organization/create', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationCreateRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def update(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.mzc_service_api.v1.Organization/update', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationUpdateRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def enable(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.mzc_service_api.v1.Organization/enable', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def disable(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.mzc_service_api.v1.Organization/disable', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def delete(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.mzc_service_api.v1.Organization/delete', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.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 get(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.mzc_service_api.v1.Organization/get', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationRequest.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def list(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.mzc_service_api.v1.Organization/list', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationSearchQuery.SerializeToString, + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationsInfo.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def stat(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.mzc_service_api.v1.Organization/stat', + spaceone_dot_api_dot_mzc__service__api_dot_v1_dot_organization__pb2.OrganizationStatQuery.SerializeToString, + google_dot_protobuf_dot_struct__pb2.Struct.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/dist/python/spaceone_api.egg-info/PKG-INFO b/dist/python/spaceone_api.egg-info/PKG-INFO index 58653c548..dd1fa06db 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.288 +Version: 2.0.289 Summary: Coreforet API Protobuf Home-page: https://cloudforet.io/ Author: MEGAZONE Cloud Corp. diff --git a/dist/python/spaceone_api.egg-info/SOURCES.txt b/dist/python/spaceone_api.egg-info/SOURCES.txt index e0a2e9828..d95594ab3 100644 --- a/dist/python/spaceone_api.egg-info/SOURCES.txt +++ b/dist/python/spaceone_api.egg-info/SOURCES.txt @@ -241,6 +241,14 @@ spaceone/api/monitoring/v1/project_alert_config_pb2.py spaceone/api/monitoring/v1/project_alert_config_pb2_grpc.py spaceone/api/monitoring/v1/webhook_pb2.py spaceone/api/monitoring/v1/webhook_pb2_grpc.py +spaceone/api/mzc_service_api/__init__.py +spaceone/api/mzc_service_api/v1/__init__.py +spaceone/api/mzc_service_api/v1/contract_pb2.py +spaceone/api/mzc_service_api/v1/contract_pb2_grpc.py +spaceone/api/mzc_service_api/v1/offering_pb2.py +spaceone/api/mzc_service_api/v1/offering_pb2_grpc.py +spaceone/api/mzc_service_api/v1/organization_pb2.py +spaceone/api/mzc_service_api/v1/organization_pb2_grpc.py spaceone/api/notification/__init__.py spaceone/api/notification/plugin/__init__.py spaceone/api/notification/plugin/notification_pb2.py