google-cloud-alloy_db-v1beta 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -446,7 +446,9 @@ module Google
446
446
  class Configuration
447
447
  extend ::Gapic::Config
448
448
 
449
- config_attr :endpoint, "alloydb.googleapis.com", ::String
449
+ DEFAULT_ENDPOINT = "alloydb.googleapis.com"
450
+
451
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
450
452
  config_attr :credentials, nil do |value|
451
453
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
452
454
  allowed.any? { |klass| klass === value }
@@ -567,7 +569,7 @@ module Google
567
569
 
568
570
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
569
571
  query_string_params = if query_string_params.any?
570
- query_string_params.to_h { |p| p.split("=", 2) }
572
+ query_string_params.to_h { |p| p.split "=", 2 }
571
573
  else
572
574
  {}
573
575
  end
@@ -605,7 +607,7 @@ module Google
605
607
 
606
608
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
607
609
  query_string_params = if query_string_params.any?
608
- query_string_params.to_h { |p| p.split("=", 2) }
610
+ query_string_params.to_h { |p| p.split "=", 2 }
609
611
  else
610
612
  {}
611
613
  end
@@ -643,7 +645,7 @@ module Google
643
645
 
644
646
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
645
647
  query_string_params = if query_string_params.any?
646
- query_string_params.to_h { |p| p.split("=", 2) }
648
+ query_string_params.to_h { |p| p.split "=", 2 }
647
649
  else
648
650
  {}
649
651
  end
@@ -681,7 +683,7 @@ module Google
681
683
 
682
684
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
683
685
  query_string_params = if query_string_params.any?
684
- query_string_params.to_h { |p| p.split("=", 2) }
686
+ query_string_params.to_h { |p| p.split "=", 2 }
685
687
  else
686
688
  {}
687
689
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_clusters_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_cluster_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_create_cluster_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_update_cluster_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_cluster_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_promote_cluster_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_restore_cluster_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_create_secondary_cluster_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_list_instances_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_get_instance_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  verb, uri, query_string_params, body = ServiceStub.transcode_create_instance_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
443
443
  else
444
444
  {}
445
445
  end
@@ -477,7 +477,7 @@ module Google
477
477
 
478
478
  verb, uri, query_string_params, body = ServiceStub.transcode_create_secondary_instance_request request_pb
479
479
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
480
+ query_string_params.to_h { |p| p.split "=", 2 }
481
481
  else
482
482
  {}
483
483
  end
@@ -515,7 +515,7 @@ module Google
515
515
 
516
516
  verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_instances_request request_pb
517
517
  query_string_params = if query_string_params.any?
518
- query_string_params.to_h { |p| p.split("=", 2) }
518
+ query_string_params.to_h { |p| p.split "=", 2 }
519
519
  else
520
520
  {}
521
521
  end
@@ -553,7 +553,7 @@ module Google
553
553
 
554
554
  verb, uri, query_string_params, body = ServiceStub.transcode_update_instance_request request_pb
555
555
  query_string_params = if query_string_params.any?
556
- query_string_params.to_h { |p| p.split("=", 2) }
556
+ query_string_params.to_h { |p| p.split "=", 2 }
557
557
  else
558
558
  {}
559
559
  end
@@ -591,7 +591,7 @@ module Google
591
591
 
592
592
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_instance_request request_pb
593
593
  query_string_params = if query_string_params.any?
594
- query_string_params.to_h { |p| p.split("=", 2) }
594
+ query_string_params.to_h { |p| p.split "=", 2 }
595
595
  else
596
596
  {}
597
597
  end
@@ -629,7 +629,45 @@ module Google
629
629
 
630
630
  verb, uri, query_string_params, body = ServiceStub.transcode_failover_instance_request request_pb
631
631
  query_string_params = if query_string_params.any?
