Backup and DR Service V1 API - Module Google::Cloud::BackupDR::V1::BackupDR::Paths (v0.4.0)

Reference documentation and code samples for the Backup and DR Service V1 API module Google::Cloud::BackupDR::V1::BackupDR::Paths.

Path helper methods for the BackupDR API.

Methods

#backup_path

def backup_path(project:, location:, backupvault:, datasource:, backup:) -> ::String

Create a fully-qualified Backup resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup}

Parameters
  • project (String)
  • location (String)
  • backupvault (String)
  • datasource (String)
  • backup (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#backup_plan_association_path

def backup_plan_association_path(project:, location:, backup_plan_association:) -> ::String

Create a fully-qualified BackupPlanAssociation resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/backupPlanAssociations/{backup_plan_association}

Parameters
  • project (String)
  • location (String)
  • backup_plan_association (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#backup_plan_path

def backup_plan_path(project:, location:, backup_plan:) -> ::String

Create a fully-qualified BackupPlan resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/backupPlans/{backup_plan}

Parameters
  • project (String)
  • location (String)
  • backup_plan (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#backup_vault_path

def backup_vault_path(project:, location:, backupvault:) -> ::String

Create a fully-qualified BackupVault resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/backupVaults/{backupvault}

Parameters
  • project (String)
  • location (String)
  • backupvault (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#data_source_path

def data_source_path(project:, location:, backupvault:, datasource:) -> ::String

Create a fully-qualified DataSource resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}

Parameters
  • project (String)
  • location (String)
  • backupvault (String)
  • datasource (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#location_path

def location_path(project:, location:) -> ::String

Create a fully-qualified Location resource string.

The resource will be in the following format:

projects/{project}/locations/{location}

Parameters
  • project (String)
  • location (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#management_server_path

def management_server_path(project:, location:, managementserver:) -> ::String

Create a fully-qualified ManagementServer resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/managementServers/{managementserver}

Parameters
  • project (String)
  • location (String)
  • managementserver (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)