google-cloud-sql-v1beta4 0.1.1 → 0.3.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 +1 -1
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/client.rb +906 -0
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/paths.rb +69 -0
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest/client.rb +828 -0
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest/service_stub.rb +388 -0
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest.rb +52 -0
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service.rb +55 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments_pb.rb +47 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments_services_pb.rb +65 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_pb.rb +2 -1
- data/lib/google/cloud/sql/v1beta4/cloud_sql_resources_pb.rb +10 -1
- data/lib/google/cloud/sql/v1beta4/cloud_sql_users_pb.rb +1 -1
- data/lib/google/cloud/sql/v1beta4/cloud_sql_workload_captures_pb.rb +35 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_workload_captures_services_pb.rb +60 -0
- data/lib/google/cloud/sql/v1beta4/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/paths.rb +77 -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 +1 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service.rb +1 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/paths.rb +63 -0
- data/lib/google/cloud/sql/v1beta4/sql_databases_service/client.rb +18 -6
- data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest/client.rb +18 -6
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/client.rb +131 -44
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/paths.rb +63 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest/client.rb +126 -42
- data/lib/google/cloud/sql/v1beta4/sql_users_service/client.rb +15 -5
- data/lib/google/cloud/sql/v1beta4/sql_users_service/rest/client.rb +15 -5
- data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/client.rb +905 -0
- data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest/client.rb +809 -0
- data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest/service_stub.rb +396 -0
- data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service.rb +54 -0
- data/lib/google/cloud/sql/v1beta4/version.rb +1 -1
- data/lib/google/cloud/sql/v1beta4.rb +2 -0
- data/proto_docs/google/api/routing.rb +463 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql.rb +142 -1
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments.rb +428 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_resources.rb +214 -2
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_users.rb +19 -4
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_workload_captures.rb +169 -0
- data/proto_docs/google/protobuf/timestamp.rb +7 -6
- metadata +24 -3
|
@@ -12,7 +12,7 @@ require 'google/protobuf/duration_pb'
|
|
|
12
12
|
require 'google/protobuf/timestamp_pb'
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
descriptor_data = "\n.google/cloud/sql/v1beta4/cloud_sql_users.proto\x12\x18google.cloud.sql.v1beta4\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x32google/cloud/sql/v1beta4/cloud_sql_resources.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"
|
|
15
|
+
descriptor_data = "\n.google/cloud/sql/v1beta4/cloud_sql_users.proto\x12\x18google.cloud.sql.v1beta4\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x32google/cloud/sql/v1beta4/cloud_sql_resources.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"m\n\x15SqlUsersDeleteRequest\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x10\n\x08instance\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x0f\n\x07project\x18\x04 \x01(\t\x12\x15\n\x08location\x18\x05 \x01(\tB\x03\xe0\x41\x01\"j\n\x12SqlUsersGetRequest\x12\x10\n\x08instance\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0f\n\x07project\x18\x03 \x01(\t\x12\x0c\n\x04host\x18\x04 \x01(\t\x12\x15\n\x08location\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x7f\n\x15SqlUsersInsertRequest\x12\x10\n\x08instance\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12,\n\x04\x62ody\x18\x64 \x01(\x0b\x32\x1e.google.cloud.sql.v1beta4.User\x12\x15\n\x08location\x18\x03 \x01(\tB\x03\xe0\x41\x01\"O\n\x13SqlUsersListRequest\x12\x10\n\x08instance\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x15\n\x08location\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xec\x02\n\x15SqlUsersUpdateRequest\x12\x11\n\x04host\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x08instance\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x0f\n\x07project\x18\x04 \x01(\t\x12\x1b\n\x0e\x64\x61tabase_roles\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\'\n\x15revoke_existing_roles\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x19\n\x0cserver_roles\x18\x07 \x03(\tB\x03\xe0\x41\x01\x12.\n\x1crevoke_existing_server_roles\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12,\n\x04\x62ody\x18\x64 \x01(\x0b\x32\x1e.google.cloud.sql.v1beta4.User\x12\x15\n\x08location\x18\t \x01(\tB\x03\xe0\x41\x01\x42\x18\n\x16_revoke_existing_rolesB\x1f\n\x1d_revoke_existing_server_roles\"\x8b\x02\n\x1cUserPasswordValidationPolicy\x12\x1f\n\x17\x61llowed_failed_attempts\x18\x01 \x01(\x05\x12?\n\x1cpassword_expiration_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12$\n\x1c\x65nable_failed_attempts_check\x18\x03 \x01(\x08\x12=\n\x06status\x18\x04 \x01(\x0b\x32(.google.cloud.sql.v1beta4.PasswordStatusB\x03\xe0\x41\x03\x12$\n\x1c\x65nable_password_verification\x18\x05 \x01(\x08\"^\n\x0ePasswordStatus\x12\x0e\n\x06locked\x18\x01 \x01(\x08\x12<\n\x18password_expiration_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8a\x08\n\x04User\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x11\n\x04host\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x08instance\x18\x06 \x01(\t\x12\x0f\n\x07project\x18\x07 \x01(\t\x12\x38\n\x04type\x18\x08 \x01(\x0e\x32*.google.cloud.sql.v1beta4.User.SqlUserType\x12P\n\x16sqlserver_user_details\x18\t \x01(\x0b\x32..google.cloud.sql.v1beta4.SqlServerUserDetailsH\x00\x12\x16\n\tiam_email\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12O\n\x0fpassword_policy\x18\x0c \x01(\x0b\x32\x36.google.cloud.sql.v1beta4.UserPasswordValidationPolicy\x12P\n\x12\x64ual_password_type\x18\r \x01(\x0e\x32/.google.cloud.sql.v1beta4.User.DualPasswordTypeH\x01\x88\x01\x01\x12\x41\n\niam_status\x18\x0e \x01(\x0e\x32(.google.cloud.sql.v1beta4.User.IamStatusH\x02\x88\x01\x01\x12\x1b\n\x0e\x64\x61tabase_roles\x18\x0f \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0cserver_roles\x18\x10 \x03(\tB\x03\xe0\x41\x01\"\xd6\x01\n\x0bSqlUserType\x12\x0c\n\x08\x42UILT_IN\x10\x00\x12\x12\n\x0e\x43LOUD_IAM_USER\x10\x01\x12\x1d\n\x19\x43LOUD_IAM_SERVICE_ACCOUNT\x10\x02\x12\x13\n\x0f\x43LOUD_IAM_GROUP\x10\x03\x12\x18\n\x14\x43LOUD_IAM_GROUP_USER\x10\x04\x12#\n\x1f\x43LOUD_IAM_GROUP_SERVICE_ACCOUNT\x10\x05\x12 \n\x1c\x43LOUD_IAM_WORKFORCE_IDENTITY\x10\x06\x12\x10\n\x0c\x45NTRAID_USER\x10\x07\"|\n\x10\x44ualPasswordType\x12\"\n\x1e\x44UAL_PASSWORD_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17NO_MODIFY_DUAL_PASSWORD\x10\x01\x12\x14\n\x10NO_DUAL_PASSWORD\x10\x02\x12\x11\n\rDUAL_PASSWORD\x10\x03\"A\n\tIamStatus\x12\x1a\n\x16IAM_STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08INACTIVE\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x42\x0e\n\x0cuser_detailsB\x15\n\x13_dual_password_typeB\r\n\x0b_iam_status\">\n\x14SqlServerUserDetails\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\x12\x14\n\x0cserver_roles\x18\x02 \x03(\t\"m\n\x11UsersListResponse\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12-\n\x05items\x18\x02 \x03(\x0b\x32\x1e.google.cloud.sql.v1beta4.User\x12\x1b\n\x0fnext_page_token\x18\x03 \x01(\tB\x02\x18\x01\x32\xd4\x07\n\x0fSqlUsersService\x12\xa2\x01\n\x06\x44\x65lete\x12/.google.cloud.sql.v1beta4.SqlUsersDeleteRequest\x1a#.google.cloud.sql.v1beta4.Operation\"B\x82\xd3\xe4\x93\x02<*:/sql/v1beta4/projects/{project}/instances/{instance}/users\x12\x9e\x01\n\x03Get\x12,.google.cloud.sql.v1beta4.SqlUsersGetRequest\x1a\x1e.google.cloud.sql.v1beta4.User\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/sql/v1beta4/projects/{project}/instances/{instance}/users/{name}\x12\xa8\x01\n\x06Insert\x12/.google.cloud.sql.v1beta4.SqlUsersInsertRequest\x1a#.google.cloud.sql.v1beta4.Operation\"H\x82\xd3\xe4\x93\x02\x42\":/sql/v1beta4/projects/{project}/instances/{instance}/users:\x04\x62ody\x12\xa6\x01\n\x04List\x12-.google.cloud.sql.v1beta4.SqlUsersListRequest\x1a+.google.cloud.sql.v1beta4.UsersListResponse\"B\x82\xd3\xe4\x93\x02<\x12:/sql/v1beta4/projects/{project}/instances/{instance}/users\x12\xa8\x01\n\x06Update\x12/.google.cloud.sql.v1beta4.SqlUsersUpdateRequest\x1a#.google.cloud.sql.v1beta4.Operation\"H\x82\xd3\xe4\x93\x02\x42\x1a:/sql/v1beta4/projects/{project}/instances/{instance}/users:\x04\x62ody\x1a|\xca\x41\x17sqladmin.googleapis.com\xd2\x41_https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/sqlservice.adminBd\n\x1c\x63om.google.cloud.sql.v1beta4B\x12\x43loudSqlUsersProtoP\x01Z.cloud.google.com/go/sql/apiv1beta4/sqlpb;sqlpbb\x06proto3"
|
|
16
16
|
|
|
17
17
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
18
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/sql/v1beta4/cloud_sql_workload_captures.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/annotations_pb'
|
|
8
|
+
require 'google/api/client_pb'
|
|
9
|
+
require 'google/api/field_behavior_pb'
|
|
10
|
+
require 'google/api/resource_pb'
|
|
11
|
+
require 'google/cloud/sql/v1beta4/cloud_sql_resources_pb'
|
|
12
|
+
require 'google/protobuf/timestamp_pb'
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
descriptor_data = "\n:google/cloud/sql/v1beta4/cloud_sql_workload_captures.proto\x12\x18google.cloud.sql.v1beta4\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x32google/cloud/sql/v1beta4/cloud_sql_resources.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb2\x01\n\x1fSqlWorkloadCapturesStartRequest\x12\x14\n\x07project\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08instance\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x62\n\x1estart_workload_capture_context\x18\x64 \x01(\x0b\x32\x35.google.cloud.sql.v1beta4.StartWorkloadCaptureContextB\x03\xe0\x41\x01\"\xaf\x01\n\x1eSqlWorkloadCapturesStopRequest\x12\x14\n\x07project\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08instance\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12`\n\x1dstop_workload_capture_context\x18\x64 \x01(\x0b\x32\x34.google.cloud.sql.v1beta4.StopWorkloadCaptureContextB\x03\xe0\x41\x01\"\xd0\x01\n%SqlWorkloadCapturesStartReplayRequest\x12\x14\n\x07project\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08instance\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12`\n\x1dstart_workload_replay_context\x18\x64 \x01(\x0b\x32\x34.google.cloud.sql.v1beta4.StartWorkloadReplayContextB\x03\xe0\x41\x02\x12\x18\n\x0bworkload_id\x18\x04 \x01(\tB\x03\xe0\x41\x02\"\xb3\x01\n$SqlWorkloadCapturesStopReplayRequest\x12\x14\n\x07project\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08instance\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12^\n\x1cstop_workload_replay_context\x18\x64 \x01(\x0b\x32\x33.google.cloud.sql.v1beta4.StopWorkloadReplayContextB\x03\xe0\x41\x01\"M\n\x1eSqlWorkloadCapturesListRequest\x12\x14\n\x07project\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08instance\x18\x02 \x01(\tB\x03\xe0\x41\x02\"r\n\x1cWorkloadCapturesListResponse\x12\x44\n\x11workload_captures\x18\x01 \x03(\x0b\x32).google.cloud.sql.v1beta4.WorkloadCapture\x12\x0c\n\x04kind\x18\x02 \x01(\t\"\xc0\x04\n\x0fWorkloadCapture\x12\x18\n\x0bworkload_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x41\n\x0fsource_instance\x18\x02 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n sqladmin.googleapis.com/Instance\x12T\n\x16workload_capture_state\x18\x03 \x01(\x0e\x32/.google.cloud.sql.v1beta4.WorkloadCapture.StateB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x46\n\x0freplay_instance\x18\x06 \x01(\tB(\xe0\x41\x03\xfa\x41\"\n sqladmin.googleapis.com/InstanceH\x00\x88\x01\x01\x12 \n\x0eretention_days\x18\x07 \x01(\x05\x42\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\x1b\n\tbackup_id\x18\x08 \x01(\tB\x03\xe0\x41\x03H\x02\x88\x01\x01\"V\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tCOMPLETED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\x0e\n\nTERMINATED\x10\x04\x42\x12\n\x10_replay_instanceB\x11\n\x0f_retention_daysB\x0c\n\n_backup_id2\x98\t\n\x1aSqlWorkloadCapturesService\x12\xbf\x01\n\x05Start\x12\x39.google.cloud.sql.v1beta4.SqlWorkloadCapturesStartRequest\x1a#.google.cloud.sql.v1beta4.Operation\"V\x82\xd3\xe4\x93\x02P\"K/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures:start:\x01*\x12\xbc\x01\n\x04Stop\x12\x38.google.cloud.sql.v1beta4.SqlWorkloadCapturesStopRequest\x1a#.google.cloud.sql.v1beta4.Operation\"U\x82\xd3\xe4\x93\x02O\"J/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures:stop:\x01*\x12\xdf\x01\n\x0bStartReplay\x12?.google.cloud.sql.v1beta4.SqlWorkloadCapturesStartReplayRequest\x1a#.google.cloud.sql.v1beta4.Operation\"j\x82\xd3\xe4\x93\x02\x64\"_/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures/{workload_id}:startReplay:\x01*\x12\xce\x01\n\nStopReplay\x12>.google.cloud.sql.v1beta4.SqlWorkloadCapturesStopReplayRequest\x1a#.google.cloud.sql.v1beta4.Operation\"[\x82\xd3\xe4\x93\x02U\"P/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures:stopReplay:\x01*\x12\xc7\x01\n\x04List\x12\x38.google.cloud.sql.v1beta4.SqlWorkloadCapturesListRequest\x1a\x36.google.cloud.sql.v1beta4.WorkloadCapturesListResponse\"M\x82\xd3\xe4\x93\x02G\x12\x45/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures\x1a|\xca\x41\x17sqladmin.googleapis.com\xd2\x41_https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/sqlservice.adminBo\n\x1c\x63om.google.cloud.sql.v1beta4B\x1d\x43loudSqlWorkloadCapturesProtoP\x01Z.cloud.google.com/go/sql/apiv1beta4/sqlpb;sqlpbb\x06proto3"
|
|
16
|
+
|
|
17
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Sql
|
|
23
|
+
module V1beta4
|
|
24
|
+
SqlWorkloadCapturesStartRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.SqlWorkloadCapturesStartRequest").msgclass
|
|
25
|
+
SqlWorkloadCapturesStopRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.SqlWorkloadCapturesStopRequest").msgclass
|
|
26
|
+
SqlWorkloadCapturesStartReplayRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.SqlWorkloadCapturesStartReplayRequest").msgclass
|
|
27
|
+
SqlWorkloadCapturesStopReplayRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.SqlWorkloadCapturesStopReplayRequest").msgclass
|
|
28
|
+
SqlWorkloadCapturesListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.SqlWorkloadCapturesListRequest").msgclass
|
|
29
|
+
WorkloadCapturesListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.WorkloadCapturesListResponse").msgclass
|
|
30
|
+
WorkloadCapture = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.WorkloadCapture").msgclass
|
|
31
|
+
WorkloadCapture::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.sql.v1beta4.WorkloadCapture.State").enummodule
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/sql/v1beta4/cloud_sql_workload_captures.proto for package 'google.cloud.sql.v1beta4'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2026 Google LLC
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/sql/v1beta4/cloud_sql_workload_captures_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module Sql
|
|
25
|
+
module V1beta4
|
|
26
|
+
module SqlWorkloadCapturesService
|
|
27
|
+
# Cloud SQL Workload Captures service.
|
|
28
|
+
class Service
|
|
29
|
+
|
|
30
|
+
include ::GRPC::GenericService
|
|
31
|
+
|
|
32
|
+
self.marshal_class_method = :encode
|
|
33
|
+
self.unmarshal_class_method = :decode
|
|
34
|
+
self.service_name = 'google.cloud.sql.v1beta4.SqlWorkloadCapturesService'
|
|
35
|
+
|
|
36
|
+
# Starts capturing the SQL queries, transactions, and other operations
|
|
37
|
+
# executed on the primary instance. This traffic is securely stored and forms
|
|
38
|
+
# a "captured workload". This workload can be replayed later on a different
|
|
39
|
+
# instance to safely test performance impacts, database upgrades,
|
|
40
|
+
# configuration changes etc. before applying them to production.
|
|
41
|
+
rpc :Start, ::Google::Cloud::Sql::V1beta4::SqlWorkloadCapturesStartRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
42
|
+
# Stops capturing the query traffic and related operations executed on the
|
|
43
|
+
# primary instance.
|
|
44
|
+
rpc :Stop, ::Google::Cloud::Sql::V1beta4::SqlWorkloadCapturesStopRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
45
|
+
# Starts executing a captured workload on a separate Cloud SQL instance
|
|
46
|
+
# provisioned for workload replay. This target instance simulates the
|
|
47
|
+
# production environment without affecting the primary instance.
|
|
48
|
+
rpc :StartReplay, ::Google::Cloud::Sql::V1beta4::SqlWorkloadCapturesStartReplayRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
49
|
+
# Stops an active workload replay on the target Cloud SQL replay instance.
|
|
50
|
+
rpc :StopReplay, ::Google::Cloud::Sql::V1beta4::SqlWorkloadCapturesStopReplayRequest, ::Google::Cloud::Sql::V1beta4::Operation
|
|
51
|
+
# Lists all captured workloads associated with the instance.
|
|
52
|
+
rpc :List, ::Google::Cloud::Sql::V1beta4::SqlWorkloadCapturesListRequest, ::Google::Cloud::Sql::V1beta4::WorkloadCapturesListResponse
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
Stub = Service.rpc_stub_class
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -23,9 +23,11 @@ require "google/cloud/sql/v1beta4/sql_instances_service/rest"
|
|
|
23
23
|
require "google/cloud/sql/v1beta4/sql_operations_service/rest"
|
|
24
24
|
require "google/cloud/sql/v1beta4/sql_ssl_certs_service/rest"
|
|
25
25
|
require "google/cloud/sql/v1beta4/sql_backups_service/rest"
|
|
26
|
+
require "google/cloud/sql/v1beta4/blue_green_deployments_service/rest"
|
|
26
27
|
require "google/cloud/sql/v1beta4/sql_connect_service/rest"
|
|
27
28
|
require "google/cloud/sql/v1beta4/sql_tiers_service/rest"
|
|
28
29
|
require "google/cloud/sql/v1beta4/sql_users_service/rest"
|
|
30
|
+
require "google/cloud/sql/v1beta4/sql_workload_captures_service/rest"
|
|
29
31
|
require "google/cloud/sql/v1beta4/version"
|
|
30
32
|
|
|
31
33
|
module Google
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Sql
|
|
23
|
+
module V1beta4
|
|
24
|
+
module SqlBackupRunsService
|
|
25
|
+
# Path helper methods for the SqlBackupRunsService API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified CryptoKey resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param key_ring [String]
|
|
37
|
+
# @param crypto_key [String]
|
|
38
|
+
#
|
|
39
|
+
# @return [::String]
|
|
40
|
+
def crypto_key_path project:, location:, key_ring:, crypto_key:
|
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
43
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
44
|
+
|
|
45
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
##
|
|
49
|
+
# Create a fully-qualified CryptoKeyVersion resource string.
|
|
50
|
+
#
|
|
51
|
+
# The resource will be in the following format:
|
|
52
|
+
#
|
|
53
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
|
|
54
|
+
#
|
|
55
|
+
# @param project [String]
|
|
56
|
+
# @param location [String]
|
|
57
|
+
# @param key_ring [String]
|
|
58
|
+
# @param crypto_key [String]
|
|
59
|
+
# @param crypto_key_version [String]
|
|
60
|
+
#
|
|
61
|
+
# @return [::String]
|
|
62
|
+
def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
|
|
63
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
64
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
65
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
66
|
+
raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
|
|
67
|
+
|
|
68
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
extend self
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -23,6 +23,7 @@ require "gapic/config/method"
|
|
|
23
23
|
require "google/cloud/sql/v1beta4/version"
|
|
24
24
|
|
|
25
25
|
require "google/cloud/sql/v1beta4/sql_backup_runs_service/credentials"
|
|
26
|
+
require "google/cloud/sql/v1beta4/sql_backup_runs_service/paths"
|
|
26
27
|
require "google/cloud/sql/v1beta4/sql_backup_runs_service/rest/client"
|
|
27
28
|
|
|
28
29
|
module Google
|
|
@@ -23,6 +23,7 @@ require "gapic/config/method"
|
|
|
23
23
|
require "google/cloud/sql/v1beta4/version"
|
|
24
24
|
|
|
25
25
|
require "google/cloud/sql/v1beta4/sql_backup_runs_service/credentials"
|
|
26
|
+
require "google/cloud/sql/v1beta4/sql_backup_runs_service/paths"
|
|
26
27
|
require "google/cloud/sql/v1beta4/sql_backup_runs_service/client"
|
|
27
28
|
require "google/cloud/sql/v1beta4/sql_backup_runs_service/rest"
|
|
28
29
|
|
|
@@ -41,6 +41,69 @@ module Google
|
|
|
41
41
|
"projects/#{project}/backups/#{backup}"
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
##
|
|
45
|
+
# Create a fully-qualified CryptoKey resource string.
|
|
46
|
+
#
|
|
47
|
+
# The resource will be in the following format:
|
|
48
|
+
#
|
|
49
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
|
50
|
+
#
|
|
51
|
+
# @param project [String]
|
|
52
|
+
# @param location [String]
|
|
53
|
+
# @param key_ring [String]
|
|
54
|
+
# @param crypto_key [String]
|
|
55
|
+
#
|
|
56
|
+
# @return [::String]
|
|
57
|
+
def crypto_key_path project:, location:, key_ring:, crypto_key:
|
|
58
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
59
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
60
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
61
|
+
|
|
62
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
##
|
|
66
|
+
# Create a fully-qualified CryptoKeyVersion resource string.
|
|
67
|
+
#
|
|
68
|
+
# The resource will be in the following format:
|
|
69
|
+
#
|
|
70
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
|
|
71
|
+
#
|
|
72
|
+
# @param project [String]
|
|
73
|
+
# @param location [String]
|
|
74
|
+
# @param key_ring [String]
|
|
75
|
+
# @param crypto_key [String]
|
|
76
|
+
# @param crypto_key_version [String]
|
|
77
|
+
#
|
|
78
|
+
# @return [::String]
|
|
79
|
+
def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
|
|
80
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
81
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
82
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
83
|
+
raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
|
|
84
|
+
|
|
85
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
##
|
|
89
|
+
# Create a fully-qualified NetworkAttachment resource string.
|
|
90
|
+
#
|
|
91
|
+
# The resource will be in the following format:
|
|
92
|
+
#
|
|
93
|
+
# `projects/{project}/regions/{region}/networkAttachments/{network_attachment}`
|
|
94
|
+
#
|
|
95
|
+
# @param project [String]
|
|
96
|
+
# @param region [String]
|
|
97
|
+
# @param network_attachment [String]
|
|
98
|
+
#
|
|
99
|
+
# @return [::String]
|
|
100
|
+
def network_attachment_path project:, region:, network_attachment:
|
|
101
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
102
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
|
103
|
+
|
|
104
|
+
"projects/#{project}/regions/#{region}/networkAttachments/#{network_attachment}"
|
|
105
|
+
end
|
|
106
|
+
|
|
44
107
|
##
|
|
45
108
|
# Create a fully-qualified Project resource string.
|
|
46
109
|
#
|
|
@@ -210,7 +210,7 @@ module Google
|
|
|
210
210
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
211
211
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
212
212
|
#
|
|
213
|
-
# @overload delete(database: nil, instance: nil, project: nil)
|
|
213
|
+
# @overload delete(database: nil, instance: nil, project: nil, location: nil)
|
|
214
214
|
# Pass arguments to `delete` via keyword arguments. Note that at
|
|
215
215
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
216
216
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -221,6 +221,8 @@ module Google
|
|
|
221
221
|
# Database instance ID. This does not include the project ID.
|
|
222
222
|
# @param project [::String]
|
|
223
223
|
# Project ID of the project that contains the instance.
|
|
224
|
+
# @param location [::String]
|
|
225
|
+
# Optional. Region of the Cloud SQL instance.
|
|
224
226
|
#
|
|
225
227
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
226
228
|
# @yieldparam response [::Google::Cloud::Sql::V1beta4::Operation]
|
|
@@ -306,7 +308,7 @@ module Google
|
|
|
306
308
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
307
309
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
308
310
|
#
|
|
309
|
-
# @overload get(database: nil, instance: nil, project: nil)
|
|
311
|
+
# @overload get(database: nil, instance: nil, project: nil, location: nil)
|
|
310
312
|
# Pass arguments to `get` via keyword arguments. Note that at
|
|
311
313
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
312
314
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -317,6 +319,8 @@ module Google
|
|
|
317
319
|
# Database instance ID. This does not include the project ID.
|
|
318
320
|
# @param project [::String]
|
|
319
321
|
# Project ID of the project that contains the instance.
|
|
322
|
+
# @param location [::String]
|
|
323
|
+
# Optional. Region of the Cloud SQL instance.
|
|
320
324
|
#
|
|
321
325
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
322
326
|
# @yieldparam response [::Google::Cloud::Sql::V1beta4::Database]
|
|
@@ -404,7 +408,7 @@ module Google
|
|
|
404
408
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
405
409
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
406
410
|
#
|
|
407
|
-
# @overload insert(instance: nil, project: nil, body: nil)
|
|
411
|
+
# @overload insert(instance: nil, project: nil, body: nil, location: nil)
|
|
408
412
|
# Pass arguments to `insert` via keyword arguments. Note that at
|
|
409
413
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
410
414
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -414,6 +418,8 @@ module Google
|
|
|
414
418
|
# @param project [::String]
|
|
415
419
|
# Project ID of the project that contains the instance.
|
|
416
420
|
# @param body [::Google::Cloud::Sql::V1beta4::Database, ::Hash]
|
|
421
|
+
# @param location [::String]
|
|
422
|
+
# Optional. Region of the Cloud SQL instance.
|
|
417
423
|
#
|
|
418
424
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
419
425
|
# @yieldparam response [::Google::Cloud::Sql::V1beta4::Operation]
|
|
@@ -495,7 +501,7 @@ module Google
|
|
|
495
501
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
496
502
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
497
503
|
#
|
|
498
|
-
# @overload list(instance: nil, project: nil)
|
|
504
|
+
# @overload list(instance: nil, project: nil, location: nil)
|
|
499
505
|
# Pass arguments to `list` via keyword arguments. Note that at
|
|
500
506
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
501
507
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -504,6 +510,8 @@ module Google
|
|
|
504
510
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
505
511
|
# @param project [::String]
|
|
506
512
|
# Project ID of the project that contains the instance.
|
|
513
|
+
# @param location [::String]
|
|
514
|
+
# Optional. Region of the Cloud SQL instance.
|
|
507
515
|
#
|
|
508
516
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
509
517
|
# @yieldparam response [::Google::Cloud::Sql::V1beta4::DatabasesListResponse]
|
|
@@ -586,7 +594,7 @@ module Google
|
|
|
586
594
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
587
595
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
588
596
|
#
|
|
589
|
-
# @overload patch(database: nil, instance: nil, project: nil, body: nil)
|
|
597
|
+
# @overload patch(database: nil, instance: nil, project: nil, body: nil, location: nil)
|
|
590
598
|
# Pass arguments to `patch` via keyword arguments. Note that at
|
|
591
599
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
592
600
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -598,6 +606,8 @@ module Google
|
|
|
598
606
|
# @param project [::String]
|
|
599
607
|
# Project ID of the project that contains the instance.
|
|
600
608
|
# @param body [::Google::Cloud::Sql::V1beta4::Database, ::Hash]
|
|
609
|
+
# @param location [::String]
|
|
610
|
+
# Optional. Region of the Cloud SQL instance.
|
|
601
611
|
#
|
|
602
612
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
603
613
|
# @yieldparam response [::Google::Cloud::Sql::V1beta4::Operation]
|
|
@@ -683,7 +693,7 @@ module Google
|
|
|
683
693
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
684
694
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
685
695
|
#
|
|
686
|
-
# @overload update(database: nil, instance: nil, project: nil, body: nil)
|
|
696
|
+
# @overload update(database: nil, instance: nil, project: nil, body: nil, location: nil)
|
|
687
697
|
# Pass arguments to `update` via keyword arguments. Note that at
|
|
688
698
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
689
699
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -695,6 +705,8 @@ module Google
|
|
|
695
705
|
# @param project [::String]
|
|
696
706
|
# Project ID of the project that contains the instance.
|
|
697
707
|
# @param body [::Google::Cloud::Sql::V1beta4::Database, ::Hash]
|
|
708
|
+
# @param location [::String]
|
|
709
|
+
# Optional. Region of the Cloud SQL instance.
|
|
698
710
|
#
|
|
699
711
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
700
712
|
# @yieldparam response [::Google::Cloud::Sql::V1beta4::Operation]
|
|
@@ -203,7 +203,7 @@ module Google
|
|
|
203
203
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
204
204
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
205
205
|
#
|
|
206
|
-
# @overload delete(database: nil, instance: nil, project: nil)
|
|
206
|
+
# @overload delete(database: nil, instance: nil, project: nil, location: nil)
|
|
207
207
|
# Pass arguments to `delete` via keyword arguments. Note that at
|
|
208
208
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
209
209
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -214,6 +214,8 @@ module Google
|
|
|
214
214
|
# Database instance ID. This does not include the project ID.
|
|
215
215
|
# @param project [::String]
|
|
216
216
|
# Project ID of the project that contains the instance.
|
|
217
|
+
# @param location [::String]
|
|
218
|
+
# Optional. Region of the Cloud SQL instance.
|
|
217
219
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
218
220
|
# @yieldparam result [::Google::Cloud::Sql::V1beta4::Operation]
|
|
219
221
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -286,7 +288,7 @@ module Google
|
|
|
286
288
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
287
289
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
288
290
|
#
|
|
289
|
-
# @overload get(database: nil, instance: nil, project: nil)
|
|
291
|
+
# @overload get(database: nil, instance: nil, project: nil, location: nil)
|
|
290
292
|
# Pass arguments to `get` via keyword arguments. Note that at
|
|
291
293
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
292
294
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -297,6 +299,8 @@ module Google
|
|
|
297
299
|
# Database instance ID. This does not include the project ID.
|
|
298
300
|
# @param project [::String]
|
|
299
301
|
# Project ID of the project that contains the instance.
|
|
302
|
+
# @param location [::String]
|
|
303
|
+
# Optional. Region of the Cloud SQL instance.
|
|
300
304
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
301
305
|
# @yieldparam result [::Google::Cloud::Sql::V1beta4::Database]
|
|
302
306
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -371,7 +375,7 @@ module Google
|
|
|
371
375
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
372
376
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
373
377
|
#
|
|
374
|
-
# @overload insert(instance: nil, project: nil, body: nil)
|
|
378
|
+
# @overload insert(instance: nil, project: nil, body: nil, location: nil)
|
|
375
379
|
# Pass arguments to `insert` via keyword arguments. Note that at
|
|
376
380
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
377
381
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -381,6 +385,8 @@ module Google
|
|
|
381
385
|
# @param project [::String]
|
|
382
386
|
# Project ID of the project that contains the instance.
|
|
383
387
|
# @param body [::Google::Cloud::Sql::V1beta4::Database, ::Hash]
|
|
388
|
+
# @param location [::String]
|
|
389
|
+
# Optional. Region of the Cloud SQL instance.
|
|
384
390
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
385
391
|
# @yieldparam result [::Google::Cloud::Sql::V1beta4::Operation]
|
|
386
392
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -452,7 +458,7 @@ module Google
|
|
|
452
458
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
453
459
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
454
460
|
#
|
|
455
|
-
# @overload list(instance: nil, project: nil)
|
|
461
|
+
# @overload list(instance: nil, project: nil, location: nil)
|
|
456
462
|
# Pass arguments to `list` via keyword arguments. Note that at
|
|
457
463
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
458
464
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -461,6 +467,8 @@ module Google
|
|
|
461
467
|
# Cloud SQL instance ID. This does not include the project ID.
|
|
462
468
|
# @param project [::String]
|
|
463
469
|
# Project ID of the project that contains the instance.
|
|
470
|
+
# @param location [::String]
|
|
471
|
+
# Optional. Region of the Cloud SQL instance.
|
|
464
472
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
465
473
|
# @yieldparam result [::Google::Cloud::Sql::V1beta4::DatabasesListResponse]
|
|
466
474
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -533,7 +541,7 @@ module Google
|
|
|
533
541
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
534
542
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
535
543
|
#
|
|
536
|
-
# @overload patch(database: nil, instance: nil, project: nil, body: nil)
|
|
544
|
+
# @overload patch(database: nil, instance: nil, project: nil, body: nil, location: nil)
|
|
537
545
|
# Pass arguments to `patch` via keyword arguments. Note that at
|
|
538
546
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
539
547
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -545,6 +553,8 @@ module Google
|
|
|
545
553
|
# @param project [::String]
|
|
546
554
|
# Project ID of the project that contains the instance.
|
|
547
555
|
# @param body [::Google::Cloud::Sql::V1beta4::Database, ::Hash]
|
|
556
|
+
# @param location [::String]
|
|
557
|
+
# Optional. Region of the Cloud SQL instance.
|
|
548
558
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
549
559
|
# @yieldparam result [::Google::Cloud::Sql::V1beta4::Operation]
|
|
550
560
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -617,7 +627,7 @@ module Google
|
|
|
617
627
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
618
628
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
619
629
|
#
|
|
620
|
-
# @overload update(database: nil, instance: nil, project: nil, body: nil)
|
|
630
|
+
# @overload update(database: nil, instance: nil, project: nil, body: nil, location: nil)
|
|
621
631
|
# Pass arguments to `update` via keyword arguments. Note that at
|
|
622
632
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
623
633
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -629,6 +639,8 @@ module Google
|
|
|
629
639
|
# @param project [::String]
|
|
630
640
|
# Project ID of the project that contains the instance.
|
|
631
641
|
# @param body [::Google::Cloud::Sql::V1beta4::Database, ::Hash]
|
|
642
|
+
# @param location [::String]
|
|
643
|
+
# Optional. Region of the Cloud SQL instance.
|
|
632
644
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
633
645
|
# @yieldparam result [::Google::Cloud::Sql::V1beta4::Operation]
|
|
634
646
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|