Backup and DR Service V1 API - Class Google::Cloud::BackupDR::V1::BackupDR::Rest::ServiceStub (v0.4.0)

Reference documentation and code samples for the Backup and DR Service V1 API class Google::Cloud::BackupDR::V1::BackupDR::Rest::ServiceStub.

REST service stub for the BackupDR service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#create_backup_plan

def create_backup_plan(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_backup_plan REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_backup_plan_association

def create_backup_plan_association(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_backup_plan_association REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_backup_vault

def create_backup_vault(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_backup_vault REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_management_server

def create_management_server(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_management_server REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_backup

def delete_backup(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_backup REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_backup_plan

def delete_backup_plan(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_backup_plan REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_backup_plan_association

def delete_backup_plan_association(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_backup_plan_association REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_backup_vault

def delete_backup_vault(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_backup_vault REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_management_server

def delete_management_server(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_management_server REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#fetch_usable_backup_vaults

def fetch_usable_backup_vaults(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1::FetchUsableBackupVaultsResponse

Baseline implementation for the fetch_usable_backup_vaults REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_backup

def get_backup(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1::Backup

Baseline implementation for the get_backup REST call

Parameters
  • request_pb (::Google::Cloud::BackupDR::V1::GetBackupRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_backup_plan

def get_backup_plan(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1::BackupPlan

Baseline implementation for the get_backup_plan REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_backup_plan_association

def get_backup_plan_association(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1::BackupPlanAssociation

Baseline implementation for the get_backup_plan_association REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_backup_vault

def get_backup_vault(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1::BackupVault

Baseline implementation for the get_backup_vault REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_data_source

def get_data_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1::DataSource

Baseline implementation for the get_data_source REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_management_server

def get_management_server(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1::ManagementServer

Baseline implementation for the get_management_server REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_backup_plan_associations

def list_backup_plan_associations(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1::ListBackupPlanAssociationsResponse

Baseline implementation for the list_backup_plan_associations REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_backup_plans

def list_backup_plans(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1::ListBackupPlansResponse

Baseline implementation for the list_backup_plans REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_backup_vaults

def list_backup_vaults(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1::ListBackupVaultsResponse

Baseline implementation for the list_backup_vaults REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_backups

def list_backups(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1::ListBackupsResponse

Baseline implementation for the list_backups REST call

Parameters
  • request_pb (::Google::Cloud::BackupDR::V1::ListBackupsRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_data_sources

def list_data_sources(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1::ListDataSourcesResponse

Baseline implementation for the list_data_sources REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_management_servers

def list_management_servers(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1::ListManagementServersResponse

Baseline implementation for the list_management_servers REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#logger

def logger(stub: false) -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#restore_backup

def restore_backup(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the restore_backup REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#trigger_backup

def trigger_backup(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the trigger_backup REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_backup

def update_backup(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_backup REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_backup_vault

def update_backup_vault(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_backup_vault REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_data_source

def update_data_source(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the update_data_source REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)