google-cloud-sql-v1beta4 0.2.0 → 0.4.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/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_connect_pb.rb +1 -1
- data/lib/google/cloud/sql/v1beta4/cloud_sql_data_pb.rb +1 -1
- data/lib/google/cloud/sql/v1beta4/cloud_sql_pb.rb +1 -1
- data/lib/google/cloud/sql/v1beta4/cloud_sql_resources_pb.rb +9 -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_instances_service/paths.rb +63 -0
- 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/cloud/sql/v1beta4/cloud_sql.rb +1 -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 +197 -2
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_users.rb +4 -4
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_workload_captures.rb +169 -0
- metadata +23 -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\"n\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\x16\n\x08location\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\"k\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\x16\n\x08location\x18\x05 \x01(\tB\x04\xe2\x41\x01\x01\"\x80\x01\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\x16\n\x08location\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"P\n\x13SqlUsersListRequest\x12\x10\n\x08instance\x18\x01 \x01(\t\x12\x0f\n\x07project\x18\x02 \x01(\t\x12\x16\n\x08location\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"\xf2\x02\n\x15SqlUsersUpdateRequest\x12\x12\n\x04host\x18\x01 \x01(\tB\x04\xe2\x41\x01\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\x1c\n\x0e\x64\x61tabase_roles\x18\x05 \x03(\tB\x04\xe2\x41\x01\x01\x12(\n\x15revoke_existing_roles\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x01H\x00\x88\x01\x01\x12\x1a\n\x0cserver_roles\x18\x07 \x03(\tB\x04\xe2\x41\x01\x01\x12/\n\x1crevoke_existing_server_roles\x18\x08 \x01(\x08\x42\x04\xe2\x41\x01\x01H\x01\x88\x01\x01\x12,\n\x04\x62ody\x18\x64 \x01(\x0b\x32\x1e.google.cloud.sql.v1beta4.User\x12\x16\n\x08location\x18\t \x01(\tB\x04\xe2\x41\x01\x01\x42\x18\n\x16_revoke_existing_rolesB\x1f\n\x1d_revoke_existing_server_roles\"\x8c\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\x04\xe2\x41\x01\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\"\x8e\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\x12\n\x04host\x18\x05 \x01(\tB\x04\xe2\x41\x01\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\x17\n\tiam_email\x18\x0b \x01(\tB\x04\xe2\x41\x01\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\x1c\n\x0e\x64\x61tabase_roles\x18\x0f \x03(\tB\x04\xe2\x41\x01\x01\x12\x1a\n\x0cserver_roles\x18\x10 \x03(\tB\x04\xe2\x41\x01\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\"\xb5\x01\n\x1fSqlWorkloadCapturesStartRequest\x12\x15\n\x07project\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x16\n\x08instance\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x63\n\x1estart_workload_capture_context\x18\x64 \x01(\x0b\x32\x35.google.cloud.sql.v1beta4.StartWorkloadCaptureContextB\x04\xe2\x41\x01\x01\"\xb2\x01\n\x1eSqlWorkloadCapturesStopRequest\x12\x15\n\x07project\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x16\n\x08instance\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x61\n\x1dstop_workload_capture_context\x18\x64 \x01(\x0b\x32\x34.google.cloud.sql.v1beta4.StopWorkloadCaptureContextB\x04\xe2\x41\x01\x01\"\xd4\x01\n%SqlWorkloadCapturesStartReplayRequest\x12\x15\n\x07project\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x16\n\x08instance\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x61\n\x1dstart_workload_replay_context\x18\x64 \x01(\x0b\x32\x34.google.cloud.sql.v1beta4.StartWorkloadReplayContextB\x04\xe2\x41\x01\x02\x12\x19\n\x0bworkload_id\x18\x04 \x01(\tB\x04\xe2\x41\x01\x02\"\xb6\x01\n$SqlWorkloadCapturesStopReplayRequest\x12\x15\n\x07project\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x16\n\x08instance\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12_\n\x1cstop_workload_replay_context\x18\x64 \x01(\x0b\x32\x33.google.cloud.sql.v1beta4.StopWorkloadReplayContextB\x04\xe2\x41\x01\x01\"O\n\x1eSqlWorkloadCapturesListRequest\x12\x15\n\x07project\x18\x01 \x01(\tB\x04\xe2\x41\x01\x02\x12\x16\n\x08instance\x18\x02 \x01(\tB\x04\xe2\x41\x01\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\"\xc8\x04\n\x0fWorkloadCapture\x12\x19\n\x0bworkload_id\x18\x01 \x01(\tB\x04\xe2\x41\x01\x03\x12\x42\n\x0fsource_instance\x18\x02 \x01(\tB)\xe2\x41\x01\x03\xfa\x41\"\n sqladmin.googleapis.com/Instance\x12U\n\x16workload_capture_state\x18\x03 \x01(\x0e\x32/.google.cloud.sql.v1beta4.WorkloadCapture.StateB\x04\xe2\x41\x01\x03\x12\x34\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x32\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12G\n\x0freplay_instance\x18\x06 \x01(\tB)\xe2\x41\x01\x03\xfa\x41\"\n sqladmin.googleapis.com/InstanceH\x00\x88\x01\x01\x12!\n\x0eretention_days\x18\x07 \x01(\x05\x42\x04\xe2\x41\x01\x03H\x01\x88\x01\x01\x12\x1c\n\tbackup_id\x18\x08 \x01(\tB\x04\xe2\x41\x01\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
|
#
|
|
@@ -69,6 +69,50 @@ module Google
|
|
|
69
69
|
resource.call(**args)
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
##
|
|
73
|
+
# Create a fully-qualified CryptoKey resource string.
|
|
74
|
+
#
|
|
75
|
+
# The resource will be in the following format:
|
|
76
|
+
#
|
|
77
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
|
78
|
+
#
|
|
79
|
+
# @param project [String]
|
|
80
|
+
# @param location [String]
|
|
81
|
+
# @param key_ring [String]
|
|
82
|
+
# @param crypto_key [String]
|
|
83
|
+
#
|
|
84
|
+
# @return [::String]
|
|
85
|
+
def crypto_key_path project:, location:, key_ring:, crypto_key:
|
|
86
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
87
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
88
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
89
|
+
|
|
90
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
##
|
|
94
|
+
# Create a fully-qualified CryptoKeyVersion resource string.
|
|
95
|
+
#
|
|
96
|
+
# The resource will be in the following format:
|
|
97
|
+
#
|
|
98
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
|
|
99
|
+
#
|
|
100
|
+
# @param project [String]
|
|
101
|
+
# @param location [String]
|
|
102
|
+
# @param key_ring [String]
|
|
103
|
+
# @param crypto_key [String]
|
|
104
|
+
# @param crypto_key_version [String]
|
|
105
|
+
#
|
|
106
|
+
# @return [::String]
|
|
107
|
+
def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
|
|
108
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
109
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
110
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
111
|
+
raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
|
|
112
|
+
|
|
113
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
|
|
114
|
+
end
|
|
115
|
+
|
|
72
116
|
##
|
|
73
117
|
# Create a fully-qualified Network resource string.
|
|
74
118
|
#
|
|
@@ -86,6 +130,25 @@ module Google
|
|
|
86
130
|
"projects/#{project}/global/networks/#{network}"
|
|
87
131
|
end
|
|
88
132
|
|
|
133
|
+
##
|
|
134
|
+
# Create a fully-qualified NetworkAttachment resource string.
|
|
135
|
+
#
|
|
136
|
+
# The resource will be in the following format:
|
|
137
|
+
#
|
|
138
|
+
# `projects/{project}/regions/{region}/networkAttachments/{network_attachment}`
|
|
139
|
+
#
|
|
140
|
+
# @param project [String]
|
|
141
|
+
# @param region [String]
|
|
142
|
+
# @param network_attachment [String]
|
|
143
|
+
#
|
|
144
|
+
# @return [::String]
|
|
145
|
+
def network_attachment_path project:, region:, network_attachment:
|
|
146
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
147
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
|
148
|
+
|
|
149
|
+
"projects/#{project}/regions/#{region}/networkAttachments/#{network_attachment}"
|
|
150
|
+
end
|
|
151
|
+
|
|
89
152
|
##
|
|
90
153
|
# Create a fully-qualified SecretVersion resource string.
|
|
91
154
|
#
|