google-cloud-bigquery-reservation-v1 1.7.0 → 1.9.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.
- checksums.yaml +4 -4
- data/lib/google/cloud/bigquery/reservation/v1/reservation_pb.rb +10 -1
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb +723 -1
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/paths.rb +19 -0
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/rest/client.rb +674 -1
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/rest/service_stub.rb +453 -0
- data/lib/google/cloud/bigquery/reservation/v1/reservation_services_pb.rb +45 -0
- data/lib/google/cloud/bigquery/reservation/v1/version.rb +1 -1
- data/proto_docs/google/cloud/bigquery/reservation/v1/reservation.rb +217 -41
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +426 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +21 -3
@@ -954,6 +954,286 @@ module Google
|
|
954
954
|
end
|
955
955
|
end
|
956
956
|
|
957
|
+
##
|
958
|
+
# Baseline implementation for the get_iam_policy REST call
|
959
|
+
#
|
960
|
+
# @param request_pb [::Google::Iam::V1::GetIamPolicyRequest]
|
961
|
+
# A request object representing the call parameters. Required.
|
962
|
+
# @param options [::Gapic::CallOptions]
|
963
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
964
|
+
#
|
965
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
966
|
+
# @yieldparam result [::Google::Iam::V1::Policy]
|
967
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
968
|
+
#
|
969
|
+
# @return [::Google::Iam::V1::Policy]
|
970
|
+
# A result object deserialized from the server's reply
|
971
|
+
def get_iam_policy request_pb, options = nil
|
972
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
973
|
+
|
974
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
|
975
|
+
query_string_params = if query_string_params.any?
|
976
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
977
|
+
else
|
978
|
+
{}
|
979
|
+
end
|
980
|
+
|
981
|
+
response = @client_stub.make_http_request(
|
982
|
+
verb,
|
983
|
+
uri: uri,
|
984
|
+
body: body || "",
|
985
|
+
params: query_string_params,
|
986
|
+
method_name: "get_iam_policy",
|
987
|
+
options: options
|
988
|
+
)
|
989
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
990
|
+
result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
991
|
+
catch :response do
|
992
|
+
yield result, operation if block_given?
|
993
|
+
result
|
994
|
+
end
|
995
|
+
end
|
996
|
+
|
997
|
+
##
|
998
|
+
# Baseline implementation for the set_iam_policy REST call
|
999
|
+
#
|
1000
|
+
# @param request_pb [::Google::Iam::V1::SetIamPolicyRequest]
|
1001
|
+
# A request object representing the call parameters. Required.
|
1002
|
+
# @param options [::Gapic::CallOptions]
|
1003
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1004
|
+
#
|
1005
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1006
|
+
# @yieldparam result [::Google::Iam::V1::Policy]
|
1007
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1008
|
+
#
|
1009
|
+
# @return [::Google::Iam::V1::Policy]
|
1010
|
+
# A result object deserialized from the server's reply
|
1011
|
+
def set_iam_policy request_pb, options = nil
|
1012
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1013
|
+
|
1014
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
|
1015
|
+
query_string_params = if query_string_params.any?
|
1016
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1017
|
+
else
|
1018
|
+
{}
|
1019
|
+
end
|
1020
|
+
|
1021
|
+
response = @client_stub.make_http_request(
|
1022
|
+
verb,
|
1023
|
+
uri: uri,
|
1024
|
+
body: body || "",
|
1025
|
+
params: query_string_params,
|
1026
|
+
method_name: "set_iam_policy",
|
1027
|
+
options: options
|
1028
|
+
)
|
1029
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1030
|
+
result = ::Google::Iam::V1::Policy.decode_json response.body, ignore_unknown_fields: true
|
1031
|
+
catch :response do
|
1032
|
+
yield result, operation if block_given?
|
1033
|
+
result
|
1034
|
+
end
|
1035
|
+
end
|
1036
|
+
|
1037
|
+
##
|
1038
|
+
# Baseline implementation for the test_iam_permissions REST call
|
1039
|
+
#
|
1040
|
+
# @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest]
|
1041
|
+
# A request object representing the call parameters. Required.
|
1042
|
+
# @param options [::Gapic::CallOptions]
|
1043
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1044
|
+
#
|
1045
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1046
|
+
# @yieldparam result [::Google::Iam::V1::TestIamPermissionsResponse]
|
1047
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1048
|
+
#
|
1049
|
+
# @return [::Google::Iam::V1::TestIamPermissionsResponse]
|
1050
|
+
# A result object deserialized from the server's reply
|
1051
|
+
def test_iam_permissions request_pb, options = nil
|
1052
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1053
|
+
|
1054
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
1055
|
+
query_string_params = if query_string_params.any?
|
1056
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1057
|
+
else
|
1058
|
+
{}
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
response = @client_stub.make_http_request(
|
1062
|
+
verb,
|
1063
|
+
uri: uri,
|
1064
|
+
body: body || "",
|
1065
|
+
params: query_string_params,
|
1066
|
+
method_name: "test_iam_permissions",
|
1067
|
+
options: options
|
1068
|
+
)
|
1069
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1070
|
+
result = ::Google::Iam::V1::TestIamPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
1071
|
+
catch :response do
|
1072
|
+
yield result, operation if block_given?
|
1073
|
+
result
|
1074
|
+
end
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
##
|
1078
|
+
# Baseline implementation for the create_reservation_group REST call
|
1079
|
+
#
|
1080
|
+
# @param request_pb [::Google::Cloud::Bigquery::Reservation::V1::CreateReservationGroupRequest]
|
1081
|
+
# A request object representing the call parameters. Required.
|
1082
|
+
# @param options [::Gapic::CallOptions]
|
1083
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1084
|
+
#
|
1085
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1086
|
+
# @yieldparam result [::Google::Cloud::Bigquery::Reservation::V1::ReservationGroup]
|
1087
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1088
|
+
#
|
1089
|
+
# @return [::Google::Cloud::Bigquery::Reservation::V1::ReservationGroup]
|
1090
|
+
# A result object deserialized from the server's reply
|
1091
|
+
def create_reservation_group request_pb, options = nil
|
1092
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1093
|
+
|
1094
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_reservation_group_request request_pb
|
1095
|
+
query_string_params = if query_string_params.any?
|
1096
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1097
|
+
else
|
1098
|
+
{}
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
response = @client_stub.make_http_request(
|
1102
|
+
verb,
|
1103
|
+
uri: uri,
|
1104
|
+
body: body || "",
|
1105
|
+
params: query_string_params,
|
1106
|
+
method_name: "create_reservation_group",
|
1107
|
+
options: options
|
1108
|
+
)
|
1109
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1110
|
+
result = ::Google::Cloud::Bigquery::Reservation::V1::ReservationGroup.decode_json response.body, ignore_unknown_fields: true
|
1111
|
+
catch :response do
|
1112
|
+
yield result, operation if block_given?
|
1113
|
+
result
|
1114
|
+
end
|
1115
|
+
end
|
1116
|
+
|
1117
|
+
##
|
1118
|
+
# Baseline implementation for the get_reservation_group REST call
|
1119
|
+
#
|
1120
|
+
# @param request_pb [::Google::Cloud::Bigquery::Reservation::V1::GetReservationGroupRequest]
|
1121
|
+
# A request object representing the call parameters. Required.
|
1122
|
+
# @param options [::Gapic::CallOptions]
|
1123
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1124
|
+
#
|
1125
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1126
|
+
# @yieldparam result [::Google::Cloud::Bigquery::Reservation::V1::ReservationGroup]
|
1127
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1128
|
+
#
|
1129
|
+
# @return [::Google::Cloud::Bigquery::Reservation::V1::ReservationGroup]
|
1130
|
+
# A result object deserialized from the server's reply
|
1131
|
+
def get_reservation_group request_pb, options = nil
|
1132
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1133
|
+
|
1134
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_reservation_group_request request_pb
|
1135
|
+
query_string_params = if query_string_params.any?
|
1136
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1137
|
+
else
|
1138
|
+
{}
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
response = @client_stub.make_http_request(
|
1142
|
+
verb,
|
1143
|
+
uri: uri,
|
1144
|
+
body: body || "",
|
1145
|
+
params: query_string_params,
|
1146
|
+
method_name: "get_reservation_group",
|
1147
|
+
options: options
|
1148
|
+
)
|
1149
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1150
|
+
result = ::Google::Cloud::Bigquery::Reservation::V1::ReservationGroup.decode_json response.body, ignore_unknown_fields: true
|
1151
|
+
catch :response do
|
1152
|
+
yield result, operation if block_given?
|
1153
|
+
result
|
1154
|
+
end
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
##
|
1158
|
+
# Baseline implementation for the delete_reservation_group REST call
|
1159
|
+
#
|
1160
|
+
# @param request_pb [::Google::Cloud::Bigquery::Reservation::V1::DeleteReservationGroupRequest]
|
1161
|
+
# A request object representing the call parameters. Required.
|
1162
|
+
# @param options [::Gapic::CallOptions]
|
1163
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1164
|
+
#
|
1165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1166
|
+
# @yieldparam result [::Google::Protobuf::Empty]
|
1167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1168
|
+
#
|
1169
|
+
# @return [::Google::Protobuf::Empty]
|
1170
|
+
# A result object deserialized from the server's reply
|
1171
|
+
def delete_reservation_group request_pb, options = nil
|
1172
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1173
|
+
|
1174
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_reservation_group_request request_pb
|
1175
|
+
query_string_params = if query_string_params.any?
|
1176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1177
|
+
else
|
1178
|
+
{}
|
1179
|
+
end
|
1180
|
+
|
1181
|
+
response = @client_stub.make_http_request(
|
1182
|
+
verb,
|
1183
|
+
uri: uri,
|
1184
|
+
body: body || "",
|
1185
|
+
params: query_string_params,
|
1186
|
+
method_name: "delete_reservation_group",
|
1187
|
+
options: options
|
1188
|
+
)
|
1189
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1190
|
+
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
1191
|
+
catch :response do
|
1192
|
+
yield result, operation if block_given?
|
1193
|
+
result
|
1194
|
+
end
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
##
|
1198
|
+
# Baseline implementation for the list_reservation_groups REST call
|
1199
|
+
#
|
1200
|
+
# @param request_pb [::Google::Cloud::Bigquery::Reservation::V1::ListReservationGroupsRequest]
|
1201
|
+
# A request object representing the call parameters. Required.
|
1202
|
+
# @param options [::Gapic::CallOptions]
|
1203
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1204
|
+
#
|
1205
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1206
|
+
# @yieldparam result [::Google::Cloud::Bigquery::Reservation::V1::ListReservationGroupsResponse]
|
1207
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1208
|
+
#
|
1209
|
+
# @return [::Google::Cloud::Bigquery::Reservation::V1::ListReservationGroupsResponse]
|
1210
|
+
# A result object deserialized from the server's reply
|
1211
|
+
def list_reservation_groups request_pb, options = nil
|
1212
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1213
|
+
|
1214
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_list_reservation_groups_request request_pb
|
1215
|
+
query_string_params = if query_string_params.any?
|
1216
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1217
|
+
else
|
1218
|
+
{}
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
response = @client_stub.make_http_request(
|
1222
|
+
verb,
|
1223
|
+
uri: uri,
|
1224
|
+
body: body || "",
|
1225
|
+
params: query_string_params,
|
1226
|
+
method_name: "list_reservation_groups",
|
1227
|
+
options: options
|
1228
|
+
)
|
1229
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1230
|
+
result = ::Google::Cloud::Bigquery::Reservation::V1::ListReservationGroupsResponse.decode_json response.body, ignore_unknown_fields: true
|
1231
|
+
catch :response do
|
1232
|
+
yield result, operation if block_given?
|
1233
|
+
result
|
1234
|
+
end
|
1235
|
+
end
|
1236
|
+
|
957
1237
|
##
|
958
1238
|
# @private
|
959
1239
|
#
|
@@ -1426,6 +1706,179 @@ module Google
|
|
1426
1706
|
)
|
1427
1707
|
transcoder.transcode request_pb
|
1428
1708
|
end
|
1709
|
+
|
1710
|
+
##
|
1711
|
+
# @private
|
1712
|
+
#
|
1713
|
+
# GRPC transcoding helper method for the get_iam_policy REST call
|
1714
|
+
#
|
1715
|
+
# @param request_pb [::Google::Iam::V1::GetIamPolicyRequest]
|
1716
|
+
# A request object representing the call parameters. Required.
|
1717
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1718
|
+
# Uri, Body, Query string parameters
|
1719
|
+
def self.transcode_get_iam_policy_request request_pb
|
1720
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1721
|
+
.with_bindings(
|
1722
|
+
uri_method: :get,
|
1723
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
1724
|
+
matches: [
|
1725
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/reservations/[^/]+/?$}, false]
|
1726
|
+
]
|
1727
|
+
)
|
1728
|
+
.with_bindings(
|
1729
|
+
uri_method: :get,
|
1730
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
1731
|
+
matches: [
|
1732
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/reservations/[^/]+/assignments/[^/]+/?$}, false]
|
1733
|
+
]
|
1734
|
+
)
|
1735
|
+
transcoder.transcode request_pb
|
1736
|
+
end
|
1737
|
+
|
1738
|
+
##
|
1739
|
+
# @private
|
1740
|
+
#
|
1741
|
+
# GRPC transcoding helper method for the set_iam_policy REST call
|
1742
|
+
#
|
1743
|
+
# @param request_pb [::Google::Iam::V1::SetIamPolicyRequest]
|
1744
|
+
# A request object representing the call parameters. Required.
|
1745
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1746
|
+
# Uri, Body, Query string parameters
|
1747
|
+
def self.transcode_set_iam_policy_request request_pb
|
1748
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1749
|
+
.with_bindings(
|
1750
|
+
uri_method: :post,
|
1751
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
1752
|
+
body: "*",
|
1753
|
+
matches: [
|
1754
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/reservations/[^/]+/?$}, false]
|
1755
|
+
]
|
1756
|
+
)
|
1757
|
+
.with_bindings(
|
1758
|
+
uri_method: :post,
|
1759
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
1760
|
+
body: "*",
|
1761
|
+
matches: [
|
1762
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/reservations/[^/]+/assignments/[^/]+/?$}, false]
|
1763
|
+
]
|
1764
|
+
)
|
1765
|
+
transcoder.transcode request_pb
|
1766
|
+
end
|
1767
|
+
|
1768
|
+
##
|
1769
|
+
# @private
|
1770
|
+
#
|
1771
|
+
# GRPC transcoding helper method for the test_iam_permissions REST call
|
1772
|
+
#
|
1773
|
+
# @param request_pb [::Google::Iam::V1::TestIamPermissionsRequest]
|
1774
|
+
# A request object representing the call parameters. Required.
|
1775
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1776
|
+
# Uri, Body, Query string parameters
|
1777
|
+
def self.transcode_test_iam_permissions_request request_pb
|
1778
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1779
|
+
.with_bindings(
|
1780
|
+
uri_method: :post,
|
1781
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
1782
|
+
body: "*",
|
1783
|
+
matches: [
|
1784
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/reservations/[^/]+/?$}, false]
|
1785
|
+
]
|
1786
|
+
)
|
1787
|
+
.with_bindings(
|
1788
|
+
uri_method: :post,
|
1789
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
1790
|
+
body: "*",
|
1791
|
+
matches: [
|
1792
|
+
["resource", %r{^projects/[^/]+/locations/[^/]+/reservations/[^/]+/assignments/[^/]+/?$}, false]
|
1793
|
+
]
|
1794
|
+
)
|
1795
|
+
transcoder.transcode request_pb
|
1796
|
+
end
|
1797
|
+
|
1798
|
+
##
|
1799
|
+
# @private
|
1800
|
+
#
|
1801
|
+
# GRPC transcoding helper method for the create_reservation_group REST call
|
1802
|
+
#
|
1803
|
+
# @param request_pb [::Google::Cloud::Bigquery::Reservation::V1::CreateReservationGroupRequest]
|
1804
|
+
# A request object representing the call parameters. Required.
|
1805
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1806
|
+
# Uri, Body, Query string parameters
|
1807
|
+
def self.transcode_create_reservation_group_request request_pb
|
1808
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1809
|
+
.with_bindings(
|
1810
|
+
uri_method: :post,
|
1811
|
+
uri_template: "/v1/{parent}/reservationGroups",
|
1812
|
+
body: "reservation_group",
|
1813
|
+
matches: [
|
1814
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1815
|
+
]
|
1816
|
+
)
|
1817
|
+
transcoder.transcode request_pb
|
1818
|
+
end
|
1819
|
+
|
1820
|
+
##
|
1821
|
+
# @private
|
1822
|
+
#
|
1823
|
+
# GRPC transcoding helper method for the get_reservation_group REST call
|
1824
|
+
#
|
1825
|
+
# @param request_pb [::Google::Cloud::Bigquery::Reservation::V1::GetReservationGroupRequest]
|
1826
|
+
# A request object representing the call parameters. Required.
|
1827
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1828
|
+
# Uri, Body, Query string parameters
|
1829
|
+
def self.transcode_get_reservation_group_request request_pb
|
1830
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1831
|
+
.with_bindings(
|
1832
|
+
uri_method: :get,
|
1833
|
+
uri_template: "/v1/{name}",
|
1834
|
+
matches: [
|
1835
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/reservationGroups/[^/]+/?$}, false]
|
1836
|
+
]
|
1837
|
+
)
|
1838
|
+
transcoder.transcode request_pb
|
1839
|
+
end
|
1840
|
+
|
1841
|
+
##
|
1842
|
+
# @private
|
1843
|
+
#
|
1844
|
+
# GRPC transcoding helper method for the delete_reservation_group REST call
|
1845
|
+
#
|
1846
|
+
# @param request_pb [::Google::Cloud::Bigquery::Reservation::V1::DeleteReservationGroupRequest]
|
1847
|
+
# A request object representing the call parameters. Required.
|
1848
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1849
|
+
# Uri, Body, Query string parameters
|
1850
|
+
def self.transcode_delete_reservation_group_request request_pb
|
1851
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1852
|
+
.with_bindings(
|
1853
|
+
uri_method: :delete,
|
1854
|
+
uri_template: "/v1/{name}",
|
1855
|
+
matches: [
|
1856
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/reservationGroups/[^/]+/?$}, false]
|
1857
|
+
]
|
1858
|
+
)
|
1859
|
+
transcoder.transcode request_pb
|
1860
|
+
end
|
1861
|
+
|
1862
|
+
##
|
1863
|
+
# @private
|
1864
|
+
#
|
1865
|
+
# GRPC transcoding helper method for the list_reservation_groups REST call
|
1866
|
+
#
|
1867
|
+
# @param request_pb [::Google::Cloud::Bigquery::Reservation::V1::ListReservationGroupsRequest]
|
1868
|
+
# A request object representing the call parameters. Required.
|
1869
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1870
|
+
# Uri, Body, Query string parameters
|
1871
|
+
def self.transcode_list_reservation_groups_request request_pb
|
1872
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1873
|
+
.with_bindings(
|
1874
|
+
uri_method: :get,
|
1875
|
+
uri_template: "/v1/{parent}/reservationGroups",
|
1876
|
+
matches: [
|
1877
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
1878
|
+
]
|
1879
|
+
)
|
1880
|
+
transcoder.transcode request_pb
|
1881
|
+
end
|
1429
1882
|
end
|
1430
1883
|
end
|
1431
1884
|
end
|
@@ -241,6 +241,51 @@ module Google
|
|
241
241
|
# greater than 0. In order to release BI capacity reservation size
|
242
242
|
# must be set to 0.
|
243
243
|
rpc :UpdateBiReservation, ::Google::Cloud::Bigquery::Reservation::V1::UpdateBiReservationRequest, ::Google::Cloud::Bigquery::Reservation::V1::BiReservation
|
244
|
+
# Gets the access control policy for a resource.
|
245
|
+
# May return:
|
246
|
+
#
|
247
|
+
# * A`NOT_FOUND` error if the resource doesn't exist or you don't have the
|
248
|
+
# permission to view it.
|
249
|
+
# * An empty policy if the resource exists but doesn't have a set policy.
|
250
|
+
#
|
251
|
+
# Supported resources are:
|
252
|
+
# - Reservations
|
253
|
+
# - ReservationAssignments
|
254
|
+
#
|
255
|
+
# To call this method, you must have the following Google IAM permissions:
|
256
|
+
#
|
257
|
+
# - `bigqueryreservation.reservations.getIamPolicy` to get policies on
|
258
|
+
# reservations.
|
259
|
+
rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
|
260
|
+
# Sets an access control policy for a resource. Replaces any existing
|
261
|
+
# policy.
|
262
|
+
#
|
263
|
+
# Supported resources are:
|
264
|
+
# - Reservations
|
265
|
+
#
|
266
|
+
# To call this method, you must have the following Google IAM permissions:
|
267
|
+
#
|
268
|
+
# - `bigqueryreservation.reservations.setIamPolicy` to set policies on
|
269
|
+
# reservations.
|
270
|
+
rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
|
271
|
+
# Gets your permissions on a resource. Returns an empty set of permissions if
|
272
|
+
# the resource doesn't exist.
|
273
|
+
#
|
274
|
+
# Supported resources are:
|
275
|
+
# - Reservations
|
276
|
+
#
|
277
|
+
# No Google IAM permissions are required to call this method.
|
278
|
+
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
279
|
+
# Creates a new reservation group.
|
280
|
+
rpc :CreateReservationGroup, ::Google::Cloud::Bigquery::Reservation::V1::CreateReservationGroupRequest, ::Google::Cloud::Bigquery::Reservation::V1::ReservationGroup
|
281
|
+
# Returns information about the reservation group.
|
282
|
+
rpc :GetReservationGroup, ::Google::Cloud::Bigquery::Reservation::V1::GetReservationGroupRequest, ::Google::Cloud::Bigquery::Reservation::V1::ReservationGroup
|
283
|
+
# Deletes a reservation.
|
284
|
+
# Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has
|
285
|
+
# assignments.
|
286
|
+
rpc :DeleteReservationGroup, ::Google::Cloud::Bigquery::Reservation::V1::DeleteReservationGroupRequest, ::Google::Protobuf::Empty
|
287
|
+
# Lists all the reservation groups for the project in the specified location.
|
288
|
+
rpc :ListReservationGroups, ::Google::Cloud::Bigquery::Reservation::V1::ListReservationGroupsRequest, ::Google::Cloud::Bigquery::Reservation::V1::ListReservationGroupsResponse
|
244
289
|
end
|
245
290
|
|
246
291
|
Stub = Service.rpc_stub_class
|