Skip to content

Commit 6bced86

Browse files
feat: A new message Backup is added (#2021)
- [ ] Regenerate this pull request now. feat: A new resource_definition `firestore.googleapis.com/Backup` is added feat: A new method `GetBackup` is added to service `FirestoreAdmin` feat: A new method `ListBackups` is added to service `FirestoreAdmin` feat: A new method `DeleteBackup` is added to service `FirestoreAdmin` feat: A new method `RestoreDatabase` is added to service `FirestoreAdmin` feat: A new method `CreateBackupSchedule` is added to service `FirestoreAdmin` feat: A new method `GetBackupSchedule` is added to service `FirestoreAdmin` feat: A new method `ListBackupSchedules` is added to service `FirestoreAdmin` feat: A new method `UpdateBackupSchedule` is added to service `FirestoreAdmin` feat: A new method `DeleteBackupSchedule` is added to service `FirestoreAdmin` feat: A new message `CreateBackupScheduleRequest` is added feat: A new message `GetBackupScheduleRequest` is added feat: A new message `UpdateBackupScheduleRequest` is added feat: A new message `ListBackupSchedulesRequest` is added feat: A new message `ListBackupSchedulesResponse` is added feat: A new message `DeleteBackupScheduleRequest` is added feat: A new message `GetBackupRequest` is added feat: A new message `ListBackupsRequest` is added feat: A new message `ListBackupsResponse` is added feat: A new message `DeleteBackupRequest` is added feat: A new message `RestoreDatabaseRequest` is added feat: A new message `RestoreDatabaseMetadata` is added feat: A new message `BackupSchedule` is added feat: A new resource_definition `firestore.googleapis.com/BackupSchedule` is added feat: A new message `DailyRecurrence` is added feat: A new message `WeeklyRecurrence` is added PiperOrigin-RevId: 616127901 Source-Link: https://github.com/googleapis/googleapis/commit/b5debc8c3ab92770208fc928f3383f47f68ab378 Source-Link: https://github.com/googleapis/googleapis-gen/commit/abcd45505adbfc778e2a1075367504e12890ef16 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWJjZDQ1NTA1YWRiZmM3NzhlMmExMDc1MzY3NTA0ZTEyODkwZWYxNiJ9
1 parent eb3d55c commit 6bced86

18 files changed

+9802
-2415
lines changed

dev/protos/admin_v1.json

Lines changed: 559 additions & 32 deletions
Large diffs are not rendered by default.

dev/protos/firestore_admin_v1_proto_api.d.ts

Lines changed: 1376 additions & 225 deletions
Large diffs are not rendered by default.

dev/protos/firestore_admin_v1_proto_api.js

Lines changed: 4568 additions & 2017 deletions
Large diffs are not rendered by default.

dev/protos/firestore_v1_proto_api.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8507,6 +8507,10 @@ export namespace google {
85078507
*/
85088508
public static getTypeUrl(typeUrlPrefix?: string): string;
85098509
}
8510+
8511+
/** DayOfWeek enum. */
8512+
type DayOfWeek =
8513+
"DAY_OF_WEEK_UNSPECIFIED"| "MONDAY"| "TUESDAY"| "WEDNESDAY"| "THURSDAY"| "FRIDAY"| "SATURDAY"| "SUNDAY";
85108514
}
85118515

85128516
/** Namespace api. */

dev/protos/firestore_v1_proto_api.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20899,6 +20899,32 @@
2089920899
return LatLng;
2090020900
})();
2090120901

20902+
/**
20903+
* DayOfWeek enum.
20904+
* @name google.type.DayOfWeek
20905+
* @enum {string}
20906+
* @property {string} DAY_OF_WEEK_UNSPECIFIED=DAY_OF_WEEK_UNSPECIFIED DAY_OF_WEEK_UNSPECIFIED value
20907+
* @property {string} MONDAY=MONDAY MONDAY value
20908+
* @property {string} TUESDAY=TUESDAY TUESDAY value
20909+
* @property {string} WEDNESDAY=WEDNESDAY WEDNESDAY value
20910+
* @property {string} THURSDAY=THURSDAY THURSDAY value
20911+
* @property {string} FRIDAY=FRIDAY FRIDAY value
20912+
* @property {string} SATURDAY=SATURDAY SATURDAY value
20913+
* @property {string} SUNDAY=SUNDAY SUNDAY value
20914+
*/
20915+
type.DayOfWeek = (function() {
20916+
var valuesById = {}, values = Object.create(valuesById);
20917+
values[valuesById[0] = "DAY_OF_WEEK_UNSPECIFIED"] = "DAY_OF_WEEK_UNSPECIFIED";
20918+
values[valuesById[1] = "MONDAY"] = "MONDAY";
20919+
values[valuesById[2] = "TUESDAY"] = "TUESDAY";
20920+
values[valuesById[3] = "WEDNESDAY"] = "WEDNESDAY";
20921+
values[valuesById[4] = "THURSDAY"] = "THURSDAY";
20922+
values[valuesById[5] = "FRIDAY"] = "FRIDAY";
20923+
values[valuesById[6] = "SATURDAY"] = "SATURDAY";
20924+
values[valuesById[7] = "SUNDAY"] = "SUNDAY";
20925+
return values;
20926+
})();
20927+
2090220928
return type;
2090320929
})();
2090420930

