Backup and DR Service V1BETA API - Class Google::Cloud::BackupDR::V1beta::BackupDR::Rest::ServiceStub (v0.1.0)

Reference documentation and code samples for the Backup and DR Service V1BETA API class Google::Cloud::BackupDR::V1beta::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_auto_protection_policy

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

Baseline implementation for the create_auto_protection_policy REST call

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

#create_auto_protection_policy_binding

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

Baseline implementation for the create_auto_protection_policy_binding REST call

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

#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_auto_protection_policy

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

Baseline implementation for the delete_auto_protection_policy 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_backup_plan_associations_for_resource_type

def fetch_backup_plan_associations_for_resource_type(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::FetchBackupPlanAssociationsForResourceTypeResponse

Baseline implementation for the fetch_backup_plan_associations_for_resource_type REST call

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

#fetch_backups_for_resource_type

def fetch_backups_for_resource_type(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::FetchBackupsForResourceTypeResponse

Baseline implementation for the fetch_backups_for_resource_type REST call

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

#fetch_data_source_references_for_resource_type

def fetch_data_source_references_for_resource_type(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::FetchDataSourceReferencesForResourceTypeResponse

Baseline implementation for the fetch_data_source_references_for_resource_type REST call

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

#fetch_usable_backup_vaults

def fetch_usable_backup_vaults(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::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_auto_protection_policy

def get_auto_protection_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy

Baseline implementation for the get_auto_protection_policy REST call

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

#get_auto_protection_policy_binding

def get_auto_protection_policy_binding(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicyBinding

Baseline implementation for the get_auto_protection_policy_binding 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::V1beta::Backup

Baseline implementation for the get_backup REST call

Parameters
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::V1beta::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::V1beta::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_plan_revision

def get_backup_plan_revision(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::BackupPlanRevision

Baseline implementation for the get_backup_plan_revision 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::V1beta::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_binding_matching_resource

def get_binding_matching_resource(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::BindingMatchingResource

Baseline implementation for the get_binding_matching_resource 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::V1beta::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_data_source_reference

def get_data_source_reference(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::DataSourceReference

Baseline implementation for the get_data_source_reference 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::V1beta::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)

#initialize_service

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

Baseline implementation for the initialize_service REST call

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

#initiate_delete_auto_protection_policy_binding

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

Baseline implementation for the initiate_delete_auto_protection_policy_binding REST call

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

#list_applied_auto_protection_policies

def list_applied_auto_protection_policies(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::ListAppliedAutoProtectionPoliciesResponse

Baseline implementation for the list_applied_auto_protection_policies REST call

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

#list_auto_protection_policies

def list_auto_protection_policies(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPoliciesResponse

Baseline implementation for the list_auto_protection_policies REST call

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

#list_auto_protection_policy_bindings

def list_auto_protection_policy_bindings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::ListAutoProtectionPolicyBindingsResponse

Baseline implementation for the list_auto_protection_policy_bindings 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::V1beta::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_plan_revisions

def list_backup_plan_revisions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::ListBackupPlanRevisionsResponse

Baseline implementation for the list_backup_plan_revisions 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::V1beta::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::V1beta::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::V1beta::ListBackupsResponse

Baseline implementation for the list_backups REST call

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

#list_binding_matching_resources

def list_binding_matching_resources(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::ListBindingMatchingResourcesResponse

Baseline implementation for the list_binding_matching_resources REST call

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

#list_data_source_references

def list_data_source_references(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::BackupDR::V1beta::ListDataSourceReferencesResponse

Baseline implementation for the list_data_source_references REST call

Parameters
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::V1beta::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::V1beta::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_auto_protection_policy

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

Baseline implementation for the update_auto_protection_policy REST call

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

#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_plan

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

Baseline implementation for the update_backup_plan REST call

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

#update_backup_plan_association

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

Baseline implementation for the update_backup_plan_association 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)