BackupForGKE allows Kubernetes administrators to configure, execute, and manage backup and restore operations for their GKE clusters.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection>
objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
BackupForGKEClient(BackupForGKEClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
BackupForGKEClient const &
|
BackupForGKEClient(BackupForGKEClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
BackupForGKEClient &&
|
BackupForGKEClient(std::shared_ptr< BackupForGKEConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< BackupForGKEConnection >
|
opts |
Options
|
Operators
operator=(BackupForGKEClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
BackupForGKEClient const &
|
Returns | |
---|---|
Type | Description |
BackupForGKEClient & |
operator=(BackupForGKEClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
BackupForGKEClient &&
|
Returns | |
---|---|
Type | Description |
BackupForGKEClient & |
Functions
CreateBackupPlan(std::string const &, google::cloud::gkebackup::v1::BackupPlan const &, std::string const &, Options)
Creates a new BackupPlan in a given location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The location within which to create the BackupPlan. Format: |
backup_plan |
google::cloud::gkebackup::v1::BackupPlan const &
Required. The BackupPlan resource object to create. |
backup_plan_id |
std::string const &
Required. The client-provided short name for the BackupPlan resource. This name must:
|
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::BackupPlan > > |
A |
CreateBackupPlan(NoAwaitTag, std::string const &, google::cloud::gkebackup::v1::BackupPlan const &, std::string const &, Options)
Creates a new BackupPlan in a given location.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
parent |
std::string const &
|
backup_plan |
google::cloud::gkebackup::v1::BackupPlan const &
|
backup_plan_id |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateBackupPlan(google::cloud::gkebackup::v1::CreateBackupPlanRequest const &, Options)
Creates a new BackupPlan in a given location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::CreateBackupPlanRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::BackupPlan > > |
A |
CreateBackupPlan(NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupPlanRequest const &, Options)
Creates a new BackupPlan in a given location.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::gkebackup::v1::CreateBackupPlanRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateBackupPlan(google::longrunning::Operation const &, Options)
Creates a new BackupPlan in a given location.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::BackupPlan > > |
ListBackupPlans(std::string const &, Options)
Lists BackupPlans in a given location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The location that contains the BackupPlans to list. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gkebackup::v1::BackupPlan > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListBackupPlans(google::cloud::gkebackup::v1::ListBackupPlansRequest, Options)
Lists BackupPlans in a given location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::ListBackupPlansRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gkebackup::v1::BackupPlan > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetBackupPlan(std::string const &, Options)
Retrieve the details of a single BackupPlan.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Fully qualified BackupPlan name. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::BackupPlan > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.BackupPlan) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetBackupPlan(google::cloud::gkebackup::v1::GetBackupPlanRequest const &, Options)
Retrieve the details of a single BackupPlan.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::GetBackupPlanRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::BackupPlan > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.BackupPlan) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateBackupPlan(google::cloud::gkebackup::v1::BackupPlan const &, google::protobuf::FieldMask const &, Options)
Update a BackupPlan.
Parameters | |
---|---|
Name | Description |
backup_plan |
google::cloud::gkebackup::v1::BackupPlan const &
Required. A new version of the BackupPlan resource that contains updated fields. This may be sparsely populated if an |
update_mask |
google::protobuf::FieldMask const &
Optional. This is used to specify the fields to be overwritten in the BackupPlan targeted for update. The values for each of these updated fields will be taken from the |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::BackupPlan > > |
A |
UpdateBackupPlan(NoAwaitTag, google::cloud::gkebackup::v1::BackupPlan const &, google::protobuf::FieldMask const &, Options)
Update a BackupPlan.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
backup_plan |
google::cloud::gkebackup::v1::BackupPlan const &
|
update_mask |
google::protobuf::FieldMask const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdateBackupPlan(google::cloud::gkebackup::v1::UpdateBackupPlanRequest const &, Options)
Update a BackupPlan.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::UpdateBackupPlanRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::BackupPlan > > |
A |
UpdateBackupPlan(NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupPlanRequest const &, Options)
Update a BackupPlan.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::gkebackup::v1::UpdateBackupPlanRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdateBackupPlan(google::longrunning::Operation const &, Options)
Update a BackupPlan.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::BackupPlan > > |
DeleteBackupPlan(std::string const &, Options)
Deletes an existing BackupPlan.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Fully qualified BackupPlan name. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > > |
A |
DeleteBackupPlan(NoAwaitTag, std::string const &, Options)
Deletes an existing BackupPlan.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
name |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DeleteBackupPlan(google::cloud::gkebackup::v1::DeleteBackupPlanRequest const &, Options)
Deletes an existing BackupPlan.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::DeleteBackupPlanRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > > |
A |
DeleteBackupPlan(NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupPlanRequest const &, Options)
Deletes an existing BackupPlan.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::gkebackup::v1::DeleteBackupPlanRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DeleteBackupPlan(google::longrunning::Operation const &, Options)
Deletes an existing BackupPlan.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > > |
CreateBackup(std::string const &, google::cloud::gkebackup::v1::Backup const &, std::string const &, Options)
Creates a Backup for the given BackupPlan.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The BackupPlan within which to create the Backup. Format: |
backup |
google::cloud::gkebackup::v1::Backup const &
Optional. The Backup resource to create. |
backup_id |
std::string const &
Optional. The client-provided short name for the Backup resource. This name must:
|
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::Backup > > |
A |
CreateBackup(NoAwaitTag, std::string const &, google::cloud::gkebackup::v1::Backup const &, std::string const &, Options)
Creates a Backup for the given BackupPlan.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
parent |
std::string const &
|
backup |
google::cloud::gkebackup::v1::Backup const &
|
backup_id |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateBackup(google::cloud::gkebackup::v1::CreateBackupRequest const &, Options)
Creates a Backup for the given BackupPlan.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::CreateBackupRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::Backup > > |
A |
CreateBackup(NoAwaitTag, google::cloud::gkebackup::v1::CreateBackupRequest const &, Options)
Creates a Backup for the given BackupPlan.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::gkebackup::v1::CreateBackupRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateBackup(google::longrunning::Operation const &, Options)
Creates a Backup for the given BackupPlan.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::Backup > > |
ListBackups(std::string const &, Options)
Lists the Backups for a given BackupPlan.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The BackupPlan that contains the Backups to list. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gkebackup::v1::Backup > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListBackups(google::cloud::gkebackup::v1::ListBackupsRequest, Options)
Lists the Backups for a given BackupPlan.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::ListBackupsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gkebackup::v1::Backup > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetBackup(std::string const &, Options)
Retrieve the details of a single Backup.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Full name of the Backup resource. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::Backup > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.Backup) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetBackup(google::cloud::gkebackup::v1::GetBackupRequest const &, Options)
Retrieve the details of a single Backup.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::GetBackupRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::Backup > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.Backup) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateBackup(google::cloud::gkebackup::v1::Backup const &, google::protobuf::FieldMask const &, Options)
Update a Backup.
Parameters | |
---|---|
Name | Description |
backup |
google::cloud::gkebackup::v1::Backup const &
Required. A new version of the Backup resource that contains updated fields. This may be sparsely populated if an |
update_mask |
google::protobuf::FieldMask const &
Optional. This is used to specify the fields to be overwritten in the Backup targeted for update. The values for each of these updated fields will be taken from the |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::Backup > > |
A |
UpdateBackup(NoAwaitTag, google::cloud::gkebackup::v1::Backup const &, google::protobuf::FieldMask const &, Options)
Update a Backup.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
backup |
google::cloud::gkebackup::v1::Backup const &
|
update_mask |
google::protobuf::FieldMask const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdateBackup(google::cloud::gkebackup::v1::UpdateBackupRequest const &, Options)
Update a Backup.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::UpdateBackupRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::Backup > > |
A |
UpdateBackup(NoAwaitTag, google::cloud::gkebackup::v1::UpdateBackupRequest const &, Options)
Update a Backup.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::gkebackup::v1::UpdateBackupRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdateBackup(google::longrunning::Operation const &, Options)
Update a Backup.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::Backup > > |
DeleteBackup(std::string const &, Options)
Deletes an existing Backup.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Name of the Backup resource. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > > |
A |
DeleteBackup(NoAwaitTag, std::string const &, Options)
Deletes an existing Backup.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
name |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DeleteBackup(google::cloud::gkebackup::v1::DeleteBackupRequest const &, Options)
Deletes an existing Backup.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::DeleteBackupRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > > |
A |
DeleteBackup(NoAwaitTag, google::cloud::gkebackup::v1::DeleteBackupRequest const &, Options)
Deletes an existing Backup.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::gkebackup::v1::DeleteBackupRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DeleteBackup(google::longrunning::Operation const &, Options)
Deletes an existing Backup.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > > |
ListVolumeBackups(std::string const &, Options)
Lists the VolumeBackups for a given Backup.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The Backup that contains the VolumeBackups to list. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gkebackup::v1::VolumeBackup > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListVolumeBackups(google::cloud::gkebackup::v1::ListVolumeBackupsRequest, Options)
Lists the VolumeBackups for a given Backup.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::ListVolumeBackupsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gkebackup::v1::VolumeBackup > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetVolumeBackup(std::string const &, Options)
Retrieve the details of a single VolumeBackup.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Full name of the VolumeBackup resource. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::VolumeBackup > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.VolumeBackup) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetVolumeBackup(google::cloud::gkebackup::v1::GetVolumeBackupRequest const &, Options)
Retrieve the details of a single VolumeBackup.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::GetVolumeBackupRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::VolumeBackup > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.VolumeBackup) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateRestorePlan(std::string const &, google::cloud::gkebackup::v1::RestorePlan const &, std::string const &, Options)
Creates a new RestorePlan in a given location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The location within which to create the RestorePlan. Format: |
restore_plan |
google::cloud::gkebackup::v1::RestorePlan const &
Required. The RestorePlan resource object to create. |
restore_plan_id |
std::string const &
Required. The client-provided short name for the RestorePlan resource. This name must:
|
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::RestorePlan > > |
A |
CreateRestorePlan(NoAwaitTag, std::string const &, google::cloud::gkebackup::v1::RestorePlan const &, std::string const &, Options)
Creates a new RestorePlan in a given location.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
parent |
std::string const &
|
restore_plan |
google::cloud::gkebackup::v1::RestorePlan const &
|
restore_plan_id |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateRestorePlan(google::cloud::gkebackup::v1::CreateRestorePlanRequest const &, Options)
Creates a new RestorePlan in a given location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::CreateRestorePlanRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::RestorePlan > > |
A |
CreateRestorePlan(NoAwaitTag, google::cloud::gkebackup::v1::CreateRestorePlanRequest const &, Options)
Creates a new RestorePlan in a given location.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::gkebackup::v1::CreateRestorePlanRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateRestorePlan(google::longrunning::Operation const &, Options)
Creates a new RestorePlan in a given location.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::RestorePlan > > |
ListRestorePlans(std::string const &, Options)
Lists RestorePlans in a given location.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The location that contains the RestorePlans to list. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gkebackup::v1::RestorePlan > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListRestorePlans(google::cloud::gkebackup::v1::ListRestorePlansRequest, Options)
Lists RestorePlans in a given location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::ListRestorePlansRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gkebackup::v1::RestorePlan > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetRestorePlan(std::string const &, Options)
Retrieve the details of a single RestorePlan.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Fully qualified RestorePlan name. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::RestorePlan > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.RestorePlan) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetRestorePlan(google::cloud::gkebackup::v1::GetRestorePlanRequest const &, Options)
Retrieve the details of a single RestorePlan.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::GetRestorePlanRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::RestorePlan > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.RestorePlan) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateRestorePlan(google::cloud::gkebackup::v1::RestorePlan const &, google::protobuf::FieldMask const &, Options)
Update a RestorePlan.
Parameters | |
---|---|
Name | Description |
restore_plan |
google::cloud::gkebackup::v1::RestorePlan const &
Required. A new version of the RestorePlan resource that contains updated fields. This may be sparsely populated if an |
update_mask |
google::protobuf::FieldMask const &
Optional. This is used to specify the fields to be overwritten in the RestorePlan targeted for update. The values for each of these updated fields will be taken from the |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::RestorePlan > > |
A |
UpdateRestorePlan(NoAwaitTag, google::cloud::gkebackup::v1::RestorePlan const &, google::protobuf::FieldMask const &, Options)
Update a RestorePlan.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
restore_plan |
google::cloud::gkebackup::v1::RestorePlan const &
|
update_mask |
google::protobuf::FieldMask const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdateRestorePlan(google::cloud::gkebackup::v1::UpdateRestorePlanRequest const &, Options)
Update a RestorePlan.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::UpdateRestorePlanRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::RestorePlan > > |
A |
UpdateRestorePlan(NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestorePlanRequest const &, Options)
Update a RestorePlan.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::gkebackup::v1::UpdateRestorePlanRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdateRestorePlan(google::longrunning::Operation const &, Options)
Update a RestorePlan.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::RestorePlan > > |
DeleteRestorePlan(std::string const &, Options)
Deletes an existing RestorePlan.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Fully qualified RestorePlan name. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > > |
A |
DeleteRestorePlan(NoAwaitTag, std::string const &, Options)
Deletes an existing RestorePlan.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
name |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DeleteRestorePlan(google::cloud::gkebackup::v1::DeleteRestorePlanRequest const &, Options)
Deletes an existing RestorePlan.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::DeleteRestorePlanRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > > |
A |
DeleteRestorePlan(NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestorePlanRequest const &, Options)
Deletes an existing RestorePlan.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::gkebackup::v1::DeleteRestorePlanRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DeleteRestorePlan(google::longrunning::Operation const &, Options)
Deletes an existing RestorePlan.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > > |
CreateRestore(std::string const &, google::cloud::gkebackup::v1::Restore const &, std::string const &, Options)
Creates a new Restore for the given RestorePlan.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The RestorePlan within which to create the Restore. Format: |
restore |
google::cloud::gkebackup::v1::Restore const &
Required. The restore resource to create. |
restore_id |
std::string const &
Required. The client-provided short name for the Restore resource. This name must:
|
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::Restore > > |
A |
CreateRestore(NoAwaitTag, std::string const &, google::cloud::gkebackup::v1::Restore const &, std::string const &, Options)
Creates a new Restore for the given RestorePlan.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
parent |
std::string const &
|
restore |
google::cloud::gkebackup::v1::Restore const &
|
restore_id |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateRestore(google::cloud::gkebackup::v1::CreateRestoreRequest const &, Options)
Creates a new Restore for the given RestorePlan.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::CreateRestoreRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::Restore > > |
A |
CreateRestore(NoAwaitTag, google::cloud::gkebackup::v1::CreateRestoreRequest const &, Options)
Creates a new Restore for the given RestorePlan.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::gkebackup::v1::CreateRestoreRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
CreateRestore(google::longrunning::Operation const &, Options)
Creates a new Restore for the given RestorePlan.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::Restore > > |
ListRestores(std::string const &, Options)
Lists the Restores for a given RestorePlan.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The RestorePlan that contains the Restores to list. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gkebackup::v1::Restore > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListRestores(google::cloud::gkebackup::v1::ListRestoresRequest, Options)
Lists the Restores for a given RestorePlan.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::ListRestoresRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gkebackup::v1::Restore > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetRestore(std::string const &, Options)
Retrieves the details of a single Restore.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Name of the restore resource. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::Restore > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.Restore) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetRestore(google::cloud::gkebackup::v1::GetRestoreRequest const &, Options)
Retrieves the details of a single Restore.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::GetRestoreRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::Restore > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.Restore) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateRestore(google::cloud::gkebackup::v1::Restore const &, google::protobuf::FieldMask const &, Options)
Update a Restore.
Parameters | |
---|---|
Name | Description |
restore |
google::cloud::gkebackup::v1::Restore const &
Required. A new version of the Restore resource that contains updated fields. This may be sparsely populated if an |
update_mask |
google::protobuf::FieldMask const &
Optional. This is used to specify the fields to be overwritten in the Restore targeted for update. The values for each of these updated fields will be taken from the |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::Restore > > |
A |
UpdateRestore(NoAwaitTag, google::cloud::gkebackup::v1::Restore const &, google::protobuf::FieldMask const &, Options)
Update a Restore.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
restore |
google::cloud::gkebackup::v1::Restore const &
|
update_mask |
google::protobuf::FieldMask const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdateRestore(google::cloud::gkebackup::v1::UpdateRestoreRequest const &, Options)
Update a Restore.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::UpdateRestoreRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::Restore > > |
A |
UpdateRestore(NoAwaitTag, google::cloud::gkebackup::v1::UpdateRestoreRequest const &, Options)
Update a Restore.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::gkebackup::v1::UpdateRestoreRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
UpdateRestore(google::longrunning::Operation const &, Options)
Update a Restore.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::Restore > > |
DeleteRestore(std::string const &, Options)
Deletes an existing Restore.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Full name of the Restore Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > > |
A |
DeleteRestore(NoAwaitTag, std::string const &, Options)
Deletes an existing Restore.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
name |
std::string const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DeleteRestore(google::cloud::gkebackup::v1::DeleteRestoreRequest const &, Options)
Deletes an existing Restore.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::DeleteRestoreRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > > |
A |
DeleteRestore(NoAwaitTag, google::cloud::gkebackup::v1::DeleteRestoreRequest const &, Options)
Deletes an existing Restore.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::gkebackup::v1::DeleteRestoreRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
DeleteRestore(google::longrunning::Operation const &, Options)
Deletes an existing Restore.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::gkebackup::v1::OperationMetadata > > |
ListVolumeRestores(std::string const &, Options)
Lists the VolumeRestores for a given Restore.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The Restore that contains the VolumeRestores to list. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gkebackup::v1::VolumeRestore > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListVolumeRestores(google::cloud::gkebackup::v1::ListVolumeRestoresRequest, Options)
Lists the VolumeRestores for a given Restore.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::ListVolumeRestoresRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::gkebackup::v1::VolumeRestore > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetVolumeRestore(std::string const &, Options)
Retrieve the details of a single VolumeRestore.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. Full name of the VolumeRestore resource. Format: |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::VolumeRestore > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.VolumeRestore) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetVolumeRestore(google::cloud::gkebackup::v1::GetVolumeRestoreRequest const &, Options)
Retrieve the details of a single VolumeRestore.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::GetVolumeRestoreRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::VolumeRestore > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.VolumeRestore) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetBackupIndexDownloadUrl(std::string const &, Options)
Retrieve the link to the backupIndex.
Parameters | |
---|---|
Name | Description |
backup |
std::string const &
Required. Full name of Backup resource. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup} |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::GetBackupIndexDownloadUrlResponse > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.GetBackupIndexDownloadUrlResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetBackupIndexDownloadUrl(google::cloud::gkebackup::v1::GetBackupIndexDownloadUrlRequest const &, Options)
Retrieve the link to the backupIndex.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::gkebackup::v1::GetBackupIndexDownloadUrlRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::gkebackup::v1::GetBackupIndexDownloadUrlResponse > |
the result of the RPC. The response message type (google.cloud.gkebackup.v1.GetBackupIndexDownloadUrlResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListLocations(google::cloud::location::ListLocationsRequest, Options)
Lists information about the supported locations for this service.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::location::ListLocationsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::location::Location > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetLocation(google::cloud::location::GetLocationRequest const &, Options)
Gets information about a location.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::location::GetLocationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::location::Location > |
the result of the RPC. The response message type (google.cloud.location.Location) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &, Options)
Sets the access control policy on the specified resource.
Replaces any existing policy.
Can return NOT_FOUND
, INVALID_ARGUMENT
, and PERMISSION_DENIED
errors.
Parameters | |
---|---|
Name | Description |
request |
google::iam::v1::SetIamPolicyRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::iam::v1::Policy > |
the result of the RPC. The response message type (google.iam.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &, Options)
Gets the access control policy for a resource.
Returns an empty policy if the resource exists and does not have a policy set.
Parameters | |
---|---|
Name | Description |
request |
google::iam::v1::GetIamPolicyRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::iam::v1::Policy > |
the result of the RPC. The response message type (google.iam.v1.Policy) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &, Options)
Returns permissions that a caller has on the specified resource.
If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND
error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
Parameters | |
---|---|
Name | Description |
request |
google::iam::v1::TestIamPermissionsRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::iam::v1::TestIamPermissionsResponse > |
the result of the RPC. The response message type (google.iam.v1.TestIamPermissionsResponse) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListOperations(std::string const &, std::string const &, Options)
Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns UNIMPLEMENTED
.
NOTE: the name
binding allows API services to override the binding to use different resource name schemes, such as users/*/operations
. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations"
to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
The name of the operation's parent resource. |
filter |
std::string const &
The standard list filter. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::longrunning::Operation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListOperations(google::longrunning::ListOperationsRequest, Options)
Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns UNIMPLEMENTED
.
NOTE: the name
binding allows API services to override the binding to use different resource name schemes, such as users/*/operations
. To override the binding, API services can add a binding such as "/v1/{name=users/*}/operations"
to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
Parameters | |
---|---|
Name | Description |
request |
google::longrunning::ListOperationsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::longrunning::Operation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
GetOperation(std::string const &, Options)
Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
The name of the operation resource. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetOperation(google::longrunning::GetOperationRequest const &, Options)
Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.
Parameters | |
---|---|
Name | Description |
request |
google::longrunning::GetOperationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
the result of the RPC. The response message type (google.longrunning.Operation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteOperation(std::string const &, Options)
Deletes a long-running operation.
This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED
.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
The name of the operation resource to be deleted. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
DeleteOperation(google::longrunning::DeleteOperationRequest const &, Options)
Deletes a long-running operation.
This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED
.
Parameters | |
---|---|
Name | Description |
request |
google::longrunning::DeleteOperationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
CancelOperation(std::string const &, Options)
Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED
. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED
.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
The name of the operation resource to be cancelled. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
CancelOperation(google::longrunning::CancelOperationRequest const &, Options)
Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED
. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED
.
Parameters | |
---|---|
Name | Description |
request |
google::longrunning::CancelOperationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |