google-cloud-memorystore-v1beta 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -353,20 +353,911 @@ module Google
353
353
  end
354
354
  end
355
355
 
356
+ ##
357
+ # Baseline implementation for the reschedule_maintenance REST call
358
+ #
359
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::RescheduleMaintenanceRequest]
360
+ # A request object representing the call parameters. Required.
361
+ # @param options [::Gapic::CallOptions]
362
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
363
+ #
364
+ # @yield [result, operation] Access the result along with the TransportOperation object
365
+ # @yieldparam result [::Google::Longrunning::Operation]
366
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
367
+ #
368
+ # @return [::Google::Longrunning::Operation]
369
+ # A result object deserialized from the server's reply
370
+ def reschedule_maintenance request_pb, options = nil
371
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
372
+
373
+ verb, uri, query_string_params, body = ServiceStub.transcode_reschedule_maintenance_request request_pb
374
+ query_string_params = if query_string_params.any?
375
+ query_string_params.to_h { |p| p.split "=", 2 }
376
+ else
377
+ {}
378
+ end
379
+
380
+ response = @client_stub.make_http_request(
381
+ verb,
382
+ uri: uri,
383
+ body: body || "",
384
+ params: query_string_params,
385
+ method_name: "reschedule_maintenance",
386
+ options: options
387
+ )
388
+ operation = ::Gapic::Rest::TransportOperation.new response
389
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
390
+ catch :response do
391
+ yield result, operation if block_given?
392
+ result
393
+ end
394
+ end
395
+
396
+ ##
397
+ # Baseline implementation for the list_backup_collections REST call
398
+ #
399
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::ListBackupCollectionsRequest]
400
+ # A request object representing the call parameters. Required.
401
+ # @param options [::Gapic::CallOptions]
402
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
403
+ #
404
+ # @yield [result, operation] Access the result along with the TransportOperation object
405
+ # @yieldparam result [::Google::Cloud::Memorystore::V1beta::ListBackupCollectionsResponse]
406
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
407
+ #
408
+ # @return [::Google::Cloud::Memorystore::V1beta::ListBackupCollectionsResponse]
409
+ # A result object deserialized from the server's reply
410
+ def list_backup_collections request_pb, options = nil
411
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
412
+
413
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_backup_collections_request request_pb
414
+ query_string_params = if query_string_params.any?
415
+ query_string_params.to_h { |p| p.split "=", 2 }
416
+ else
417
+ {}
418
+ end
419
+
420
+ response = @client_stub.make_http_request(
421
+ verb,
422
+ uri: uri,
423
+ body: body || "",
424
+ params: query_string_params,
425
+ method_name: "list_backup_collections",
426
+ options: options
427
+ )
428
+ operation = ::Gapic::Rest::TransportOperation.new response
429
+ result = ::Google::Cloud::Memorystore::V1beta::ListBackupCollectionsResponse.decode_json response.body, ignore_unknown_fields: true
430
+ catch :response do
431
+ yield result, operation if block_given?
432
+ result
433
+ end
434
+ end
435
+
436
+ ##
437
+ # Baseline implementation for the get_backup_collection REST call
438
+ #
439
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetBackupCollectionRequest]
440
+ # A request object representing the call parameters. Required.
441
+ # @param options [::Gapic::CallOptions]
442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
443
+ #
444
+ # @yield [result, operation] Access the result along with the TransportOperation object
445
+ # @yieldparam result [::Google::Cloud::Memorystore::V1beta::BackupCollection]
446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
447
+ #
448
+ # @return [::Google::Cloud::Memorystore::V1beta::BackupCollection]
449
+ # A result object deserialized from the server's reply
450
+ def get_backup_collection request_pb, options = nil
451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
452
+
453
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_collection_request request_pb
454
+ query_string_params = if query_string_params.any?
455
+ query_string_params.to_h { |p| p.split "=", 2 }
456
+ else
457
+ {}
458
+ end
459
+
460
+ response = @client_stub.make_http_request(
461
+ verb,
462
+ uri: uri,
463
+ body: body || "",
464
+ params: query_string_params,
465
+ method_name: "get_backup_collection",
466
+ options: options
467
+ )
468
+ operation = ::Gapic::Rest::TransportOperation.new response
469
+ result = ::Google::Cloud::Memorystore::V1beta::BackupCollection.decode_json response.body, ignore_unknown_fields: true
470
+ catch :response do
471
+ yield result, operation if block_given?
472
+ result
473
+ end
474
+ end
475
+
476
+ ##
477
+ # Baseline implementation for the list_backups REST call
478
+ #
479
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::ListBackupsRequest]
480
+ # A request object representing the call parameters. Required.
481
+ # @param options [::Gapic::CallOptions]
482
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
483
+ #
484
+ # @yield [result, operation] Access the result along with the TransportOperation object
485
+ # @yieldparam result [::Google::Cloud::Memorystore::V1beta::ListBackupsResponse]
486
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
487
+ #
488
+ # @return [::Google::Cloud::Memorystore::V1beta::ListBackupsResponse]
489
+ # A result object deserialized from the server's reply
490
+ def list_backups request_pb, options = nil
491
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
492
+
493
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_backups_request request_pb
494
+ query_string_params = if query_string_params.any?
495
+ query_string_params.to_h { |p| p.split "=", 2 }
496
+ else
497
+ {}
498
+ end
499
+
500
+ response = @client_stub.make_http_request(
501
+ verb,
502
+ uri: uri,
503
+ body: body || "",
504
+ params: query_string_params,
505
+ method_name: "list_backups",
506
+ options: options
507
+ )
508
+ operation = ::Gapic::Rest::TransportOperation.new response
509
+ result = ::Google::Cloud::Memorystore::V1beta::ListBackupsResponse.decode_json response.body, ignore_unknown_fields: true
510
+ catch :response do
511
+ yield result, operation if block_given?
512
+ result
513
+ end
514
+ end
515
+
516
+ ##
517
+ # Baseline implementation for the get_backup REST call
518
+ #
519
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetBackupRequest]
520
+ # A request object representing the call parameters. Required.
521
+ # @param options [::Gapic::CallOptions]
522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
523
+ #
524
+ # @yield [result, operation] Access the result along with the TransportOperation object
525
+ # @yieldparam result [::Google::Cloud::Memorystore::V1beta::Backup]
526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
527
+ #
528
+ # @return [::Google::Cloud::Memorystore::V1beta::Backup]
529
+ # A result object deserialized from the server's reply
530
+ def get_backup request_pb, options = nil
531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
532
+
533
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_request request_pb
534
+ query_string_params = if query_string_params.any?
535
+ query_string_params.to_h { |p| p.split "=", 2 }
536
+ else
537
+ {}
538
+ end
539
+
540
+ response = @client_stub.make_http_request(
541
+ verb,
542
+ uri: uri,
543
+ body: body || "",
544
+ params: query_string_params,
545
+ method_name: "get_backup",
546
+ options: options
547
+ )
548
+ operation = ::Gapic::Rest::TransportOperation.new response
549
+ result = ::Google::Cloud::Memorystore::V1beta::Backup.decode_json response.body, ignore_unknown_fields: true
550
+ catch :response do
551
+ yield result, operation if block_given?
552
+ result
553
+ end
554
+ end
555
+
556
+ ##
557
+ # Baseline implementation for the delete_backup REST call
558
+ #
559
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::DeleteBackupRequest]
560
+ # A request object representing the call parameters. Required.
561
+ # @param options [::Gapic::CallOptions]
562
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
563
+ #
564
+ # @yield [result, operation] Access the result along with the TransportOperation object
565
+ # @yieldparam result [::Google::Longrunning::Operation]
566
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
567
+ #
568
+ # @return [::Google::Longrunning::Operation]
569
+ # A result object deserialized from the server's reply
570
+ def delete_backup request_pb, options = nil
571
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
572
+
573
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_request request_pb
574
+ query_string_params = if query_string_params.any?
575
+ query_string_params.to_h { |p| p.split "=", 2 }
576
+ else
577
+ {}
578
+ end
579
+
580
+ response = @client_stub.make_http_request(
581
+ verb,
582
+ uri: uri,
583
+ body: body || "",
584
+ params: query_string_params,
585
+ method_name: "delete_backup",
586
+ options: options
587
+ )
588
+ operation = ::Gapic::Rest::TransportOperation.new response
589
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
590
+ catch :response do
591
+ yield result, operation if block_given?
592
+ result
593
+ end
594
+ end
595
+
596
+ ##
597
+ # Baseline implementation for the export_backup REST call
598
+ #
599
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::ExportBackupRequest]
600
+ # A request object representing the call parameters. Required.
601
+ # @param options [::Gapic::CallOptions]
602
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
603
+ #
604
+ # @yield [result, operation] Access the result along with the TransportOperation object
605
+ # @yieldparam result [::Google::Longrunning::Operation]
606
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
607
+ #
608
+ # @return [::Google::Longrunning::Operation]
609
+ # A result object deserialized from the server's reply
610
+ def export_backup request_pb, options = nil
611
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
612
+
613
+ verb, uri, query_string_params, body = ServiceStub.transcode_export_backup_request request_pb
614
+ query_string_params = if query_string_params.any?
615
+ query_string_params.to_h { |p| p.split "=", 2 }
616
+ else
617
+ {}
618
+ end
619
+
620
+ response = @client_stub.make_http_request(
621
+ verb,
622
+ uri: uri,
623
+ body: body || "",
624
+ params: query_string_params,
625
+ method_name: "export_backup",
626
+ options: options
627
+ )
628
+ operation = ::Gapic::Rest::TransportOperation.new response
629
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
630
+ catch :response do
631
+ yield result, operation if block_given?
632
+ result
633
+ end
634
+ end
635
+
636
+ ##
637
+ # Baseline implementation for the backup_instance REST call
638
+ #
639
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::BackupInstanceRequest]
640
+ # A request object representing the call parameters. Required.
641
+ # @param options [::Gapic::CallOptions]
642
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
643
+ #
644
+ # @yield [result, operation] Access the result along with the TransportOperation object
645
+ # @yieldparam result [::Google::Longrunning::Operation]
646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
647
+ #
648
+ # @return [::Google::Longrunning::Operation]
649
+ # A result object deserialized from the server's reply
650
+ def backup_instance request_pb, options = nil
651
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
652
+
653
+ verb, uri, query_string_params, body = ServiceStub.transcode_backup_instance_request request_pb
654
+ query_string_params = if query_string_params.any?
655
+ query_string_params.to_h { |p| p.split "=", 2 }
656
+ else
657
+ {}
658
+ end
659
+
660
+ response = @client_stub.make_http_request(
661
+ verb,
662
+ uri: uri,
663
+ body: body || "",
664
+ params: query_string_params,
665
+ method_name: "backup_instance",
666
+ options: options
667
+ )
668
+ operation = ::Gapic::Rest::TransportOperation.new response
669
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
670
+ catch :response do
671
+ yield result, operation if block_given?
672
+ result
673
+ end
674
+ end
675
+
676
+ ##
677
+ # Baseline implementation for the start_migration REST call
678
+ #
679
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::StartMigrationRequest]
680
+ # A request object representing the call parameters. Required.
681
+ # @param options [::Gapic::CallOptions]
682
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
683
+ #
684
+ # @yield [result, operation] Access the result along with the TransportOperation object
685
+ # @yieldparam result [::Google::Longrunning::Operation]
686
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
687
+ #
688
+ # @return [::Google::Longrunning::Operation]
689
+ # A result object deserialized from the server's reply
690
+ def start_migration request_pb, options = nil
691
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
692
+
693
+ verb, uri, query_string_params, body = ServiceStub.transcode_start_migration_request request_pb
694
+ query_string_params = if query_string_params.any?
695
+ query_string_params.to_h { |p| p.split "=", 2 }
696
+ else
697
+ {}
698
+ end
699
+
700
+ response = @client_stub.make_http_request(
701
+ verb,
702
+ uri: uri,
703
+ body: body || "",
704
+ params: query_string_params,
705
+ method_name: "start_migration",
706
+ options: options
707
+ )
708
+ operation = ::Gapic::Rest::TransportOperation.new response
709
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
710
+ catch :response do
711
+ yield result, operation if block_given?
712
+ result
713
+ end
714
+ end
715
+
716
+ ##
717
+ # Baseline implementation for the finish_migration REST call
718
+ #
719
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::FinishMigrationRequest]
720
+ # A request object representing the call parameters. Required.
721
+ # @param options [::Gapic::CallOptions]
722
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
723
+ #
724
+ # @yield [result, operation] Access the result along with the TransportOperation object
725
+ # @yieldparam result [::Google::Longrunning::Operation]
726
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
727
+ #
728
+ # @return [::Google::Longrunning::Operation]
729
+ # A result object deserialized from the server's reply
730
+ def finish_migration request_pb, options = nil
731
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
732
+
733
+ verb, uri, query_string_params, body = ServiceStub.transcode_finish_migration_request request_pb
734
+ query_string_params = if query_string_params.any?
735
+ query_string_params.to_h { |p| p.split "=", 2 }
736
+ else
737
+ {}
738
+ end
739
+
740
+ response = @client_stub.make_http_request(
741
+ verb,
742
+ uri: uri,
743
+ body: body || "",
744
+ params: query_string_params,
745
+ method_name: "finish_migration",
746
+ options: options
747
+ )
748
+ operation = ::Gapic::Rest::TransportOperation.new response
749
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
750
+ catch :response do
751
+ yield result, operation if block_given?
752
+ result
753
+ end
754
+ end
755
+
756
+ ##
757
+ # Baseline implementation for the list_token_auth_users REST call
758
+ #
759
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::ListTokenAuthUsersRequest]
760
+ # A request object representing the call parameters. Required.
761
+ # @param options [::Gapic::CallOptions]
762
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
763
+ #
764
+ # @yield [result, operation] Access the result along with the TransportOperation object
765
+ # @yieldparam result [::Google::Cloud::Memorystore::V1beta::ListTokenAuthUsersResponse]
766
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
767
+ #
768
+ # @return [::Google::Cloud::Memorystore::V1beta::ListTokenAuthUsersResponse]
769
+ # A result object deserialized from the server's reply
770
+ def list_token_auth_users request_pb, options = nil
771
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
772
+
773
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_token_auth_users_request request_pb
774
+ query_string_params = if query_string_params.any?
775
+ query_string_params.to_h { |p| p.split "=", 2 }
776
+ else
777
+ {}
778
+ end
779
+
780
+ response = @client_stub.make_http_request(
781
+ verb,
782
+ uri: uri,
783
+ body: body || "",
784
+ params: query_string_params,
785
+ method_name: "list_token_auth_users",
786
+ options: options
787
+ )
788
+ operation = ::Gapic::Rest::TransportOperation.new response
789
+ result = ::Google::Cloud::Memorystore::V1beta::ListTokenAuthUsersResponse.decode_json response.body, ignore_unknown_fields: true
790
+ catch :response do
791
+ yield result, operation if block_given?
792
+ result
793
+ end
794
+ end
795
+
796
+ ##
797
+ # Baseline implementation for the get_token_auth_user REST call
798
+ #
799
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetTokenAuthUserRequest]
800
+ # A request object representing the call parameters. Required.
801
+ # @param options [::Gapic::CallOptions]
802
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
803
+ #
804
+ # @yield [result, operation] Access the result along with the TransportOperation object
805
+ # @yieldparam result [::Google::Cloud::Memorystore::V1beta::TokenAuthUser]
806
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
807
+ #
808
+ # @return [::Google::Cloud::Memorystore::V1beta::TokenAuthUser]
809
+ # A result object deserialized from the server's reply
810
+ def get_token_auth_user request_pb, options = nil
811
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
812
+
813
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_token_auth_user_request request_pb
814
+ query_string_params = if query_string_params.any?
815
+ query_string_params.to_h { |p| p.split "=", 2 }
816
+ else
817
+ {}
818
+ end
819
+
820
+ response = @client_stub.make_http_request(
821
+ verb,
822
+ uri: uri,
823
+ body: body || "",
824
+ params: query_string_params,
825
+ method_name: "get_token_auth_user",
826
+ options: options
827
+ )
828
+ operation = ::Gapic::Rest::TransportOperation.new response
829
+ result = ::Google::Cloud::Memorystore::V1beta::TokenAuthUser.decode_json response.body, ignore_unknown_fields: true
830
+ catch :response do
831
+ yield result, operation if block_given?
832
+ result
833
+ end
834
+ end
835
+
836
+ ##
837
+ # Baseline implementation for the list_auth_tokens REST call
838
+ #
839
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::ListAuthTokensRequest]
840
+ # A request object representing the call parameters. Required.
841
+ # @param options [::Gapic::CallOptions]
842
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
843
+ #
844
+ # @yield [result, operation] Access the result along with the TransportOperation object
845
+ # @yieldparam result [::Google::Cloud::Memorystore::V1beta::ListAuthTokensResponse]
846
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
847
+ #
848
+ # @return [::Google::Cloud::Memorystore::V1beta::ListAuthTokensResponse]
849
+ # A result object deserialized from the server's reply
850
+ def list_auth_tokens request_pb, options = nil
851
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
852
+
853
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_auth_tokens_request request_pb
854
+ query_string_params = if query_string_params.any?
855
+ query_string_params.to_h { |p| p.split "=", 2 }
856
+ else
857
+ {}
858
+ end
859
+
860
+ response = @client_stub.make_http_request(
861
+ verb,
862
+ uri: uri,
863
+ body: body || "",
864
+ params: query_string_params,
865
+ method_name: "list_auth_tokens",
866
+ options: options
867
+ )
868
+ operation = ::Gapic::Rest::TransportOperation.new response
869
+ result = ::Google::Cloud::Memorystore::V1beta::ListAuthTokensResponse.decode_json response.body, ignore_unknown_fields: true
870
+ catch :response do
871
+ yield result, operation if block_given?
872
+ result
873
+ end
874
+ end
875
+
876
+ ##
877
+ # Baseline implementation for the get_auth_token REST call
878
+ #
879
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetAuthTokenRequest]
880
+ # A request object representing the call parameters. Required.
881
+ # @param options [::Gapic::CallOptions]
882
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
883
+ #
884
+ # @yield [result, operation] Access the result along with the TransportOperation object
885
+ # @yieldparam result [::Google::Cloud::Memorystore::V1beta::AuthToken]
886
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
887
+ #
888
+ # @return [::Google::Cloud::Memorystore::V1beta::AuthToken]
889
+ # A result object deserialized from the server's reply
890
+ def get_auth_token request_pb, options = nil
891
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
892
+
893
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_auth_token_request request_pb
894
+ query_string_params = if query_string_params.any?
895
+ query_string_params.to_h { |p| p.split "=", 2 }
896
+ else
897
+ {}
898
+ end
899
+
900
+ response = @client_stub.make_http_request(
901
+ verb,
902
+ uri: uri,
903
+ body: body || "",
904
+ params: query_string_params,
905
+ method_name: "get_auth_token",
906
+ options: options
907
+ )
908
+ operation = ::Gapic::Rest::TransportOperation.new response
909
+ result = ::Google::Cloud::Memorystore::V1beta::AuthToken.decode_json response.body, ignore_unknown_fields: true
910
+ catch :response do
911
+ yield result, operation if block_given?
912
+ result
913
+ end
914
+ end
915
+
916
+ ##
917
+ # Baseline implementation for the add_token_auth_user REST call
918
+ #
919
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::AddTokenAuthUserRequest]
920
+ # A request object representing the call parameters. Required.
921
+ # @param options [::Gapic::CallOptions]
922
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
923
+ #
924
+ # @yield [result, operation] Access the result along with the TransportOperation object
925
+ # @yieldparam result [::Google::Longrunning::Operation]
926
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
927
+ #
928
+ # @return [::Google::Longrunning::Operation]
929
+ # A result object deserialized from the server's reply
930
+ def add_token_auth_user request_pb, options = nil
931
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
932
+
933
+ verb, uri, query_string_params, body = ServiceStub.transcode_add_token_auth_user_request request_pb
934
+ query_string_params = if query_string_params.any?
935
+ query_string_params.to_h { |p| p.split "=", 2 }
936
+ else
937
+ {}
938
+ end
939
+
940
+ response = @client_stub.make_http_request(
941
+ verb,
942
+ uri: uri,
943
+ body: body || "",
944
+ params: query_string_params,
945
+ method_name: "add_token_auth_user",
946
+ options: options
947
+ )
948
+ operation = ::Gapic::Rest::TransportOperation.new response
949
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
950
+ catch :response do
951
+ yield result, operation if block_given?
952
+ result
953
+ end
954
+ end
955
+
956
+ ##
957
+ # Baseline implementation for the delete_token_auth_user REST call
958
+ #
959
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::DeleteTokenAuthUserRequest]
960
+ # A request object representing the call parameters. Required.
961
+ # @param options [::Gapic::CallOptions]
962
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
963
+ #
964
+ # @yield [result, operation] Access the result along with the TransportOperation object
965
+ # @yieldparam result [::Google::Longrunning::Operation]
966
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
967
+ #
968
+ # @return [::Google::Longrunning::Operation]
969
+ # A result object deserialized from the server's reply
970
+ def delete_token_auth_user request_pb, options = nil
971
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
972
+
973
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_token_auth_user_request request_pb
974
+ query_string_params = if query_string_params.any?
975
+ query_string_params.to_h { |p| p.split "=", 2 }
976
+ else
977
+ {}
978
+ end
979
+
980
+ response = @client_stub.make_http_request(
981
+ verb,
982
+ uri: uri,
983
+ body: body || "",
984
+ params: query_string_params,
985
+ method_name: "delete_token_auth_user",
986
+ options: options
987
+ )
988
+ operation = ::Gapic::Rest::TransportOperation.new response
989
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
990
+ catch :response do
991
+ yield result, operation if block_given?
992
+ result
993
+ end
994
+ end
995
+
996
+ ##
997
+ # Baseline implementation for the add_auth_token REST call
998
+ #
999
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::AddAuthTokenRequest]
1000
+ # A request object representing the call parameters. Required.
1001
+ # @param options [::Gapic::CallOptions]
1002
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1003
+ #
1004
+ # @yield [result, operation] Access the result along with the TransportOperation object
1005
+ # @yieldparam result [::Google::Longrunning::Operation]
1006
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1007
+ #
1008
+ # @return [::Google::Longrunning::Operation]
1009
+ # A result object deserialized from the server's reply
1010
+ def add_auth_token request_pb, options = nil
1011
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1012
+
1013
+ verb, uri, query_string_params, body = ServiceStub.transcode_add_auth_token_request request_pb
1014
+ query_string_params = if query_string_params.any?
1015
+ query_string_params.to_h { |p| p.split "=", 2 }
1016
+ else
1017
+ {}
1018
+ end
1019
+
1020
+ response = @client_stub.make_http_request(
1021
+ verb,
1022
+ uri: uri,
1023
+ body: body || "",
1024
+ params: query_string_params,
1025
+ method_name: "add_auth_token",
1026
+ options: options
1027
+ )
1028
+ operation = ::Gapic::Rest::TransportOperation.new response
1029
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1030
+ catch :response do
1031
+ yield result, operation if block_given?
1032
+ result
1033
+ end
1034
+ end
1035
+
1036
+ ##
1037
+ # Baseline implementation for the delete_auth_token REST call
1038
+ #
1039
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::DeleteAuthTokenRequest]
1040
+ # A request object representing the call parameters. Required.
1041
+ # @param options [::Gapic::CallOptions]
1042
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1043
+ #
1044
+ # @yield [result, operation] Access the result along with the TransportOperation object
1045
+ # @yieldparam result [::Google::Longrunning::Operation]
1046
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1047
+ #
1048
+ # @return [::Google::Longrunning::Operation]
1049
+ # A result object deserialized from the server's reply
1050
+ def delete_auth_token request_pb, options = nil
1051
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1052
+
1053
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_auth_token_request request_pb
1054
+ query_string_params = if query_string_params.any?
1055
+ query_string_params.to_h { |p| p.split "=", 2 }
1056
+ else
1057
+ {}
1058
+ end
1059
+
1060
+ response = @client_stub.make_http_request(
1061
+ verb,
1062
+ uri: uri,
1063
+ body: body || "",
1064
+ params: query_string_params,
1065
+ method_name: "delete_auth_token",
1066
+ options: options
1067
+ )
1068
+ operation = ::Gapic::Rest::TransportOperation.new response
1069
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1070
+ catch :response do
1071
+ yield result, operation if block_given?
1072
+ result
1073
+ end
1074
+ end
1075
+
1076
+ ##
1077
+ # @private
1078
+ #
1079
+ # GRPC transcoding helper method for the list_instances REST call
1080
+ #
1081
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::ListInstancesRequest]
1082
+ # A request object representing the call parameters. Required.
1083
+ # @return [Array(String, [String, nil], Hash{String => String})]
1084
+ # Uri, Body, Query string parameters
1085
+ def self.transcode_list_instances_request request_pb
1086
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1087
+ .with_bindings(
1088
+ uri_method: :get,
1089
+ uri_template: "/v1beta/{parent}/instances",
1090
+ matches: [
1091
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1092
+ ]
1093
+ )
1094
+ transcoder.transcode request_pb
1095
+ end
1096
+
1097
+ ##
1098
+ # @private
1099
+ #
1100
+ # GRPC transcoding helper method for the get_instance REST call
1101
+ #
1102
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetInstanceRequest]
1103
+ # A request object representing the call parameters. Required.
1104
+ # @return [Array(String, [String, nil], Hash{String => String})]
1105
+ # Uri, Body, Query string parameters
1106
+ def self.transcode_get_instance_request request_pb
1107
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1108
+ .with_bindings(
1109
+ uri_method: :get,
1110
+ uri_template: "/v1beta/{name}",
1111
+ matches: [
1112
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1113
+ ]
1114
+ )
1115
+ transcoder.transcode request_pb
1116
+ end
1117
+
1118
+ ##
1119
+ # @private
1120
+ #
1121
+ # GRPC transcoding helper method for the create_instance REST call
1122
+ #
1123
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::CreateInstanceRequest]
1124
+ # A request object representing the call parameters. Required.
1125
+ # @return [Array(String, [String, nil], Hash{String => String})]
1126
+ # Uri, Body, Query string parameters
1127
+ def self.transcode_create_instance_request request_pb
1128
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1129
+ .with_bindings(
1130
+ uri_method: :post,
1131
+ uri_template: "/v1beta/{parent}/instances",
1132
+ body: "instance",
1133
+ matches: [
1134
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1135
+ ]
1136
+ )
1137
+ transcoder.transcode request_pb
1138
+ end
1139
+
1140
+ ##
1141
+ # @private
1142
+ #
1143
+ # GRPC transcoding helper method for the update_instance REST call
1144
+ #
1145
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::UpdateInstanceRequest]
1146
+ # A request object representing the call parameters. Required.
1147
+ # @return [Array(String, [String, nil], Hash{String => String})]
1148
+ # Uri, Body, Query string parameters
1149
+ def self.transcode_update_instance_request request_pb
1150
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1151
+ .with_bindings(
1152
+ uri_method: :patch,
1153
+ uri_template: "/v1beta/{instance.name}",
1154
+ body: "instance",
1155
+ matches: [
1156
+ ["instance.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1157
+ ]
1158
+ )
1159
+ transcoder.transcode request_pb
1160
+ end
1161
+
1162
+ ##
1163
+ # @private
1164
+ #
1165
+ # GRPC transcoding helper method for the delete_instance REST call
1166
+ #
1167
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::DeleteInstanceRequest]
1168
+ # A request object representing the call parameters. Required.
1169
+ # @return [Array(String, [String, nil], Hash{String => String})]
1170
+ # Uri, Body, Query string parameters
1171
+ def self.transcode_delete_instance_request request_pb
1172
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1173
+ .with_bindings(
1174
+ uri_method: :delete,
1175
+ uri_template: "/v1beta/{name}",
1176
+ matches: [
1177
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1178
+ ]
1179
+ )
1180
+ transcoder.transcode request_pb
1181
+ end
1182
+
1183
+ ##
1184
+ # @private
1185
+ #
1186
+ # GRPC transcoding helper method for the get_certificate_authority REST call
1187
+ #
1188
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetCertificateAuthorityRequest]
1189
+ # A request object representing the call parameters. Required.
1190
+ # @return [Array(String, [String, nil], Hash{String => String})]
1191
+ # Uri, Body, Query string parameters
1192
+ def self.transcode_get_certificate_authority_request request_pb
1193
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1194
+ .with_bindings(
1195
+ uri_method: :get,
1196
+ uri_template: "/v1beta/{name}/certificateAuthority",
1197
+ matches: [
1198
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1199
+ ]
1200
+ )
1201
+ transcoder.transcode request_pb
1202
+ end
1203
+
356
1204
  ##
