github.com/argoproj/argo-cd/v2@v2.10.9/pkg/apiclient/applicationset/applicationset.pb.gw.go (about)

     1  // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
     2  // source: server/applicationset/applicationset.proto
     3  
     4  /*
     5  Package applicationset is a reverse proxy.
     6  
     7  It translates gRPC into RESTful JSON APIs.
     8  */
     9  package applicationset
    10  
    11  import (
    12  	"context"
    13  	"io"
    14  	"net/http"
    15  
    16  	"github.com/golang/protobuf/descriptor"
    17  	"github.com/golang/protobuf/proto"
    18  	"github.com/grpc-ecosystem/grpc-gateway/runtime"
    19  	"github.com/grpc-ecosystem/grpc-gateway/utilities"
    20  	"google.golang.org/grpc"
    21  	"google.golang.org/grpc/codes"
    22  	"google.golang.org/grpc/grpclog"
    23  	"google.golang.org/grpc/metadata"
    24  	"google.golang.org/grpc/status"
    25  )
    26  
    27  // Suppress "imported and not used" errors
    28  var _ codes.Code
    29  var _ io.Reader
    30  var _ status.Status
    31  var _ = runtime.String
    32  var _ = utilities.NewDoubleArray
    33  var _ = descriptor.ForMessage
    34  var _ = metadata.Join
    35  
    36  var (
    37  	filter_ApplicationSetService_Get_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
    38  )
    39  
    40  func request_ApplicationSetService_Get_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationSetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    41  	var protoReq ApplicationSetGetQuery
    42  	var metadata runtime.ServerMetadata
    43  
    44  	var (
    45  		val string
    46  		ok  bool
    47  		err error
    48  		_   = err
    49  	)
    50  
    51  	val, ok = pathParams["name"]
    52  	if !ok {
    53  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
    54  	}
    55  
    56  	protoReq.Name, err = runtime.String(val)
    57  
    58  	if err != nil {
    59  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
    60  	}
    61  
    62  	if err := req.ParseForm(); err != nil {
    63  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    64  	}
    65  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationSetService_Get_0); err != nil {
    66  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    67  	}
    68  
    69  	msg, err := client.Get(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
    70  	return msg, metadata, err
    71  
    72  }
    73  
    74  func local_request_ApplicationSetService_Get_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationSetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    75  	var protoReq ApplicationSetGetQuery
    76  	var metadata runtime.ServerMetadata
    77  
    78  	var (
    79  		val string
    80  		ok  bool
    81  		err error
    82  		_   = err
    83  	)
    84  
    85  	val, ok = pathParams["name"]
    86  	if !ok {
    87  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
    88  	}
    89  
    90  	protoReq.Name, err = runtime.String(val)
    91  
    92  	if err != nil {
    93  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
    94  	}
    95  
    96  	if err := req.ParseForm(); err != nil {
    97  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    98  	}
    99  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationSetService_Get_0); err != nil {
   100  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   101  	}
   102  
   103  	msg, err := server.Get(ctx, &protoReq)
   104  	return msg, metadata, err
   105  
   106  }
   107  
   108  var (
   109  	filter_ApplicationSetService_List_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   110  )
   111  
   112  func request_ApplicationSetService_List_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationSetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   113  	var protoReq ApplicationSetListQuery
   114  	var metadata runtime.ServerMetadata
   115  
   116  	if err := req.ParseForm(); err != nil {
   117  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   118  	}
   119  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationSetService_List_0); err != nil {
   120  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   121  	}
   122  
   123  	msg, err := client.List(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   124  	return msg, metadata, err
   125  
   126  }
   127  
   128  func local_request_ApplicationSetService_List_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationSetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   129  	var protoReq ApplicationSetListQuery
   130  	var metadata runtime.ServerMetadata
   131  
   132  	if err := req.ParseForm(); err != nil {
   133  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   134  	}
   135  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationSetService_List_0); err != nil {
   136  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   137  	}
   138  
   139  	msg, err := server.List(ctx, &protoReq)
   140  	return msg, metadata, err
   141  
   142  }
   143  
   144  var (
   145  	filter_ApplicationSetService_Create_0 = &utilities.DoubleArray{Encoding: map[string]int{"applicationset": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
   146  )
   147  
   148  func request_ApplicationSetService_Create_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationSetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   149  	var protoReq ApplicationSetCreateRequest
   150  	var metadata runtime.ServerMetadata
   151  
   152  	newReader, berr := utilities.IOReaderFactory(req.Body)
   153  	if berr != nil {
   154  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   155  	}
   156  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Applicationset); err != nil && err != io.EOF {
   157  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   158  	}
   159  
   160  	if err := req.ParseForm(); err != nil {
   161  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   162  	}
   163  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationSetService_Create_0); err != nil {
   164  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   165  	}
   166  
   167  	msg, err := client.Create(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   168  	return msg, metadata, err
   169  
   170  }
   171  
   172  func local_request_ApplicationSetService_Create_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationSetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   173  	var protoReq ApplicationSetCreateRequest
   174  	var metadata runtime.ServerMetadata
   175  
   176  	newReader, berr := utilities.IOReaderFactory(req.Body)
   177  	if berr != nil {
   178  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   179  	}
   180  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Applicationset); err != nil && err != io.EOF {
   181  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   182  	}
   183  
   184  	if err := req.ParseForm(); err != nil {
   185  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   186  	}
   187  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationSetService_Create_0); err != nil {
   188  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   189  	}
   190  
   191  	msg, err := server.Create(ctx, &protoReq)
   192  	return msg, metadata, err
   193  
   194  }
   195  
   196  var (
   197  	filter_ApplicationSetService_Delete_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
   198  )
   199  
   200  func request_ApplicationSetService_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client ApplicationSetServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   201  	var protoReq ApplicationSetDeleteRequest
   202  	var metadata runtime.ServerMetadata
   203  
   204  	var (
   205  		val string
   206  		ok  bool
   207  		err error
   208  		_   = err
   209  	)
   210  
   211  	val, ok = pathParams["name"]
   212  	if !ok {
   213  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
   214  	}
   215  
   216  	protoReq.Name, err = runtime.String(val)
   217  
   218  	if err != nil {
   219  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
   220  	}
   221  
   222  	if err := req.ParseForm(); err != nil {
   223  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   224  	}
   225  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationSetService_Delete_0); err != nil {
   226  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   227  	}
   228  
   229  	msg, err := client.Delete(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   230  	return msg, metadata, err
   231  
   232  }
   233  
   234  func local_request_ApplicationSetService_Delete_0(ctx context.Context, marshaler runtime.Marshaler, server ApplicationSetServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   235  	var protoReq ApplicationSetDeleteRequest
   236  	var metadata runtime.ServerMetadata
   237  
   238  	var (
   239  		val string
   240  		ok  bool
   241  		err error
   242  		_   = err
   243  	)
   244  
   245  	val, ok = pathParams["name"]
   246  	if !ok {
   247  		return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
   248  	}
   249  
   250  	protoReq.Name, err = runtime.String(val)
   251  
   252  	if err != nil {
   253  		return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
   254  	}
   255  
   256  	if err := req.ParseForm(); err != nil {
   257  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   258  	}
   259  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ApplicationSetService_Delete_0); err != nil {
   260  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   261  	}
   262  
   263  	msg, err := server.Delete(ctx, &protoReq)
   264  	return msg, metadata, err
   265  
   266  }
   267  
   268  // RegisterApplicationSetServiceHandlerServer registers the http handlers for service ApplicationSetService to "mux".
   269  // UnaryRPC     :call ApplicationSetServiceServer directly.
   270  // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
   271  // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterApplicationSetServiceHandlerFromEndpoint instead.
   272  func RegisterApplicationSetServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ApplicationSetServiceServer) error {
   273  
   274  	mux.Handle("GET", pattern_ApplicationSetService_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   275  		ctx, cancel := context.WithCancel(req.Context())
   276  		defer cancel()
   277  		var stream runtime.ServerTransportStream
   278  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   279  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   280  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   281  		if err != nil {
   282  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   283  			return
   284  		}
   285  		resp, md, err := local_request_ApplicationSetService_Get_0(rctx, inboundMarshaler, server, req, pathParams)
   286  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   287  		ctx = runtime.NewServerMetadataContext(ctx, md)
   288  		if err != nil {
   289  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   290  			return
   291  		}
   292  
   293  		forward_ApplicationSetService_Get_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   294  
   295  	})
   296  
   297  	mux.Handle("GET", pattern_ApplicationSetService_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   298  		ctx, cancel := context.WithCancel(req.Context())
   299  		defer cancel()
   300  		var stream runtime.ServerTransportStream
   301  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   302  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   303  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   304  		if err != nil {
   305  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   306  			return
   307  		}
   308  		resp, md, err := local_request_ApplicationSetService_List_0(rctx, inboundMarshaler, server, req, pathParams)
   309  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   310  		ctx = runtime.NewServerMetadataContext(ctx, md)
   311  		if err != nil {
   312  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   313  			return
   314  		}
   315  
   316  		forward_ApplicationSetService_List_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   317  
   318  	})
   319  
   320  	mux.Handle("POST", pattern_ApplicationSetService_Create_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   321  		ctx, cancel := context.WithCancel(req.Context())
   322  		defer cancel()
   323  		var stream runtime.ServerTransportStream
   324  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   325  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   326  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   327  		if err != nil {
   328  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   329  			return
   330  		}
   331  		resp, md, err := local_request_ApplicationSetService_Create_0(rctx, inboundMarshaler, server, req, pathParams)
   332  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   333  		ctx = runtime.NewServerMetadataContext(ctx, md)
   334  		if err != nil {
   335  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   336  			return
   337  		}
   338  
   339  		forward_ApplicationSetService_Create_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   340  
   341  	})
   342  
   343  	mux.Handle("DELETE", pattern_ApplicationSetService_Delete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   344  		ctx, cancel := context.WithCancel(req.Context())
   345  		defer cancel()
   346  		var stream runtime.ServerTransportStream
   347  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   348  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   349  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   350  		if err != nil {
   351  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   352  			return
   353  		}
   354  		resp, md, err := local_request_ApplicationSetService_Delete_0(rctx, inboundMarshaler, server, req, pathParams)
   355  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   356  		ctx = runtime.NewServerMetadataContext(ctx, md)
   357  		if err != nil {
   358  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   359  			return
   360  		}
   361  
   362  		forward_ApplicationSetService_Delete_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   363  
   364  	})
   365  
   366  	return nil
   367  }
   368  
   369  // RegisterApplicationSetServiceHandlerFromEndpoint is same as RegisterApplicationSetServiceHandler but
   370  // automatically dials to "endpoint" and closes the connection when "ctx" gets done.
   371  func RegisterApplicationSetServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
   372  	conn, err := grpc.Dial(endpoint, opts...)
   373  	if err != nil {
   374  		return err
   375  	}
   376  	defer func() {
   377  		if err != nil {
   378  			if cerr := conn.Close(); cerr != nil {
   379  				grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
   380  			}
   381  			return
   382  		}
   383  		go func() {
   384  			<-ctx.Done()
   385  			if cerr := conn.Close(); cerr != nil {
   386  				grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
   387  			}
   388  		}()
   389  	}()
   390  
   391  	return RegisterApplicationSetServiceHandler(ctx, mux, conn)
   392  }
   393  
   394  // RegisterApplicationSetServiceHandler registers the http handlers for service ApplicationSetService to "mux".
   395  // The handlers forward requests to the grpc endpoint over "conn".
   396  func RegisterApplicationSetServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
   397  	return RegisterApplicationSetServiceHandlerClient(ctx, mux, NewApplicationSetServiceClient(conn))
   398  }
   399  
   400  // RegisterApplicationSetServiceHandlerClient registers the http handlers for service ApplicationSetService
   401  // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ApplicationSetServiceClient".
   402  // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ApplicationSetServiceClient"
   403  // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
   404  // "ApplicationSetServiceClient" to call the correct interceptors.
   405  func RegisterApplicationSetServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApplicationSetServiceClient) error {
   406  
   407  	mux.Handle("GET", pattern_ApplicationSetService_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   408  		ctx, cancel := context.WithCancel(req.Context())
   409  		defer cancel()
   410  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   411  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
   412  		if err != nil {
   413  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   414  			return
   415  		}
   416  		resp, md, err := request_ApplicationSetService_Get_0(rctx, inboundMarshaler, client, req, pathParams)
   417  		ctx = runtime.NewServerMetadataContext(ctx, md)
   418  		if err != nil {
   419  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   420  			return
   421  		}
   422  
   423  		forward_ApplicationSetService_Get_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   424  
   425  	})
   426  
   427  	mux.Handle("GET", pattern_ApplicationSetService_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   428  		ctx, cancel := context.WithCancel(req.Context())
   429  		defer cancel()
   430  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   431  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
   432  		if err != nil {
   433  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   434  			return
   435  		}
   436  		resp, md, err := request_ApplicationSetService_List_0(rctx, inboundMarshaler, client, req, pathParams)
   437  		ctx = runtime.NewServerMetadataContext(ctx, md)
   438  		if err != nil {
   439  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   440  			return
   441  		}
   442  
   443  		forward_ApplicationSetService_List_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   444  
   445  	})
   446  
   447  	mux.Handle("POST", pattern_ApplicationSetService_Create_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   448  		ctx, cancel := context.WithCancel(req.Context())
   449  		defer cancel()
   450  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   451  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
   452  		if err != nil {
   453  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   454  			return
   455  		}
   456  		resp, md, err := request_ApplicationSetService_Create_0(rctx, inboundMarshaler, client, req, pathParams)
   457  		ctx = runtime.NewServerMetadataContext(ctx, md)
   458  		if err != nil {
   459  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   460  			return
   461  		}
   462  
   463  		forward_ApplicationSetService_Create_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   464  
   465  	})
   466  
   467  	mux.Handle("DELETE", pattern_ApplicationSetService_Delete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   468  		ctx, cancel := context.WithCancel(req.Context())
   469  		defer cancel()
   470  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   471  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
   472  		if err != nil {
   473  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   474  			return
   475  		}
   476  		resp, md, err := request_ApplicationSetService_Delete_0(rctx, inboundMarshaler, client, req, pathParams)
   477  		ctx = runtime.NewServerMetadataContext(ctx, md)
   478  		if err != nil {
   479  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   480  			return
   481  		}
   482  
   483  		forward_ApplicationSetService_Delete_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   484  
   485  	})
   486  
   487  	return nil
   488  }
   489  
   490  var (
   491  	pattern_ApplicationSetService_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "applicationsets", "name"}, "", runtime.AssumeColonVerbOpt(true)))
   492  
   493  	pattern_ApplicationSetService_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "applicationsets"}, "", runtime.AssumeColonVerbOpt(true)))
   494  
   495  	pattern_ApplicationSetService_Create_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "applicationsets"}, "", runtime.AssumeColonVerbOpt(true)))
   496  
   497  	pattern_ApplicationSetService_Delete_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "applicationsets", "name"}, "", runtime.AssumeColonVerbOpt(true)))
   498  )
   499  
   500  var (
   501  	forward_ApplicationSetService_Get_0 = runtime.ForwardResponseMessage
   502  
   503  	forward_ApplicationSetService_List_0 = runtime.ForwardResponseMessage
   504  
   505  	forward_ApplicationSetService_Create_0 = runtime.ForwardResponseMessage
   506  
   507  	forward_ApplicationSetService_Delete_0 = runtime.ForwardResponseMessage
   508  )