632
- query_string_params.to_h { |p| p.split("=", 2) }
632
+ query_string_params.to_h { |p| p.split "=", 2 }
633
+ else
634
+ {}
635
+ end
636
+
637
+ response = @client_stub.make_http_request(
638
+ verb,
639
+ uri: uri,
640
+ body: body || "",
641
+ params: query_string_params,
642
+ options: options
643
+ )
644
+ operation = ::Gapic::Rest::TransportOperation.new response
645
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
646
+
647
+ yield result, operation if block_given?
648
+ result
649
+ end
650
+
651
+ ##
652
+ # Baseline implementation for the inject_fault REST call
653
+ #
654
+ # @param request_pb [::Google::Cloud::AlloyDB::V1beta::InjectFaultRequest]
655
+ # A request object representing the call parameters. Required.
656
+ # @param options [::Gapic::CallOptions]
657
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
658
+ #
659
+ # @yield [result, operation] Access the result along with the TransportOperation object
660
+ # @yieldparam result [::Google::Longrunning::Operation]
661
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
662
+ #
663
+ # @return [::Google::Longrunning::Operation]
664
+ # A result object deserialized from the server's reply
665
+ def inject_fault request_pb, options = nil
666
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
667
+
668
+ verb, uri, query_string_params, body = ServiceStub.transcode_inject_fault_request request_pb
669
+ query_string_params = if query_string_params.any?
670
+ query_string_params.to_h { |p| p.split "=", 2 }
633
671
  else
634
672
  {}
635
673
  end
@@ -667,7 +705,7 @@ module Google
667
705
 
668
706
  verb, uri, query_string_params, body = ServiceStub.transcode_restart_instance_request request_pb
669
707
  query_string_params = if query_string_params.any?
670
- query_string_params.to_h { |p| p.split("=", 2) }
708
+ query_string_params.to_h { |p| p.split "=", 2 }
671
709
  else
672
710
  {}
673
711
  end
@@ -705,7 +743,7 @@ module Google
705
743
 
706
744
  verb, uri, query_string_params, body = ServiceStub.transcode_list_backups_request request_pb
707
745
  query_string_params = if query_string_params.any?
708
- query_string_params.to_h { |p| p.split("=", 2) }
746
+ query_string_params.to_h { |p| p.split "=", 2 }
709
747
  else
710
748
  {}
711
749
  end
@@ -743,7 +781,7 @@ module Google
743
781
 
744
782
  verb, uri, query_string_params, body = ServiceStub.transcode_get_backup_request request_pb
745
783
  query_string_params = if query_string_params.any?
746
- query_string_params.to_h { |p| p.split("=", 2) }
784
+ query_string_params.to_h { |p| p.split "=", 2 }
747
785
  else
748
786
  {}
749
787
  end
@@ -781,7 +819,7 @@ module Google
781
819
 
782
820
  verb, uri, query_string_params, body = ServiceStub.transcode_create_backup_request request_pb
783
821
  query_string_params = if query_string_params.any?
784
- query_string_params.to_h { |p| p.split("=", 2) }
822
+ query_string_params.to_h { |p| p.split "=", 2 }
785
823
  else
786
824
  {}
787
825
  end
@@ -819,7 +857,7 @@ module Google
819
857
 
820
858
  verb, uri, query_string_params, body = ServiceStub.transcode_update_backup_request request_pb
821
859
  query_string_params = if query_string_params.any?
822
- query_string_params.to_h { |p| p.split("=", 2) }
860
+ query_string_params.to_h { |p| p.split "=", 2 }
823
861
  else
824
862
  {}
825
863
  end
@@ -857,7 +895,7 @@ module Google
857
895
 
858
896
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_backup_request request_pb
859
897
  query_string_params = if query_string_params.any?
860
- query_string_params.to_h { |p| p.split("=", 2) }
898
+ query_string_params.to_h { |p| p.split "=", 2 }
861
899
  else
862
900
  {}
863
901
  end
@@ -895,7 +933,7 @@ module Google
895
933
 
896
934
  verb, uri, query_string_params, body = ServiceStub.transcode_list_supported_database_flags_request request_pb
897
935
  query_string_params = if query_string_params.any?
898
- query_string_params.to_h { |p| p.split("=", 2) }
936
+ query_string_params.to_h { |p| p.split "=", 2 }
899
937
  else
900
938
  {}
901
939
  end
@@ -933,7 +971,7 @@ module Google
933
971
 
934
972
  verb, uri, query_string_params, body = ServiceStub.transcode_generate_client_certificate_request request_pb
935
973
  query_string_params = if query_string_params.any?
936
- query_string_params.to_h { |p| p.split("=", 2) }
974
+ query_string_params.to_h { |p| p.split "=", 2 }
937
975
  else
938
976
  {}
939
977
  end
@@ -971,7 +1009,7 @@ module Google
971
1009
 
972
1010
  verb, uri, query_string_params, body = ServiceStub.transcode_get_connection_info_request request_pb
973
1011
  query_string_params = if query_string_params.any?