357
1205
  # @private
358
1206
  #
359
- # GRPC transcoding helper method for the list_instances REST call
1207
+ # GRPC transcoding helper method for the get_shared_regional_certificate_authority REST call
360
1208
  #
361
- # @param request_pb [::Google::Cloud::Memorystore::V1beta::ListInstancesRequest]
1209
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetSharedRegionalCertificateAuthorityRequest]
362
1210
  # A request object representing the call parameters. Required.
363
1211
  # @return [Array(String, [String, nil], Hash{String => String})]
364
1212
  # Uri, Body, Query string parameters
365
- def self.transcode_list_instances_request request_pb
1213
+ def self.transcode_get_shared_regional_certificate_authority_request request_pb
366
1214
  transcoder = Gapic::Rest::GrpcTranscoder.new
367
1215
  .with_bindings(
368
1216
  uri_method: :get,
369
- uri_template: "/v1beta/{parent}/instances",
1217
+ uri_template: "/v1beta/{name}",
1218
+ matches: [
1219
+ ["name", %r{^projects/[^/]+/locations/[^/]+/sharedRegionalCertificateAuthority/?$}, false]
1220
+ ]
1221
+ )
1222
+ transcoder.transcode request_pb
1223
+ end
1224
+
1225
+ ##
1226
+ # @private
1227
+ #
1228
+ # GRPC transcoding helper method for the reschedule_maintenance REST call
1229
+ #
1230
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::RescheduleMaintenanceRequest]
1231
+ # A request object representing the call parameters. Required.
1232
+ # @return [Array(String, [String, nil], Hash{String => String})]
1233
+ # Uri, Body, Query string parameters
1234
+ def self.transcode_reschedule_maintenance_request request_pb
1235
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1236
+ .with_bindings(
1237
+ uri_method: :post,
1238
+ uri_template: "/v1beta/{name}:rescheduleMaintenance",
1239
+ body: "*",
1240
+ matches: [
1241
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1242
+ ]
1243
+ )
1244
+ transcoder.transcode request_pb
1245
+ end
1246
+
1247
+ ##
1248
+ # @private
1249
+ #
1250
+ # GRPC transcoding helper method for the list_backup_collections REST call
1251
+ #
1252
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::ListBackupCollectionsRequest]
1253
+ # A request object representing the call parameters. Required.
1254
+ # @return [Array(String, [String, nil], Hash{String => String})]
1255
+ # Uri, Body, Query string parameters
1256
+ def self.transcode_list_backup_collections_request request_pb
1257
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1258
+ .with_bindings(
1259
+ uri_method: :get,
1260
+ uri_template: "/v1beta/{parent}/backupCollections",
370
1261
  matches: [
371
1262
  ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
372
1263
  ]
@@ -377,19 +1268,19 @@ module Google
377
1268
  ##
378
1269
  # @private
379
1270
  #
380
- # GRPC transcoding helper method for the get_instance REST call
1271
+ # GRPC transcoding helper method for the get_backup_collection REST call
381
1272
  #
382
- # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetInstanceRequest]
1273
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetBackupCollectionRequest]
383
1274
  # A request object representing the call parameters. Required.
