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