google-cloud-sql-v1beta4 0.5.0 → 0.7.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/README.md +4 -6
- data/lib/google/cloud/sql/v1beta4/cloud_sql_pb.rb +12 -1
- data/lib/google/cloud/sql/v1beta4/cloud_sql_resources_pb.rb +16 -1
- data/lib/google/cloud/sql/v1beta4/cloud_sql_services_pb.rb +27 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_users_services_pb.rb +1 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_workload_captures_pb.rb +2 -1
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/paths.rb +17 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_flags_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/client.rb +411 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/paths.rb +17 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest/client.rb +371 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest/service_stub.rb +250 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_operations_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/client.rb +317 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest/client.rb +281 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest/service_stub.rb +189 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_ssl_certs_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_users_service.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/version.rb +1 -1
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql.rb +227 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_resources.rb +325 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_workload_captures.rb +16 -0
- metadata +1 -1
|
@@ -953,6 +953,86 @@ module Google
|
|
|
953
953
|
end
|
|
954
954
|
end
|
|
955
955
|
|
|
956
|
+
##
|
|
957
|
+
# Baseline implementation for the start REST call
|
|
958
|
+
#
|
|
959
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::SqlInstancesStartRequest]
|
|
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::Cloud::Sql::V1beta4::Operation]
|
|
966
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
967
|
+
#
|
|
968
|
+
# @return [::Google::Cloud::Sql::V1beta4::Operation]
|
|
969
|
+
# A result object deserialized from the server's reply
|
|
970
|
+
def start 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_start_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: "start",
|
|
986
|
+
options: options
|
|
987
|
+
)
|
|
988
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
989
|
+
result = ::Google::Cloud::Sql::V1beta4::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 stop REST call
|
|
998
|
+
#
|
|
999
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::SqlInstancesStopRequest]
|
|
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::Cloud::Sql::V1beta4::Operation]
|
|
1006
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1007
|
+
#
|
|
1008
|
+
# @return [::Google::Cloud::Sql::V1beta4::Operation]
|
|
1009
|
+
# A result object deserialized from the server's reply
|
|
1010
|
+
def stop 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_stop_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: "stop",
|
|
1026
|
+
options: options
|
|
1027
|
+
)
|
|
1028
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1029
|
+
result = ::Google::Cloud::Sql::V1beta4::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
|
+
|
|
956
1036
|
##
|
|
957
1037
|
# Baseline implementation for the restore_backup REST call
|
|
958
1038
|
#
|
|
@@ -1593,6 +1673,46 @@ module Google
|
|
|
1593
1673
|
end
|
|
1594
1674
|
end
|
|
1595
1675
|
|
|
1676
|
+
##
|
|
1677
|
+
# Baseline implementation for the execute_sql_read_only REST call
|
|
1678
|
+
#
|
|
1679
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlReadOnlyRequest]
|
|
1680
|
+
# A request object representing the call parameters. Required.
|
|
1681
|
+
# @param options [::Gapic::CallOptions]
|
|
1682
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1683
|
+
#
|
|
1684
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1685
|
+
# @yieldparam result [::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlReadOnlyResponse]
|
|
1686
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1687
|
+
#
|
|
1688
|
+
# @return [::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlReadOnlyResponse]
|
|
1689
|
+
# A result object deserialized from the server's reply
|
|
1690
|
+
def execute_sql_read_only request_pb, options = nil
|
|
1691
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1692
|
+
|
|
1693
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_execute_sql_read_only_request request_pb
|
|
1694
|
+
query_string_params = if query_string_params.any?
|
|
1695
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1696
|
+
else
|
|
1697
|
+
{}
|
|
1698
|
+
end
|
|
1699
|
+
|
|
1700
|
+
response = @client_stub.make_http_request(
|
|
1701
|
+
verb,
|
|
1702
|
+
uri: uri,
|
|
1703
|
+
body: body || "",
|
|
1704
|
+
params: query_string_params,
|
|
1705
|
+
method_name: "execute_sql_read_only",
|
|
1706
|
+
options: options
|
|
1707
|
+
)
|
|
1708
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1709
|
+
result = ::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlReadOnlyResponse.decode_json response.body, ignore_unknown_fields: true
|
|
1710
|
+
catch :response do
|
|
1711
|
+
yield result, operation if block_given?
|
|
1712
|
+
result
|
|
1713
|
+
end
|
|
1714
|
+
end
|
|
1715
|
+
|
|
1596
1716
|
##
|
|
1597
1717
|
# Baseline implementation for the execute_sql REST call
|
|
1598
1718
|
#
|
|
@@ -1793,6 +1913,46 @@ module Google
|
|
|
1793
1913
|
end
|
|
1794
1914
|
end
|
|
1795
1915
|
|
|
1916
|
+
##
|
|
1917
|
+
# Baseline implementation for the reconcile_networking REST call
|
|
1918
|
+
#
|
|
1919
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::SqlInstancesReconcileNetworkingRequest]
|
|
1920
|
+
# A request object representing the call parameters. Required.
|
|
1921
|
+
# @param options [::Gapic::CallOptions]
|
|
1922
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1923
|
+
#
|
|
1924
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1925
|
+
# @yieldparam result [::Google::Cloud::Sql::V1beta4::Operation]
|
|
1926
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1927
|
+
#
|
|
1928
|
+
# @return [::Google::Cloud::Sql::V1beta4::Operation]
|
|
1929
|
+
# A result object deserialized from the server's reply
|
|
1930
|
+
def reconcile_networking request_pb, options = nil
|
|
1931
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
1932
|
+
|
|
1933
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_reconcile_networking_request request_pb
|
|
1934
|
+
query_string_params = if query_string_params.any?
|
|
1935
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
1936
|
+
else
|
|
1937
|
+
{}
|
|
1938
|
+
end
|
|
1939
|
+
|
|
1940
|
+
response = @client_stub.make_http_request(
|
|
1941
|
+
verb,
|
|
1942
|
+
uri: uri,
|
|
1943
|
+
body: body || "",
|
|
1944
|
+
params: query_string_params,
|
|
1945
|
+
method_name: "reconcile_networking",
|
|
1946
|
+
options: options
|
|
1947
|
+
)
|
|
1948
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
1949
|
+
result = ::Google::Cloud::Sql::V1beta4::Operation.decode_json response.body, ignore_unknown_fields: true
|
|
1950
|
+
catch :response do
|
|
1951
|
+
yield result, operation if block_given?
|
|
1952
|
+
result
|
|
1953
|
+
end
|
|
1954
|
+
end
|
|
1955
|
+
|
|
1796
1956
|
##
|
|
1797
1957
|
# @private
|
|
1798
1958
|
#
|
|
@@ -2284,6 +2444,50 @@ module Google
|
|
|
2284
2444
|
transcoder.transcode request_pb
|
|
2285
2445
|
end
|
|
2286
2446
|
|
|
2447
|
+
##
|
|
2448
|
+
# @private
|
|
2449
|
+
#
|
|
2450
|
+
# GRPC transcoding helper method for the start REST call
|
|
2451
|
+
#
|
|
2452
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::SqlInstancesStartRequest]
|
|
2453
|
+
# A request object representing the call parameters. Required.
|
|
2454
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2455
|
+
# Uri, Body, Query string parameters
|
|
2456
|
+
def self.transcode_start_request request_pb
|
|
2457
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2458
|
+
.with_bindings(
|
|
2459
|
+
uri_method: :post,
|
|
2460
|
+
uri_template: "/sql/v1beta4/projects/{project}/instances/{instance}:start",
|
|
2461
|
+
matches: [
|
|
2462
|
+
["project", %r{^[^/]+/?$}, false],
|
|
2463
|
+
["instance", %r{^[^/]+/?$}, false]
|
|
2464
|
+
]
|
|
2465
|
+
)
|
|
2466
|
+
transcoder.transcode request_pb
|
|
2467
|
+
end
|
|
2468
|
+
|
|
2469
|
+
##
|
|
2470
|
+
# @private
|
|
2471
|
+
#
|
|
2472
|
+
# GRPC transcoding helper method for the stop REST call
|
|
2473
|
+
#
|
|
2474
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::SqlInstancesStopRequest]
|
|
2475
|
+
# A request object representing the call parameters. Required.
|
|
2476
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2477
|
+
# Uri, Body, Query string parameters
|
|
2478
|
+
def self.transcode_stop_request request_pb
|
|
2479
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2480
|
+
.with_bindings(
|
|
2481
|
+
uri_method: :post,
|
|
2482
|
+
uri_template: "/sql/v1beta4/projects/{project}/instances/{instance}:stop",
|
|
2483
|
+
matches: [
|
|
2484
|
+
["project", %r{^[^/]+/?$}, false],
|
|
2485
|
+
["instance", %r{^[^/]+/?$}, false]
|
|
2486
|
+
]
|
|
2487
|
+
)
|
|
2488
|
+
transcoder.transcode request_pb
|
|
2489
|
+
end
|
|
2490
|
+
|
|
2287
2491
|
##
|
|
2288
2492
|
# @private
|
|
2289
2493
|
#
|
|
@@ -2648,6 +2852,29 @@ module Google
|
|
|
2648
2852
|
transcoder.transcode request_pb
|
|
2649
2853
|
end
|
|
2650
2854
|
|
|
2855
|
+
##
|
|
2856
|
+
# @private
|
|
2857
|
+
#
|
|
2858
|
+
# GRPC transcoding helper method for the execute_sql_read_only REST call
|
|
2859
|
+
#
|
|
2860
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::SqlInstancesExecuteSqlReadOnlyRequest]
|
|
2861
|
+
# A request object representing the call parameters. Required.
|
|
2862
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2863
|
+
# Uri, Body, Query string parameters
|
|
2864
|
+
def self.transcode_execute_sql_read_only_request request_pb
|
|
2865
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
2866
|
+
.with_bindings(
|
|
2867
|
+
uri_method: :post,
|
|
2868
|
+
uri_template: "/sql/v1beta4/projects/{project}/instances/{instance}/executeSqlReadOnly",
|
|
2869
|
+
body: "body",
|
|
2870
|
+
matches: [
|
|
2871
|
+
["project", %r{^[^/]+/?$}, false],
|
|
2872
|
+
["instance", %r{^[^/]+/?$}, false]
|
|
2873
|
+
]
|
|
2874
|
+
)
|
|
2875
|
+
transcoder.transcode request_pb
|
|
2876
|
+
end
|
|
2877
|
+
|
|
2651
2878
|
##
|
|
2652
2879
|
# @private
|
|
2653
2880
|
#
|
|
@@ -2760,6 +2987,29 @@ module Google
|
|
|
2760
2987
|
)
|
|
2761
2988
|
transcoder.transcode request_pb
|
|
2762
2989
|
end
|
|
2990
|
+
|
|
2991
|
+
##
|
|
2992
|
+
# @private
|
|
2993
|
+
#
|
|
2994
|
+
# GRPC transcoding helper method for the reconcile_networking REST call
|
|
2995
|
+
#
|
|
2996
|
+
# @param request_pb [::Google::Cloud::Sql::V1beta4::SqlInstancesReconcileNetworkingRequest]
|
|
2997
|
+
# A request object representing the call parameters. Required.
|
|
2998
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
2999
|
+
# Uri, Body, Query string parameters
|
|
3000
|
+
def self.transcode_reconcile_networking_request request_pb
|
|
3001
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
3002
|
+
.with_bindings(
|
|
3003
|
+
uri_method: :post,
|
|
3004
|
+
uri_template: "/sql/v1beta4/projects/{project}/instances/{instance}:reconcileNetworking",
|
|
3005
|
+
body: "*",
|
|
3006
|
+
matches: [
|
|
3007
|
+
["project", %r{^[^/]+/?$}, false],
|
|
3008
|
+
["instance", %r{^[^/]+/?$}, false]
|
|
3009
|
+
]
|
|
3010
|
+
)
|
|
3011
|
+
transcoder.transcode request_pb
|
|
3012
|
+
end
|
|
2763
3013
|
end
|
|
2764
3014
|
end
|
|
2765
3015
|
end
|