384
1275
  # @return [Array(String, [String, nil], Hash{String => String})]
385
1276
  # Uri, Body, Query string parameters
386
- def self.transcode_get_instance_request request_pb
1277
+ def self.transcode_get_backup_collection_request request_pb
387
1278
  transcoder = Gapic::Rest::GrpcTranscoder.new
388
1279
  .with_bindings(
389
1280
  uri_method: :get,
390
1281
  uri_template: "/v1beta/{name}",
391
1282
  matches: [
392
- ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1283
+ ["name", %r{^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/?$}, false]
393
1284
  ]
394
1285
  )
395
1286
  transcoder.transcode request_pb
@@ -398,20 +1289,19 @@ module Google
398
1289
  ##
399
1290
  # @private
400
1291
  #
401
- # GRPC transcoding helper method for the create_instance REST call
1292
+ # GRPC transcoding helper method for the list_backups REST call
402
1293
  #
403
- # @param request_pb [::Google::Cloud::Memorystore::V1beta::CreateInstanceRequest]
1294
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::ListBackupsRequest]
404
1295
  # A request object representing the call parameters. Required.
405
1296
  # @return [Array(String, [String, nil], Hash{String => String})]
406
1297
  # Uri, Body, Query string parameters
407
- def self.transcode_create_instance_request request_pb
1298
+ def self.transcode_list_backups_request request_pb
408
1299
  transcoder = Gapic::Rest::GrpcTranscoder.new
