google-cloud-firestore-admin-v1 0.15.0 → 0.17.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/firestore/admin/v1/firestore_admin/client.rb +894 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/paths.rb +55 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/rest/client.rb +831 -0
- data/lib/google/cloud/firestore/admin/v1/firestore_admin/rest/service_stub.rb +534 -0
- data/lib/google/cloud/firestore/admin/v1/version.rb +1 -1
- data/lib/google/firestore/admin/v1/backup_pb.rb +51 -0
- data/lib/google/firestore/admin/v1/firestore_admin_pb.rb +16 -1
- data/lib/google/firestore/admin/v1/firestore_admin_services_pb.rb +37 -0
- data/lib/google/firestore/admin/v1/index_pb.rb +4 -1
- data/lib/google/firestore/admin/v1/operation_pb.rb +2 -1
- data/lib/google/firestore/admin/v1/schedule_pb.rb +54 -0
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/firestore/admin/v1/backup.rb +99 -0
- data/proto_docs/google/firestore/admin/v1/firestore_admin.rb +160 -0
- data/proto_docs/google/firestore/admin/v1/index.rb +26 -0
- data/proto_docs/google/firestore/admin/v1/operation.rb +25 -0
- data/proto_docs/google/firestore/admin/v1/schedule.rb +88 -0
- data/proto_docs/google/type/dayofweek.rb +49 -0
- metadata +7 -2
@@ -25,6 +25,44 @@ module Google
|
|
25
25
|
module FirestoreAdmin
|
26
26
|
# Path helper methods for the FirestoreAdmin API.
|
27
27
|
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified Backup resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `projects/{project}/locations/{location}/backups/{backup}`
|
34
|
+
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param backup [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def backup_path project:, location:, backup:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
|
44
|
+
"projects/#{project}/locations/#{location}/backups/#{backup}"
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# Create a fully-qualified BackupSchedule resource string.
|
49
|
+
#
|
50
|
+
# The resource will be in the following format:
|
51
|
+
#
|
52
|
+
# `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
|
53
|
+
#
|
54
|
+
# @param project [String]
|
55
|
+
# @param database [String]
|
56
|
+
# @param backup_schedule [String]
|
57
|
+
#
|
58
|
+
# @return [::String]
|
59
|
+
def backup_schedule_path project:, database:, backup_schedule:
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "database cannot contain /" if database.to_s.include? "/"
|
62
|
+
|
63
|
+
"projects/#{project}/databases/#{database}/backupSchedules/#{backup_schedule}"
|
64
|
+
end
|
65
|
+
|
28
66
|
##
|
29
67
|
# Create a fully-qualified CollectionGroup resource string.
|
30
68
|
#
|
@@ -103,6 +141,23 @@ module Google
|
|
103
141
|
"projects/#{project}/databases/#{database}/collectionGroups/#{collection}/indexes/#{index}"
|
104
142
|
end
|
105
143
|
|
144
|
+
##
|
145
|
+
# Create a fully-qualified Location resource string.
|
146
|
+
#
|
147
|
+
# The resource will be in the following format:
|
148
|
+
#
|
149
|
+
# `projects/{project}/locations/{location}`
|
150
|
+
#
|
151
|
+
# @param project [String]
|
152
|
+
# @param location [String]
|
153
|
+
#
|
154
|
+
# @return [::String]
|
155
|
+
def location_path project:, location:
|
156
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
157
|
+
|
158
|
+
"projects/#{project}/locations/#{location}"
|
159
|
+
end
|
160
|
+
|
106
161
|
##
|
107
162
|
# Create a fully-qualified Project resource string.
|
108
163
|
#
|