google-cloud-alloy_db-v1 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/client.rb +1114 -73
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/operations.rb +3 -1
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/paths.rb +21 -0
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/client.rb +839 -38
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/operations.rb +7 -5
- data/lib/google/cloud/alloy_db/v1/alloy_db_admin/rest/service_stub.rb +557 -20
- data/lib/google/cloud/alloy_db/v1/version.rb +1 -1
- data/lib/google/cloud/alloydb/v1/resources_pb.rb +35 -252
- data/lib/google/cloud/alloydb/v1/service_pb.rb +39 -179
- data/lib/google/cloud/alloydb/v1/service_services_pb.rb +23 -0
- data/proto_docs/google/api/client.rb +58 -1
- data/proto_docs/google/cloud/alloydb/v1/resources.rb +142 -18
- data/proto_docs/google/cloud/alloydb/v1/service.rb +307 -1
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -664,7 +664,9 @@ module Google
|
|
664
664
|
class Configuration
|
665
665
|
extend ::Gapic::Config
|
666
666
|
|
667
|
-
|
667
|
+
DEFAULT_ENDPOINT = "alloydb.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
670
|
config_attr :credentials, nil do |value|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -140,6 +140,27 @@ module Google
|
|
140
140
|
"projects/#{project}/global/networks/#{network}"
|
141
141
|
end
|
142
142
|
|
143
|
+
##
|
144
|
+
# Create a fully-qualified User resource string.
|
145
|
+
#
|
146
|
+
# The resource will be in the following format:
|
147
|
+
#
|
148
|
+
# `projects/{project}/locations/{location}/clusters/{cluster}/users/{user}`
|
149
|
+
#
|
150
|
+
# @param project [String]
|
151
|
+
# @param location [String]
|
152
|
+
# @param cluster [String]
|
153
|
+
# @param user [String]
|
154
|
+
#
|
155
|
+
# @return [::String]
|
156
|
+
def user_path project:, location:, cluster:, user:
|
157
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
158
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
159
|
+
raise ::ArgumentError, "cluster cannot contain /" if cluster.to_s.include? "/"
|
160
|
+
|
161
|
+
"projects/#{project}/locations/#{location}/clusters/#{cluster}/users/#{user}"
|
162
|
+
end
|
163
|
+
|
143
164
|
extend self
|
144
165
|
end
|
145
166
|
end
|