409
1300
  .with_bindings(
410
- uri_method: :post,
411
- uri_template: "/v1beta/{parent}/instances",
412
- body: "instance",
1301
+ uri_method: :get,
1302
+ uri_template: "/v1beta/{parent}/backups",
413
1303
  matches: [
414
- ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1304
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/?$}, false]
415
1305
  ]
416
1306
  )
417
1307
  transcoder.transcode request_pb
@@ -420,20 +1310,19 @@ module Google
420
1310
  ##
421
1311
  # @private
422
1312
  #
423
- # GRPC transcoding helper method for the update_instance REST call
1313
+ # GRPC transcoding helper method for the get_backup REST call
424
1314
  #
425
- # @param request_pb [::Google::Cloud::Memorystore::V1beta::UpdateInstanceRequest]
1315
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetBackupRequest]
426
1316
  # A request object representing the call parameters. Required.
427
1317
  # @return [Array(String, [String, nil], Hash{String => String})]
428
1318
  # Uri, Body, Query string parameters
429
- def self.transcode_update_instance_request request_pb
1319
+ def self.transcode_get_backup_request request_pb
430
1320
  transcoder = Gapic::Rest::GrpcTranscoder.new
431
1321
  .with_bindings(
432
- uri_method: :patch,
433
- uri_template: "/v1beta/{instance.name}",
434
- body: "instance",
1322
+ uri_method: :get,
1323
+ uri_template: "/v1beta/{name}",
435
1324
  matches: [
436
- ["instance.name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1325
+ ["name", %r{^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+/?$}, false]
437
1326
  ]
438
1327
  )
439
1328
  transcoder.transcode request_pb
@@ -442,17 +1331,61 @@ module Google
442
1331
  ##
443
1332
  # @private
444
1333
  #
445
- # GRPC transcoding helper method for the delete_instance REST call
1334
+ # GRPC transcoding helper method for the delete_backup REST call
446
1335
  #
447
- # @param request_pb [::Google::Cloud::Memorystore::V1beta::DeleteInstanceRequest]
1336
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::DeleteBackupRequest]
448
1337
  # A request object representing the call parameters. Required.