dev/protos/firestore_v1beta1_proto_api.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7385,6 +7385,10 @@ export namespace google {
73857385
*/
73867386
public static getTypeUrl(typeUrlPrefix?: string): string;
73877387
}
7388+
7389+
/** DayOfWeek enum. */
7390+
type DayOfWeek =
7391+
"DAY_OF_WEEK_UNSPECIFIED"| "MONDAY"| "TUESDAY"| "WEDNESDAY"| "THURSDAY"| "FRIDAY"| "SATURDAY"| "SUNDAY";
73887392
}
73897393

73907394
/** Namespace api. */

dev/protos/firestore_v1beta1_proto_api.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18288,6 +18288,32 @@
1828818288
return LatLng;
1828918289
})();
1829018290

18291+
/**
18292+
* DayOfWeek enum.
18293+
* @name google.type.DayOfWeek
18294+
* @enum {string}
18295+
* @property {string} DAY_OF_WEEK_UNSPECIFIED=DAY_OF_WEEK_UNSPECIFIED DAY_OF_WEEK_UNSPECIFIED value
18296+
* @property {string} MONDAY=MONDAY MONDAY value
18297+
* @property {string} TUESDAY=TUESDAY TUESDAY value
18298+
* @property {string} WEDNESDAY=WEDNESDAY WEDNESDAY value
18299+
* @property {string} THURSDAY=THURSDAY THURSDAY value
18300+
* @property {string} FRIDAY=FRIDAY FRIDAY value
18301+
* @property {string} SATURDAY=SATURDAY SATURDAY value
18302+
* @property {string} SUNDAY=SUNDAY SUNDAY value
18303+
*/
18304+
type.DayOfWeek = (function() {
18305+
var valuesById = {}, values = Object.create(valuesById);
18306+
values[valuesById[0] = "DAY_OF_WEEK_UNSPECIFIED"] = "DAY_OF_WEEK_UNSPECIFIED";
18307+
values[valuesById[1] = "MONDAY"] = "MONDAY";
18308+
values[valuesById[2] = "TUESDAY"] = "TUESDAY";
18309+
values[valuesById[3] = "WEDNESDAY"] = "WEDNESDAY";
18310+
values[valuesById[4] = "THURSDAY"] = "THURSDAY";
18311+
values[valuesById[5] = "FRIDAY"] = "FRIDAY";
18312+
values[valuesById[6] = "SATURDAY"] = "SATURDAY";
18313+
values[valuesById[7] = "SUNDAY"] = "SUNDAY";
18314+
return values;
18315+
})();
18316+
1829118317
return type;
1829218318
})();
1829318319

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
// Copyright 2023 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.firestore.admin.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
import "google/protobuf/timestamp.proto";
22+
23+
option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
24+
option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
25+
option java_multiple_files = true;
26+
option java_outer_classname = "BackupProto";
27+
option java_package = "com.google.firestore.admin.v1";
28+
option objc_class_prefix = "GCFS";
29+
option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
30+
option ruby_package = "Google::Cloud::Firestore::Admin::V1";
31+
32+
// A Backup of a Cloud Firestore Database.
33+
//
34+
// The backup contains all documents and index configurations for the given
35+
// database at a specific point in time.
36+
message Backup {
37+
option (google.api.resource) = {
38+
type: "firestore.googleapis.com/Backup"
39+
pattern: "projects/{project}/locations/{location}/backups/{backup}"
40+
};
41+
42+
// Backup specific statistics.
43+
message Stats {
44+
// Output only. Summation of the size of all documents and index entries in
45+
// the backup, measured in bytes.
46+
int64 size_bytes = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
47+
48+
// Output only. The total number of documents contained in the backup.
49+
int64 document_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
50+
51+
// Output only. The total number of index entries contained in the backup.
52+
int64 index_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
53+
}
54+
55+
// Indicate the current state of the backup.
56+
enum State {
57+
// The state is unspecified.
58+
STATE_UNSPECIFIED = 0;
59+
60+
// The pending backup is still being created. Operations on the
61+
// backup will be rejected in this state.
62+
CREATING = 1;
63+
64+
// The backup is complete and ready to use.
65+
READY = 2;
66+
67+
// The backup is not available at this moment.
68+
NOT_AVAILABLE = 3;
69+
}
70+
71+
// Output only. The unique resource name of the Backup.
72+
//
73+
// Format is `projects/{project}/locations/{location}/backups/{backup}`.
74+
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
75+
76+
// Output only. Name of the Firestore database that the backup is from.
77+
//
78+
// Format is `projects/{project}/databases/{database}`.
79+
string database = 2 [
80+
(google.api.field_behavior) = OUTPUT_ONLY,
81+
(google.api.resource_reference) = {
82+
type: "firestore.googleapis.com/Database"
83+
}
84+
];
85+
86+
// Output only. The system-generated UUID4 for the Firestore database that the
87+
// backup is from.
88+
string database_uid = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
89+
90+
// Output only. The backup contains an externally consistent copy of the
91+
// database at this time.
92+
google.protobuf.Timestamp snapshot_time = 3
93+
[(google.api.field_behavior) = OUTPUT_ONLY];
94+
95+
// Output only. The timestamp at which this backup expires.
96+
google.protobuf.Timestamp expire_time = 4
97+
[(google.api.field_behavior) = OUTPUT_ONLY];
98+
99+
// Output only. Statistics about the backup.
100+
//
101+
// This data only becomes available after the backup is fully materialized to
102+
// secondary storage. This field will be empty till then.
103+
Stats stats = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
104+
105+
// Output only. The current state of the backup.
106+
State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
107+
}

0 commit comments

Comments
 (0)