974
- query_string_params.to_h { |p| p.split("=", 2) }
1012
+ query_string_params.to_h { |p| p.split "=", 2 }
975
1013
  else
976
1014
  {}
977
1015
  end
@@ -990,6 +1028,196 @@ module Google
990
1028
  result
991
1029
  end
992
1030
 
1031
+ ##
1032
+ # Baseline implementation for the list_users REST call
1033
+ #
1034
+ # @param request_pb [::Google::Cloud::AlloyDB::V1beta::ListUsersRequest]
1035
+ # A request object representing the call parameters. Required.
1036
+ # @param options [::Gapic::CallOptions]
1037
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1038
+ #
1039
+ # @yield [result, operation] Access the result along with the TransportOperation object
1040
+ # @yieldparam result [::Google::Cloud::AlloyDB::V1beta::ListUsersResponse]
1041
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1042
+ #
1043
+ # @return [::Google::Cloud::AlloyDB::V1beta::ListUsersResponse]
1044
+ # A result object deserialized from the server's reply
1045
+ def list_users request_pb, options = nil
1046
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1047
+
1048
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_users_request request_pb
1049
+ query_string_params = if query_string_params.any?
1050
+ query_string_params.to_h { |p| p.split "=", 2 }
1051
+ else
1052
+ {}
1053
+ end
1054
+
1055
+ response = @client_stub.make_http_request(
1056
+ verb,
1057
+ uri: uri,
1058
+ body: body || "",
1059
+ params: query_string_params,
1060
+ options: options
1061
+ )
1062
+ operation = ::Gapic::Rest::TransportOperation.new response
1063
+ result = ::Google::Cloud::AlloyDB::V1beta::ListUsersResponse.decode_json response.body, ignore_unknown_fields: true
1064
+
1065
+ yield result, operation if block_given?
1066
+ result
1067
+ end
1068
+
1069
+ ##
1070
+ # Baseline implementation for the get_user REST call
1071
+ #
1072
+ # @param request_pb [::Google::Cloud::AlloyDB::V1beta::GetUserRequest]
1073
+ # A request object representing the call parameters. Required.
1074
+ # @param options [::Gapic::CallOptions]
1075
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1076
+ #
1077
+ # @yield [result, operation] Access the result along with the TransportOperation object
1078
+ # @yieldparam result [::Google::Cloud::AlloyDB::V1beta::User]
1079
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1080
+ #
1081
+ # @return [::Google::Cloud::AlloyDB::V1beta::User]
1082
+ # A result object deserialized from the server's reply
1083
+ def get_user request_pb, options = nil
1084
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1085
+
1086
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_user_request request_pb
1087
+ query_string_params = if query_string_params.any?
1088
+ query_string_params.to_h { |p| p.split "=", 2 }
1089
+ else
1090
+ {}
1091
+ end
1092
+
1093
+ response = @client_stub.make_http_request(
1094
+ verb,
1095
+ uri: uri,
1096
+ body: body || "",
1097
+ params: query_string_params,
1098
+ options: options
1099
+ )
1100
+ operation = ::Gapic::Rest::TransportOperation.new response
1101
+ result = ::Google::Cloud::AlloyDB::V1beta::User.decode_json response.body, ignore_unknown_fields: true
1102
+
1103
+ yield result, operation if block_given?
1104
+ result
1105
+ end
1106
+
1107
+ ##
1108
+ # Baseline implementation for the create_user REST call
1109
+ #
1110
+ # @param request_pb [::Google::Cloud::AlloyDB::V1beta::CreateUserRequest]
1111
+ # A request object representing the call parameters. Required.
1112
+ # @param options [::Gapic::CallOptions]
1113
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1114
+ #
1115
+ # @yield [result, operation] Access the result along with the TransportOperation object
1116
+ # @yieldparam result [::Google::Cloud::AlloyDB::V1beta::User]
1117
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1118
+ #
1119
+ # @return [::Google::Cloud::AlloyDB::V1beta::User]
1120
+ # A result object deserialized from the server's reply
1121
+ def create_user request_pb, options = nil
1122
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1123
+
1124
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_user_request request_pb
1125
+ query_string_params = if query_string_params.any?
1126
+ query_string_params.to_h { |p| p.split "=", 2 }
1127
+ else
1128
+ {}
1129
+ end
1130
+
1131
+ response = @client_stub.make_http_request(
1132
+ verb,
1133
+ uri: uri,
1134
+ body: body || "",
1135
+ params: query_string_params,
1136
+ options: options
1137
+ )
1138
+ operation = ::Gapic::Rest::TransportOperation.new response
1139
+ result = ::Google::Cloud::AlloyDB::V1beta::User.decode_json response.body, ignore_unknown_fields: true
1140
+
1141
+ yield result, operation if block_given?
1142
+ result
1143
+ end
1144
+
1145
+ ##
1146
+ # Baseline implementation for the update_user REST call
1147
+ #
1148
+ # @param request_pb [::Google::Cloud::AlloyDB::V1beta::UpdateUserRequest]
1149
+ # A request object representing the call parameters. Required.
1150
+ # @param options [::Gapic::CallOptions]
1151
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1152
+ #
1153
+ # @yield [result, operation] Access the result along with the TransportOperation object
1154
+ # @yieldparam result [::Google::Cloud::AlloyDB::V1beta::User]
1155
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1156
+ #
1157
+ # @return [::Google::Cloud::AlloyDB::V1beta::User]
1158
+ # A result object deserialized from the server's reply
1159
+ def update_user request_pb, options = nil
1160
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1161
+
1162
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_user_request request_pb
1163
+ query_string_params = if query_string_params.any?
1164
+ query_string_params.to_h { |p| p.split "=", 2 }
1165
+ else
1166
+ {}
1167
+ end
1168
+
1169
+ response = @client_stub.make_http_request(
1170
+ verb,
1171
+ uri: uri,
1172
+ body: body || "",
1173
+ params: query_string_params,
1174
+ options: options
1175
+ )
1176
+ operation = ::Gapic::Rest::TransportOperation.new response
1177
+ result = ::Google::Cloud::AlloyDB::V1beta::User.decode_json response.body, ignore_unknown_fields: true
1178
+
1179
+ yield result, operation if block_given?
1180
+ result
1181
+ end
1182
+
1183
+ ##
1184
+ # Baseline implementation for the delete_user REST call
1185
+ #
1186
+ # @param request_pb [::Google::Cloud::AlloyDB::V1beta::DeleteUserRequest]
1187
+ # A request object representing the call parameters. Required.
1188
+ # @param options [::Gapic::CallOptions]
1189
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1190
+ #
1191
+ # @yield [result, operation] Access the result along with the TransportOperation object
1192
+ # @yieldparam result [::Google::Protobuf::Empty]
1193
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1194
+ #
1195
+ # @return [::Google::Protobuf::Empty]
1196
+ # A result object deserialized from the server's reply
1197
+ def delete_user request_pb, options = nil
1198
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1199
+
1200
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_user_request request_pb
1201
+ query_string_params = if query_string_params.any?
1202
+ query_string_params.to_h { |p| p.split "=", 2 }
1203
+ else
1204
+ {}
1205
+ end
1206
+
1207
+ response = @client_stub.make_http_request(
1208
+ verb,
1209
+ uri: uri,
1210
+ body: body || "",
1211
+ params: query_string_params,
1212
+ options: options
1213
+ )
1214
+ operation = ::Gapic::Rest::TransportOperation.new response
1215
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1216
+
1217
+ yield result, operation if block_given?
1218
+ result
1219
+ end
1220
+
993
1221
  ##