449
1338
  # @return [Array(String, [String, nil], Hash{String => String})]
450
1339
  # Uri, Body, Query string parameters
451
- def self.transcode_delete_instance_request request_pb
1340
+ def self.transcode_delete_backup_request request_pb
452
1341
  transcoder = Gapic::Rest::GrpcTranscoder.new
453
1342
  .with_bindings(
454
1343
  uri_method: :delete,
455
1344
  uri_template: "/v1beta/{name}",
1345
+ matches: [
1346
+ ["name", %r{^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+/?$}, false]
1347
+ ]
1348
+ )
1349
+ transcoder.transcode request_pb
1350
+ end
1351
+
1352
+ ##
1353
+ # @private
1354
+ #
1355
+ # GRPC transcoding helper method for the export_backup REST call
1356
+ #
1357
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::ExportBackupRequest]
1358
+ # A request object representing the call parameters. Required.
1359
+ # @return [Array(String, [String, nil], Hash{String => String})]
1360
+ # Uri, Body, Query string parameters
1361
+ def self.transcode_export_backup_request request_pb
1362
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1363
+ .with_bindings(
1364
+ uri_method: :post,
1365
+ uri_template: "/v1beta/{name}:export",
1366
+ body: "*",
1367
+ matches: [
1368
+ ["name", %r{^projects/[^/]+/locations/[^/]+/backupCollections/[^/]+/backups/[^/]+/?$}, false]
1369
+ ]
1370
+ )
1371
+ transcoder.transcode request_pb
1372
+ end
1373
+
1374
+ ##
1375
+ # @private
1376
+ #
1377
+ # GRPC transcoding helper method for the backup_instance REST call
1378
+ #
1379
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::BackupInstanceRequest]
1380
+ # A request object representing the call parameters. Required.
1381
+ # @return [Array(String, [String, nil], Hash{String => String})]
1382
+ # Uri, Body, Query string parameters
1383
+ def self.transcode_backup_instance_request request_pb
1384
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1385
+ .with_bindings(
1386
+ uri_method: :post,
1387
+ uri_template: "/v1beta/{name}:backup",
1388
+ body: "*",
456
1389
  matches: [
457
1390
  ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
458
1391
  ]
@@ -463,17 +1396,18 @@ module Google
463
1396
  ##
464
1397
  # @private
465
1398
  #
466
- # GRPC transcoding helper method for the get_certificate_authority REST call
1399
+ # GRPC transcoding helper method for the start_migration REST call
467
1400
  #
468
- # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetCertificateAuthorityRequest]
1401
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::StartMigrationRequest]
469
1402
  # A request object representing the call parameters. Required.
