Skip to content

Commit

Permalink
feat: expose Firestore PITR fields in Database to stable
Browse files Browse the repository at this point in the history
feat: expose Firestore snapshot_time field in export API to stable
feat: expose Firestore namespace ID fields in import/export APIs to stable
docs: assorted typo fixes and whitespace updates

PiperOrigin-RevId: 587811576

Source-Link: googleapis/googleapis@fbe1c8e

Source-Link: googleapis/googleapis-gen@5fe704d
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuRmlyZXN0b3JlLkFkbWluLlYxLy5Pd2xCb3QueWFtbCIsImgiOiI1ZmU3MDRkOTRmYTJkOWExZGNlNzUyOTQyYjczMDg4NzMxMjRiN2RkIn0=
  • Loading branch information
gcf-owl-bot[bot] authored and amanda-tarafa committed Dec 5, 2023
1 parent 51d8805 commit 164e151
Show file tree
Hide file tree
Showing 10 changed files with 681 additions and 230 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace GoogleCSharpSnippets
// [START firestore_v1_generated_FirestoreAdmin_ExportDocuments_async]
using Google.Cloud.Firestore.Admin.V1;
using Google.LongRunning;
using Google.Protobuf.WellKnownTypes;
using System.Threading.Tasks;

public sealed partial class GeneratedFirestoreAdminClientSnippets
Expand All @@ -41,6 +42,8 @@ public async Task ExportDocumentsRequestObjectAsync()
DatabaseName = DatabaseName.FromProjectDatabase("[PROJECT]", "[DATABASE]"),
CollectionIds = { "", },
OutputUriPrefix = "",
NamespaceIds = { "", },
SnapshotTime = new Timestamp(),
};
// Make the request
Operation<ExportDocumentsResponse, ExportDocumentsMetadata> response = await firestoreAdminClient.ExportDocumentsAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace GoogleCSharpSnippets
// [START firestore_v1_generated_FirestoreAdmin_ExportDocuments_sync]
using Google.Cloud.Firestore.Admin.V1;
using Google.LongRunning;
using Google.Protobuf.WellKnownTypes;

public sealed partial class GeneratedFirestoreAdminClientSnippets
{
Expand All @@ -40,6 +41,8 @@ public void ExportDocumentsRequestObject()
DatabaseName = DatabaseName.FromProjectDatabase("[PROJECT]", "[DATABASE]"),
CollectionIds = { "", },
OutputUriPrefix = "",
NamespaceIds = { "", },
SnapshotTime = new Timestamp(),
};
// Make the request
Operation<ExportDocumentsResponse, ExportDocumentsMetadata> response = firestoreAdminClient.ExportDocuments(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public async Task ImportDocumentsRequestObjectAsync()
DatabaseName = DatabaseName.FromProjectDatabase("[PROJECT]", "[DATABASE]"),
CollectionIds = { "", },
InputUriPrefix = "",
NamespaceIds = { "", },
};
// Make the request
Operation<Empty, ImportDocumentsMetadata> response = await firestoreAdminClient.ImportDocumentsAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public void ImportDocumentsRequestObject()
DatabaseName = DatabaseName.FromProjectDatabase("[PROJECT]", "[DATABASE]"),
CollectionIds = { "", },
InputUriPrefix = "",
NamespaceIds = { "", },
};
// Make the request
Operation<Empty, ImportDocumentsMetadata> response = firestoreAdminClient.ImportDocuments(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2039,12 +2039,12 @@
"segments": [
{
"start": 20,
"end": 63,
"end": 66,
"type": "FULL"
},
{
"start": 35,
"end": 61,
"start": 36,
"end": 64,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -2088,12 +2088,12 @@
"segments": [
{
"start": 20,
"end": 64,
"end": 67,
"type": "FULL"
},
{
"start": 36,
"end": 62,
"start": 37,
"end": 65,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -2326,12 +2326,12 @@
"segments": [
{
"start": 20,
"end": 64,
"end": 65,
"type": "FULL"
},
{
"start": 36,
"end": 62,
"end": 63,
"type": "SHORT"
}
]
Expand Down Expand Up @@ -2375,12 +2375,12 @@
"segments": [
{
"start": 20,
"end": 65,
"end": 66,
"type": "FULL"
},
{
"start": 37,
"end": 63,
"end": 64,
"type": "SHORT"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,8 @@ public void ExportDocumentsRequestObject()
DatabaseName = gcfav::DatabaseName.FromProjectDatabase("[PROJECT]", "[DATABASE]"),
CollectionIds = { "", },
OutputUriPrefix = "",
NamespaceIds = { "", },
SnapshotTime = new Timestamp(),
};
// Make the request
Operation<gcfav::ExportDocumentsResponse, gcfav::ExportDocumentsMetadata> response = firestoreAdminClient.ExportDocuments(request);
Expand Down Expand Up @@ -1209,6 +1211,8 @@ public async Task ExportDocumentsRequestObjectAsync()
DatabaseName = gcfav::DatabaseName.FromProjectDatabase("[PROJECT]", "[DATABASE]"),
CollectionIds = { "", },
OutputUriPrefix = "",
NamespaceIds = { "", },
SnapshotTime = new Timestamp(),
};
// Make the request
Operation<gcfav::ExportDocumentsResponse, gcfav::ExportDocumentsMetadata> response = await firestoreAdminClient.ExportDocumentsAsync(request);
Expand Down Expand Up @@ -1361,6 +1365,7 @@ public void ImportDocumentsRequestObject()
DatabaseName = gcfav::DatabaseName.FromProjectDatabase("[PROJECT]", "[DATABASE]"),
CollectionIds = { "", },
InputUriPrefix = "",
NamespaceIds = { "", },
};
// Make the request
Operation<Empty, gcfav::ImportDocumentsMetadata> response = firestoreAdminClient.ImportDocuments(request);
Expand Down Expand Up @@ -1396,6 +1401,7 @@ public async Task ImportDocumentsRequestObjectAsync()
DatabaseName = gcfav::DatabaseName.FromProjectDatabase("[PROJECT]", "[DATABASE]"),
CollectionIds = { "", },
InputUriPrefix = "",
NamespaceIds = { "", },
};
// Make the request
Operation<Empty, gcfav::ImportDocumentsMetadata> response = await firestoreAdminClient.ImportDocumentsAsync(request);
Expand Down
Loading

0 comments on commit 164e151

Please sign in to comment.