Showing content from https://cloud.google.com/cpp/docs/reference/notebooks/2.32.0/notebooks-override-retry below:
C++ Client Libraries | Google Cloud
Skip to main content
- Overview
-
Library reference docs
- Notebooks API C++ Client Library
-
Namespaces
-
google::cloud::notebooks_v1
- Overview
-
Classes
-
ManagedNotebookServiceClient
- Overview
-
Functions
- ListRuntimes(std::string const &, Options)
- ListRuntimes(google::cloud::notebooks::v1::ListRuntimesRequest, Options)
- GetRuntime(std::string const &, Options)
- GetRuntime(google::cloud::notebooks::v1::GetRuntimeRequest const &, Options)
- CreateRuntime(std::string const &, std::string const &, google::cloud::notebooks::v1::Runtime const &, Options)
- CreateRuntime(NoAwaitTag, std::string const &, std::string const &, google::cloud::notebooks::v1::Runtime const &, Options)
- CreateRuntime(google::cloud::notebooks::v1::CreateRuntimeRequest const &, Options)
- CreateRuntime(NoAwaitTag, google::cloud::notebooks::v1::CreateRuntimeRequest const &, Options)
- CreateRuntime(google::longrunning::Operation const &, Options)
- UpdateRuntime(google::cloud::notebooks::v1::Runtime const &, google::protobuf::FieldMask const &, Options)
- UpdateRuntime(NoAwaitTag, google::cloud::notebooks::v1::Runtime const &, google::protobuf::FieldMask const &, Options)
- UpdateRuntime(google::cloud::notebooks::v1::UpdateRuntimeRequest const &, Options)
- UpdateRuntime(NoAwaitTag, google::cloud::notebooks::v1::UpdateRuntimeRequest const &, Options)
- UpdateRuntime(google::longrunning::Operation const &, Options)
- DeleteRuntime(std::string const &, Options)
- DeleteRuntime(NoAwaitTag, std::string const &, Options)
- DeleteRuntime(google::cloud::notebooks::v1::DeleteRuntimeRequest const &, Options)
- DeleteRuntime(NoAwaitTag, google::cloud::notebooks::v1::DeleteRuntimeRequest const &, Options)
- DeleteRuntime(google::longrunning::Operation const &, Options)
- StartRuntime(std::string const &, Options)
- StartRuntime(NoAwaitTag, std::string const &, Options)
- StartRuntime(google::cloud::notebooks::v1::StartRuntimeRequest const &, Options)
- StartRuntime(NoAwaitTag, google::cloud::notebooks::v1::StartRuntimeRequest const &, Options)
- StartRuntime(google::longrunning::Operation const &, Options)
- StopRuntime(std::string const &, Options)
- StopRuntime(NoAwaitTag, std::string const &, Options)
- StopRuntime(google::cloud::notebooks::v1::StopRuntimeRequest const &, Options)
- StopRuntime(NoAwaitTag, google::cloud::notebooks::v1::StopRuntimeRequest const &, Options)
- StopRuntime(google::longrunning::Operation const &, Options)
- SwitchRuntime(std::string const &, Options)
- SwitchRuntime(NoAwaitTag, std::string const &, Options)
- SwitchRuntime(google::cloud::notebooks::v1::SwitchRuntimeRequest const &, Options)
- SwitchRuntime(NoAwaitTag, google::cloud::notebooks::v1::SwitchRuntimeRequest const &, Options)
- SwitchRuntime(google::longrunning::Operation const &, Options)
- ResetRuntime(std::string const &, Options)
- ResetRuntime(NoAwaitTag, std::string const &, Options)
- ResetRuntime(google::cloud::notebooks::v1::ResetRuntimeRequest const &, Options)
- ResetRuntime(NoAwaitTag, google::cloud::notebooks::v1::ResetRuntimeRequest const &, Options)
- ResetRuntime(google::longrunning::Operation const &, Options)
- UpgradeRuntime(std::string const &, Options)
- UpgradeRuntime(NoAwaitTag, std::string const &, Options)
- UpgradeRuntime(google::cloud::notebooks::v1::UpgradeRuntimeRequest const &, Options)
- UpgradeRuntime(NoAwaitTag, google::cloud::notebooks::v1::UpgradeRuntimeRequest const &, Options)
- UpgradeRuntime(google::longrunning::Operation const &, Options)
- ReportRuntimeEvent(std::string const &, Options)
- ReportRuntimeEvent(NoAwaitTag, std::string const &, Options)
- ReportRuntimeEvent(google::cloud::notebooks::v1::ReportRuntimeEventRequest const &, Options)
- ReportRuntimeEvent(NoAwaitTag, google::cloud::notebooks::v1::ReportRuntimeEventRequest const &, Options)
- ReportRuntimeEvent(google::longrunning::Operation const &, Options)
- RefreshRuntimeTokenInternal(std::string const &, std::string const &, Options)
- RefreshRuntimeTokenInternal(google::cloud::notebooks::v1::RefreshRuntimeTokenInternalRequest const &, Options)
- DiagnoseRuntime(std::string const &, google::cloud::notebooks::v1::DiagnosticConfig const &, Options)
- DiagnoseRuntime(NoAwaitTag, std::string const &, google::cloud::notebooks::v1::DiagnosticConfig const &, Options)
- DiagnoseRuntime(google::cloud::notebooks::v1::DiagnoseRuntimeRequest const &, Options)
- DiagnoseRuntime(NoAwaitTag, google::cloud::notebooks::v1::DiagnoseRuntimeRequest const &, Options)
- DiagnoseRuntime(google::longrunning::Operation const &, Options)
- ListLocations(google::cloud::location::ListLocationsRequest, Options)
- GetLocation(google::cloud::location::GetLocationRequest const &, Options)
- SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &, Options)
- GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &, Options)
- TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &, Options)
- ListOperations(std::string const &, std::string const &, Options)
- ListOperations(google::longrunning::ListOperationsRequest, Options)
- GetOperation(std::string const &, Options)
- GetOperation(google::longrunning::GetOperationRequest const &, Options)
- DeleteOperation(std::string const &, Options)
- DeleteOperation(google::longrunning::DeleteOperationRequest const &, Options)
- CancelOperation(std::string const &, Options)
- CancelOperation(google::longrunning::CancelOperationRequest const &, Options)
-
ManagedNotebookServiceConnection
- Overview
-
Functions
- virtual options()
- virtual ListRuntimes(google::cloud::notebooks::v1::ListRuntimesRequest)
- virtual GetRuntime(google::cloud::notebooks::v1::GetRuntimeRequest const &)
- virtual CreateRuntime(google::cloud::notebooks::v1::CreateRuntimeRequest const &)
- virtual CreateRuntime(NoAwaitTag, google::cloud::notebooks::v1::CreateRuntimeRequest const &)
- virtual CreateRuntime(google::longrunning::Operation const &)
- virtual UpdateRuntime(google::cloud::notebooks::v1::UpdateRuntimeRequest const &)
- virtual UpdateRuntime(NoAwaitTag, google::cloud::notebooks::v1::UpdateRuntimeRequest const &)
- virtual UpdateRuntime(google::longrunning::Operation const &)
- virtual DeleteRuntime(google::cloud::notebooks::v1::DeleteRuntimeRequest const &)
- virtual DeleteRuntime(NoAwaitTag, google::cloud::notebooks::v1::DeleteRuntimeRequest const &)
- virtual DeleteRuntime(google::longrunning::Operation const &)
- virtual StartRuntime(google::cloud::notebooks::v1::StartRuntimeRequest const &)
- virtual StartRuntime(NoAwaitTag, google::cloud::notebooks::v1::StartRuntimeRequest const &)
- virtual StartRuntime(google::longrunning::Operation const &)
- virtual StopRuntime(google::cloud::notebooks::v1::StopRuntimeRequest const &)
- virtual StopRuntime(NoAwaitTag, google::cloud::notebooks::v1::StopRuntimeRequest const &)
- virtual StopRuntime(google::longrunning::Operation const &)
- virtual SwitchRuntime(google::cloud::notebooks::v1::SwitchRuntimeRequest const &)
- virtual SwitchRuntime(NoAwaitTag, google::cloud::notebooks::v1::SwitchRuntimeRequest const &)
- virtual SwitchRuntime(google::longrunning::Operation const &)
- virtual ResetRuntime(google::cloud::notebooks::v1::ResetRuntimeRequest const &)
- virtual ResetRuntime(NoAwaitTag, google::cloud::notebooks::v1::ResetRuntimeRequest const &)
- virtual ResetRuntime(google::longrunning::Operation const &)
- virtual UpgradeRuntime(google::cloud::notebooks::v1::UpgradeRuntimeRequest const &)
- virtual UpgradeRuntime(NoAwaitTag, google::cloud::notebooks::v1::UpgradeRuntimeRequest const &)
- virtual UpgradeRuntime(google::longrunning::Operation const &)
- virtual ReportRuntimeEvent(google::cloud::notebooks::v1::ReportRuntimeEventRequest const &)
- virtual ReportRuntimeEvent(NoAwaitTag, google::cloud::notebooks::v1::ReportRuntimeEventRequest const &)
- virtual ReportRuntimeEvent(google::longrunning::Operation const &)
- virtual RefreshRuntimeTokenInternal(google::cloud::notebooks::v1::RefreshRuntimeTokenInternalRequest const &)
- virtual DiagnoseRuntime(google::cloud::notebooks::v1::DiagnoseRuntimeRequest const &)
- virtual DiagnoseRuntime(NoAwaitTag, google::cloud::notebooks::v1::DiagnoseRuntimeRequest const &)
- virtual DiagnoseRuntime(google::longrunning::Operation const &)
- virtual ListLocations(google::cloud::location::ListLocationsRequest)
- virtual GetLocation(google::cloud::location::GetLocationRequest const &)
- virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)
- virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)
- virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)
- virtual ListOperations(google::longrunning::ListOperationsRequest)
- virtual GetOperation(google::longrunning::GetOperationRequest const &)
- virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)
- virtual CancelOperation(google::longrunning::CancelOperationRequest const &)
-
ManagedNotebookServiceConnectionIdempotencyPolicy
-
ManagedNotebookServiceLimitedErrorCountRetryPolicy
-
ManagedNotebookServiceLimitedTimeRetryPolicy
-
ManagedNotebookServiceRetryPolicy
-
NotebookServiceClient
- Overview
-
Functions
- ListInstances(std::string const &, Options)
- ListInstances(google::cloud::notebooks::v1::ListInstancesRequest, Options)
- GetInstance(std::string const &, Options)
- GetInstance(google::cloud::notebooks::v1::GetInstanceRequest const &, Options)
- CreateInstance(std::string const &, google::cloud::notebooks::v1::Instance const &, std::string const &, Options)
- CreateInstance(NoAwaitTag, std::string const &, google::cloud::notebooks::v1::Instance const &, std::string const &, Options)
- CreateInstance(google::cloud::notebooks::v1::CreateInstanceRequest const &, Options)
- CreateInstance(NoAwaitTag, google::cloud::notebooks::v1::CreateInstanceRequest const &, Options)
- CreateInstance(google::longrunning::Operation const &, Options)
- RegisterInstance(google::cloud::notebooks::v1::RegisterInstanceRequest const &, Options)
- RegisterInstance(NoAwaitTag, google::cloud::notebooks::v1::RegisterInstanceRequest const &, Options)
- RegisterInstance(google::longrunning::Operation const &, Options)
- SetInstanceAccelerator(google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const &, Options)
- SetInstanceAccelerator(NoAwaitTag, google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const &, Options)
- SetInstanceAccelerator(google::longrunning::Operation const &, Options)
- SetInstanceMachineType(google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const &, Options)
- SetInstanceMachineType(NoAwaitTag, google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const &, Options)
- SetInstanceMachineType(google::longrunning::Operation const &, Options)
- UpdateInstanceConfig(google::cloud::notebooks::v1::UpdateInstanceConfigRequest const &, Options)
- UpdateInstanceConfig(NoAwaitTag, google::cloud::notebooks::v1::UpdateInstanceConfigRequest const &, Options)
- UpdateInstanceConfig(google::longrunning::Operation const &, Options)
- UpdateShieldedInstanceConfig(google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const &, Options)
- UpdateShieldedInstanceConfig(NoAwaitTag, google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const &, Options)
- UpdateShieldedInstanceConfig(google::longrunning::Operation const &, Options)
- SetInstanceLabels(google::cloud::notebooks::v1::SetInstanceLabelsRequest const &, Options)
- SetInstanceLabels(NoAwaitTag, google::cloud::notebooks::v1::SetInstanceLabelsRequest const &, Options)
- SetInstanceLabels(google::longrunning::Operation const &, Options)
- UpdateInstanceMetadataItems(google::cloud::notebooks::v1::UpdateInstanceMetadataItemsRequest const &, Options)
- DeleteInstance(std::string const &, Options)
- DeleteInstance(NoAwaitTag, std::string const &, Options)
- DeleteInstance(google::cloud::notebooks::v1::DeleteInstanceRequest const &, Options)
- DeleteInstance(NoAwaitTag, google::cloud::notebooks::v1::DeleteInstanceRequest const &, Options)
- DeleteInstance(google::longrunning::Operation const &, Options)
- StartInstance(google::cloud::notebooks::v1::StartInstanceRequest const &, Options)
- StartInstance(NoAwaitTag, google::cloud::notebooks::v1::StartInstanceRequest const &, Options)
- StartInstance(google::longrunning::Operation const &, Options)
- StopInstance(google::cloud::notebooks::v1::StopInstanceRequest const &, Options)
- StopInstance(NoAwaitTag, google::cloud::notebooks::v1::StopInstanceRequest const &, Options)
- StopInstance(google::longrunning::Operation const &, Options)
- ResetInstance(google::cloud::notebooks::v1::ResetInstanceRequest const &, Options)
- ResetInstance(NoAwaitTag, google::cloud::notebooks::v1::ResetInstanceRequest const &, Options)
- ResetInstance(google::longrunning::Operation const &, Options)
- ReportInstanceInfo(google::cloud::notebooks::v1::ReportInstanceInfoRequest const &, Options)
- ReportInstanceInfo(NoAwaitTag, google::cloud::notebooks::v1::ReportInstanceInfoRequest const &, Options)
- ReportInstanceInfo(google::longrunning::Operation const &, Options)
- IsInstanceUpgradeable(google::cloud::notebooks::v1::IsInstanceUpgradeableRequest const &, Options)
- GetInstanceHealth(std::string const &, Options)
- GetInstanceHealth(google::cloud::notebooks::v1::GetInstanceHealthRequest const &, Options)
- UpgradeInstance(google::cloud::notebooks::v1::UpgradeInstanceRequest const &, Options)
- UpgradeInstance(NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceRequest const &, Options)
- UpgradeInstance(google::longrunning::Operation const &, Options)
- RollbackInstance(google::cloud::notebooks::v1::RollbackInstanceRequest const &, Options)
- RollbackInstance(NoAwaitTag, google::cloud::notebooks::v1::RollbackInstanceRequest const &, Options)
- RollbackInstance(google::longrunning::Operation const &, Options)
- DiagnoseInstance(std::string const &, google::cloud::notebooks::v1::DiagnosticConfig const &, Options)
- DiagnoseInstance(NoAwaitTag, std::string const &, google::cloud::notebooks::v1::DiagnosticConfig const &, Options)
- DiagnoseInstance(google::cloud::notebooks::v1::DiagnoseInstanceRequest const &, Options)
- DiagnoseInstance(NoAwaitTag, google::cloud::notebooks::v1::DiagnoseInstanceRequest const &, Options)
- DiagnoseInstance(google::longrunning::Operation const &, Options)
- UpgradeInstanceInternal(google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const &, Options)
- UpgradeInstanceInternal(NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const &, Options)
- UpgradeInstanceInternal(google::longrunning::Operation const &, Options)
- ListEnvironments(std::string const &, Options)
- ListEnvironments(google::cloud::notebooks::v1::ListEnvironmentsRequest, Options)
- GetEnvironment(std::string const &, Options)
- GetEnvironment(google::cloud::notebooks::v1::GetEnvironmentRequest const &, Options)
- CreateEnvironment(std::string const &, google::cloud::notebooks::v1::Environment const &, std::string const &, Options)
- CreateEnvironment(NoAwaitTag, std::string const &, google::cloud::notebooks::v1::Environment const &, std::string const &, Options)
- CreateEnvironment(google::cloud::notebooks::v1::CreateEnvironmentRequest const &, Options)
- CreateEnvironment(NoAwaitTag, google::cloud::notebooks::v1::CreateEnvironmentRequest const &, Options)
- CreateEnvironment(google::longrunning::Operation const &, Options)
- DeleteEnvironment(std::string const &, Options)
- DeleteEnvironment(NoAwaitTag, std::string const &, Options)
- DeleteEnvironment(google::cloud::notebooks::v1::DeleteEnvironmentRequest const &, Options)
- DeleteEnvironment(NoAwaitTag, google::cloud::notebooks::v1::DeleteEnvironmentRequest const &, Options)
- DeleteEnvironment(google::longrunning::Operation const &, Options)
- ListSchedules(std::string const &, Options)
- ListSchedules(google::cloud::notebooks::v1::ListSchedulesRequest, Options)
- GetSchedule(std::string const &, Options)
- GetSchedule(google::cloud::notebooks::v1::GetScheduleRequest const &, Options)
- DeleteSchedule(std::string const &, Options)
- DeleteSchedule(NoAwaitTag, std::string const &, Options)
- DeleteSchedule(google::cloud::notebooks::v1::DeleteScheduleRequest const &, Options)
- DeleteSchedule(NoAwaitTag, google::cloud::notebooks::v1::DeleteScheduleRequest const &, Options)
- DeleteSchedule(google::longrunning::Operation const &, Options)
- CreateSchedule(std::string const &, google::cloud::notebooks::v1::Schedule const &, std::string const &, Options)
- CreateSchedule(NoAwaitTag, std::string const &, google::cloud::notebooks::v1::Schedule const &, std::string const &, Options)
- CreateSchedule(google::cloud::notebooks::v1::CreateScheduleRequest const &, Options)
- CreateSchedule(NoAwaitTag, google::cloud::notebooks::v1::CreateScheduleRequest const &, Options)
- CreateSchedule(google::longrunning::Operation const &, Options)
- TriggerSchedule(google::cloud::notebooks::v1::TriggerScheduleRequest const &, Options)
- TriggerSchedule(NoAwaitTag, google::cloud::notebooks::v1::TriggerScheduleRequest const &, Options)
- TriggerSchedule(google::longrunning::Operation const &, Options)
- ListExecutions(std::string const &, Options)
- ListExecutions(google::cloud::notebooks::v1::ListExecutionsRequest, Options)
- GetExecution(std::string const &, Options)
- GetExecution(google::cloud::notebooks::v1::GetExecutionRequest const &, Options)
- DeleteExecution(std::string const &, Options)
- DeleteExecution(NoAwaitTag, std::string const &, Options)
- DeleteExecution(google::cloud::notebooks::v1::DeleteExecutionRequest const &, Options)
- DeleteExecution(NoAwaitTag, google::cloud::notebooks::v1::DeleteExecutionRequest const &, Options)
- DeleteExecution(google::longrunning::Operation const &, Options)
- CreateExecution(std::string const &, google::cloud::notebooks::v1::Execution const &, std::string const &, Options)
- CreateExecution(NoAwaitTag, std::string const &, google::cloud::notebooks::v1::Execution const &, std::string const &, Options)
- CreateExecution(google::cloud::notebooks::v1::CreateExecutionRequest const &, Options)
- CreateExecution(NoAwaitTag, google::cloud::notebooks::v1::CreateExecutionRequest const &, Options)
- CreateExecution(google::longrunning::Operation const &, Options)
- ListLocations(google::cloud::location::ListLocationsRequest, Options)
- GetLocation(google::cloud::location::GetLocationRequest const &, Options)
- SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &, Options)
- GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &, Options)
- TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &, Options)
- ListOperations(std::string const &, std::string const &, Options)
- ListOperations(google::longrunning::ListOperationsRequest, Options)
- GetOperation(std::string const &, Options)
- GetOperation(google::longrunning::GetOperationRequest const &, Options)
- DeleteOperation(std::string const &, Options)
- DeleteOperation(google::longrunning::DeleteOperationRequest const &, Options)
- CancelOperation(std::string const &, Options)
- CancelOperation(google::longrunning::CancelOperationRequest const &, Options)
-
NotebookServiceConnection
- Overview
-
Functions
- virtual options()
- virtual ListInstances(google::cloud::notebooks::v1::ListInstancesRequest)
- virtual GetInstance(google::cloud::notebooks::v1::GetInstanceRequest const &)
- virtual CreateInstance(google::cloud::notebooks::v1::CreateInstanceRequest const &)
- virtual CreateInstance(NoAwaitTag, google::cloud::notebooks::v1::CreateInstanceRequest const &)
- virtual CreateInstance(google::longrunning::Operation const &)
- virtual RegisterInstance(google::cloud::notebooks::v1::RegisterInstanceRequest const &)
- virtual RegisterInstance(NoAwaitTag, google::cloud::notebooks::v1::RegisterInstanceRequest const &)
- virtual RegisterInstance(google::longrunning::Operation const &)
- virtual SetInstanceAccelerator(google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const &)
- virtual SetInstanceAccelerator(NoAwaitTag, google::cloud::notebooks::v1::SetInstanceAcceleratorRequest const &)
- virtual SetInstanceAccelerator(google::longrunning::Operation const &)
- virtual SetInstanceMachineType(google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const &)
- virtual SetInstanceMachineType(NoAwaitTag, google::cloud::notebooks::v1::SetInstanceMachineTypeRequest const &)
- virtual SetInstanceMachineType(google::longrunning::Operation const &)
- virtual UpdateInstanceConfig(google::cloud::notebooks::v1::UpdateInstanceConfigRequest const &)
- virtual UpdateInstanceConfig(NoAwaitTag, google::cloud::notebooks::v1::UpdateInstanceConfigRequest const &)
- virtual UpdateInstanceConfig(google::longrunning::Operation const &)
- virtual UpdateShieldedInstanceConfig(google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const &)
- virtual UpdateShieldedInstanceConfig(NoAwaitTag, google::cloud::notebooks::v1::UpdateShieldedInstanceConfigRequest const &)
- virtual UpdateShieldedInstanceConfig(google::longrunning::Operation const &)
- virtual SetInstanceLabels(google::cloud::notebooks::v1::SetInstanceLabelsRequest const &)
- virtual SetInstanceLabels(NoAwaitTag, google::cloud::notebooks::v1::SetInstanceLabelsRequest const &)
- virtual SetInstanceLabels(google::longrunning::Operation const &)
- virtual UpdateInstanceMetadataItems(google::cloud::notebooks::v1::UpdateInstanceMetadataItemsRequest const &)
- virtual DeleteInstance(google::cloud::notebooks::v1::DeleteInstanceRequest const &)
- virtual DeleteInstance(NoAwaitTag, google::cloud::notebooks::v1::DeleteInstanceRequest const &)
- virtual DeleteInstance(google::longrunning::Operation const &)
- virtual StartInstance(google::cloud::notebooks::v1::StartInstanceRequest const &)
- virtual StartInstance(NoAwaitTag, google::cloud::notebooks::v1::StartInstanceRequest const &)
- virtual StartInstance(google::longrunning::Operation const &)
- virtual StopInstance(google::cloud::notebooks::v1::StopInstanceRequest const &)
- virtual StopInstance(NoAwaitTag, google::cloud::notebooks::v1::StopInstanceRequest const &)
- virtual StopInstance(google::longrunning::Operation const &)
- virtual ResetInstance(google::cloud::notebooks::v1::ResetInstanceRequest const &)
- virtual ResetInstance(NoAwaitTag, google::cloud::notebooks::v1::ResetInstanceRequest const &)
- virtual ResetInstance(google::longrunning::Operation const &)
- virtual ReportInstanceInfo(google::cloud::notebooks::v1::ReportInstanceInfoRequest const &)
- virtual ReportInstanceInfo(NoAwaitTag, google::cloud::notebooks::v1::ReportInstanceInfoRequest const &)
- virtual ReportInstanceInfo(google::longrunning::Operation const &)
- virtual IsInstanceUpgradeable(google::cloud::notebooks::v1::IsInstanceUpgradeableRequest const &)
- virtual GetInstanceHealth(google::cloud::notebooks::v1::GetInstanceHealthRequest const &)
- virtual UpgradeInstance(google::cloud::notebooks::v1::UpgradeInstanceRequest const &)
- virtual UpgradeInstance(NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceRequest const &)
- virtual UpgradeInstance(google::longrunning::Operation const &)
- virtual RollbackInstance(google::cloud::notebooks::v1::RollbackInstanceRequest const &)
- virtual RollbackInstance(NoAwaitTag, google::cloud::notebooks::v1::RollbackInstanceRequest const &)
- virtual RollbackInstance(google::longrunning::Operation const &)
- virtual DiagnoseInstance(google::cloud::notebooks::v1::DiagnoseInstanceRequest const &)
- virtual DiagnoseInstance(NoAwaitTag, google::cloud::notebooks::v1::DiagnoseInstanceRequest const &)
- virtual DiagnoseInstance(google::longrunning::Operation const &)
- virtual UpgradeInstanceInternal(google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const &)
- virtual UpgradeInstanceInternal(NoAwaitTag, google::cloud::notebooks::v1::UpgradeInstanceInternalRequest const &)
- virtual UpgradeInstanceInternal(google::longrunning::Operation const &)
- virtual ListEnvironments(google::cloud::notebooks::v1::ListEnvironmentsRequest)
- virtual GetEnvironment(google::cloud::notebooks::v1::GetEnvironmentRequest const &)
- virtual CreateEnvironment(google::cloud::notebooks::v1::CreateEnvironmentRequest const &)
- virtual CreateEnvironment(NoAwaitTag, google::cloud::notebooks::v1::CreateEnvironmentRequest const &)
- virtual CreateEnvironment(google::longrunning::Operation const &)
- virtual DeleteEnvironment(google::cloud::notebooks::v1::DeleteEnvironmentRequest const &)
- virtual DeleteEnvironment(NoAwaitTag, google::cloud::notebooks::v1::DeleteEnvironmentRequest const &)
- virtual DeleteEnvironment(google::longrunning::Operation const &)
- virtual ListSchedules(google::cloud::notebooks::v1::ListSchedulesRequest)
- virtual GetSchedule(google::cloud::notebooks::v1::GetScheduleRequest const &)
- virtual DeleteSchedule(google::cloud::notebooks::v1::DeleteScheduleRequest const &)
- virtual DeleteSchedule(NoAwaitTag, google::cloud::notebooks::v1::DeleteScheduleRequest const &)
- virtual DeleteSchedule(google::longrunning::Operation const &)
- virtual CreateSchedule(google::cloud::notebooks::v1::CreateScheduleRequest const &)
- virtual CreateSchedule(NoAwaitTag, google::cloud::notebooks::v1::CreateScheduleRequest const &)
- virtual CreateSchedule(google::longrunning::Operation const &)
- virtual TriggerSchedule(google::cloud::notebooks::v1::TriggerScheduleRequest const &)
- virtual TriggerSchedule(NoAwaitTag, google::cloud::notebooks::v1::TriggerScheduleRequest const &)
- virtual TriggerSchedule(google::longrunning::Operation const &)
- virtual ListExecutions(google::cloud::notebooks::v1::ListExecutionsRequest)
- virtual GetExecution(google::cloud::notebooks::v1::GetExecutionRequest const &)
- virtual DeleteExecution(google::cloud::notebooks::v1::DeleteExecutionRequest const &)
- virtual DeleteExecution(NoAwaitTag, google::cloud::notebooks::v1::DeleteExecutionRequest const &)
- virtual DeleteExecution(google::longrunning::Operation const &)
- virtual CreateExecution(google::cloud::notebooks::v1::CreateExecutionRequest const &)
- virtual CreateExecution(NoAwaitTag, google::cloud::notebooks::v1::CreateExecutionRequest const &)
- virtual CreateExecution(google::longrunning::Operation const &)
- virtual ListLocations(google::cloud::location::ListLocationsRequest)
- virtual GetLocation(google::cloud::location::GetLocationRequest const &)
- virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)
- virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)
- virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)
- virtual ListOperations(google::longrunning::ListOperationsRequest)
- virtual GetOperation(google::longrunning::GetOperationRequest const &)
- virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)
- virtual CancelOperation(google::longrunning::CancelOperationRequest const &)
-
NotebookServiceConnectionIdempotencyPolicy
-
NotebookServiceLimitedErrorCountRetryPolicy
-
NotebookServiceLimitedTimeRetryPolicy
-
Structs
-
ManagedNotebookServiceBackoffPolicyOption
-
ManagedNotebookServiceConnectionIdempotencyPolicyOption
-
ManagedNotebookServicePollingPolicyOption
-
ManagedNotebookServiceRetryPolicyOption
-
NotebookServiceBackoffPolicyOption
-
NotebookServiceConnectionIdempotencyPolicyOption
-
NotebookServicePollingPolicyOption
-
NotebookServiceRetryPolicyOption
-
google::cloud::notebooks_v1_mocks
-
google::cloud::notebooks_v2
- Overview
-
Classes
-
NotebookServiceClient
- Overview
-
Functions
- ListInstances(std::string const &, Options)
- ListInstances(google::cloud::notebooks::v2::ListInstancesRequest, Options)
- GetInstance(std::string const &, Options)
- GetInstance(google::cloud::notebooks::v2::GetInstanceRequest const &, Options)
- CreateInstance(std::string const &, google::cloud::notebooks::v2::Instance const &, std::string const &, Options)
- CreateInstance(NoAwaitTag, std::string const &, google::cloud::notebooks::v2::Instance const &, std::string const &, Options)
- CreateInstance(google::cloud::notebooks::v2::CreateInstanceRequest const &, Options)
- CreateInstance(NoAwaitTag, google::cloud::notebooks::v2::CreateInstanceRequest const &, Options)
- CreateInstance(google::longrunning::Operation const &, Options)
- UpdateInstance(google::cloud::notebooks::v2::Instance const &, google::protobuf::FieldMask const &, Options)
- UpdateInstance(NoAwaitTag, google::cloud::notebooks::v2::Instance const &, google::protobuf::FieldMask const &, Options)
- UpdateInstance(google::cloud::notebooks::v2::UpdateInstanceRequest const &, Options)
- UpdateInstance(NoAwaitTag, google::cloud::notebooks::v2::UpdateInstanceRequest const &, Options)
- UpdateInstance(google::longrunning::Operation const &, Options)
- DeleteInstance(std::string const &, Options)
- DeleteInstance(NoAwaitTag, std::string const &, Options)
- DeleteInstance(google::cloud::notebooks::v2::DeleteInstanceRequest const &, Options)
- DeleteInstance(NoAwaitTag, google::cloud::notebooks::v2::DeleteInstanceRequest const &, Options)
- DeleteInstance(google::longrunning::Operation const &, Options)
- StartInstance(google::cloud::notebooks::v2::StartInstanceRequest const &, Options)
- StartInstance(NoAwaitTag, google::cloud::notebooks::v2::StartInstanceRequest const &, Options)
- StartInstance(google::longrunning::Operation const &, Options)
- StopInstance(google::cloud::notebooks::v2::StopInstanceRequest const &, Options)
- StopInstance(NoAwaitTag, google::cloud::notebooks::v2::StopInstanceRequest const &, Options)
- StopInstance(google::longrunning::Operation const &, Options)
- ResetInstance(google::cloud::notebooks::v2::ResetInstanceRequest const &, Options)
- ResetInstance(NoAwaitTag, google::cloud::notebooks::v2::ResetInstanceRequest const &, Options)
- ResetInstance(google::longrunning::Operation const &, Options)
- CheckInstanceUpgradability(google::cloud::notebooks::v2::CheckInstanceUpgradabilityRequest const &, Options)
- UpgradeInstance(google::cloud::notebooks::v2::UpgradeInstanceRequest const &, Options)
- UpgradeInstance(NoAwaitTag, google::cloud::notebooks::v2::UpgradeInstanceRequest const &, Options)
- UpgradeInstance(google::longrunning::Operation const &, Options)
- RollbackInstance(google::cloud::notebooks::v2::RollbackInstanceRequest const &, Options)
- RollbackInstance(NoAwaitTag, google::cloud::notebooks::v2::RollbackInstanceRequest const &, Options)
- RollbackInstance(google::longrunning::Operation const &, Options)
- DiagnoseInstance(std::string const &, google::cloud::notebooks::v2::DiagnosticConfig const &, Options)
- DiagnoseInstance(NoAwaitTag, std::string const &, google::cloud::notebooks::v2::DiagnosticConfig const &, Options)
- DiagnoseInstance(google::cloud::notebooks::v2::DiagnoseInstanceRequest const &, Options)
- DiagnoseInstance(NoAwaitTag, google::cloud::notebooks::v2::DiagnoseInstanceRequest const &, Options)
- DiagnoseInstance(google::longrunning::Operation const &, Options)
- ListLocations(google::cloud::location::ListLocationsRequest, Options)
- GetLocation(google::cloud::location::GetLocationRequest const &, Options)
- SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &, Options)
- GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &, Options)
- TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &, Options)
- ListOperations(std::string const &, std::string const &, Options)
- ListOperations(google::longrunning::ListOperationsRequest, Options)
- GetOperation(std::string const &, Options)
- GetOperation(google::longrunning::GetOperationRequest const &, Options)
- DeleteOperation(std::string const &, Options)
- DeleteOperation(google::longrunning::DeleteOperationRequest const &, Options)
- CancelOperation(std::string const &, Options)
- CancelOperation(google::longrunning::CancelOperationRequest const &, Options)
-
NotebookServiceConnectionIdempotencyPolicy
-
NotebookServiceLimitedErrorCountRetryPolicy
-
NotebookServiceLimitedTimeRetryPolicy
-
Structs
-
NotebookServiceBackoffPolicyOption
-
NotebookServiceConnectionIdempotencyPolicyOption
-
NotebookServicePollingPolicyOption
-
NotebookServiceRetryPolicyOption
-
google::cloud::notebooks_v2_mocks
Stay organized with collections Save and categorize content based on your preferences.
Override Retry, Backoff, and Idempotency Policies
When it is safe to do so, the library automatically retries requests that fail due to a transient error. The library then uses exponential backoff to backoff before trying again. Which operations are considered safe to retry, which errors are treated as transient failures, the details of the exponential backoff algorithm, and for how long the library retries are all configurable via policies.
This document provides examples showing how to override the default policies.
The policies can be set when the *Connection
object is created. The library provides default policies for any policy that is not set. The application can also override some (or all) policies when the *Client
object is created. This can be useful if multiple *Client
objects share the same *Connection
object, but you want different retry behavior in some of the clients. Finally, the application can override some retry policies when calling a specific member function.
The library uses three different options to control the retry loop. The options have per-client names.
Configuring the transient errors and retry duration
The *RetryPolicyOption
controls:
- Which errors are to be treated as transient errors.
- How long the library will keep retrying transient errors.
You can provide your own class for this option. The library also provides two built-in policies:
*LimitedErrorCountRetryPolicy
: stops retrying after a specified number of transient errors.
*LimitedTimeRetryPolicy
: stops retrying after a specified time.
Note that a library may have more than one version of these classes. Their name match the *Client
and *Connection
object they are intended to be used with. Some *Client
objects treat different error codes as transient errors. In most cases, only kUnavailable is treated as a transient error.
Controlling the backoff algorithm
The *BackoffPolicyOption
controls how long the client library will wait before retrying a request that failed with a transient error. You can provide your own class for this option.
The only built-in backoff policy is ExponentialBackoffPolicy
. This class implements a truncated exponential backoff algorithm, with jitter. In summary, it doubles the current backoff time after each failure. The actual backoff time for an RPC is chosen at random, but never exceeds the current backoff. The current backoff is doubled after each failure, but never exceeds (or is "truncated") if it reaches a prescribed maximum.
Controlling which operations are retryable
The *IdempotencyPolicyOption
controls which requests are retryable, as some requests are never safe to retry.
Only one built-in idempotency policy is provided by the library. The name matches the name of the client it is intended for. For example, FooBarClient
will use FooBarIdempotencyPolicy
. This policy is very conservative.
Example
For example, this will override the retry policies for notebooks_v1::ManagedNotebookServiceClient
:
auto options =
google::cloud::Options{}
.set<google::cloud::notebooks_v1::
ManagedNotebookServiceConnectionIdempotencyPolicyOption>(
CustomIdempotencyPolicy().clone())
.set<google::cloud::notebooks_v1::
ManagedNotebookServiceRetryPolicyOption>(
google::cloud::notebooks_v1::
ManagedNotebookServiceLimitedErrorCountRetryPolicy(3)
.clone())
.set<google::cloud::notebooks_v1::
ManagedNotebookServiceBackoffPolicyOption>(
google::cloud::ExponentialBackoffPolicy(
/*initial_delay=*/std::chrono::milliseconds(200),
/*maximum_delay=*/std::chrono::seconds(45),
/*scaling=*/2.0)
.clone());
auto connection =
google::cloud::notebooks_v1::MakeManagedNotebookServiceConnection(
options);
// c1 and c2 share the same retry policies
auto c1 =
google::cloud::notebooks_v1::ManagedNotebookServiceClient(connection);
auto c2 =
google::cloud::notebooks_v1::ManagedNotebookServiceClient(connection);
// You can override any of the policies in a new client. This new client
// will share the policies from c1 (or c2) *except* for the retry policy.
auto c3 = google::cloud::notebooks_v1::ManagedNotebookServiceClient(
connection, google::cloud::Options{}
.set<google::cloud::notebooks_v1::
ManagedNotebookServiceRetryPolicyOption>(
google::cloud::notebooks_v1::
ManagedNotebookServiceLimitedTimeRetryPolicy(
std::chrono::minutes(5))
.clone()));
// You can also override the policies in a single call:
// c3.SomeRpc(..., google::cloud::Options{}
// .set<google::cloud::notebooks_v1::ManagedNotebookServiceRetryPolicyOption>(
// google::cloud::notebooks_v1::ManagedNotebookServiceLimitedErrorCountRetryPolicy(10).clone()));
This assumes you have created a custom idempotency policy. Such as:
class CustomIdempotencyPolicy
: public google::cloud::notebooks_v1::
ManagedNotebookServiceConnectionIdempotencyPolicy {
public:
~CustomIdempotencyPolicy() override = default;
std::unique_ptr<google::cloud::notebooks_v1::
ManagedNotebookServiceConnectionIdempotencyPolicy>
clone() const override {
return std::make_unique<CustomIdempotencyPolicy>(*this);
}
// Override inherited functions to define as needed.
};
This will override the polling policies for notebooks_v1::ManagedNotebookServiceClient
// The polling policy controls how the client waits for long-running
// operations. `GenericPollingPolicy<>` combines existing policies.
// In this case, keep polling until the operation completes (with success
// or error) or 45 minutes, whichever happens first. Initially pause for
// 10 seconds between polling requests, increasing the pause by a factor
// of 4 until it becomes 2 minutes.
auto options =
google::cloud::Options{}
.set<google::cloud::notebooks_v1::
ManagedNotebookServicePollingPolicyOption>(
google::cloud::GenericPollingPolicy<
google::cloud::notebooks_v1::
ManagedNotebookServiceRetryPolicyOption::Type,
google::cloud::notebooks_v1::
ManagedNotebookServiceBackoffPolicyOption::Type>(
google::cloud::notebooks_v1::
ManagedNotebookServiceLimitedTimeRetryPolicy(
/*maximum_duration=*/std::chrono::minutes(45))
.clone(),
google::cloud::ExponentialBackoffPolicy(
/*initial_delay=*/std::chrono::seconds(10),
/*maximum_delay=*/std::chrono::minutes(2),
/*scaling=*/4.0)
.clone())
.clone());
auto connection =
google::cloud::notebooks_v1::MakeManagedNotebookServiceConnection(
options);
// c1 and c2 share the same polling policies.
auto c1 =
google::cloud::notebooks_v1::ManagedNotebookServiceClient(connection);
auto c2 =
google::cloud::notebooks_v1::ManagedNotebookServiceClient(connection);
Follow these links to find examples for other *Client
classes:
More Information See Also
google::cloud::Options
See Also
google::cloud::BackoffPolicy
See Also
google::cloud::ExponentialBackoffPolicy
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["This document provides examples of how to override default policies for retrying failed requests, controlling backoff algorithms, and determining which operations are safe to retry within the client library."],["The library uses `*RetryPolicyOption`, `*BackoffPolicyOption`, and `*IdempotencyPolicyOption` to manage transient errors, retry durations, backoff times, and retryable operations, respectively."],["Custom policies can be created, such as `CustomIdempotencyPolicy`, to define specific retry behaviors, and these policies can be applied when creating `*Connection` or `*Client` objects, or even during individual function calls."],["The library offers built-in policies like `*LimitedErrorCountRetryPolicy`, `*LimitedTimeRetryPolicy`, and `ExponentialBackoffPolicy`, which can be utilized or overridden to tailor the retry and backoff processes."],["The provided list of versions displays versions from 2.11.0 to 2.37.0-rc (latest), with links to override retry settings within each version, which can be found on the webpage."]]],[]]
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4