github.com/argoproj/argo-cd@v1.8.7/pkg/apiclient/project/project.pb.gw.go (about) 1 // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. 2 // source: server/project/project.proto 3 4 /* 5 Package project is a reverse proxy. 6 7 It translates gRPC into RESTful JSON APIs. 8 */ 9 package project 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/status" 24 ) 25 26 // Suppress "imported and not used" errors 27 var _ codes.Code 28 var _ io.Reader 29 var _ status.Status 30 var _ = runtime.String 31 var _ = utilities.NewDoubleArray 32 var _ = descriptor.ForMessage 33 34 func request_ProjectService_CreateToken_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 35 var protoReq ProjectTokenCreateRequest 36 var metadata runtime.ServerMetadata 37 38 newReader, berr := utilities.IOReaderFactory(req.Body) 39 if berr != nil { 40 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 41 } 42 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 43 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 44 } 45 46 var ( 47 val string 48 ok bool 49 err error 50 _ = err 51 ) 52 53 val, ok = pathParams["project"] 54 if !ok { 55 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") 56 } 57 58 protoReq.Project, err = runtime.String(val) 59 60 if err != nil { 61 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) 62 } 63 64 val, ok = pathParams["role"] 65 if !ok { 66 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "role") 67 } 68 69 protoReq.Role, err = runtime.String(val) 70 71 if err != nil { 72 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "role", err) 73 } 74 75 msg, err := client.CreateToken(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 76 return msg, metadata, err 77 78 } 79 80 func local_request_ProjectService_CreateToken_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 81 var protoReq ProjectTokenCreateRequest 82 var metadata runtime.ServerMetadata 83 84 newReader, berr := utilities.IOReaderFactory(req.Body) 85 if berr != nil { 86 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 87 } 88 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 89 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 90 } 91 92 var ( 93 val string 94 ok bool 95 err error 96 _ = err 97 ) 98 99 val, ok = pathParams["project"] 100 if !ok { 101 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") 102 } 103 104 protoReq.Project, err = runtime.String(val) 105 106 if err != nil { 107 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) 108 } 109 110 val, ok = pathParams["role"] 111 if !ok { 112 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "role") 113 } 114 115 protoReq.Role, err = runtime.String(val) 116 117 if err != nil { 118 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "role", err) 119 } 120 121 msg, err := server.CreateToken(ctx, &protoReq) 122 return msg, metadata, err 123 124 } 125 126 var ( 127 filter_ProjectService_DeleteToken_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "role": 1, "iat": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} 128 ) 129 130 func request_ProjectService_DeleteToken_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 131 var protoReq ProjectTokenDeleteRequest 132 var metadata runtime.ServerMetadata 133 134 var ( 135 val string 136 ok bool 137 err error 138 _ = err 139 ) 140 141 val, ok = pathParams["project"] 142 if !ok { 143 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") 144 } 145 146 protoReq.Project, err = runtime.String(val) 147 148 if err != nil { 149 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) 150 } 151 152 val, ok = pathParams["role"] 153 if !ok { 154 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "role") 155 } 156 157 protoReq.Role, err = runtime.String(val) 158 159 if err != nil { 160 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "role", err) 161 } 162 163 val, ok = pathParams["iat"] 164 if !ok { 165 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "iat") 166 } 167 168 protoReq.Iat, err = runtime.Int64(val) 169 170 if err != nil { 171 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "iat", err) 172 } 173 174 if err := req.ParseForm(); err != nil { 175 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 176 } 177 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_DeleteToken_0); err != nil { 178 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 179 } 180 181 msg, err := client.DeleteToken(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 182 return msg, metadata, err 183 184 } 185 186 func local_request_ProjectService_DeleteToken_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 187 var protoReq ProjectTokenDeleteRequest 188 var metadata runtime.ServerMetadata 189 190 var ( 191 val string 192 ok bool 193 err error 194 _ = err 195 ) 196 197 val, ok = pathParams["project"] 198 if !ok { 199 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") 200 } 201 202 protoReq.Project, err = runtime.String(val) 203 204 if err != nil { 205 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) 206 } 207 208 val, ok = pathParams["role"] 209 if !ok { 210 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "role") 211 } 212 213 protoReq.Role, err = runtime.String(val) 214 215 if err != nil { 216 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "role", err) 217 } 218 219 val, ok = pathParams["iat"] 220 if !ok { 221 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "iat") 222 } 223 224 protoReq.Iat, err = runtime.Int64(val) 225 226 if err != nil { 227 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "iat", err) 228 } 229 230 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ProjectService_DeleteToken_0); err != nil { 231 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 232 } 233 234 msg, err := server.DeleteToken(ctx, &protoReq) 235 return msg, metadata, err 236 237 } 238 239 func request_ProjectService_Create_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 240 var protoReq ProjectCreateRequest 241 var metadata runtime.ServerMetadata 242 243 newReader, berr := utilities.IOReaderFactory(req.Body) 244 if berr != nil { 245 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 246 } 247 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 248 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 249 } 250 251 msg, err := client.Create(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 252 return msg, metadata, err 253 254 } 255 256 func local_request_ProjectService_Create_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 257 var protoReq ProjectCreateRequest 258 var metadata runtime.ServerMetadata 259 260 newReader, berr := utilities.IOReaderFactory(req.Body) 261 if berr != nil { 262 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 263 } 264 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 265 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 266 } 267 268 msg, err := server.Create(ctx, &protoReq) 269 return msg, metadata, err 270 271 } 272 273 var ( 274 filter_ProjectService_List_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} 275 ) 276 277 func request_ProjectService_List_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 278 var protoReq ProjectQuery 279 var metadata runtime.ServerMetadata 280 281 if err := req.ParseForm(); err != nil { 282 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 283 } 284 if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ProjectService_List_0); err != nil { 285 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 286 } 287 288 msg, err := client.List(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 289 return msg, metadata, err 290 291 } 292 293 func local_request_ProjectService_List_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 294 var protoReq ProjectQuery 295 var metadata runtime.ServerMetadata 296 297 if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_ProjectService_List_0); err != nil { 298 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 299 } 300 301 msg, err := server.List(ctx, &protoReq) 302 return msg, metadata, err 303 304 } 305 306 func request_ProjectService_Get_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 307 var protoReq ProjectQuery 308 var metadata runtime.ServerMetadata 309 310 var ( 311 val string 312 ok bool 313 err error 314 _ = err 315 ) 316 317 val, ok = pathParams["name"] 318 if !ok { 319 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 320 } 321 322 protoReq.Name, err = runtime.String(val) 323 324 if err != nil { 325 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 326 } 327 328 msg, err := client.Get(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 329 return msg, metadata, err 330 331 } 332 333 func local_request_ProjectService_Get_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 334 var protoReq ProjectQuery 335 var metadata runtime.ServerMetadata 336 337 var ( 338 val string 339 ok bool 340 err error 341 _ = err 342 ) 343 344 val, ok = pathParams["name"] 345 if !ok { 346 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 347 } 348 349 protoReq.Name, err = runtime.String(val) 350 351 if err != nil { 352 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 353 } 354 355 msg, err := server.Get(ctx, &protoReq) 356 return msg, metadata, err 357 358 } 359 360 func request_ProjectService_GetGlobalProjects_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 361 var protoReq ProjectQuery 362 var metadata runtime.ServerMetadata 363 364 var ( 365 val string 366 ok bool 367 err error 368 _ = err 369 ) 370 371 val, ok = pathParams["name"] 372 if !ok { 373 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 374 } 375 376 protoReq.Name, err = runtime.String(val) 377 378 if err != nil { 379 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 380 } 381 382 msg, err := client.GetGlobalProjects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 383 return msg, metadata, err 384 385 } 386 387 func local_request_ProjectService_GetGlobalProjects_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 388 var protoReq ProjectQuery 389 var metadata runtime.ServerMetadata 390 391 var ( 392 val string 393 ok bool 394 err error 395 _ = err 396 ) 397 398 val, ok = pathParams["name"] 399 if !ok { 400 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 401 } 402 403 protoReq.Name, err = runtime.String(val) 404 405 if err != nil { 406 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 407 } 408 409 msg, err := server.GetGlobalProjects(ctx, &protoReq) 410 return msg, metadata, err 411 412 } 413 414 func request_ProjectService_Update_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 415 var protoReq ProjectUpdateRequest 416 var metadata runtime.ServerMetadata 417 418 newReader, berr := utilities.IOReaderFactory(req.Body) 419 if berr != nil { 420 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 421 } 422 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 423 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 424 } 425 426 var ( 427 val string 428 ok bool 429 err error 430 _ = err 431 ) 432 433 val, ok = pathParams["project.metadata.name"] 434 if !ok { 435 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project.metadata.name") 436 } 437 438 err = runtime.PopulateFieldFromPath(&protoReq, "project.metadata.name", val) 439 440 if err != nil { 441 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project.metadata.name", err) 442 } 443 444 msg, err := client.Update(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 445 return msg, metadata, err 446 447 } 448 449 func local_request_ProjectService_Update_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 450 var protoReq ProjectUpdateRequest 451 var metadata runtime.ServerMetadata 452 453 newReader, berr := utilities.IOReaderFactory(req.Body) 454 if berr != nil { 455 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) 456 } 457 if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { 458 return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) 459 } 460 461 var ( 462 val string 463 ok bool 464 err error 465 _ = err 466 ) 467 468 val, ok = pathParams["project.metadata.name"] 469 if !ok { 470 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project.metadata.name") 471 } 472 473 err = runtime.PopulateFieldFromPath(&protoReq, "project.metadata.name", val) 474 475 if err != nil { 476 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project.metadata.name", err) 477 } 478 479 msg, err := server.Update(ctx, &protoReq) 480 return msg, metadata, err 481 482 } 483 484 func request_ProjectService_Delete_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 485 var protoReq ProjectQuery 486 var metadata runtime.ServerMetadata 487 488 var ( 489 val string 490 ok bool 491 err error 492 _ = err 493 ) 494 495 val, ok = pathParams["name"] 496 if !ok { 497 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 498 } 499 500 protoReq.Name, err = runtime.String(val) 501 502 if err != nil { 503 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 504 } 505 506 msg, err := client.Delete(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 507 return msg, metadata, err 508 509 } 510 511 func local_request_ProjectService_Delete_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 512 var protoReq ProjectQuery 513 var metadata runtime.ServerMetadata 514 515 var ( 516 val string 517 ok bool 518 err error 519 _ = err 520 ) 521 522 val, ok = pathParams["name"] 523 if !ok { 524 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 525 } 526 527 protoReq.Name, err = runtime.String(val) 528 529 if err != nil { 530 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 531 } 532 533 msg, err := server.Delete(ctx, &protoReq) 534 return msg, metadata, err 535 536 } 537 538 func request_ProjectService_ListEvents_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 539 var protoReq ProjectQuery 540 var metadata runtime.ServerMetadata 541 542 var ( 543 val string 544 ok bool 545 err error 546 _ = err 547 ) 548 549 val, ok = pathParams["name"] 550 if !ok { 551 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 552 } 553 554 protoReq.Name, err = runtime.String(val) 555 556 if err != nil { 557 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 558 } 559 560 msg, err := client.ListEvents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 561 return msg, metadata, err 562 563 } 564 565 func local_request_ProjectService_ListEvents_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 566 var protoReq ProjectQuery 567 var metadata runtime.ServerMetadata 568 569 var ( 570 val string 571 ok bool 572 err error 573 _ = err 574 ) 575 576 val, ok = pathParams["name"] 577 if !ok { 578 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 579 } 580 581 protoReq.Name, err = runtime.String(val) 582 583 if err != nil { 584 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 585 } 586 587 msg, err := server.ListEvents(ctx, &protoReq) 588 return msg, metadata, err 589 590 } 591 592 func request_ProjectService_GetSyncWindowsState_0(ctx context.Context, marshaler runtime.Marshaler, client ProjectServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 593 var protoReq SyncWindowsQuery 594 var metadata runtime.ServerMetadata 595 596 var ( 597 val string 598 ok bool 599 err error 600 _ = err 601 ) 602 603 val, ok = pathParams["name"] 604 if !ok { 605 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 606 } 607 608 protoReq.Name, err = runtime.String(val) 609 610 if err != nil { 611 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 612 } 613 614 msg, err := client.GetSyncWindowsState(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) 615 return msg, metadata, err 616 617 } 618 619 func local_request_ProjectService_GetSyncWindowsState_0(ctx context.Context, marshaler runtime.Marshaler, server ProjectServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { 620 var protoReq SyncWindowsQuery 621 var metadata runtime.ServerMetadata 622 623 var ( 624 val string 625 ok bool 626 err error 627 _ = err 628 ) 629 630 val, ok = pathParams["name"] 631 if !ok { 632 return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") 633 } 634 635 protoReq.Name, err = runtime.String(val) 636 637 if err != nil { 638 return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) 639 } 640 641 msg, err := server.GetSyncWindowsState(ctx, &protoReq) 642 return msg, metadata, err 643 644 } 645 646 // RegisterProjectServiceHandlerServer registers the http handlers for service ProjectService to "mux". 647 // UnaryRPC :call ProjectServiceServer directly. 648 // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. 649 func RegisterProjectServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProjectServiceServer) error { 650 651 mux.Handle("POST", pattern_ProjectService_CreateToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 652 ctx, cancel := context.WithCancel(req.Context()) 653 defer cancel() 654 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 655 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 656 if err != nil { 657 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 658 return 659 } 660 resp, md, err := local_request_ProjectService_CreateToken_0(rctx, inboundMarshaler, server, req, pathParams) 661 ctx = runtime.NewServerMetadataContext(ctx, md) 662 if err != nil { 663 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 664 return 665 } 666 667 forward_ProjectService_CreateToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 668 669 }) 670 671 mux.Handle("DELETE", pattern_ProjectService_DeleteToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 672 ctx, cancel := context.WithCancel(req.Context()) 673 defer cancel() 674 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 675 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 676 if err != nil { 677 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 678 return 679 } 680 resp, md, err := local_request_ProjectService_DeleteToken_0(rctx, inboundMarshaler, server, req, pathParams) 681 ctx = runtime.NewServerMetadataContext(ctx, md) 682 if err != nil { 683 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 684 return 685 } 686 687 forward_ProjectService_DeleteToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 688 689 }) 690 691 mux.Handle("POST", pattern_ProjectService_Create_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 692 ctx, cancel := context.WithCancel(req.Context()) 693 defer cancel() 694 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 695 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 696 if err != nil { 697 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 698 return 699 } 700 resp, md, err := local_request_ProjectService_Create_0(rctx, inboundMarshaler, server, req, pathParams) 701 ctx = runtime.NewServerMetadataContext(ctx, md) 702 if err != nil { 703 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 704 return 705 } 706 707 forward_ProjectService_Create_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 708 709 }) 710 711 mux.Handle("GET", pattern_ProjectService_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 712 ctx, cancel := context.WithCancel(req.Context()) 713 defer cancel() 714 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 715 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 716 if err != nil { 717 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 718 return 719 } 720 resp, md, err := local_request_ProjectService_List_0(rctx, inboundMarshaler, server, req, pathParams) 721 ctx = runtime.NewServerMetadataContext(ctx, md) 722 if err != nil { 723 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 724 return 725 } 726 727 forward_ProjectService_List_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 728 729 }) 730 731 mux.Handle("GET", pattern_ProjectService_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 732 ctx, cancel := context.WithCancel(req.Context()) 733 defer cancel() 734 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 735 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 736 if err != nil { 737 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 738 return 739 } 740 resp, md, err := local_request_ProjectService_Get_0(rctx, inboundMarshaler, server, req, pathParams) 741 ctx = runtime.NewServerMetadataContext(ctx, md) 742 if err != nil { 743 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 744 return 745 } 746 747 forward_ProjectService_Get_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 748 749 }) 750 751 mux.Handle("GET", pattern_ProjectService_GetGlobalProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 752 ctx, cancel := context.WithCancel(req.Context()) 753 defer cancel() 754 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 755 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 756 if err != nil { 757 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 758 return 759 } 760 resp, md, err := local_request_ProjectService_GetGlobalProjects_0(rctx, inboundMarshaler, server, req, pathParams) 761 ctx = runtime.NewServerMetadataContext(ctx, md) 762 if err != nil { 763 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 764 return 765 } 766 767 forward_ProjectService_GetGlobalProjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 768 769 }) 770 771 mux.Handle("PUT", pattern_ProjectService_Update_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 772 ctx, cancel := context.WithCancel(req.Context()) 773 defer cancel() 774 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 775 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 776 if err != nil { 777 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 778 return 779 } 780 resp, md, err := local_request_ProjectService_Update_0(rctx, inboundMarshaler, server, req, pathParams) 781 ctx = runtime.NewServerMetadataContext(ctx, md) 782 if err != nil { 783 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 784 return 785 } 786 787 forward_ProjectService_Update_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 788 789 }) 790 791 mux.Handle("DELETE", pattern_ProjectService_Delete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 792 ctx, cancel := context.WithCancel(req.Context()) 793 defer cancel() 794 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 795 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 796 if err != nil { 797 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 798 return 799 } 800 resp, md, err := local_request_ProjectService_Delete_0(rctx, inboundMarshaler, server, req, pathParams) 801 ctx = runtime.NewServerMetadataContext(ctx, md) 802 if err != nil { 803 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 804 return 805 } 806 807 forward_ProjectService_Delete_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 808 809 }) 810 811 mux.Handle("GET", pattern_ProjectService_ListEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 812 ctx, cancel := context.WithCancel(req.Context()) 813 defer cancel() 814 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 815 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 816 if err != nil { 817 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 818 return 819 } 820 resp, md, err := local_request_ProjectService_ListEvents_0(rctx, inboundMarshaler, server, req, pathParams) 821 ctx = runtime.NewServerMetadataContext(ctx, md) 822 if err != nil { 823 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 824 return 825 } 826 827 forward_ProjectService_ListEvents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 828 829 }) 830 831 mux.Handle("GET", pattern_ProjectService_GetSyncWindowsState_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 832 ctx, cancel := context.WithCancel(req.Context()) 833 defer cancel() 834 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 835 rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) 836 if err != nil { 837 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 838 return 839 } 840 resp, md, err := local_request_ProjectService_GetSyncWindowsState_0(rctx, inboundMarshaler, server, req, pathParams) 841 ctx = runtime.NewServerMetadataContext(ctx, md) 842 if err != nil { 843 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 844 return 845 } 846 847 forward_ProjectService_GetSyncWindowsState_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 848 849 }) 850 851 return nil 852 } 853 854 // RegisterProjectServiceHandlerFromEndpoint is same as RegisterProjectServiceHandler but 855 // automatically dials to "endpoint" and closes the connection when "ctx" gets done. 856 func RegisterProjectServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { 857 conn, err := grpc.Dial(endpoint, opts...) 858 if err != nil { 859 return err 860 } 861 defer func() { 862 if err != nil { 863 if cerr := conn.Close(); cerr != nil { 864 grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) 865 } 866 return 867 } 868 go func() { 869 <-ctx.Done() 870 if cerr := conn.Close(); cerr != nil { 871 grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) 872 } 873 }() 874 }() 875 876 return RegisterProjectServiceHandler(ctx, mux, conn) 877 } 878 879 // RegisterProjectServiceHandler registers the http handlers for service ProjectService to "mux". 880 // The handlers forward requests to the grpc endpoint over "conn". 881 func RegisterProjectServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { 882 return RegisterProjectServiceHandlerClient(ctx, mux, NewProjectServiceClient(conn)) 883 } 884 885 // RegisterProjectServiceHandlerClient registers the http handlers for service ProjectService 886 // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProjectServiceClient". 887 // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProjectServiceClient" 888 // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in 889 // "ProjectServiceClient" to call the correct interceptors. 890 func RegisterProjectServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProjectServiceClient) error { 891 892 mux.Handle("POST", pattern_ProjectService_CreateToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 893 ctx, cancel := context.WithCancel(req.Context()) 894 defer cancel() 895 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 896 rctx, err := runtime.AnnotateContext(ctx, mux, req) 897 if err != nil { 898 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 899 return 900 } 901 resp, md, err := request_ProjectService_CreateToken_0(rctx, inboundMarshaler, client, req, pathParams) 902 ctx = runtime.NewServerMetadataContext(ctx, md) 903 if err != nil { 904 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 905 return 906 } 907 908 forward_ProjectService_CreateToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 909 910 }) 911 912 mux.Handle("DELETE", pattern_ProjectService_DeleteToken_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 913 ctx, cancel := context.WithCancel(req.Context()) 914 defer cancel() 915 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 916 rctx, err := runtime.AnnotateContext(ctx, mux, req) 917 if err != nil { 918 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 919 return 920 } 921 resp, md, err := request_ProjectService_DeleteToken_0(rctx, inboundMarshaler, client, req, pathParams) 922 ctx = runtime.NewServerMetadataContext(ctx, md) 923 if err != nil { 924 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 925 return 926 } 927 928 forward_ProjectService_DeleteToken_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 929 930 }) 931 932 mux.Handle("POST", pattern_ProjectService_Create_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 933 ctx, cancel := context.WithCancel(req.Context()) 934 defer cancel() 935 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 936 rctx, err := runtime.AnnotateContext(ctx, mux, req) 937 if err != nil { 938 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 939 return 940 } 941 resp, md, err := request_ProjectService_Create_0(rctx, inboundMarshaler, client, req, pathParams) 942 ctx = runtime.NewServerMetadataContext(ctx, md) 943 if err != nil { 944 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 945 return 946 } 947 948 forward_ProjectService_Create_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 949 950 }) 951 952 mux.Handle("GET", pattern_ProjectService_List_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 953 ctx, cancel := context.WithCancel(req.Context()) 954 defer cancel() 955 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 956 rctx, err := runtime.AnnotateContext(ctx, mux, req) 957 if err != nil { 958 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 959 return 960 } 961 resp, md, err := request_ProjectService_List_0(rctx, inboundMarshaler, client, req, pathParams) 962 ctx = runtime.NewServerMetadataContext(ctx, md) 963 if err != nil { 964 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 965 return 966 } 967 968 forward_ProjectService_List_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 969 970 }) 971 972 mux.Handle("GET", pattern_ProjectService_Get_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 973 ctx, cancel := context.WithCancel(req.Context()) 974 defer cancel() 975 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 976 rctx, err := runtime.AnnotateContext(ctx, mux, req) 977 if err != nil { 978 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 979 return 980 } 981 resp, md, err := request_ProjectService_Get_0(rctx, inboundMarshaler, client, req, pathParams) 982 ctx = runtime.NewServerMetadataContext(ctx, md) 983 if err != nil { 984 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 985 return 986 } 987 988 forward_ProjectService_Get_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 989 990 }) 991 992 mux.Handle("GET", pattern_ProjectService_GetGlobalProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 993 ctx, cancel := context.WithCancel(req.Context()) 994 defer cancel() 995 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 996 rctx, err := runtime.AnnotateContext(ctx, mux, req) 997 if err != nil { 998 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 999 return 1000 } 1001 resp, md, err := request_ProjectService_GetGlobalProjects_0(rctx, inboundMarshaler, client, req, pathParams) 1002 ctx = runtime.NewServerMetadataContext(ctx, md) 1003 if err != nil { 1004 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1005 return 1006 } 1007 1008 forward_ProjectService_GetGlobalProjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1009 1010 }) 1011 1012 mux.Handle("PUT", pattern_ProjectService_Update_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1013 ctx, cancel := context.WithCancel(req.Context()) 1014 defer cancel() 1015 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1016 rctx, err := runtime.AnnotateContext(ctx, mux, req) 1017 if err != nil { 1018 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1019 return 1020 } 1021 resp, md, err := request_ProjectService_Update_0(rctx, inboundMarshaler, client, req, pathParams) 1022 ctx = runtime.NewServerMetadataContext(ctx, md) 1023 if err != nil { 1024 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1025 return 1026 } 1027 1028 forward_ProjectService_Update_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1029 1030 }) 1031 1032 mux.Handle("DELETE", pattern_ProjectService_Delete_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1033 ctx, cancel := context.WithCancel(req.Context()) 1034 defer cancel() 1035 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1036 rctx, err := runtime.AnnotateContext(ctx, mux, req) 1037 if err != nil { 1038 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1039 return 1040 } 1041 resp, md, err := request_ProjectService_Delete_0(rctx, inboundMarshaler, client, req, pathParams) 1042 ctx = runtime.NewServerMetadataContext(ctx, md) 1043 if err != nil { 1044 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1045 return 1046 } 1047 1048 forward_ProjectService_Delete_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1049 1050 }) 1051 1052 mux.Handle("GET", pattern_ProjectService_ListEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1053 ctx, cancel := context.WithCancel(req.Context()) 1054 defer cancel() 1055 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1056 rctx, err := runtime.AnnotateContext(ctx, mux, req) 1057 if err != nil { 1058 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1059 return 1060 } 1061 resp, md, err := request_ProjectService_ListEvents_0(rctx, inboundMarshaler, client, req, pathParams) 1062 ctx = runtime.NewServerMetadataContext(ctx, md) 1063 if err != nil { 1064 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1065 return 1066 } 1067 1068 forward_ProjectService_ListEvents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1069 1070 }) 1071 1072 mux.Handle("GET", pattern_ProjectService_GetSyncWindowsState_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { 1073 ctx, cancel := context.WithCancel(req.Context()) 1074 defer cancel() 1075 inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) 1076 rctx, err := runtime.AnnotateContext(ctx, mux, req) 1077 if err != nil { 1078 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1079 return 1080 } 1081 resp, md, err := request_ProjectService_GetSyncWindowsState_0(rctx, inboundMarshaler, client, req, pathParams) 1082 ctx = runtime.NewServerMetadataContext(ctx, md) 1083 if err != nil { 1084 runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) 1085 return 1086 } 1087 1088 forward_ProjectService_GetSyncWindowsState_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) 1089 1090 }) 1091 1092 return nil 1093 } 1094 1095 var ( 1096 pattern_ProjectService_CreateToken_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"api", "v1", "projects", "project", "roles", "role", "token"}, "", runtime.AssumeColonVerbOpt(true))) 1097 1098 pattern_ProjectService_DeleteToken_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "projects", "project", "roles", "role", "token", "iat"}, "", runtime.AssumeColonVerbOpt(true))) 1099 1100 pattern_ProjectService_Create_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "projects"}, "", runtime.AssumeColonVerbOpt(true))) 1101 1102 pattern_ProjectService_List_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "projects"}, "", runtime.AssumeColonVerbOpt(true))) 1103 1104 pattern_ProjectService_Get_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "projects", "name"}, "", runtime.AssumeColonVerbOpt(true))) 1105 1106 pattern_ProjectService_GetGlobalProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "projects", "name", "globalprojects"}, "", runtime.AssumeColonVerbOpt(true))) 1107 1108 pattern_ProjectService_Update_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "projects", "project.metadata.name"}, "", runtime.AssumeColonVerbOpt(true))) 1109 1110 pattern_ProjectService_Delete_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "projects", "name"}, "", runtime.AssumeColonVerbOpt(true))) 1111 1112 pattern_ProjectService_ListEvents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "projects", "name", "events"}, "", runtime.AssumeColonVerbOpt(true))) 1113 1114 pattern_ProjectService_GetSyncWindowsState_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"api", "v1", "projects", "name", "syncwindows"}, "", runtime.AssumeColonVerbOpt(true))) 1115 ) 1116 1117 var ( 1118 forward_ProjectService_CreateToken_0 = runtime.ForwardResponseMessage 1119 1120 forward_ProjectService_DeleteToken_0 = runtime.ForwardResponseMessage 1121 1122 forward_ProjectService_Create_0 = runtime.ForwardResponseMessage 1123 1124 forward_ProjectService_List_0 = runtime.ForwardResponseMessage 1125 1126 forward_ProjectService_Get_0 = runtime.ForwardResponseMessage 1127 1128 forward_ProjectService_GetGlobalProjects_0 = runtime.ForwardResponseMessage 1129 1130 forward_ProjectService_Update_0 = runtime.ForwardResponseMessage 1131 1132 forward_ProjectService_Delete_0 = runtime.ForwardResponseMessage 1133 1134 forward_ProjectService_ListEvents_0 = runtime.ForwardResponseMessage 1135 1136 forward_ProjectService_GetSyncWindowsState_0 = runtime.ForwardResponseMessage 1137 )