Skip to content

Commit

Permalink
feat: A new message Backup is added (#2021)
Browse files Browse the repository at this point in the history
- [ ] 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
  • Loading branch information
gcf-owl-bot[bot] committed Mar 15, 2024
1 parent eb3d55c commit 6bced86
Show file tree
Hide file tree
Showing 18 changed files with 9,802 additions and 2,415 deletions.
591 changes: 559 additions & 32 deletions dev/protos/admin_v1.json

Large diffs are not rendered by default.

1,601 changes: 1,376 additions & 225 deletions dev/protos/firestore_admin_v1_proto_api.d.ts

Large diffs are not rendered by default.

6,585 changes: 4,568 additions & 2,017 deletions dev/protos/firestore_admin_v1_proto_api.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dev/protos/firestore_v1_proto_api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8507,6 +8507,10 @@ export namespace google {
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** DayOfWeek enum. */
type DayOfWeek =
"DAY_OF_WEEK_UNSPECIFIED"| "MONDAY"| "TUESDAY"| "WEDNESDAY"| "THURSDAY"| "FRIDAY"| "SATURDAY"| "SUNDAY";
}

/** Namespace api. */
Expand Down
26 changes: 26 additions & 0 deletions dev/protos/firestore_v1_proto_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -20899,6 +20899,32 @@
return LatLng;
})();

/**
* DayOfWeek enum.
* @name google.type.DayOfWeek
* @enum {string}
* @property {string} DAY_OF_WEEK_UNSPECIFIED=DAY_OF_WEEK_UNSPECIFIED DAY_OF_WEEK_UNSPECIFIED value
* @property {string} MONDAY=MONDAY MONDAY value
* @property {string} TUESDAY=TUESDAY TUESDAY value
* @property {string} WEDNESDAY=WEDNESDAY WEDNESDAY value
* @property {string} THURSDAY=THURSDAY THURSDAY value
* @property {string} FRIDAY=FRIDAY FRIDAY value
* @property {string} SATURDAY=SATURDAY SATURDAY value
* @property {string} SUNDAY=SUNDAY SUNDAY value
*/
type.DayOfWeek = (function() {
var valuesById = {}, values = Object.create(valuesById);
values[valuesById[0] = "DAY_OF_WEEK_UNSPECIFIED"] = "DAY_OF_WEEK_UNSPECIFIED";
values[valuesById[1] = "MONDAY"] = "MONDAY";
values[valuesById[2] = "TUESDAY"] = "TUESDAY";
values[valuesById[3] = "WEDNESDAY"] = "WEDNESDAY";
values[valuesById[4] = "THURSDAY"] = "THURSDAY";
values[valuesById[5] = "FRIDAY"] = "FRIDAY";
values[valuesById[6] = "SATURDAY"] = "SATURDAY";
values[valuesById[7] = "SUNDAY"] = "SUNDAY";
return values;
})();

return type;
})();

Expand Down
4 changes: 4 additions & 0 deletions dev/protos/firestore_v1beta1_proto_api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7385,6 +7385,10 @@ export namespace google {
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** DayOfWeek enum. */
type DayOfWeek =
"DAY_OF_WEEK_UNSPECIFIED"| "MONDAY"| "TUESDAY"| "WEDNESDAY"| "THURSDAY"| "FRIDAY"| "SATURDAY"| "SUNDAY";
}

/** Namespace api. */
Expand Down
26 changes: 26 additions & 0 deletions dev/protos/firestore_v1beta1_proto_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -18288,6 +18288,32 @@
return LatLng;
})();

/**
* DayOfWeek enum.
* @name google.type.DayOfWeek
* @enum {string}
* @property {string} DAY_OF_WEEK_UNSPECIFIED=DAY_OF_WEEK_UNSPECIFIED DAY_OF_WEEK_UNSPECIFIED value
* @property {string} MONDAY=MONDAY MONDAY value
* @property {string} TUESDAY=TUESDAY TUESDAY value
* @property {string} WEDNESDAY=WEDNESDAY WEDNESDAY value
* @property {string} THURSDAY=THURSDAY THURSDAY value
* @property {string} FRIDAY=FRIDAY FRIDAY value
* @property {string} SATURDAY=SATURDAY SATURDAY value
* @property {string} SUNDAY=SUNDAY SUNDAY value
*/
type.DayOfWeek = (function() {
var valuesById = {}, values = Object.create(valuesById);
values[valuesById[0] = "DAY_OF_WEEK_UNSPECIFIED"] = "DAY_OF_WEEK_UNSPECIFIED";
values[valuesById[1] = "MONDAY"] = "MONDAY";
values[valuesById[2] = "TUESDAY"] = "TUESDAY";
values[valuesById[3] = "WEDNESDAY"] = "WEDNESDAY";
values[valuesById[4] = "THURSDAY"] = "THURSDAY";
values[valuesById[5] = "FRIDAY"] = "FRIDAY";
values[valuesById[6] = "SATURDAY"] = "SATURDAY";
values[valuesById[7] = "SUNDAY"] = "SUNDAY";
return values;
})();

return type;
})();

Expand Down
107 changes: 107 additions & 0 deletions dev/protos/google/firestore/admin/v1/backup.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.firestore.admin.v1;

import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Cloud.Firestore.Admin.V1";
option go_package = "cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb";
option java_multiple_files = true;
option java_outer_classname = "BackupProto";
option java_package = "com.google.firestore.admin.v1";
option objc_class_prefix = "GCFS";
option php_namespace = "Google\\Cloud\\Firestore\\Admin\\V1";
option ruby_package = "Google::Cloud::Firestore::Admin::V1";

// A Backup of a Cloud Firestore Database.
//
// The backup contains all documents and index configurations for the given
// database at a specific point in time.
message Backup {
option (google.api.resource) = {
type: "firestore.googleapis.com/Backup"
pattern: "projects/{project}/locations/{location}/backups/{backup}"
};

// Backup specific statistics.
message Stats {
// Output only. Summation of the size of all documents and index entries in
// the backup, measured in bytes.
int64 size_bytes = 1 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The total number of documents contained in the backup.
int64 document_count = 2 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The total number of index entries contained in the backup.
int64 index_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// Indicate the current state of the backup.
enum State {
// The state is unspecified.
STATE_UNSPECIFIED = 0;

// The pending backup is still being created. Operations on the
// backup will be rejected in this state.
CREATING = 1;

// The backup is complete and ready to use.
READY = 2;

// The backup is not available at this moment.
NOT_AVAILABLE = 3;
}

// Output only. The unique resource name of the Backup.
//
// Format is `projects/{project}/locations/{location}/backups/{backup}`.
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Name of the Firestore database that the backup is from.
//
// Format is `projects/{project}/databases/{database}`.
string database = 2 [
(google.api.field_behavior) = OUTPUT_ONLY,
(google.api.resource_reference) = {
type: "firestore.googleapis.com/Database"
}
];

// Output only. The system-generated UUID4 for the Firestore database that the
// backup is from.
string database_uid = 7 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The backup contains an externally consistent copy of the
// database at this time.
google.protobuf.Timestamp snapshot_time = 3
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The timestamp at which this backup expires.
google.protobuf.Timestamp expire_time = 4
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. Statistics about the backup.
//
// This data only becomes available after the backup is fully materialized to
// secondary storage. This field will be empty till then.
Stats stats = 6 [(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The current state of the backup.
State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
}
Loading

0 comments on commit 6bced86

Please sign in to comment.