1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="firestore_v1.html">Cloud Firestore API</a> . <a href="firestore_v1.projects.html">projects</a> . <a href="firestore_v1.projects.databases.html">databases</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="firestore_v1.projects.databases.collectionGroups.html">collectionGroups()</a></code> 79</p> 80<p class="firstline">Returns the collectionGroups Resource.</p> 81 82<p class="toc_element"> 83 <code><a href="firestore_v1.projects.databases.documents.html">documents()</a></code> 84</p> 85<p class="firstline">Returns the documents Resource.</p> 86 87<p class="toc_element"> 88 <code><a href="firestore_v1.projects.databases.operations.html">operations()</a></code> 89</p> 90<p class="firstline">Returns the operations Resource.</p> 91 92<p class="toc_element"> 93 <code><a href="#exportDocuments">exportDocuments(name, body, x__xgafv=None)</a></code></p> 94<p class="firstline">Exports a copy of all or a subset of documents from Google Cloud Firestore</p> 95<p class="toc_element"> 96 <code><a href="#importDocuments">importDocuments(name, body, x__xgafv=None)</a></code></p> 97<p class="firstline">Imports documents into Google Cloud Firestore. Existing documents with the</p> 98<h3>Method Details</h3> 99<div class="method"> 100 <code class="details" id="exportDocuments">exportDocuments(name, body, x__xgafv=None)</code> 101 <pre>Exports a copy of all or a subset of documents from Google Cloud Firestore 102to another storage system, such as Google Cloud Storage. Recent updates to 103documents may not be reflected in the export. The export occurs in the 104background and its progress can be monitored and managed via the 105Operation resource that is created. The output of an export may only be 106used once the associated operation is done. If an export operation is 107cancelled before completion it may leave partial data behind in Google 108Cloud Storage. 109 110Args: 111 name: string, Database to export. Should be of the form: 112`projects/{project_id}/databases/{database_id}`. (required) 113 body: object, The request body. (required) 114 The object takes the form of: 115 116{ # The request for FirestoreAdmin.ExportDocuments. 117 "outputUriPrefix": "A String", # The output URI. Currently only supports Google Cloud Storage URIs of the 118 # form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name 119 # of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional 120 # Google Cloud Storage namespace path. When 121 # choosing a name, be sure to consider Google Cloud Storage naming 122 # guidelines: https://cloud.google.com/storage/docs/naming. 123 # If the URI is a bucket (without a namespace path), a prefix will be 124 # generated based on the start time. 125 "collectionIds": [ # Which collection ids to export. Unspecified means all collections. 126 "A String", 127 ], 128 } 129 130 x__xgafv: string, V1 error format. 131 Allowed values 132 1 - v1 error format 133 2 - v2 error format 134 135Returns: 136 An object of the form: 137 138 { # This resource represents a long-running operation that is the result of a 139 # network API call. 140 "metadata": { # Service-specific metadata associated with the operation. It typically 141 # contains progress information and common metadata such as create time. 142 # Some services might not provide such metadata. Any method that returns a 143 # long-running operation should document the metadata type, if any. 144 "a_key": "", # Properties of the object. Contains field @type with type URL. 145 }, 146 "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. 147 # different programming environments, including REST APIs and RPC APIs. It is 148 # used by [gRPC](https://github.com/grpc). The error model is designed to be: 149 # 150 # - Simple to use and understand for most users 151 # - Flexible enough to meet unexpected needs 152 # 153 # # Overview 154 # 155 # The `Status` message contains three pieces of data: error code, error 156 # message, and error details. The error code should be an enum value of 157 # google.rpc.Code, but it may accept additional error codes if needed. The 158 # error message should be a developer-facing English message that helps 159 # developers *understand* and *resolve* the error. If a localized user-facing 160 # error message is needed, put the localized message in the error details or 161 # localize it in the client. The optional error details may contain arbitrary 162 # information about the error. There is a predefined set of error detail types 163 # in the package `google.rpc` that can be used for common error conditions. 164 # 165 # # Language mapping 166 # 167 # The `Status` message is the logical representation of the error model, but it 168 # is not necessarily the actual wire format. When the `Status` message is 169 # exposed in different client libraries and different wire protocols, it can be 170 # mapped differently. For example, it will likely be mapped to some exceptions 171 # in Java, but more likely mapped to some error codes in C. 172 # 173 # # Other uses 174 # 175 # The error model and the `Status` message can be used in a variety of 176 # environments, either with or without APIs, to provide a 177 # consistent developer experience across different environments. 178 # 179 # Example uses of this error model include: 180 # 181 # - Partial errors. If a service needs to return partial errors to the client, 182 # it may embed the `Status` in the normal response to indicate the partial 183 # errors. 184 # 185 # - Workflow errors. A typical workflow has multiple steps. Each step may 186 # have a `Status` message for error reporting. 187 # 188 # - Batch operations. If a client uses batch request and batch response, the 189 # `Status` message should be used directly inside batch response, one for 190 # each error sub-response. 191 # 192 # - Asynchronous operations. If an API call embeds asynchronous operation 193 # results in its response, the status of those operations should be 194 # represented directly using the `Status` message. 195 # 196 # - Logging. If some API errors are stored in logs, the message `Status` could 197 # be used directly after any stripping needed for security/privacy reasons. 198 "message": "A String", # A developer-facing error message, which should be in English. Any 199 # user-facing error message should be localized and sent in the 200 # google.rpc.Status.details field, or localized by the client. 201 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 202 "details": [ # A list of messages that carry the error details. There is a common set of 203 # message types for APIs to use. 204 { 205 "a_key": "", # Properties of the object. Contains field @type with type URL. 206 }, 207 ], 208 }, 209 "done": True or False, # If the value is `false`, it means the operation is still in progress. 210 # If `true`, the operation is completed, and either `error` or `response` is 211 # available. 212 "response": { # The normal response of the operation in case of success. If the original 213 # method returns no data on success, such as `Delete`, the response is 214 # `google.protobuf.Empty`. If the original method is standard 215 # `Get`/`Create`/`Update`, the response should be the resource. For other 216 # methods, the response should have the type `XxxResponse`, where `Xxx` 217 # is the original method name. For example, if the original method name 218 # is `TakeSnapshot()`, the inferred response type is 219 # `TakeSnapshotResponse`. 220 "a_key": "", # Properties of the object. Contains field @type with type URL. 221 }, 222 "name": "A String", # The server-assigned name, which is only unique within the same service that 223 # originally returns it. If you use the default HTTP mapping, the 224 # `name` should have the format of `operations/some/unique/name`. 225 }</pre> 226</div> 227 228<div class="method"> 229 <code class="details" id="importDocuments">importDocuments(name, body, x__xgafv=None)</code> 230 <pre>Imports documents into Google Cloud Firestore. Existing documents with the 231same name are overwritten. The import occurs in the background and its 232progress can be monitored and managed via the Operation resource that is 233created. If an ImportDocuments operation is cancelled, it is possible 234that a subset of the data has already been imported to Cloud Firestore. 235 236Args: 237 name: string, Database to import into. Should be of the form: 238`projects/{project_id}/databases/{database_id}`. (required) 239 body: object, The request body. (required) 240 The object takes the form of: 241 242{ # The request for FirestoreAdmin.ImportDocuments. 243 "inputUriPrefix": "A String", # Location of the exported files. 244 # This must match the output_uri_prefix of an ExportDocumentsResponse from 245 # an export that has completed successfully. 246 # See: 247 # google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix. 248 "collectionIds": [ # Which collection ids to import. Unspecified means all collections included 249 # in the import. 250 "A String", 251 ], 252 } 253 254 x__xgafv: string, V1 error format. 255 Allowed values 256 1 - v1 error format 257 2 - v2 error format 258 259Returns: 260 An object of the form: 261 262 { # This resource represents a long-running operation that is the result of a 263 # network API call. 264 "metadata": { # Service-specific metadata associated with the operation. It typically 265 # contains progress information and common metadata such as create time. 266 # Some services might not provide such metadata. Any method that returns a 267 # long-running operation should document the metadata type, if any. 268 "a_key": "", # Properties of the object. Contains field @type with type URL. 269 }, 270 "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. 271 # different programming environments, including REST APIs and RPC APIs. It is 272 # used by [gRPC](https://github.com/grpc). The error model is designed to be: 273 # 274 # - Simple to use and understand for most users 275 # - Flexible enough to meet unexpected needs 276 # 277 # # Overview 278 # 279 # The `Status` message contains three pieces of data: error code, error 280 # message, and error details. The error code should be an enum value of 281 # google.rpc.Code, but it may accept additional error codes if needed. The 282 # error message should be a developer-facing English message that helps 283 # developers *understand* and *resolve* the error. If a localized user-facing 284 # error message is needed, put the localized message in the error details or 285 # localize it in the client. The optional error details may contain arbitrary 286 # information about the error. There is a predefined set of error detail types 287 # in the package `google.rpc` that can be used for common error conditions. 288 # 289 # # Language mapping 290 # 291 # The `Status` message is the logical representation of the error model, but it 292 # is not necessarily the actual wire format. When the `Status` message is 293 # exposed in different client libraries and different wire protocols, it can be 294 # mapped differently. For example, it will likely be mapped to some exceptions 295 # in Java, but more likely mapped to some error codes in C. 296 # 297 # # Other uses 298 # 299 # The error model and the `Status` message can be used in a variety of 300 # environments, either with or without APIs, to provide a 301 # consistent developer experience across different environments. 302 # 303 # Example uses of this error model include: 304 # 305 # - Partial errors. If a service needs to return partial errors to the client, 306 # it may embed the `Status` in the normal response to indicate the partial 307 # errors. 308 # 309 # - Workflow errors. A typical workflow has multiple steps. Each step may 310 # have a `Status` message for error reporting. 311 # 312 # - Batch operations. If a client uses batch request and batch response, the 313 # `Status` message should be used directly inside batch response, one for 314 # each error sub-response. 315 # 316 # - Asynchronous operations. If an API call embeds asynchronous operation 317 # results in its response, the status of those operations should be 318 # represented directly using the `Status` message. 319 # 320 # - Logging. If some API errors are stored in logs, the message `Status` could 321 # be used directly after any stripping needed for security/privacy reasons. 322 "message": "A String", # A developer-facing error message, which should be in English. Any 323 # user-facing error message should be localized and sent in the 324 # google.rpc.Status.details field, or localized by the client. 325 "code": 42, # The status code, which should be an enum value of google.rpc.Code. 326 "details": [ # A list of messages that carry the error details. There is a common set of 327 # message types for APIs to use. 328 { 329 "a_key": "", # Properties of the object. Contains field @type with type URL. 330 }, 331 ], 332 }, 333 "done": True or False, # If the value is `false`, it means the operation is still in progress. 334 # If `true`, the operation is completed, and either `error` or `response` is 335 # available. 336 "response": { # The normal response of the operation in case of success. If the original 337 # method returns no data on success, such as `Delete`, the response is 338 # `google.protobuf.Empty`. If the original method is standard 339 # `Get`/`Create`/`Update`, the response should be the resource. For other 340 # methods, the response should have the type `XxxResponse`, where `Xxx` 341 # is the original method name. For example, if the original method name 342 # is `TakeSnapshot()`, the inferred response type is 343 # `TakeSnapshotResponse`. 344 "a_key": "", # Properties of the object. Contains field @type with type URL. 345 }, 346 "name": "A String", # The server-assigned name, which is only unique within the same service that 347 # originally returns it. If you use the default HTTP mapping, the 348 # `name` should have the format of `operations/some/unique/name`. 349 }</pre> 350</div> 351 352</body></html>