google-cloud-sql-v1 0.4.0 → 0.5.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/v1/blue_green_deployments_service/client.rb +899 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/paths.rb +86 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/rest/client.rb +821 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/rest/service_stub.rb +388 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/rest.rb +52 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service.rb +55 -0
- data/lib/google/cloud/sql/v1/cloud_sql_backups_pb.rb +1 -1
- data/lib/google/cloud/sql/v1/cloud_sql_blue_green_deployments_pb.rb +45 -0
- data/lib/google/cloud/sql/v1/cloud_sql_blue_green_deployments_services_pb.rb +54 -0
- data/lib/google/cloud/sql/v1/cloud_sql_instances_pb.rb +5 -1
- data/lib/google/cloud/sql/v1/cloud_sql_resources_pb.rb +5 -1
- data/lib/google/cloud/sql/v1/cloud_sql_workload_captures_pb.rb +35 -0
- data/lib/google/cloud/sql/v1/cloud_sql_workload_captures_services_pb.rb +60 -0
- data/lib/google/cloud/sql/v1/rest.rb +2 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/paths.rb +77 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest.rb +1 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service.rb +1 -0
- data/lib/google/cloud/sql/v1/sql_backups_service/paths.rb +63 -0
- data/lib/google/cloud/sql/v1/sql_instances_service/paths.rb +63 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/client.rb +906 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/rest/client.rb +810 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/rest/service_stub.rb +396 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service.rb +54 -0
- data/lib/google/cloud/sql/v1/version.rb +1 -1
- data/lib/google/cloud/sql/v1.rb +2 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_blue_green_deployments.rb +399 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_instances.rb +83 -2
- data/proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb +116 -3
- data/proto_docs/google/cloud/sql/v1/cloud_sql_users.rb +4 -4
- data/proto_docs/google/cloud/sql/v1/cloud_sql_workload_captures.rb +170 -0
- metadata +21 -1
|
@@ -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 V1
|
|
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/v1/version"
|
|
24
24
|
|
|
25
25
|
require "google/cloud/sql/v1/sql_backup_runs_service/credentials"
|
|
26
|
+
require "google/cloud/sql/v1/sql_backup_runs_service/paths"
|
|
26
27
|
require "google/cloud/sql/v1/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/v1/version"
|
|
24
24
|
|
|
25
25
|
require "google/cloud/sql/v1/sql_backup_runs_service/credentials"
|
|
26
|
+
require "google/cloud/sql/v1/sql_backup_runs_service/paths"
|
|
26
27
|
require "google/cloud/sql/v1/sql_backup_runs_service/client"
|
|
27
28
|
require "google/cloud/sql/v1/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
|
#
|