"""Generated client library for backupdr version v1alpha."""
# NOTE: This file is autogenerated and should not be edited by hand.

from apitools.base.py import base_api
from googlecloudsdk.generated_clients.apis.backupdr.v1alpha import backupdr_v1alpha_messages as messages


class BackupdrV1alpha(base_api.BaseApiClient):
  """Generated client library for service backupdr version v1alpha."""

  MESSAGES_MODULE = messages
  BASE_URL = 'https://backupdr.googleapis.com/'
  MTLS_BASE_URL = 'https://backupdr.mtls.googleapis.com/'

  _PACKAGE = 'backupdr'
  _SCOPES = ['https://www.googleapis.com/auth/cloud-backupdr', 'https://www.googleapis.com/auth/cloud-platform']
  _VERSION = 'v1alpha'
  _CLIENT_ID = 'CLIENT_ID'
  _CLIENT_SECRET = 'CLIENT_SECRET'
  _USER_AGENT = 'google-cloud-sdk'
  _CLIENT_CLASS_NAME = 'BackupdrV1alpha'
  _URL_VERSION = 'v1alpha'
  _API_KEY = None

  def __init__(self, url='', credentials=None,
               get_credentials=True, http=None, model=None,
               log_request=False, log_response=False,
               credentials_args=None, default_global_params=None,
               additional_http_headers=None, response_encoding=None):
    """Create a new backupdr handle."""
    url = url or self.BASE_URL
    super(BackupdrV1alpha, self).__init__(
        url, credentials=credentials,
        get_credentials=get_credentials, http=http, model=model,
        log_request=log_request, log_response=log_response,
        credentials_args=credentials_args,
        default_global_params=default_global_params,
        additional_http_headers=additional_http_headers,
        response_encoding=response_encoding)
    self.folders_locations_resourceBackupConfigs = self.FoldersLocationsResourceBackupConfigsService(self)
    self.folders_locations = self.FoldersLocationsService(self)
    self.folders = self.FoldersService(self)
    self.organizations_locations_resourceBackupConfigs = self.OrganizationsLocationsResourceBackupConfigsService(self)
    self.organizations_locations = self.OrganizationsLocationsService(self)
    self.organizations = self.OrganizationsService(self)
    self.projects_locations_appliedAutoProtectionPolicies = self.ProjectsLocationsAppliedAutoProtectionPoliciesService(self)
    self.projects_locations_autoProtectionPolicies_bindings_matchingResources = self.ProjectsLocationsAutoProtectionPoliciesBindingsMatchingResourcesService(self)
    self.projects_locations_autoProtectionPolicies_bindings = self.ProjectsLocationsAutoProtectionPoliciesBindingsService(self)
    self.projects_locations_autoProtectionPolicies = self.ProjectsLocationsAutoProtectionPoliciesService(self)
    self.projects_locations_backupPlanAssociations = self.ProjectsLocationsBackupPlanAssociationsService(self)
    self.projects_locations_backupPlans_revisions = self.ProjectsLocationsBackupPlansRevisionsService(self)
    self.projects_locations_backupPlans = self.ProjectsLocationsBackupPlansService(self)
    self.projects_locations_backupVaults_dataSources_backups = self.ProjectsLocationsBackupVaultsDataSourcesBackupsService(self)
    self.projects_locations_backupVaults_dataSources = self.ProjectsLocationsBackupVaultsDataSourcesService(self)
    self.projects_locations_backupVaults = self.ProjectsLocationsBackupVaultsService(self)
    self.projects_locations_dataSourceReferences = self.ProjectsLocationsDataSourceReferencesService(self)
    self.projects_locations_managementServers = self.ProjectsLocationsManagementServersService(self)
    self.projects_locations_operations = self.ProjectsLocationsOperationsService(self)
    self.projects_locations_resourceBackupConfigs = self.ProjectsLocationsResourceBackupConfigsService(self)
    self.projects_locations_restoreTemplates_executions = self.ProjectsLocationsRestoreTemplatesExecutionsService(self)
    self.projects_locations_restoreTemplates = self.ProjectsLocationsRestoreTemplatesService(self)
    self.projects_locations_serviceConfig = self.ProjectsLocationsServiceConfigService(self)
    self.projects_locations_trial = self.ProjectsLocationsTrialService(self)
    self.projects_locations = self.ProjectsLocationsService(self)
    self.projects = self.ProjectsService(self)

  class FoldersLocationsResourceBackupConfigsService(base_api.BaseApiService):
    """Service class for the folders_locations_resourceBackupConfigs resource."""

    _NAME = 'folders_locations_resourceBackupConfigs'

    def __init__(self, client):
      super(BackupdrV1alpha.FoldersLocationsResourceBackupConfigsService, self).__init__(client)
      self._upload_configs = {
          }

    def Fetch(self, request, global_params=None):
      r"""Fetches ResourceBackupConfigs.

      Args:
        request: (BackupdrFoldersLocationsResourceBackupConfigsFetchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (FetchResourceBackupConfigsResponse) The response message.
      """
      config = self.GetMethodConfig('Fetch')
      return self._RunMethod(
          config, request, global_params=global_params)

    Fetch.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/folders/{foldersId}/locations/{locationsId}/resourceBackupConfigs:fetch',
        http_method='GET',
        method_id='backupdr.folders.locations.resourceBackupConfigs.fetch',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/resourceBackupConfigs:fetch',
        request_field='',
        request_type_name='BackupdrFoldersLocationsResourceBackupConfigsFetchRequest',
        response_type_name='FetchResourceBackupConfigsResponse',
        supports_download=False,
    )

  class FoldersLocationsService(base_api.BaseApiService):
    """Service class for the folders_locations resource."""

    _NAME = 'folders_locations'

    def __init__(self, client):
      super(BackupdrV1alpha.FoldersLocationsService, self).__init__(client)
      self._upload_configs = {
          }

  class FoldersService(base_api.BaseApiService):
    """Service class for the folders resource."""

    _NAME = 'folders'

    def __init__(self, client):
      super(BackupdrV1alpha.FoldersService, self).__init__(client)
      self._upload_configs = {
          }

  class OrganizationsLocationsResourceBackupConfigsService(base_api.BaseApiService):
    """Service class for the organizations_locations_resourceBackupConfigs resource."""

    _NAME = 'organizations_locations_resourceBackupConfigs'

    def __init__(self, client):
      super(BackupdrV1alpha.OrganizationsLocationsResourceBackupConfigsService, self).__init__(client)
      self._upload_configs = {
          }

    def Fetch(self, request, global_params=None):
      r"""Fetches ResourceBackupConfigs.

      Args:
        request: (BackupdrOrganizationsLocationsResourceBackupConfigsFetchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (FetchResourceBackupConfigsResponse) The response message.
      """
      config = self.GetMethodConfig('Fetch')
      return self._RunMethod(
          config, request, global_params=global_params)

    Fetch.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/organizations/{organizationsId}/locations/{locationsId}/resourceBackupConfigs:fetch',
        http_method='GET',
        method_id='backupdr.organizations.locations.resourceBackupConfigs.fetch',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/resourceBackupConfigs:fetch',
        request_field='',
        request_type_name='BackupdrOrganizationsLocationsResourceBackupConfigsFetchRequest',
        response_type_name='FetchResourceBackupConfigsResponse',
        supports_download=False,
    )

  class OrganizationsLocationsService(base_api.BaseApiService):
    """Service class for the organizations_locations resource."""

    _NAME = 'organizations_locations'

    def __init__(self, client):
      super(BackupdrV1alpha.OrganizationsLocationsService, self).__init__(client)
      self._upload_configs = {
          }

  class OrganizationsService(base_api.BaseApiService):
    """Service class for the organizations resource."""

    _NAME = 'organizations'

    def __init__(self, client):
      super(BackupdrV1alpha.OrganizationsService, self).__init__(client)
      self._upload_configs = {
          }

  class ProjectsLocationsAppliedAutoProtectionPoliciesService(base_api.BaseApiService):
    """Service class for the projects_locations_appliedAutoProtectionPolicies resource."""

    _NAME = 'projects_locations_appliedAutoProtectionPolicies'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsAppliedAutoProtectionPoliciesService, self).__init__(client)
      self._upload_configs = {
          }

    def List(self, request, global_params=None):
      r"""Lists AppliedAutoProtectionPolicies in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsAppliedAutoProtectionPoliciesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListAppliedAutoProtectionPoliciesResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/appliedAutoProtectionPolicies',
        http_method='GET',
        method_id='backupdr.projects.locations.appliedAutoProtectionPolicies.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/appliedAutoProtectionPolicies',
        request_field='',
        request_type_name='BackupdrProjectsLocationsAppliedAutoProtectionPoliciesListRequest',
        response_type_name='ListAppliedAutoProtectionPoliciesResponse',
        supports_download=False,
    )

  class ProjectsLocationsAutoProtectionPoliciesBindingsMatchingResourcesService(base_api.BaseApiService):
    """Service class for the projects_locations_autoProtectionPolicies_bindings_matchingResources resource."""

    _NAME = 'projects_locations_autoProtectionPolicies_bindings_matchingResources'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsAutoProtectionPoliciesBindingsMatchingResourcesService, self).__init__(client)
      self._upload_configs = {
          }

    def Get(self, request, global_params=None):
      r"""Gets details of a single Binding Matching Resource.

      Args:
        request: (BackupdrProjectsLocationsAutoProtectionPoliciesBindingsMatchingResourcesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (BindingMatchingResource) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/autoProtectionPolicies/{autoProtectionPoliciesId}/bindings/{bindingsId}/matchingResources/{matchingResourcesId}',
        http_method='GET',
        method_id='backupdr.projects.locations.autoProtectionPolicies.bindings.matchingResources.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsAutoProtectionPoliciesBindingsMatchingResourcesGetRequest',
        response_type_name='BindingMatchingResource',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.

      Args:
        request: (BackupdrProjectsLocationsAutoProtectionPoliciesBindingsMatchingResourcesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListBindingMatchingResourcesResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/autoProtectionPolicies/{autoProtectionPoliciesId}/bindings/{bindingsId}/matchingResources',
        http_method='GET',
        method_id='backupdr.projects.locations.autoProtectionPolicies.bindings.matchingResources.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/matchingResources',
        request_field='',
        request_type_name='BackupdrProjectsLocationsAutoProtectionPoliciesBindingsMatchingResourcesListRequest',
        response_type_name='ListBindingMatchingResourcesResponse',
        supports_download=False,
    )

  class ProjectsLocationsAutoProtectionPoliciesBindingsService(base_api.BaseApiService):
    """Service class for the projects_locations_autoProtectionPolicies_bindings resource."""

    _NAME = 'projects_locations_autoProtectionPolicies_bindings'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsAutoProtectionPoliciesBindingsService, self).__init__(client)
      self._upload_configs = {
          }

    def Create(self, request, global_params=None):
      r"""Creates a new AutoProtectionPolicyBinding in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsAutoProtectionPoliciesBindingsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Create')
      return self._RunMethod(
          config, request, global_params=global_params)

    Create.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/autoProtectionPolicies/{autoProtectionPoliciesId}/bindings',
        http_method='POST',
        method_id='backupdr.projects.locations.autoProtectionPolicies.bindings.create',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['autoProtectionPolicyBindingId'],
        relative_path='v1alpha/{+parent}/bindings',
        request_field='autoProtectionPolicyBinding',
        request_type_name='BackupdrProjectsLocationsAutoProtectionPoliciesBindingsCreateRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Get(self, request, global_params=None):
      r"""Returns the auto protection policy binding read from the CCFE tables.

      Args:
        request: (BackupdrProjectsLocationsAutoProtectionPoliciesBindingsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (AutoProtectionPolicyBinding) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/autoProtectionPolicies/{autoProtectionPoliciesId}/bindings/{bindingsId}',
        http_method='GET',
        method_id='backupdr.projects.locations.autoProtectionPolicies.bindings.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsAutoProtectionPoliciesBindingsGetRequest',
        response_type_name='AutoProtectionPolicyBinding',
        supports_download=False,
    )

    def InitiateDelete(self, request, global_params=None):
      r"""InitiateDeleteAutoProtectionPolicyBinding initiates delete for AutoProtectionPolicy Binding.

      Args:
        request: (BackupdrProjectsLocationsAutoProtectionPoliciesBindingsInitiateDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('InitiateDelete')
      return self._RunMethod(
          config, request, global_params=global_params)

    InitiateDelete.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/autoProtectionPolicies/{autoProtectionPoliciesId}/bindings/{bindingsId}:initiateDelete',
        http_method='POST',
        method_id='backupdr.projects.locations.autoProtectionPolicies.bindings.initiateDelete',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}:initiateDelete',
        request_field='initiateDeleteAutoProtectionPolicyBindingRequest',
        request_type_name='BackupdrProjectsLocationsAutoProtectionPoliciesBindingsInitiateDeleteRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Returns the auto protection policy bindings read from the CCFE tables.

      Args:
        request: (BackupdrProjectsLocationsAutoProtectionPoliciesBindingsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListAutoProtectionPolicyBindingsResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/autoProtectionPolicies/{autoProtectionPoliciesId}/bindings',
        http_method='GET',
        method_id='backupdr.projects.locations.autoProtectionPolicies.bindings.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/bindings',
        request_field='',
        request_type_name='BackupdrProjectsLocationsAutoProtectionPoliciesBindingsListRequest',
        response_type_name='ListAutoProtectionPolicyBindingsResponse',
        supports_download=False,
    )

  class ProjectsLocationsAutoProtectionPoliciesService(base_api.BaseApiService):
    """Service class for the projects_locations_autoProtectionPolicies resource."""

    _NAME = 'projects_locations_autoProtectionPolicies'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsAutoProtectionPoliciesService, self).__init__(client)
      self._upload_configs = {
          }

    def Create(self, request, global_params=None):
      r"""Creates a new AutoProtectionPolicy in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsAutoProtectionPoliciesCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Create')
      return self._RunMethod(
          config, request, global_params=global_params)

    Create.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/autoProtectionPolicies',
        http_method='POST',
        method_id='backupdr.projects.locations.autoProtectionPolicies.create',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['autoProtectionPolicyId'],
        relative_path='v1alpha/{+parent}/autoProtectionPolicies',
        request_field='autoProtectionPolicy',
        request_type_name='BackupdrProjectsLocationsAutoProtectionPoliciesCreateRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Delete(self, request, global_params=None):
      r"""Deletes a single AutoProtectionPolicy.

      Args:
        request: (BackupdrProjectsLocationsAutoProtectionPoliciesDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Delete')
      return self._RunMethod(
          config, request, global_params=global_params)

    Delete.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/autoProtectionPolicies/{autoProtectionPoliciesId}',
        http_method='DELETE',
        method_id='backupdr.projects.locations.autoProtectionPolicies.delete',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['etag'],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsAutoProtectionPoliciesDeleteRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Get(self, request, global_params=None):
      r"""Gets details of a single AutoProtectionPolicy.

      Args:
        request: (BackupdrProjectsLocationsAutoProtectionPoliciesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (AutoProtectionPolicy) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/autoProtectionPolicies/{autoProtectionPoliciesId}',
        http_method='GET',
        method_id='backupdr.projects.locations.autoProtectionPolicies.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsAutoProtectionPoliciesGetRequest',
        response_type_name='AutoProtectionPolicy',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists AutoProtectionPolicies for a given project and location.

      Args:
        request: (BackupdrProjectsLocationsAutoProtectionPoliciesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListAutoProtectionPoliciesResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/autoProtectionPolicies',
        http_method='GET',
        method_id='backupdr.projects.locations.autoProtectionPolicies.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/autoProtectionPolicies',
        request_field='',
        request_type_name='BackupdrProjectsLocationsAutoProtectionPoliciesListRequest',
        response_type_name='ListAutoProtectionPoliciesResponse',
        supports_download=False,
    )

    def Patch(self, request, global_params=None):
      r"""Updates the parameters of a single AutoProtectionPolicy.

      Args:
        request: (BackupdrProjectsLocationsAutoProtectionPoliciesPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Patch')
      return self._RunMethod(
          config, request, global_params=global_params)

    Patch.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/autoProtectionPolicies/{autoProtectionPoliciesId}',
        http_method='PATCH',
        method_id='backupdr.projects.locations.autoProtectionPolicies.patch',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['updateMask'],
        relative_path='v1alpha/{+name}',
        request_field='autoProtectionPolicy',
        request_type_name='BackupdrProjectsLocationsAutoProtectionPoliciesPatchRequest',
        response_type_name='Operation',
        supports_download=False,
    )

  class ProjectsLocationsBackupPlanAssociationsService(base_api.BaseApiService):
    """Service class for the projects_locations_backupPlanAssociations resource."""

    _NAME = 'projects_locations_backupPlanAssociations'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsBackupPlanAssociationsService, self).__init__(client)
      self._upload_configs = {
          }

    def Create(self, request, global_params=None):
      r"""Create a BackupPlanAssociation.

      Args:
        request: (BackupdrProjectsLocationsBackupPlanAssociationsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Create')
      return self._RunMethod(
          config, request, global_params=global_params)

    Create.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlanAssociations',
        http_method='POST',
        method_id='backupdr.projects.locations.backupPlanAssociations.create',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['backupPlanAssociationId', 'requestId'],
        relative_path='v1alpha/{+parent}/backupPlanAssociations',
        request_field='backupPlanAssociation',
        request_type_name='BackupdrProjectsLocationsBackupPlanAssociationsCreateRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Delete(self, request, global_params=None):
      r"""Deletes a single BackupPlanAssociation.

      Args:
        request: (BackupdrProjectsLocationsBackupPlanAssociationsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Delete')
      return self._RunMethod(
          config, request, global_params=global_params)

    Delete.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlanAssociations/{backupPlanAssociationsId}',
        http_method='DELETE',
        method_id='backupdr.projects.locations.backupPlanAssociations.delete',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['autoProtectionPolicyBinding', 'requestId'],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupPlanAssociationsDeleteRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def FetchForResourceType(self, request, global_params=None):
      r"""List BackupPlanAssociations for a given resource type.

      Args:
        request: (BackupdrProjectsLocationsBackupPlanAssociationsFetchForResourceTypeRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (FetchBackupPlanAssociationsForResourceTypeResponse) The response message.
      """
      config = self.GetMethodConfig('FetchForResourceType')
      return self._RunMethod(
          config, request, global_params=global_params)

    FetchForResourceType.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlanAssociations:fetchForResourceType',
        http_method='GET',
        method_id='backupdr.projects.locations.backupPlanAssociations.fetchForResourceType',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken', 'resourceType'],
        relative_path='v1alpha/{+parent}/backupPlanAssociations:fetchForResourceType',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupPlanAssociationsFetchForResourceTypeRequest',
        response_type_name='FetchBackupPlanAssociationsForResourceTypeResponse',
        supports_download=False,
    )

    def Get(self, request, global_params=None):
      r"""Gets details of a single BackupPlanAssociation.

      Args:
        request: (BackupdrProjectsLocationsBackupPlanAssociationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (BackupPlanAssociation) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlanAssociations/{backupPlanAssociationsId}',
        http_method='GET',
        method_id='backupdr.projects.locations.backupPlanAssociations.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupPlanAssociationsGetRequest',
        response_type_name='BackupPlanAssociation',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists BackupPlanAssociations in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsBackupPlanAssociationsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListBackupPlanAssociationsResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlanAssociations',
        http_method='GET',
        method_id='backupdr.projects.locations.backupPlanAssociations.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/backupPlanAssociations',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupPlanAssociationsListRequest',
        response_type_name='ListBackupPlanAssociationsResponse',
        supports_download=False,
    )

    def Patch(self, request, global_params=None):
      r"""Update a BackupPlanAssociation.

      Args:
        request: (BackupdrProjectsLocationsBackupPlanAssociationsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Patch')
      return self._RunMethod(
          config, request, global_params=global_params)

    Patch.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlanAssociations/{backupPlanAssociationsId}',
        http_method='PATCH',
        method_id='backupdr.projects.locations.backupPlanAssociations.patch',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['requestId', 'updateMask'],
        relative_path='v1alpha/{+name}',
        request_field='backupPlanAssociation',
        request_type_name='BackupdrProjectsLocationsBackupPlanAssociationsPatchRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def TriggerBackup(self, request, global_params=None):
      r"""Triggers a new Backup.

      Args:
        request: (BackupdrProjectsLocationsBackupPlanAssociationsTriggerBackupRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('TriggerBackup')
      return self._RunMethod(
          config, request, global_params=global_params)

    TriggerBackup.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlanAssociations/{backupPlanAssociationsId}:triggerBackup',
        http_method='POST',
        method_id='backupdr.projects.locations.backupPlanAssociations.triggerBackup',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}:triggerBackup',
        request_field='triggerBackupRequest',
        request_type_name='BackupdrProjectsLocationsBackupPlanAssociationsTriggerBackupRequest',
        response_type_name='Operation',
        supports_download=False,
    )

  class ProjectsLocationsBackupPlansRevisionsService(base_api.BaseApiService):
    """Service class for the projects_locations_backupPlans_revisions resource."""

    _NAME = 'projects_locations_backupPlans_revisions'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsBackupPlansRevisionsService, self).__init__(client)
      self._upload_configs = {
          }

    def Get(self, request, global_params=None):
      r"""Gets details of a single BackupPlanRevision.

      Args:
        request: (BackupdrProjectsLocationsBackupPlansRevisionsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (BackupPlanRevision) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlans/{backupPlansId}/revisions/{revisionsId}',
        http_method='GET',
        method_id='backupdr.projects.locations.backupPlans.revisions.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupPlansRevisionsGetRequest',
        response_type_name='BackupPlanRevision',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists BackupPlanRevisions in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsBackupPlansRevisionsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListBackupPlanRevisionsResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlans/{backupPlansId}/revisions',
        http_method='GET',
        method_id='backupdr.projects.locations.backupPlans.revisions.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/revisions',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupPlansRevisionsListRequest',
        response_type_name='ListBackupPlanRevisionsResponse',
        supports_download=False,
    )

  class ProjectsLocationsBackupPlansService(base_api.BaseApiService):
    """Service class for the projects_locations_backupPlans resource."""

    _NAME = 'projects_locations_backupPlans'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsBackupPlansService, self).__init__(client)
      self._upload_configs = {
          }

    def Create(self, request, global_params=None):
      r"""Create a BackupPlan.

      Args:
        request: (BackupdrProjectsLocationsBackupPlansCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Create')
      return self._RunMethod(
          config, request, global_params=global_params)

    Create.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlans',
        http_method='POST',
        method_id='backupdr.projects.locations.backupPlans.create',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['backupPlanId', 'requestId'],
        relative_path='v1alpha/{+parent}/backupPlans',
        request_field='backupPlan',
        request_type_name='BackupdrProjectsLocationsBackupPlansCreateRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Delete(self, request, global_params=None):
      r"""Deletes a single BackupPlan.

      Args:
        request: (BackupdrProjectsLocationsBackupPlansDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Delete')
      return self._RunMethod(
          config, request, global_params=global_params)

    Delete.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlans/{backupPlansId}',
        http_method='DELETE',
        method_id='backupdr.projects.locations.backupPlans.delete',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['requestId'],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupPlansDeleteRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Get(self, request, global_params=None):
      r"""Gets details of a single BackupPlan.

      Args:
        request: (BackupdrProjectsLocationsBackupPlansGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (BackupPlan) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlans/{backupPlansId}',
        http_method='GET',
        method_id='backupdr.projects.locations.backupPlans.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupPlansGetRequest',
        response_type_name='BackupPlan',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists BackupPlans in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsBackupPlansListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListBackupPlansResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlans',
        http_method='GET',
        method_id='backupdr.projects.locations.backupPlans.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/backupPlans',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupPlansListRequest',
        response_type_name='ListBackupPlansResponse',
        supports_download=False,
    )

    def Patch(self, request, global_params=None):
      r"""Update a BackupPlan.

      Args:
        request: (BackupdrProjectsLocationsBackupPlansPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Patch')
      return self._RunMethod(
          config, request, global_params=global_params)

    Patch.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupPlans/{backupPlansId}',
        http_method='PATCH',
        method_id='backupdr.projects.locations.backupPlans.patch',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['requestId', 'updateMask'],
        relative_path='v1alpha/{+name}',
        request_field='backupPlan',
        request_type_name='BackupdrProjectsLocationsBackupPlansPatchRequest',
        response_type_name='Operation',
        supports_download=False,
    )

  class ProjectsLocationsBackupVaultsDataSourcesBackupsService(base_api.BaseApiService):
    """Service class for the projects_locations_backupVaults_dataSources_backups resource."""

    _NAME = 'projects_locations_backupVaults_dataSources_backups'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsBackupVaultsDataSourcesBackupsService, self).__init__(client)
      self._upload_configs = {
          }

    def Delete(self, request, global_params=None):
      r"""Deletes a Backup.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesBackupsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Delete')
      return self._RunMethod(
          config, request, global_params=global_params)

    Delete.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}/backups/{backupsId}',
        http_method='DELETE',
        method_id='backupdr.projects.locations.backupVaults.dataSources.backups.delete',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['requestId'],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesBackupsDeleteRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def FetchForResourceType(self, request, global_params=None):
      r"""Fetch Backups for a given resource type.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesBackupsFetchForResourceTypeRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (FetchBackupsForResourceTypeResponse) The response message.
      """
      config = self.GetMethodConfig('FetchForResourceType')
      return self._RunMethod(
          config, request, global_params=global_params)

    FetchForResourceType.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}/backups:fetchForResourceType',
        http_method='GET',
        method_id='backupdr.projects.locations.backupVaults.dataSources.backups.fetchForResourceType',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken', 'resourceType', 'view'],
        relative_path='v1alpha/{+parent}/backups:fetchForResourceType',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesBackupsFetchForResourceTypeRequest',
        response_type_name='FetchBackupsForResourceTypeResponse',
        supports_download=False,
    )

    def Get(self, request, global_params=None):
      r"""Gets details of a Backup.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesBackupsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Backup) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}/backups/{backupsId}',
        http_method='GET',
        method_id='backupdr.projects.locations.backupVaults.dataSources.backups.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['view'],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesBackupsGetRequest',
        response_type_name='Backup',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists Backups in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesBackupsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListBackupsResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}/backups',
        http_method='GET',
        method_id='backupdr.projects.locations.backupVaults.dataSources.backups.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken', 'view'],
        relative_path='v1alpha/{+parent}/backups',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesBackupsListRequest',
        response_type_name='ListBackupsResponse',
        supports_download=False,
    )

    def Patch(self, request, global_params=None):
      r"""Updates the settings of a Backup.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesBackupsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Patch')
      return self._RunMethod(
          config, request, global_params=global_params)

    Patch.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}/backups/{backupsId}',
        http_method='PATCH',
        method_id='backupdr.projects.locations.backupVaults.dataSources.backups.patch',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['requestId', 'updateMask'],
        relative_path='v1alpha/{+name}',
        request_field='backup',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesBackupsPatchRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Restore(self, request, global_params=None):
      r"""Restore from a Backup.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesBackupsRestoreRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Restore')
      return self._RunMethod(
          config, request, global_params=global_params)

    Restore.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}/backups/{backupsId}:restore',
        http_method='POST',
        method_id='backupdr.projects.locations.backupVaults.dataSources.backups.restore',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}:restore',
        request_field='restoreBackupRequest',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesBackupsRestoreRequest',
        response_type_name='Operation',
        supports_download=False,
    )

  class ProjectsLocationsBackupVaultsDataSourcesService(base_api.BaseApiService):
    """Service class for the projects_locations_backupVaults_dataSources resource."""

    _NAME = 'projects_locations_backupVaults_dataSources'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsBackupVaultsDataSourcesService, self).__init__(client)
      self._upload_configs = {
          }

    def AbandonBackup(self, request, global_params=None):
      r"""Internal only. Abandons a backup.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesAbandonBackupRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('AbandonBackup')
      return self._RunMethod(
          config, request, global_params=global_params)

    AbandonBackup.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}:abandonBackup',
        http_method='POST',
        method_id='backupdr.projects.locations.backupVaults.dataSources.abandonBackup',
        ordered_params=['dataSource'],
        path_params=['dataSource'],
        query_params=[],
        relative_path='v1alpha/{+dataSource}:abandonBackup',
        request_field='abandonBackupRequest',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesAbandonBackupRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def FetchAccessToken(self, request, global_params=None):
      r"""Internal only. Fetch access token for a given data source.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (FetchAccessTokenResponse) The response message.
      """
      config = self.GetMethodConfig('FetchAccessToken')
      return self._RunMethod(
          config, request, global_params=global_params)

    FetchAccessToken.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}:fetchAccessToken',
        http_method='POST',
        method_id='backupdr.projects.locations.backupVaults.dataSources.fetchAccessToken',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}:fetchAccessToken',
        request_field='fetchAccessTokenRequest',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesFetchAccessTokenRequest',
        response_type_name='FetchAccessTokenResponse',
        supports_download=False,
    )

    def FinalizeBackup(self, request, global_params=None):
      r"""Internal only. Finalize a backup that was started by a call to InitiateBackup.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesFinalizeBackupRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('FinalizeBackup')
      return self._RunMethod(
          config, request, global_params=global_params)

    FinalizeBackup.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}:finalizeBackup',
        http_method='POST',
        method_id='backupdr.projects.locations.backupVaults.dataSources.finalizeBackup',
        ordered_params=['dataSource'],
        path_params=['dataSource'],
        query_params=[],
        relative_path='v1alpha/{+dataSource}:finalizeBackup',
        request_field='finalizeBackupRequest',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesFinalizeBackupRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Get(self, request, global_params=None):
      r"""Gets details of a DataSource.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (DataSource) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}',
        http_method='GET',
        method_id='backupdr.projects.locations.backupVaults.dataSources.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesGetRequest',
        response_type_name='DataSource',
        supports_download=False,
    )

    def InitiateBackup(self, request, global_params=None):
      r"""Internal only. Initiates a backup.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesInitiateBackupRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (InitiateBackupResponse) The response message.
      """
      config = self.GetMethodConfig('InitiateBackup')
      return self._RunMethod(
          config, request, global_params=global_params)

    InitiateBackup.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}:initiateBackup',
        http_method='POST',
        method_id='backupdr.projects.locations.backupVaults.dataSources.initiateBackup',
        ordered_params=['dataSource'],
        path_params=['dataSource'],
        query_params=[],
        relative_path='v1alpha/{+dataSource}:initiateBackup',
        request_field='initiateBackupRequest',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesInitiateBackupRequest',
        response_type_name='InitiateBackupResponse',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists DataSources in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListDataSourcesResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources',
        http_method='GET',
        method_id='backupdr.projects.locations.backupVaults.dataSources.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/dataSources',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesListRequest',
        response_type_name='ListDataSourcesResponse',
        supports_download=False,
    )

    def Patch(self, request, global_params=None):
      r"""Updates the settings of a DataSource.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Patch')
      return self._RunMethod(
          config, request, global_params=global_params)

    Patch.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}',
        http_method='PATCH',
        method_id='backupdr.projects.locations.backupVaults.dataSources.patch',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['allowMissing', 'requestId', 'updateMask'],
        relative_path='v1alpha/{+name}',
        request_field='dataSource',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesPatchRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Remove(self, request, global_params=None):
      r"""Deletes a DataSource. This is a custom method instead of a standard delete method because external clients will not delete DataSources except for BackupDR backup appliances.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesRemoveRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Remove')
      return self._RunMethod(
          config, request, global_params=global_params)

    Remove.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}:remove',
        http_method='POST',
        method_id='backupdr.projects.locations.backupVaults.dataSources.remove',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}:remove',
        request_field='removeDataSourceRequest',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesRemoveRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def SetInternalStatus(self, request, global_params=None):
      r"""Sets the internal status of a DataSource.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDataSourcesSetInternalStatusRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('SetInternalStatus')
      return self._RunMethod(
          config, request, global_params=global_params)

    SetInternalStatus.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}/dataSources/{dataSourcesId}:setInternalStatus',
        http_method='POST',
        method_id='backupdr.projects.locations.backupVaults.dataSources.setInternalStatus',
        ordered_params=['dataSource'],
        path_params=['dataSource'],
        query_params=[],
        relative_path='v1alpha/{+dataSource}:setInternalStatus',
        request_field='setInternalStatusRequest',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDataSourcesSetInternalStatusRequest',
        response_type_name='Operation',
        supports_download=False,
    )

  class ProjectsLocationsBackupVaultsService(base_api.BaseApiService):
    """Service class for the projects_locations_backupVaults resource."""

    _NAME = 'projects_locations_backupVaults'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsBackupVaultsService, self).__init__(client)
      self._upload_configs = {
          }

    def Create(self, request, global_params=None):
      r"""Creates a new BackupVault in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Create')
      return self._RunMethod(
          config, request, global_params=global_params)

    Create.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults',
        http_method='POST',
        method_id='backupdr.projects.locations.backupVaults.create',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['backupVaultId', 'requestId', 'validateOnly'],
        relative_path='v1alpha/{+parent}/backupVaults',
        request_field='backupVault',
        request_type_name='BackupdrProjectsLocationsBackupVaultsCreateRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Delete(self, request, global_params=None):
      r"""Deletes a BackupVault.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Delete')
      return self._RunMethod(
          config, request, global_params=global_params)

    Delete.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}',
        http_method='DELETE',
        method_id='backupdr.projects.locations.backupVaults.delete',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['allowMissing', 'etag', 'force', 'ignoreBackupPlanReferences', 'requestId', 'validateOnly'],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupVaultsDeleteRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def FetchUsable(self, request, global_params=None):
      r"""FetchUsableBackupVaults lists usable BackupVaults in a given project and location. Usable BackupVault are the ones that user has backupdr.backupVaults.get permission.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsFetchUsableRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (FetchUsableBackupVaultsResponse) The response message.
      """
      config = self.GetMethodConfig('FetchUsable')
      return self._RunMethod(
          config, request, global_params=global_params)

    FetchUsable.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults:fetchUsable',
        http_method='GET',
        method_id='backupdr.projects.locations.backupVaults.fetchUsable',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/backupVaults:fetchUsable',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupVaultsFetchUsableRequest',
        response_type_name='FetchUsableBackupVaultsResponse',
        supports_download=False,
    )

    def Get(self, request, global_params=None):
      r"""Gets details of a BackupVault.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (BackupVault) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}',
        http_method='GET',
        method_id='backupdr.projects.locations.backupVaults.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['view'],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupVaultsGetRequest',
        response_type_name='BackupVault',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists BackupVaults in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListBackupVaultsResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults',
        http_method='GET',
        method_id='backupdr.projects.locations.backupVaults.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken', 'view'],
        relative_path='v1alpha/{+parent}/backupVaults',
        request_field='',
        request_type_name='BackupdrProjectsLocationsBackupVaultsListRequest',
        response_type_name='ListBackupVaultsResponse',
        supports_download=False,
    )

    def Patch(self, request, global_params=None):
      r"""Updates the settings of a BackupVault.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Patch')
      return self._RunMethod(
          config, request, global_params=global_params)

    Patch.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}',
        http_method='PATCH',
        method_id='backupdr.projects.locations.backupVaults.patch',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['force', 'forceUpdateAccessRestriction', 'requestId', 'updateMask', 'validateOnly'],
        relative_path='v1alpha/{+name}',
        request_field='backupVault',
        request_type_name='BackupdrProjectsLocationsBackupVaultsPatchRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def TestIamPermissions(self, request, global_params=None):
      r"""Returns the caller's permissions on a BackupVault resource. A caller is not required to have Google IAM permission to make this request.

      Args:
        request: (BackupdrProjectsLocationsBackupVaultsTestIamPermissionsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TestIamPermissionsResponse) The response message.
      """
      config = self.GetMethodConfig('TestIamPermissions')
      return self._RunMethod(
          config, request, global_params=global_params)

    TestIamPermissions.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}:testIamPermissions',
        http_method='POST',
        method_id='backupdr.projects.locations.backupVaults.testIamPermissions',
        ordered_params=['resource'],
        path_params=['resource'],
        query_params=[],
        relative_path='v1alpha/{+resource}:testIamPermissions',
        request_field='testIamPermissionsRequest',
        request_type_name='BackupdrProjectsLocationsBackupVaultsTestIamPermissionsRequest',
        response_type_name='TestIamPermissionsResponse',
        supports_download=False,
    )

  class ProjectsLocationsDataSourceReferencesService(base_api.BaseApiService):
    """Service class for the projects_locations_dataSourceReferences resource."""

    _NAME = 'projects_locations_dataSourceReferences'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsDataSourceReferencesService, self).__init__(client)
      self._upload_configs = {
          }

    def FetchForResourceType(self, request, global_params=None):
      r"""Fetch DataSourceReferences for a given project, location and resource type.

      Args:
        request: (BackupdrProjectsLocationsDataSourceReferencesFetchForResourceTypeRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (FetchDataSourceReferencesForResourceTypeResponse) The response message.
      """
      config = self.GetMethodConfig('FetchForResourceType')
      return self._RunMethod(
          config, request, global_params=global_params)

    FetchForResourceType.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/dataSourceReferences:fetchForResourceType',
        http_method='GET',
        method_id='backupdr.projects.locations.dataSourceReferences.fetchForResourceType',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken', 'resourceType'],
        relative_path='v1alpha/{+parent}/dataSourceReferences:fetchForResourceType',
        request_field='',
        request_type_name='BackupdrProjectsLocationsDataSourceReferencesFetchForResourceTypeRequest',
        response_type_name='FetchDataSourceReferencesForResourceTypeResponse',
        supports_download=False,
    )

    def Get(self, request, global_params=None):
      r"""Gets details of a single DataSourceReference.

      Args:
        request: (BackupdrProjectsLocationsDataSourceReferencesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (DataSourceReference) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/dataSourceReferences/{dataSourceReferencesId}',
        http_method='GET',
        method_id='backupdr.projects.locations.dataSourceReferences.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsDataSourceReferencesGetRequest',
        response_type_name='DataSourceReference',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists DataSourceReferences for a given project and location.

      Args:
        request: (BackupdrProjectsLocationsDataSourceReferencesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListDataSourceReferencesResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/dataSourceReferences',
        http_method='GET',
        method_id='backupdr.projects.locations.dataSourceReferences.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/dataSourceReferences',
        request_field='',
        request_type_name='BackupdrProjectsLocationsDataSourceReferencesListRequest',
        response_type_name='ListDataSourceReferencesResponse',
        supports_download=False,
    )

  class ProjectsLocationsManagementServersService(base_api.BaseApiService):
    """Service class for the projects_locations_managementServers resource."""

    _NAME = 'projects_locations_managementServers'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsManagementServersService, self).__init__(client)
      self._upload_configs = {
          }

    def Create(self, request, global_params=None):
      r"""Creates a new ManagementServer in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsManagementServersCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Create')
      return self._RunMethod(
          config, request, global_params=global_params)

    Create.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/managementServers',
        http_method='POST',
        method_id='backupdr.projects.locations.managementServers.create',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['managementServerId', 'requestId'],
        relative_path='v1alpha/{+parent}/managementServers',
        request_field='managementServer',
        request_type_name='BackupdrProjectsLocationsManagementServersCreateRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Delete(self, request, global_params=None):
      r"""Deletes a single ManagementServer.

      Args:
        request: (BackupdrProjectsLocationsManagementServersDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Delete')
      return self._RunMethod(
          config, request, global_params=global_params)

    Delete.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/managementServers/{managementServersId}',
        http_method='DELETE',
        method_id='backupdr.projects.locations.managementServers.delete',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['requestId'],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsManagementServersDeleteRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Get(self, request, global_params=None):
      r"""Gets details of a single ManagementServer.

      Args:
        request: (BackupdrProjectsLocationsManagementServersGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ManagementServer) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/managementServers/{managementServersId}',
        http_method='GET',
        method_id='backupdr.projects.locations.managementServers.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsManagementServersGetRequest',
        response_type_name='ManagementServer',
        supports_download=False,
    )

    def GetIamPolicy(self, request, global_params=None):
      r"""Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

      Args:
        request: (BackupdrProjectsLocationsManagementServersGetIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Policy) The response message.
      """
      config = self.GetMethodConfig('GetIamPolicy')
      return self._RunMethod(
          config, request, global_params=global_params)

    GetIamPolicy.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/managementServers/{managementServersId}:getIamPolicy',
        http_method='GET',
        method_id='backupdr.projects.locations.managementServers.getIamPolicy',
        ordered_params=['resource'],
        path_params=['resource'],
        query_params=['options_requestedPolicyVersion'],
        relative_path='v1alpha/{+resource}:getIamPolicy',
        request_field='',
        request_type_name='BackupdrProjectsLocationsManagementServersGetIamPolicyRequest',
        response_type_name='Policy',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists ManagementServers in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsManagementServersListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListManagementServersResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/managementServers',
        http_method='GET',
        method_id='backupdr.projects.locations.managementServers.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/managementServers',
        request_field='',
        request_type_name='BackupdrProjectsLocationsManagementServersListRequest',
        response_type_name='ListManagementServersResponse',
        supports_download=False,
    )

    def MsComplianceMetadata(self, request, global_params=None):
      r"""Returns the Assured Workloads compliance metadata for a given project.

      Args:
        request: (BackupdrProjectsLocationsManagementServersMsComplianceMetadataRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (FetchMsComplianceMetadataResponse) The response message.
      """
      config = self.GetMethodConfig('MsComplianceMetadata')
      return self._RunMethod(
          config, request, global_params=global_params)

    MsComplianceMetadata.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/managementServers:msComplianceMetadata',
        http_method='POST',
        method_id='backupdr.projects.locations.managementServers.msComplianceMetadata',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=[],
        relative_path='v1alpha/{+parent}:msComplianceMetadata',
        request_field='fetchMsComplianceMetadataRequest',
        request_type_name='BackupdrProjectsLocationsManagementServersMsComplianceMetadataRequest',
        response_type_name='FetchMsComplianceMetadataResponse',
        supports_download=False,
    )

    def SetIamPolicy(self, request, global_params=None):
      r"""Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.

      Args:
        request: (BackupdrProjectsLocationsManagementServersSetIamPolicyRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Policy) The response message.
      """
      config = self.GetMethodConfig('SetIamPolicy')
      return self._RunMethod(
          config, request, global_params=global_params)

    SetIamPolicy.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/managementServers/{managementServersId}:setIamPolicy',
        http_method='POST',
        method_id='backupdr.projects.locations.managementServers.setIamPolicy',
        ordered_params=['resource'],
        path_params=['resource'],
        query_params=[],
        relative_path='v1alpha/{+resource}:setIamPolicy',
        request_field='setIamPolicyRequest',
        request_type_name='BackupdrProjectsLocationsManagementServersSetIamPolicyRequest',
        response_type_name='Policy',
        supports_download=False,
    )

    def TestIamPermissions(self, request, global_params=None):
      r"""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.

      Args:
        request: (BackupdrProjectsLocationsManagementServersTestIamPermissionsRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (TestIamPermissionsResponse) The response message.
      """
      config = self.GetMethodConfig('TestIamPermissions')
      return self._RunMethod(
          config, request, global_params=global_params)

    TestIamPermissions.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/managementServers/{managementServersId}:testIamPermissions',
        http_method='POST',
        method_id='backupdr.projects.locations.managementServers.testIamPermissions',
        ordered_params=['resource'],
        path_params=['resource'],
        query_params=[],
        relative_path='v1alpha/{+resource}:testIamPermissions',
        request_field='testIamPermissionsRequest',
        request_type_name='BackupdrProjectsLocationsManagementServersTestIamPermissionsRequest',
        response_type_name='TestIamPermissionsResponse',
        supports_download=False,
    )

  class ProjectsLocationsOperationsService(base_api.BaseApiService):
    """Service class for the projects_locations_operations resource."""

    _NAME = 'projects_locations_operations'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsOperationsService, self).__init__(client)
      self._upload_configs = {
          }

    def Cancel(self, request, global_params=None):
      r"""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`.

      Args:
        request: (BackupdrProjectsLocationsOperationsCancelRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      """
      config = self.GetMethodConfig('Cancel')
      return self._RunMethod(
          config, request, global_params=global_params)

    Cancel.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel',
        http_method='POST',
        method_id='backupdr.projects.locations.operations.cancel',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}:cancel',
        request_field='cancelOperationRequest',
        request_type_name='BackupdrProjectsLocationsOperationsCancelRequest',
        response_type_name='Empty',
        supports_download=False,
    )

    def Delete(self, request, global_params=None):
      r"""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`.

      Args:
        request: (BackupdrProjectsLocationsOperationsDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Empty) The response message.
      """
      config = self.GetMethodConfig('Delete')
      return self._RunMethod(
          config, request, global_params=global_params)

    Delete.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}',
        http_method='DELETE',
        method_id='backupdr.projects.locations.operations.delete',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsOperationsDeleteRequest',
        response_type_name='Empty',
        supports_download=False,
    )

    def Get(self, request, global_params=None):
      r"""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.

      Args:
        request: (BackupdrProjectsLocationsOperationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}',
        http_method='GET',
        method_id='backupdr.projects.locations.operations.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsOperationsGetRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.

      Args:
        request: (BackupdrProjectsLocationsOperationsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListOperationsResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/operations',
        http_method='GET',
        method_id='backupdr.projects.locations.operations.list',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['filter', 'pageSize', 'pageToken', 'returnPartialSuccess'],
        relative_path='v1alpha/{+name}/operations',
        request_field='',
        request_type_name='BackupdrProjectsLocationsOperationsListRequest',
        response_type_name='ListOperationsResponse',
        supports_download=False,
    )

  class ProjectsLocationsResourceBackupConfigsService(base_api.BaseApiService):
    """Service class for the projects_locations_resourceBackupConfigs resource."""

    _NAME = 'projects_locations_resourceBackupConfigs'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsResourceBackupConfigsService, self).__init__(client)
      self._upload_configs = {
          }

    def Fetch(self, request, global_params=None):
      r"""Fetches ResourceBackupConfigs.

      Args:
        request: (BackupdrProjectsLocationsResourceBackupConfigsFetchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (FetchResourceBackupConfigsResponse) The response message.
      """
      config = self.GetMethodConfig('Fetch')
      return self._RunMethod(
          config, request, global_params=global_params)

    Fetch.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/resourceBackupConfigs:fetch',
        http_method='GET',
        method_id='backupdr.projects.locations.resourceBackupConfigs.fetch',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/resourceBackupConfigs:fetch',
        request_field='',
        request_type_name='BackupdrProjectsLocationsResourceBackupConfigsFetchRequest',
        response_type_name='FetchResourceBackupConfigsResponse',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists ResourceBackupConfigs.

      Args:
        request: (BackupdrProjectsLocationsResourceBackupConfigsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListResourceBackupConfigsResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/resourceBackupConfigs',
        http_method='GET',
        method_id='backupdr.projects.locations.resourceBackupConfigs.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/resourceBackupConfigs',
        request_field='',
        request_type_name='BackupdrProjectsLocationsResourceBackupConfigsListRequest',
        response_type_name='ListResourceBackupConfigsResponse',
        supports_download=False,
    )

  class ProjectsLocationsRestoreTemplatesExecutionsService(base_api.BaseApiService):
    """Service class for the projects_locations_restoreTemplates_executions resource."""

    _NAME = 'projects_locations_restoreTemplates_executions'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsRestoreTemplatesExecutionsService, self).__init__(client)
      self._upload_configs = {
          }

    def Get(self, request, global_params=None):
      r"""Gets details of a RestoreTemplateExecution.

      Args:
        request: (BackupdrProjectsLocationsRestoreTemplatesExecutionsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (RestoreTemplateExecution) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/restoreTemplates/{restoreTemplatesId}/executions/{executionsId}',
        http_method='GET',
        method_id='backupdr.projects.locations.restoreTemplates.executions.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsRestoreTemplatesExecutionsGetRequest',
        response_type_name='RestoreTemplateExecution',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists RestoreTemplateExecutions in a given project, location and restore template.

      Args:
        request: (BackupdrProjectsLocationsRestoreTemplatesExecutionsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListRestoreTemplateExecutionsResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/restoreTemplates/{restoreTemplatesId}/executions',
        http_method='GET',
        method_id='backupdr.projects.locations.restoreTemplates.executions.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/executions',
        request_field='',
        request_type_name='BackupdrProjectsLocationsRestoreTemplatesExecutionsListRequest',
        response_type_name='ListRestoreTemplateExecutionsResponse',
        supports_download=False,
    )

    def TriggerRestoreCleanup(self, request, global_params=None):
      r"""Triggers cleanup of restored resources created during execution.

      Args:
        request: (BackupdrProjectsLocationsRestoreTemplatesExecutionsTriggerRestoreCleanupRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('TriggerRestoreCleanup')
      return self._RunMethod(
          config, request, global_params=global_params)

    TriggerRestoreCleanup.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/restoreTemplates/{restoreTemplatesId}/executions/{executionsId}:triggerRestoreCleanup',
        http_method='POST',
        method_id='backupdr.projects.locations.restoreTemplates.executions.triggerRestoreCleanup',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}:triggerRestoreCleanup',
        request_field='triggerRestoreCleanupRequest',
        request_type_name='BackupdrProjectsLocationsRestoreTemplatesExecutionsTriggerRestoreCleanupRequest',
        response_type_name='Operation',
        supports_download=False,
    )

  class ProjectsLocationsRestoreTemplatesService(base_api.BaseApiService):
    """Service class for the projects_locations_restoreTemplates resource."""

    _NAME = 'projects_locations_restoreTemplates'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsRestoreTemplatesService, self).__init__(client)
      self._upload_configs = {
          }

    def Create(self, request, global_params=None):
      r"""Creates a new RestoreTemplate in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsRestoreTemplatesCreateRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Create')
      return self._RunMethod(
          config, request, global_params=global_params)

    Create.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/restoreTemplates',
        http_method='POST',
        method_id='backupdr.projects.locations.restoreTemplates.create',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['requestId', 'restoreTemplateId'],
        relative_path='v1alpha/{+parent}/restoreTemplates',
        request_field='restoreTemplate',
        request_type_name='BackupdrProjectsLocationsRestoreTemplatesCreateRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Delete(self, request, global_params=None):
      r"""Deletes a RestoreTemplate.

      Args:
        request: (BackupdrProjectsLocationsRestoreTemplatesDeleteRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Delete')
      return self._RunMethod(
          config, request, global_params=global_params)

    Delete.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/restoreTemplates/{restoreTemplatesId}',
        http_method='DELETE',
        method_id='backupdr.projects.locations.restoreTemplates.delete',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['force', 'requestId'],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsRestoreTemplatesDeleteRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Get(self, request, global_params=None):
      r"""Gets details of a RestoreTemplate.

      Args:
        request: (BackupdrProjectsLocationsRestoreTemplatesGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (RestoreTemplate) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/restoreTemplates/{restoreTemplatesId}',
        http_method='GET',
        method_id='backupdr.projects.locations.restoreTemplates.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsRestoreTemplatesGetRequest',
        response_type_name='RestoreTemplate',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists RestoreTemplates in a given project and location.

      Args:
        request: (BackupdrProjectsLocationsRestoreTemplatesListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListRestoreTemplatesResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/restoreTemplates',
        http_method='GET',
        method_id='backupdr.projects.locations.restoreTemplates.list',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=['filter', 'orderBy', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+parent}/restoreTemplates',
        request_field='',
        request_type_name='BackupdrProjectsLocationsRestoreTemplatesListRequest',
        response_type_name='ListRestoreTemplatesResponse',
        supports_download=False,
    )

    def Patch(self, request, global_params=None):
      r"""Updates the settings of a RestoreTemplate.

      Args:
        request: (BackupdrProjectsLocationsRestoreTemplatesPatchRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Patch')
      return self._RunMethod(
          config, request, global_params=global_params)

    Patch.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/restoreTemplates/{restoreTemplatesId}',
        http_method='PATCH',
        method_id='backupdr.projects.locations.restoreTemplates.patch',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['requestId', 'updateMask', 'validateOnly'],
        relative_path='v1alpha/{+name}',
        request_field='restoreTemplate',
        request_type_name='BackupdrProjectsLocationsRestoreTemplatesPatchRequest',
        response_type_name='Operation',
        supports_download=False,
    )

    def Run(self, request, global_params=None):
      r"""Runs a RestoreTemplate.

      Args:
        request: (BackupdrProjectsLocationsRestoreTemplatesRunRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Run')
      return self._RunMethod(
          config, request, global_params=global_params)

    Run.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/restoreTemplates/{restoreTemplatesId}:run',
        http_method='POST',
        method_id='backupdr.projects.locations.restoreTemplates.run',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}:run',
        request_field='runRestoreTemplateRequest',
        request_type_name='BackupdrProjectsLocationsRestoreTemplatesRunRequest',
        response_type_name='Operation',
        supports_download=False,
    )

  class ProjectsLocationsServiceConfigService(base_api.BaseApiService):
    """Service class for the projects_locations_serviceConfig resource."""

    _NAME = 'projects_locations_serviceConfig'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsServiceConfigService, self).__init__(client)
      self._upload_configs = {
          }

    def Initialize(self, request, global_params=None):
      r"""Initializes the service related config for a project.

      Args:
        request: (BackupdrProjectsLocationsServiceConfigInitializeRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Operation) The response message.
      """
      config = self.GetMethodConfig('Initialize')
      return self._RunMethod(
          config, request, global_params=global_params)

    Initialize.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/serviceConfig:initialize',
        http_method='POST',
        method_id='backupdr.projects.locations.serviceConfig.initialize',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}:initialize',
        request_field='initializeServiceRequest',
        request_type_name='BackupdrProjectsLocationsServiceConfigInitializeRequest',
        response_type_name='Operation',
        supports_download=False,
    )

  class ProjectsLocationsTrialService(base_api.BaseApiService):
    """Service class for the projects_locations_trial resource."""

    _NAME = 'projects_locations_trial'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsTrialService, self).__init__(client)
      self._upload_configs = {
          }

    def End(self, request, global_params=None):
      r"""Ends the trial for a project.

      Args:
        request: (BackupdrProjectsLocationsTrialEndRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Trial) The response message.
      """
      config = self.GetMethodConfig('End')
      return self._RunMethod(
          config, request, global_params=global_params)

    End.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/trial:end',
        http_method='POST',
        method_id='backupdr.projects.locations.trial.end',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=[],
        relative_path='v1alpha/{+parent}/trial:end',
        request_field='endTrialRequest',
        request_type_name='BackupdrProjectsLocationsTrialEndRequest',
        response_type_name='Trial',
        supports_download=False,
    )

    def Subscribe(self, request, global_params=None):
      r"""Subscribes to a trial for a project.

      Args:
        request: (BackupdrProjectsLocationsTrialSubscribeRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Trial) The response message.
      """
      config = self.GetMethodConfig('Subscribe')
      return self._RunMethod(
          config, request, global_params=global_params)

    Subscribe.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/trial:subscribe',
        http_method='POST',
        method_id='backupdr.projects.locations.trial.subscribe',
        ordered_params=['parent'],
        path_params=['parent'],
        query_params=[],
        relative_path='v1alpha/{+parent}/trial:subscribe',
        request_field='subscribeTrialRequest',
        request_type_name='BackupdrProjectsLocationsTrialSubscribeRequest',
        response_type_name='Trial',
        supports_download=False,
    )

  class ProjectsLocationsService(base_api.BaseApiService):
    """Service class for the projects_locations resource."""

    _NAME = 'projects_locations'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsLocationsService, self).__init__(client)
      self._upload_configs = {
          }

    def Get(self, request, global_params=None):
      r"""Gets information about a location.

      Args:
        request: (BackupdrProjectsLocationsGetRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Location) The response message.
      """
      config = self.GetMethodConfig('Get')
      return self._RunMethod(
          config, request, global_params=global_params)

    Get.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}',
        http_method='GET',
        method_id='backupdr.projects.locations.get',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsGetRequest',
        response_type_name='Location',
        supports_download=False,
    )

    def GetTrial(self, request, global_params=None):
      r"""Gets the Trial state for a given project.

      Args:
        request: (BackupdrProjectsLocationsGetTrialRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (Trial) The response message.
      """
      config = self.GetMethodConfig('GetTrial')
      return self._RunMethod(
          config, request, global_params=global_params)

    GetTrial.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations/{locationsId}/trial',
        http_method='GET',
        method_id='backupdr.projects.locations.getTrial',
        ordered_params=['name'],
        path_params=['name'],
        query_params=[],
        relative_path='v1alpha/{+name}',
        request_field='',
        request_type_name='BackupdrProjectsLocationsGetTrialRequest',
        response_type_name='Trial',
        supports_download=False,
    )

    def List(self, request, global_params=None):
      r"""Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.

      Args:
        request: (BackupdrProjectsLocationsListRequest) input message
        global_params: (StandardQueryParameters, default: None) global arguments
      Returns:
        (ListLocationsResponse) The response message.
      """
      config = self.GetMethodConfig('List')
      return self._RunMethod(
          config, request, global_params=global_params)

    List.method_config = lambda: base_api.ApiMethodInfo(
        flat_path='v1alpha/projects/{projectsId}/locations',
        http_method='GET',
        method_id='backupdr.projects.locations.list',
        ordered_params=['name'],
        path_params=['name'],
        query_params=['extraLocationTypes', 'filter', 'pageSize', 'pageToken'],
        relative_path='v1alpha/{+name}/locations',
        request_field='',
        request_type_name='BackupdrProjectsLocationsListRequest',
        response_type_name='ListLocationsResponse',
        supports_download=False,
    )

  class ProjectsService(base_api.BaseApiService):
    """Service class for the projects resource."""

    _NAME = 'projects'

    def __init__(self, client):
      super(BackupdrV1alpha.ProjectsService, self).__init__(client)
      self._upload_configs = {
          }