470
1403
  # @return [Array(String, [String, nil], Hash{String => String})]
471
1404
  # Uri, Body, Query string parameters
472
- def self.transcode_get_certificate_authority_request request_pb
1405
+ def self.transcode_start_migration_request request_pb
473
1406
  transcoder = Gapic::Rest::GrpcTranscoder.new
474
1407
  .with_bindings(
475
- uri_method: :get,
476
- uri_template: "/v1beta/{name}/certificateAuthority",
1408
+ uri_method: :post,
1409
+ uri_template: "/v1beta/{name}:startMigration",
1410
+ body: "*",
477
1411
  matches: [
478
1412
  ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
479
1413
  ]
@@ -484,19 +1418,190 @@ module Google
484
1418
  ##
485
1419
  # @private
486
1420
  #
487
- # GRPC transcoding helper method for the get_shared_regional_certificate_authority REST call
1421
+ # GRPC transcoding helper method for the finish_migration REST call
488
1422
  #
489
- # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetSharedRegionalCertificateAuthorityRequest]
1423
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::FinishMigrationRequest]
490
1424
  # A request object representing the call parameters. Required.
491
1425
  # @return [Array(String, [String, nil], Hash{String => String})]
492
1426
  # Uri, Body, Query string parameters
493
- def self.transcode_get_shared_regional_certificate_authority_request request_pb
1427
+ def self.transcode_finish_migration_request request_pb
1428
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1429
+ .with_bindings(
1430
+ uri_method: :post,
1431
+ uri_template: "/v1beta/{name}:finishMigration",
1432
+ body: "*",
1433
+ matches: [
1434
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1435
+ ]
1436
+ )
1437
+ transcoder.transcode request_pb
1438
+ end
1439
+
1440
+ ##
1441
+ # @private
1442
+ #
1443
+ # GRPC transcoding helper method for the list_token_auth_users REST call
1444
+ #
1445
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::ListTokenAuthUsersRequest]
1446
+ # A request object representing the call parameters. Required.
1447
+ # @return [Array(String, [String, nil], Hash{String => String})]
1448
+ # Uri, Body, Query string parameters
1449
+ def self.transcode_list_token_auth_users_request request_pb
1450
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1451
+ .with_bindings(
1452
+ uri_method: :get,
1453
+ uri_template: "/v1beta/{parent}/tokenAuthUsers",
1454
+ matches: [
1455
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1456
+ ]
1457
+ )
1458
+ transcoder.transcode request_pb
1459
+ end
1460
+
1461
+ ##
1462
+ # @private
1463
+ #
1464
+ # GRPC transcoding helper method for the get_token_auth_user REST call
1465
+ #
1466
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetTokenAuthUserRequest]
1467
+ # A request object representing the call parameters. Required.
1468
+ # @return [Array(String, [String, nil], Hash{String => String})]
1469
+ # Uri, Body, Query string parameters
1470
+ def self.transcode_get_token_auth_user_request request_pb
494
1471
  transcoder = Gapic::Rest::GrpcTranscoder.new
