google-cloud-spanner-admin-instance-v1 0.13.2 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/client.rb +925 -135
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/paths.rb +19 -0
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/rest/client.rb +749 -4
- data/lib/google/cloud/spanner/admin/instance/v1/instance_admin/rest/service_stub.rb +356 -0
- data/lib/google/cloud/spanner/admin/instance/v1/version.rb +1 -1
- data/lib/google/spanner/admin/instance/v1/spanner_instance_admin_pb.rb +13 -1
- data/lib/google/spanner/admin/instance/v1/spanner_instance_admin_services_pb.rb +111 -0
- data/proto_docs/google/spanner/admin/instance/v1/spanner_instance_admin.rb +374 -0
- metadata +4 -116
@@ -60,6 +60,25 @@ module Google
|
|
60
60
|
"projects/#{project}/instanceConfigs/#{instance_config}"
|
61
61
|
end
|
62
62
|
|
63
|
+
##
|
64
|
+
# Create a fully-qualified InstancePartition resource string.
|
65
|
+
#
|
66
|
+
# The resource will be in the following format:
|
67
|
+
#
|
68
|
+
# `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`
|
69
|
+
#
|
70
|
+
# @param project [String]
|
71
|
+
# @param instance [String]
|
72
|
+
# @param instance_partition [String]
|
73
|
+
#
|
74
|
+
# @return [::String]
|
75
|
+
def instance_partition_path project:, instance:, instance_partition:
|
76
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
77
|
+
raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/"
|
78
|
+
|
79
|
+
"projects/#{project}/instances/#{instance}/instancePartitions/#{instance_partition}"
|
80
|
+
end
|
81
|
+
|
63
82
|
##
|
64
83
|
# Create a fully-qualified Project resource string.
|
65
84
|
#
|