google_cloud_firestore_admin_v1/client.rs
1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Code generated by sidekick. DO NOT EDIT.
16#![allow(rustdoc::redundant_explicit_links)]
17#![allow(rustdoc::broken_intra_doc_links)]
18
19/// Implements a client for the Cloud Firestore API.
20///
21/// # Example
22/// ```
23/// # tokio_test::block_on(async {
24/// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
25/// let client = FirestoreAdmin::builder().build().await?;
26/// // use `client` to make requests to the Cloud Firestore API.
27/// # gax::client_builder::Result::<()>::Ok(()) });
28/// ```
29///
30/// # Service Description
31///
32/// The Cloud Firestore Admin API.
33///
34/// This API provides several administrative services for Cloud Firestore.
35///
36/// Project, Database, Namespace, Collection, Collection Group, and Document are
37/// used as defined in the Google Cloud Firestore API.
38///
39/// Operation: An Operation represents work being performed in the background.
40///
41/// The index service manages Cloud Firestore indexes.
42///
43/// Index creation is performed asynchronously.
44/// An Operation resource is created for each such asynchronous operation.
45/// The state of the operation (including any errors encountered)
46/// may be queried via the Operation resource.
47///
48/// The Operations collection provides a record of actions performed for the
49/// specified Project (including any Operations in progress). Operations are not
50/// created directly but through calls on other collections or resources.
51///
52/// An Operation that is done may be deleted so that it is no longer listed as
53/// part of the Operation collection. Operations are garbage collected after
54/// 30 days. By default, ListOperations will only return in progress and failed
55/// operations. To list completed operation, issue a ListOperations request with
56/// the filter `done: true`.
57///
58/// Operations are created by service `FirestoreAdmin`, but are accessed via
59/// service `google.longrunning.Operations`.
60///
61/// # Configuration
62///
63/// To configure `FirestoreAdmin` use the `with_*` methods in the type returned
64/// by [builder()][FirestoreAdmin::builder]. The default configuration should
65/// work for most applications. Common configuration changes include
66///
67/// * [with_endpoint()]: by default this client uses the global default endpoint
68/// (`https://firestore.googleapis.com`). Applications using regional
69/// endpoints or running in restricted networks (e.g. a network configured
70// with [Private Google Access with VPC Service Controls]) may want to
71/// override this default.
72/// * [with_credentials()]: by default this client uses
73/// [Application Default Credentials]. Applications using custom
74/// authentication may need to override this default.
75///
76/// [with_endpoint()]: super::builder::firestore_admin::ClientBuilder::with_endpoint
77/// [with_credentials()]: super::builder::firestore_admin::ClientBuilder::credentials
78/// [Private Google Access with VPC Service Controls]: https://cloud.google.com/vpc-service-controls/docs/private-connectivity
79/// [Application Default Credentials]: https://cloud.google.com/docs/authentication#adc
80///
81/// # Pooling and Cloning
82///
83/// `FirestoreAdmin` holds a connection pool internally, it is advised to
84/// create one and the reuse it. You do not need to wrap `FirestoreAdmin` in
85/// an [Rc](std::rc::Rc) or [Arc](std::sync::Arc) to reuse it, because it
86/// already uses an `Arc` internally.
87#[derive(Clone, Debug)]
88pub struct FirestoreAdmin {
89 inner: std::sync::Arc<dyn super::stub::dynamic::FirestoreAdmin>,
90}
91
92impl FirestoreAdmin {
93 /// Returns a builder for [FirestoreAdmin].
94 ///
95 /// ```
96 /// # tokio_test::block_on(async {
97 /// # use google_cloud_firestore_admin_v1::client::FirestoreAdmin;
98 /// let client = FirestoreAdmin::builder().build().await?;
99 /// # gax::client_builder::Result::<()>::Ok(()) });
100 /// ```
101 pub fn builder() -> super::builder::firestore_admin::ClientBuilder {
102 gax::client_builder::internal::new_builder(super::builder::firestore_admin::client::Factory)
103 }
104
105 /// Creates a new client from the provided stub.
106 ///
107 /// The most common case for calling this function is in tests mocking the
108 /// client's behavior.
109 pub fn from_stub<T>(stub: T) -> Self
110 where
111 T: super::stub::FirestoreAdmin + 'static,
112 {
113 Self {
114 inner: std::sync::Arc::new(stub),
115 }
116 }
117
118 pub(crate) async fn new(
119 config: gaxi::options::ClientConfig,
120 ) -> gax::client_builder::Result<Self> {
121 let inner = Self::build_inner(config).await?;
122 Ok(Self { inner })
123 }
124
125 async fn build_inner(
126 conf: gaxi::options::ClientConfig,
127 ) -> gax::client_builder::Result<std::sync::Arc<dyn super::stub::dynamic::FirestoreAdmin>> {
128 if gaxi::options::tracing_enabled(&conf) {
129 return Ok(std::sync::Arc::new(Self::build_with_tracing(conf).await?));
130 }
131 Ok(std::sync::Arc::new(Self::build_transport(conf).await?))
132 }
133
134 async fn build_transport(
135 conf: gaxi::options::ClientConfig,
136 ) -> gax::client_builder::Result<impl super::stub::FirestoreAdmin> {
137 super::transport::FirestoreAdmin::new(conf).await
138 }
139
140 async fn build_with_tracing(
141 conf: gaxi::options::ClientConfig,
142 ) -> gax::client_builder::Result<impl super::stub::FirestoreAdmin> {
143 Self::build_transport(conf)
144 .await
145 .map(super::tracing::FirestoreAdmin::new)
146 }
147
148 /// Creates a composite index. This returns a
149 /// [google.longrunning.Operation][google.longrunning.Operation] which may be
150 /// used to track the status of the creation. The metadata for the operation
151 /// will be the type
152 /// [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
153 ///
154 /// [google.firestore.admin.v1.IndexOperationMetadata]: crate::model::IndexOperationMetadata
155 /// [google.longrunning.Operation]: longrunning::model::Operation
156 ///
157 /// # Long running operations
158 ///
159 /// This method is used to start, and/or poll a [long-running Operation].
160 /// The [Working with long-running operations] chapter in the [user guide]
161 /// covers these operations in detail.
162 ///
163 /// [long-running operation]: https://google.aip.dev/151
164 /// [user guide]: https://googleapis.github.io/google-cloud-rust/
165 /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
166 pub fn create_index(&self) -> super::builder::firestore_admin::CreateIndex {
167 super::builder::firestore_admin::CreateIndex::new(self.inner.clone())
168 }
169
170 /// Lists composite indexes.
171 pub fn list_indexes(&self) -> super::builder::firestore_admin::ListIndexes {
172 super::builder::firestore_admin::ListIndexes::new(self.inner.clone())
173 }
174
175 /// Gets a composite index.
176 pub fn get_index(&self) -> super::builder::firestore_admin::GetIndex {
177 super::builder::firestore_admin::GetIndex::new(self.inner.clone())
178 }
179
180 /// Deletes a composite index.
181 pub fn delete_index(&self) -> super::builder::firestore_admin::DeleteIndex {
182 super::builder::firestore_admin::DeleteIndex::new(self.inner.clone())
183 }
184
185 /// Gets the metadata and configuration for a Field.
186 pub fn get_field(&self) -> super::builder::firestore_admin::GetField {
187 super::builder::firestore_admin::GetField::new(self.inner.clone())
188 }
189
190 /// Updates a field configuration. Currently, field updates apply only to
191 /// single field index configuration. However, calls to
192 /// [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]
193 /// should provide a field mask to avoid changing any configuration that the
194 /// caller isn't aware of. The field mask should be specified as: `{ paths:
195 /// "index_config" }`.
196 ///
197 /// This call returns a
198 /// [google.longrunning.Operation][google.longrunning.Operation] which may be
199 /// used to track the status of the field update. The metadata for the
200 /// operation will be the type
201 /// [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
202 ///
203 /// To configure the default field settings for the database, use
204 /// the special `Field` with resource name:
205 /// `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
206 ///
207 /// [google.firestore.admin.v1.FieldOperationMetadata]: crate::model::FieldOperationMetadata
208 /// [google.firestore.admin.v1.FirestoreAdmin.UpdateField]: crate::client::FirestoreAdmin::update_field
209 /// [google.longrunning.Operation]: longrunning::model::Operation
210 ///
211 /// # Long running operations
212 ///
213 /// This method is used to start, and/or poll a [long-running Operation].
214 /// The [Working with long-running operations] chapter in the [user guide]
215 /// covers these operations in detail.
216 ///
217 /// [long-running operation]: https://google.aip.dev/151
218 /// [user guide]: https://googleapis.github.io/google-cloud-rust/
219 /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
220 pub fn update_field(&self) -> super::builder::firestore_admin::UpdateField {
221 super::builder::firestore_admin::UpdateField::new(self.inner.clone())
222 }
223
224 /// Lists the field configuration and metadata for this database.
225 ///
226 /// Currently,
227 /// [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
228 /// only supports listing fields that have been explicitly overridden. To issue
229 /// this query, call
230 /// [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
231 /// with the filter set to `indexConfig.usesAncestorConfig:false` or
232 /// `ttlConfig:*`.
233 ///
234 /// [google.firestore.admin.v1.FirestoreAdmin.ListFields]: crate::client::FirestoreAdmin::list_fields
235 pub fn list_fields(&self) -> super::builder::firestore_admin::ListFields {
236 super::builder::firestore_admin::ListFields::new(self.inner.clone())
237 }
238
239 /// Exports a copy of all or a subset of documents from Google Cloud Firestore
240 /// to another storage system, such as Google Cloud Storage. Recent updates to
241 /// documents may not be reflected in the export. The export occurs in the
242 /// background and its progress can be monitored and managed via the
243 /// Operation resource that is created. The output of an export may only be
244 /// used once the associated operation is done. If an export operation is
245 /// cancelled before completion it may leave partial data behind in Google
246 /// Cloud Storage.
247 ///
248 /// For more details on export behavior and output format, refer to:
249 /// <https://cloud.google.com/firestore/docs/manage-data/export-import>
250 ///
251 /// # Long running operations
252 ///
253 /// This method is used to start, and/or poll a [long-running Operation].
254 /// The [Working with long-running operations] chapter in the [user guide]
255 /// covers these operations in detail.
256 ///
257 /// [long-running operation]: https://google.aip.dev/151
258 /// [user guide]: https://googleapis.github.io/google-cloud-rust/
259 /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
260 pub fn export_documents(&self) -> super::builder::firestore_admin::ExportDocuments {
261 super::builder::firestore_admin::ExportDocuments::new(self.inner.clone())
262 }
263
264 /// Imports documents into Google Cloud Firestore. Existing documents with the
265 /// same name are overwritten. The import occurs in the background and its
266 /// progress can be monitored and managed via the Operation resource that is
267 /// created. If an ImportDocuments operation is cancelled, it is possible
268 /// that a subset of the data has already been imported to Cloud Firestore.
269 ///
270 /// # Long running operations
271 ///
272 /// This method is used to start, and/or poll a [long-running Operation].
273 /// The [Working with long-running operations] chapter in the [user guide]
274 /// covers these operations in detail.
275 ///
276 /// [long-running operation]: https://google.aip.dev/151
277 /// [user guide]: https://googleapis.github.io/google-cloud-rust/
278 /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
279 pub fn import_documents(&self) -> super::builder::firestore_admin::ImportDocuments {
280 super::builder::firestore_admin::ImportDocuments::new(self.inner.clone())
281 }
282
283 /// Bulk deletes a subset of documents from Google Cloud Firestore.
284 /// Documents created or updated after the underlying system starts to process
285 /// the request will not be deleted. The bulk delete occurs in the background
286 /// and its progress can be monitored and managed via the Operation resource
287 /// that is created.
288 ///
289 /// For more details on bulk delete behavior, refer to:
290 /// <https://cloud.google.com/firestore/docs/manage-data/bulk-delete>
291 ///
292 /// # Long running operations
293 ///
294 /// This method is used to start, and/or poll a [long-running Operation].
295 /// The [Working with long-running operations] chapter in the [user guide]
296 /// covers these operations in detail.
297 ///
298 /// [long-running operation]: https://google.aip.dev/151
299 /// [user guide]: https://googleapis.github.io/google-cloud-rust/
300 /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
301 pub fn bulk_delete_documents(&self) -> super::builder::firestore_admin::BulkDeleteDocuments {
302 super::builder::firestore_admin::BulkDeleteDocuments::new(self.inner.clone())
303 }
304
305 /// Create a database.
306 ///
307 /// # Long running operations
308 ///
309 /// This method is used to start, and/or poll a [long-running Operation].
310 /// The [Working with long-running operations] chapter in the [user guide]
311 /// covers these operations in detail.
312 ///
313 /// [long-running operation]: https://google.aip.dev/151
314 /// [user guide]: https://googleapis.github.io/google-cloud-rust/
315 /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
316 pub fn create_database(&self) -> super::builder::firestore_admin::CreateDatabase {
317 super::builder::firestore_admin::CreateDatabase::new(self.inner.clone())
318 }
319
320 /// Gets information about a database.
321 pub fn get_database(&self) -> super::builder::firestore_admin::GetDatabase {
322 super::builder::firestore_admin::GetDatabase::new(self.inner.clone())
323 }
324
325 /// List all the databases in the project.
326 pub fn list_databases(&self) -> super::builder::firestore_admin::ListDatabases {
327 super::builder::firestore_admin::ListDatabases::new(self.inner.clone())
328 }
329
330 /// Updates a database.
331 ///
332 /// # Long running operations
333 ///
334 /// This method is used to start, and/or poll a [long-running Operation].
335 /// The [Working with long-running operations] chapter in the [user guide]
336 /// covers these operations in detail.
337 ///
338 /// [long-running operation]: https://google.aip.dev/151
339 /// [user guide]: https://googleapis.github.io/google-cloud-rust/
340 /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
341 pub fn update_database(&self) -> super::builder::firestore_admin::UpdateDatabase {
342 super::builder::firestore_admin::UpdateDatabase::new(self.inner.clone())
343 }
344
345 /// Deletes a database.
346 ///
347 /// # Long running operations
348 ///
349 /// This method is used to start, and/or poll a [long-running Operation].
350 /// The [Working with long-running operations] chapter in the [user guide]
351 /// covers these operations in detail.
352 ///
353 /// [long-running operation]: https://google.aip.dev/151
354 /// [user guide]: https://googleapis.github.io/google-cloud-rust/
355 /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
356 pub fn delete_database(&self) -> super::builder::firestore_admin::DeleteDatabase {
357 super::builder::firestore_admin::DeleteDatabase::new(self.inner.clone())
358 }
359
360 /// Create a user creds.
361 pub fn create_user_creds(&self) -> super::builder::firestore_admin::CreateUserCreds {
362 super::builder::firestore_admin::CreateUserCreds::new(self.inner.clone())
363 }
364
365 /// Gets a user creds resource. Note that the returned resource does not
366 /// contain the secret value itself.
367 pub fn get_user_creds(&self) -> super::builder::firestore_admin::GetUserCreds {
368 super::builder::firestore_admin::GetUserCreds::new(self.inner.clone())
369 }
370
371 /// List all user creds in the database. Note that the returned resource
372 /// does not contain the secret value itself.
373 pub fn list_user_creds(&self) -> super::builder::firestore_admin::ListUserCreds {
374 super::builder::firestore_admin::ListUserCreds::new(self.inner.clone())
375 }
376
377 /// Enables a user creds. No-op if the user creds are already enabled.
378 pub fn enable_user_creds(&self) -> super::builder::firestore_admin::EnableUserCreds {
379 super::builder::firestore_admin::EnableUserCreds::new(self.inner.clone())
380 }
381
382 /// Disables a user creds. No-op if the user creds are already disabled.
383 pub fn disable_user_creds(&self) -> super::builder::firestore_admin::DisableUserCreds {
384 super::builder::firestore_admin::DisableUserCreds::new(self.inner.clone())
385 }
386
387 /// Resets the password of a user creds.
388 pub fn reset_user_password(&self) -> super::builder::firestore_admin::ResetUserPassword {
389 super::builder::firestore_admin::ResetUserPassword::new(self.inner.clone())
390 }
391
392 /// Deletes a user creds.
393 pub fn delete_user_creds(&self) -> super::builder::firestore_admin::DeleteUserCreds {
394 super::builder::firestore_admin::DeleteUserCreds::new(self.inner.clone())
395 }
396
397 /// Gets information about a backup.
398 pub fn get_backup(&self) -> super::builder::firestore_admin::GetBackup {
399 super::builder::firestore_admin::GetBackup::new(self.inner.clone())
400 }
401
402 /// Lists all the backups.
403 pub fn list_backups(&self) -> super::builder::firestore_admin::ListBackups {
404 super::builder::firestore_admin::ListBackups::new(self.inner.clone())
405 }
406
407 /// Deletes a backup.
408 pub fn delete_backup(&self) -> super::builder::firestore_admin::DeleteBackup {
409 super::builder::firestore_admin::DeleteBackup::new(self.inner.clone())
410 }
411
412 /// Creates a new database by restoring from an existing backup.
413 ///
414 /// The new database must be in the same cloud region or multi-region location
415 /// as the existing backup. This behaves similar to
416 /// [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]
417 /// except instead of creating a new empty database, a new database is created
418 /// with the database type, index configuration, and documents from an existing
419 /// backup.
420 ///
421 /// The [long-running operation][google.longrunning.Operation] can be used to
422 /// track the progress of the restore, with the Operation's
423 /// [metadata][google.longrunning.Operation.metadata] field type being the
424 /// [RestoreDatabaseMetadata][google.firestore.admin.v1.RestoreDatabaseMetadata].
425 /// The [response][google.longrunning.Operation.response] type is the
426 /// [Database][google.firestore.admin.v1.Database] if the restore was
427 /// successful. The new database is not readable or writeable until the LRO has
428 /// completed.
429 ///
430 /// [google.firestore.admin.v1.Database]: crate::model::Database
431 /// [google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]: crate::client::FirestoreAdmin::create_database
432 /// [google.firestore.admin.v1.RestoreDatabaseMetadata]: crate::model::RestoreDatabaseMetadata
433 /// [google.longrunning.Operation]: longrunning::model::Operation
434 /// [google.longrunning.Operation.metadata]: longrunning::model::Operation::metadata
435 /// [google.longrunning.Operation.response]: longrunning::model::Operation::result
436 ///
437 /// # Long running operations
438 ///
439 /// This method is used to start, and/or poll a [long-running Operation].
440 /// The [Working with long-running operations] chapter in the [user guide]
441 /// covers these operations in detail.
442 ///
443 /// [long-running operation]: https://google.aip.dev/151
444 /// [user guide]: https://googleapis.github.io/google-cloud-rust/
445 /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
446 pub fn restore_database(&self) -> super::builder::firestore_admin::RestoreDatabase {
447 super::builder::firestore_admin::RestoreDatabase::new(self.inner.clone())
448 }
449
450 /// Creates a backup schedule on a database.
451 /// At most two backup schedules can be configured on a database, one daily
452 /// backup schedule and one weekly backup schedule.
453 pub fn create_backup_schedule(&self) -> super::builder::firestore_admin::CreateBackupSchedule {
454 super::builder::firestore_admin::CreateBackupSchedule::new(self.inner.clone())
455 }
456
457 /// Gets information about a backup schedule.
458 pub fn get_backup_schedule(&self) -> super::builder::firestore_admin::GetBackupSchedule {
459 super::builder::firestore_admin::GetBackupSchedule::new(self.inner.clone())
460 }
461
462 /// List backup schedules.
463 pub fn list_backup_schedules(&self) -> super::builder::firestore_admin::ListBackupSchedules {
464 super::builder::firestore_admin::ListBackupSchedules::new(self.inner.clone())
465 }
466
467 /// Updates a backup schedule.
468 pub fn update_backup_schedule(&self) -> super::builder::firestore_admin::UpdateBackupSchedule {
469 super::builder::firestore_admin::UpdateBackupSchedule::new(self.inner.clone())
470 }
471
472 /// Deletes a backup schedule.
473 pub fn delete_backup_schedule(&self) -> super::builder::firestore_admin::DeleteBackupSchedule {
474 super::builder::firestore_admin::DeleteBackupSchedule::new(self.inner.clone())
475 }
476
477 /// Creates a new database by cloning an existing one.
478 ///
479 /// The new database must be in the same cloud region or multi-region location
480 /// as the existing database. This behaves similar to
481 /// [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]
482 /// except instead of creating a new empty database, a new database is created
483 /// with the database type, index configuration, and documents from an existing
484 /// database.
485 ///
486 /// The [long-running operation][google.longrunning.Operation] can be used to
487 /// track the progress of the clone, with the Operation's
488 /// [metadata][google.longrunning.Operation.metadata] field type being the
489 /// [CloneDatabaseMetadata][google.firestore.admin.v1.CloneDatabaseMetadata].
490 /// The [response][google.longrunning.Operation.response] type is the
491 /// [Database][google.firestore.admin.v1.Database] if the clone was
492 /// successful. The new database is not readable or writeable until the LRO has
493 /// completed.
494 ///
495 /// [google.firestore.admin.v1.CloneDatabaseMetadata]: crate::model::CloneDatabaseMetadata
496 /// [google.firestore.admin.v1.Database]: crate::model::Database
497 /// [google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]: crate::client::FirestoreAdmin::create_database
498 /// [google.longrunning.Operation]: longrunning::model::Operation
499 /// [google.longrunning.Operation.metadata]: longrunning::model::Operation::metadata
500 /// [google.longrunning.Operation.response]: longrunning::model::Operation::result
501 ///
502 /// # Long running operations
503 ///
504 /// This method is used to start, and/or poll a [long-running Operation].
505 /// The [Working with long-running operations] chapter in the [user guide]
506 /// covers these operations in detail.
507 ///
508 /// [long-running operation]: https://google.aip.dev/151
509 /// [user guide]: https://googleapis.github.io/google-cloud-rust/
510 /// [working with long-running operations]: https://googleapis.github.io/google-cloud-rust/working_with_long_running_operations.html
511 pub fn clone_database(&self) -> super::builder::firestore_admin::CloneDatabase {
512 super::builder::firestore_admin::CloneDatabase::new(self.inner.clone())
513 }
514
515 /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
516 ///
517 /// [google.longrunning.Operations]: longrunning::client::Operations
518 pub fn list_operations(&self) -> super::builder::firestore_admin::ListOperations {
519 super::builder::firestore_admin::ListOperations::new(self.inner.clone())
520 }
521
522 /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
523 ///
524 /// [google.longrunning.Operations]: longrunning::client::Operations
525 pub fn get_operation(&self) -> super::builder::firestore_admin::GetOperation {
526 super::builder::firestore_admin::GetOperation::new(self.inner.clone())
527 }
528
529 /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
530 ///
531 /// [google.longrunning.Operations]: longrunning::client::Operations
532 pub fn delete_operation(&self) -> super::builder::firestore_admin::DeleteOperation {
533 super::builder::firestore_admin::DeleteOperation::new(self.inner.clone())
534 }
535
536 /// Provides the [Operations][google.longrunning.Operations] service functionality in this service.
537 ///
538 /// [google.longrunning.Operations]: longrunning::client::Operations
539 pub fn cancel_operation(&self) -> super::builder::firestore_admin::CancelOperation {
540 super::builder::firestore_admin::CancelOperation::new(self.inner.clone())
541 }
542}