495
1472
  .with_bindings(
496
1473
  uri_method: :get,
497
1474
  uri_template: "/v1beta/{name}",
498
1475
  matches: [
499
- ["name", %r{^projects/[^/]+/locations/[^/]+/sharedRegionalCertificateAuthority/?$}, false]
1476
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/tokenAuthUsers/[^/]+/?$}, false]
1477
+ ]
1478
+ )
1479
+ transcoder.transcode request_pb
1480
+ end
1481
+
1482
+ ##
1483
+ # @private
1484
+ #
1485
+ # GRPC transcoding helper method for the list_auth_tokens REST call
1486
+ #
1487
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::ListAuthTokensRequest]
1488
+ # A request object representing the call parameters. Required.
1489
+ # @return [Array(String, [String, nil], Hash{String => String})]
1490
+ # Uri, Body, Query string parameters
1491
+ def self.transcode_list_auth_tokens_request request_pb
1492
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1493
+ .with_bindings(
1494
+ uri_method: :get,
1495
+ uri_template: "/v1beta/{parent}/authTokens",
1496
+ matches: [
1497
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/tokenAuthUsers/[^/]+/?$}, false]
1498
+ ]
1499
+ )
1500
+ transcoder.transcode request_pb
1501
+ end
1502
+
1503
+ ##
1504
+ # @private
1505
+ #
1506
+ # GRPC transcoding helper method for the get_auth_token REST call
1507
+ #
1508
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::GetAuthTokenRequest]
1509
+ # A request object representing the call parameters. Required.
1510
+ # @return [Array(String, [String, nil], Hash{String => String})]
1511
+ # Uri, Body, Query string parameters
1512
+ def self.transcode_get_auth_token_request request_pb
1513
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1514
+ .with_bindings(
1515
+ uri_method: :get,
1516
+ uri_template: "/v1beta/{name}",
1517
+ matches: [
1518
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/tokenAuthUsers/[^/]+/authTokens/[^/]+/?$}, false]
1519
+ ]
1520
+ )
1521
+ transcoder.transcode request_pb
1522
+ end
1523
+
1524
+ ##
1525
+ # @private
1526
+ #
1527
+ # GRPC transcoding helper method for the add_token_auth_user REST call
1528
+ #
1529
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::AddTokenAuthUserRequest]
1530
+ # A request object representing the call parameters. Required.
1531
+ # @return [Array(String, [String, nil], Hash{String => String})]
1532
+ # Uri, Body, Query string parameters
1533
+ def self.transcode_add_token_auth_user_request request_pb
1534
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1535
+ .with_bindings(
1536
+ uri_method: :post,
1537
+ uri_template: "/v1beta/{instance}:addTokenAuthUser",
1538
+ body: "*",
1539
+ matches: [
1540
+ ["instance", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/?$}, false]
1541
+ ]
1542
+ )
1543
+ transcoder.transcode request_pb
1544
+ end
1545
+
1546
+ ##
1547
+ # @private
1548
+ #
1549
+ # GRPC transcoding helper method for the delete_token_auth_user REST call
1550
+ #
1551
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::DeleteTokenAuthUserRequest]
1552
+ # A request object representing the call parameters. Required.
1553
+ # @return [Array(String, [String, nil], Hash{String => String})]
1554
+ # Uri, Body, Query string parameters
1555
+ def self.transcode_delete_token_auth_user_request request_pb
1556
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1557
+ .with_bindings(
1558
+ uri_method: :delete,
1559
+ uri_template: "/v1beta/{name}",
1560
+ matches: [
1561
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/tokenAuthUsers/[^/]+/?$}, false]
1562
+ ]
1563
+ )
1564
+ transcoder.transcode request_pb
1565
+ end
1566
+
1567
+ ##
1568
+ # @private
1569
+ #
1570
+ # GRPC transcoding helper method for the add_auth_token REST call
1571
+ #
1572
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::AddAuthTokenRequest]
1573
+ # A request object representing the call parameters. Required.
1574
+ # @return [Array(String, [String, nil], Hash{String => String})]
1575
+ # Uri, Body, Query string parameters
1576
+ def self.transcode_add_auth_token_request request_pb
1577
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1578
+ .with_bindings(
1579
+ uri_method: :post,
1580
+ uri_template: "/v1beta/{token_auth_user}:addAuthToken",
1581
+ body: "*",
1582
+ matches: [
1583
+ ["token_auth_user", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/tokenAuthUsers/[^/]+/?$}, false]
1584
+ ]
1585
+ )
1586
+ transcoder.transcode request_pb
1587
+ end
1588
+
1589
+ ##
1590
+ # @private
1591
+ #
1592
+ # GRPC transcoding helper method for the delete_auth_token REST call
1593
+ #
1594
+ # @param request_pb [::Google::Cloud::Memorystore::V1beta::DeleteAuthTokenRequest]
1595
+ # A request object representing the call parameters. Required.
1596
+ # @return [Array(String, [String, nil], Hash{String => String})]
1597
+ # Uri, Body, Query string parameters
1598
+ def self.transcode_delete_auth_token_request request_pb
1599
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1600
+ .with_bindings(
1601
+ uri_method: :delete,
1602
+ uri_template: "/v1beta/{name}",
1603
+ matches: [
1604
+ ["name", %r{^projects/[^/]+/locations/[^/]+/instances/[^/]+/tokenAuthUsers/[^/]+/authTokens/[^/]+/?$}, false]
500
1605
  ]
501
1606
  )
502
1607
  transcoder.transcode request_pb