994
1222
  # @private
995
1223
  #
@@ -1336,6 +1564,28 @@ module Google
1336
1564
  transcoder.transcode request_pb
1337
1565
  end
1338
1566
 
1567
+ ##
1568
+ # @private
1569
+ #
1570
+ # GRPC transcoding helper method for the inject_fault REST call
1571
+ #
1572
+ # @param request_pb [::Google::Cloud::AlloyDB::V1beta::InjectFaultRequest]
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_inject_fault_request request_pb
1577
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1578
+ .with_bindings(
1579
+ uri_method: :post,
1580
+ uri_template: "/v1beta/{name}:injectFault",
1581
+ body: "*",
1582
+ matches: [
1583
+ ["name", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/instances/[^/]+/?$}, false]
1584
+ ]
1585
+ )
1586
+ transcoder.transcode request_pb
1587
+ end
1588
+
1339
1589
  ##
1340
1590
  # @private
1341
1591
  #
@@ -1528,6 +1778,113 @@ module Google
1528
1778
  )
1529
1779
  transcoder.transcode request_pb
1530
1780
  end
1781
+
1782
+ ##
1783
+ # @private
1784
+ #
1785
+ # GRPC transcoding helper method for the list_users REST call
1786
+ #
1787
+ # @param request_pb [::Google::Cloud::AlloyDB::V1beta::ListUsersRequest]
1788
+ # A request object representing the call parameters. Required.
1789
+ # @return [Array(String, [String, nil], Hash{String => String})]
1790
+ # Uri, Body, Query string parameters
1791
+ def self.transcode_list_users_request request_pb
1792
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1793
+ .with_bindings(
1794
+ uri_method: :get,
1795
+ uri_template: "/v1beta/{parent}/users",
1796
+ matches: [
1797
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/?$}, false]
1798
+ ]
1799
+ )
1800
+ transcoder.transcode request_pb
1801
+ end
1802
+
1803
+ ##
1804
+ # @private
1805
+ #
1806
+ # GRPC transcoding helper method for the get_user REST call
1807
+ #
1808
+ # @param request_pb [::Google::Cloud::AlloyDB::V1beta::GetUserRequest]
1809
+ # A request object representing the call parameters. Required.
1810
+ # @return [Array(String, [String, nil], Hash{String => String})]
1811
+ # Uri, Body, Query string parameters
1812
+ def self.transcode_get_user_request request_pb
1813
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1814
+ .with_bindings(
1815
+ uri_method: :get,
1816
+ uri_template: "/v1beta/{name}",
1817
+ matches: [
1818
+ ["name", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/users/[^/]+/?$}, false]
1819
+ ]
1820
+ )
1821
+ transcoder.transcode request_pb
1822
+ end
1823
+
1824
+ ##
1825
+ # @private
1826
+ #
1827
+ # GRPC transcoding helper method for the create_user REST call
1828
+ #
1829
+ # @param request_pb [::Google::Cloud::AlloyDB::V1beta::CreateUserRequest]
1830
+ # A request object representing the call parameters. Required.
1831
+ # @return [Array(String, [String, nil], Hash{String => String})]
1832
+ # Uri, Body, Query string parameters
1833
+ def self.transcode_create_user_request request_pb
1834
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1835
+ .with_bindings(
1836
+ uri_method: :post,
1837
+ uri_template: "/v1beta/{parent}/users",
1838
+ body: "user",
1839
+ matches: [
1840
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/?$}, false]
1841
+ ]
1842
+ )
1843
+ transcoder.transcode request_pb
1844
+ end
1845
+
1846
+ ##
1847
+ # @private
1848
+ #
1849
+ # GRPC transcoding helper method for the update_user REST call
1850
+ #
1851
+ # @param request_pb [::Google::Cloud::AlloyDB::V1beta::UpdateUserRequest]
1852
+ # A request object representing the call parameters. Required.
1853
+ # @return [Array(String, [String, nil], Hash{String => String})]
1854
+ # Uri, Body, Query string parameters
1855
+ def self.transcode_update_user_request request_pb
1856
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1857
+ .with_bindings(
1858
+ uri_method: :patch,
1859
+ uri_template: "/v1beta/{user.name}",
1860
+ body: "user",
1861
+ matches: [
1862
+ ["user.name", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/users/[^/]+/?$}, false]
1863
+ ]
1864
+ )
1865
+ transcoder.transcode request_pb
1866
+ end
1867
+
1868
+ ##
1869
+ # @private
1870
+ #
1871
+ # GRPC transcoding helper method for the delete_user REST call
1872
+ #
1873
+ # @param request_pb [::Google::Cloud::AlloyDB::V1beta::DeleteUserRequest]
1874
+ # A request object representing the call parameters. Required.
1875
+ # @return [Array(String, [String, nil], Hash{String => String})]
1876
+ # Uri, Body, Query string parameters
1877
+ def self.transcode_delete_user_request request_pb
1878
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1879
+ .with_bindings(
1880
+ uri_method: :delete,
1881
+ uri_template: "/v1beta/{name}",
1882
+ matches: [
1883
+ ["name", %r{^projects/[^/]+/locations/[^/]+/clusters/[^/]+/users/[^/]+/?$}, false]
1884
+ ]
1885
+ )
1886
+ transcoder.transcode request_pb
1887
+ end
1531
1888
  end
1532
1889
  end
1533
1890
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AlloyDB
23
23
  module V1beta
24
- VERSION = "0.1.0"
24
+ VERSION = "0.3.0"
25
25
  end
26
26
  end
27
27
  end