|
141 | 141 | "https://www.googleapis.com/auth/datastore"
|
142 | 142 | ]
|
143 | 143 | },
|
| 144 | +"clone": { |
| 145 | +"description": "Creates a new database by cloning an existing one. The new database must be in the same cloud region or multi-region location as the existing database. This behaves similar to FirestoreAdmin.CreateDatabase except instead of creating a new empty database, a new database is created with the database type, index configuration, and documents from an existing database. The long-running operation can be used to track the progress of the clone, with the Operation's metadata field type being the CloneDatabaseMetadata. The response type is the Database if the clone was successful. The new database is not readable or writeable until the LRO has completed.", |
| 146 | +"flatPath": "v1/projects/{projectsId}/databases:clone", |
| 147 | +"httpMethod": "POST", |
| 148 | +"id": "firestore.projects.databases.clone", |
| 149 | +"parameterOrder": [ |
| 150 | +"parent" |
| 151 | +], |
| 152 | +"parameters": { |
| 153 | +"parent": { |
| 154 | +"description": "Required. The project to clone the database in. Format is `projects/{project_id}`.", |
| 155 | +"location": "path", |
| 156 | +"pattern": "^projects/[^/]+$", |
| 157 | +"required": true, |
| 158 | +"type": "string" |
| 159 | +} |
| 160 | +}, |
| 161 | +"path": "v1/{+parent}/databases:clone", |
| 162 | +"request": { |
| 163 | +"$ref": "GoogleFirestoreAdminV1CloneDatabaseRequest" |
| 164 | +}, |
| 165 | +"response": { |
| 166 | +"$ref": "GoogleLongrunningOperation" |
| 167 | +}, |
| 168 | +"scopes": [ |
| 169 | +"https://www.googleapis.com/auth/cloud-platform", |
| 170 | +"https://www.googleapis.com/auth/datastore" |
| 171 | +] |
| 172 | +}, |
144 | 173 | "create": {
|
145 | 174 | "description": "Create a database.",
|
146 | 175 | "flatPath": "v1/projects/{projectsId}/databases",
|
|
1920 | 1949 | }
|
1921 | 1950 | }
|
1922 | 1951 | },
|
1923 |
| -"revision": "20250414", |
| 1952 | +"revision": "20250618", |
1924 | 1953 | "rootUrl": "https://firestore.googleapis.com/",
|
1925 | 1954 | "schemas": {
|
1926 | 1955 | "Aggregation": {
|
|
2839 | 2868 | },
|
2840 | 2869 | "type": "object"
|
2841 | 2870 | },
|
| 2871 | +"GoogleFirestoreAdminV1CloneDatabaseMetadata": { |
| 2872 | +"description": "Metadata for the long-running operation from the CloneDatabase request.", |
| 2873 | +"id": "GoogleFirestoreAdminV1CloneDatabaseMetadata", |
| 2874 | +"properties": { |
| 2875 | +"database": { |
| 2876 | +"description": "The name of the database being cloned to.", |
| 2877 | +"type": "string" |
| 2878 | +}, |
| 2879 | +"endTime": { |
| 2880 | +"description": "The time the clone finished, unset for ongoing clones.", |
| 2881 | +"format": "google-datetime", |
| 2882 | +"type": "string" |
| 2883 | +}, |
| 2884 | +"operationState": { |
| 2885 | +"description": "The operation state of the clone.", |
| 2886 | +"enum": [ |
| 2887 | +"OPERATION_STATE_UNSPECIFIED", |
| 2888 | +"INITIALIZING", |
| 2889 | +"PROCESSING", |
| 2890 | +"CANCELLING", |
| 2891 | +"FINALIZING", |
| 2892 | +"SUCCESSFUL", |
| 2893 | +"FAILED", |
| 2894 | +"CANCELLED" |
| 2895 | +], |
| 2896 | +"enumDescriptions": [ |
| 2897 | +"Unspecified.", |
| 2898 | +"Request is being prepared for processing.", |
| 2899 | +"Request is actively being processed.", |
| 2900 | +"Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.", |
| 2901 | +"Request has been processed and is in its finalization stage.", |
| 2902 | +"Request has completed successfully.", |
| 2903 | +"Request has finished being processed, but encountered an error.", |
| 2904 | +"Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation." |
| 2905 | +], |
| 2906 | +"type": "string" |
| 2907 | +}, |
| 2908 | +"pitrSnapshot": { |
| 2909 | +"$ref": "GoogleFirestoreAdminV1PitrSnapshot", |
| 2910 | +"description": "The snapshot from which this database was cloned." |
| 2911 | +}, |
| 2912 | +"progressPercentage": { |
| 2913 | +"$ref": "GoogleFirestoreAdminV1Progress", |
| 2914 | +"description": "How far along the clone is as an estimated percentage of remaining time." |
| 2915 | +}, |
| 2916 | +"startTime": { |
| 2917 | +"description": "The time the clone was started.", |
| 2918 | +"format": "google-datetime", |
| 2919 | +"type": "string" |
| 2920 | +} |
| 2921 | +}, |
| 2922 | +"type": "object" |
| 2923 | +}, |
| 2924 | +"GoogleFirestoreAdminV1CloneDatabaseRequest": { |
| 2925 | +"description": "The request message for FirestoreAdmin.CloneDatabase.", |
| 2926 | +"id": "GoogleFirestoreAdminV1CloneDatabaseRequest", |
| 2927 | +"properties": { |
| 2928 | +"databaseId": { |
| 2929 | +"description": "Required. The ID to use for the database, which will become the final component of the database's resource name. This database ID must not be associated with an existing database. This value should be 4-63 characters. Valid characters are /a-z-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/. \"(default)\" database ID is also valid.", |
| 2930 | +"type": "string" |
| 2931 | +}, |
| 2932 | +"encryptionConfig": { |
| 2933 | +"$ref": "GoogleFirestoreAdminV1EncryptionConfig", |
| 2934 | +"description": "Optional. Encryption configuration for the cloned database. If this field is not specified, the cloned database will use the same encryption configuration as the source database, namely use_source_encryption." |
| 2935 | +}, |
| 2936 | +"pitrSnapshot": { |
| 2937 | +"$ref": "GoogleFirestoreAdminV1PitrSnapshot", |
| 2938 | +"description": "Required. Specification of the PITR data to clone from. The source database must exist. The cloned database will be created in the same location as the source database." |
| 2939 | +}, |
| 2940 | +"tags": { |
| 2941 | +"additionalProperties": { |
| 2942 | +"type": "string" |
| 2943 | +}, |
| 2944 | +"description": "Optional. Immutable. Tags to be bound to the cloned database. The tags should be provided in the format of `tagKeys/{tag_key_id} -> tagValues/{tag_value_id}`.", |
| 2945 | +"type": "object" |
| 2946 | +} |
| 2947 | +}, |
| 2948 | +"type": "object" |
| 2949 | +}, |
2842 | 2950 | "GoogleFirestoreAdminV1CmekConfig": {
|
2843 | 2951 | "description": "The CMEK (Customer Managed Encryption Key) configuration for a Firestore database. If not present, the database is secured by the default Google encryption key.",
|
2844 | 2952 | "id": "GoogleFirestoreAdminV1CmekConfig",
|
|
3735 | 3843 | "properties": {},
|
3736 | 3844 | "type": "object"
|
3737 | 3845 | },
|
| 3846 | +"GoogleFirestoreAdminV1PitrSnapshot": { |
| 3847 | +"description": "A consistent snapshot of a database at a specific point in time. A PITR (Point-in-time recovery) snapshot with previous versions of a database's data is available for every minute up to the associated database's data retention period. If the PITR feature is enabled, the retention period is 7 days; otherwise, it is one hour.", |
| 3848 | +"id": "GoogleFirestoreAdminV1PitrSnapshot", |
| 3849 | +"properties": { |
| 3850 | +"database": { |
| 3851 | +"description": "Required. The name of the database that this was a snapshot of. Format: `projects/{project}/databases/{database}`.", |
| 3852 | +"type": "string" |
| 3853 | +}, |
| 3854 | +"databaseUid": { |
| 3855 | +"description": "Output only. Public UUID of the database the snapshot was associated with.", |
| 3856 | +"format": "byte", |
| 3857 | +"readOnly": true, |
| 3858 | +"type": "string" |
| 3859 | +}, |
| 3860 | +"snapshotTime": { |
| 3861 | +"description": "Required. Snapshot time of the database.", |
| 3862 | +"format": "google-datetime", |
| 3863 | +"type": "string" |
| 3864 | +} |
| 3865 | +}, |
| 3866 | +"type": "object" |
| 3867 | +}, |
3738 | 3868 | "GoogleFirestoreAdminV1Progress": {
|
3739 | 3869 | "description": "Describes the progress of the operation. Unit of work is generic and must be interpreted based on where Progress is used.",
|
3740 | 3870 | "id": "GoogleFirestoreAdminV1Progress",
|
|
0 commit comments