global_params: (StandardQueryParameters, default: None) global arguments Returns: (Operation) The response message. """ config = self.GetMethodConfig('ReverseDirection') return self._RunMethod( config, request, global_params=global_params) ReverseDirection.method_config = lambda: base_api.ApiMethodInfo( flat_path='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/replications/{replicationsId}:reverseDirection', http_method='POST', method_id='netapp.projects.locations.volumes.replications.reverseDirection', ordered_params=['name'], path_params=['name'], query_params=[], relative_path='v1beta1/{+name}:reverseDirection', request_field='reverseReplicationDirectionRequest', request_type_name='NetappProjectsLocationsVolumesReplicationsReverseDirectionRequest', response_type_name='Operation', supports_download=False, ) def Stop(self, request, global_params=None): r"""Stop Cross Region Replication. Args: request: (NetappProjectsLocationsVolumesReplicationsStopRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (Operation) The response message. """ config = self.GetMethodConfig('Stop') return self._RunMethod( config, request, global_params=global_params) Stop.method_config = lambda: base_api.ApiMethodInfo( flat_path='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/replications/{replicationsId}:stop', http_method='POST', method_id='netapp.projects.locations.volumes.replications.stop', ordered_params=['name'], path_params=['name'], query_params=[], relative_path='v1beta1/{+name}:stop', request_field='stopReplicationRequest', request_type_name='NetappProjectsLocationsVolumesReplicationsStopRequest', response_type_name='Operation', supports_download=False, ) def Sync(self, request, global_params=None): r"""Syncs the replication. This will invoke one time volume data transfer from source to destination. Args: request: (NetappProjectsLocationsVolumesReplicationsSyncRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (Operation) The response message. """ config = self.GetMethodConfig('Sync') return self._RunMethod( config, request, global_params=global_params) Sync.method_config = lambda: base_api.ApiMethodInfo( flat_path='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/replications/{replicationsId}:sync', http_method='POST', method_id='netapp.projects.locations.volumes.replications.sync', ordered_params=['name'], path_params=['name'], query_params=[], relative_path='v1beta1/{+name}:sync', request_field='syncReplicationRequest', request_type_name='NetappProjectsLocationsVolumesReplicationsSyncRequest', response_type_name='Operation', supports_download=False, ) class ProjectsLocationsVolumesSnapshotsService(base_api.BaseApiService): """Service class for the projects_locations_volumes_snapshots resource.""" _NAME = 'projects_locations_volumes_snapshots' def __init__(self, client): super(NetappV1beta1.ProjectsLocationsVolumesSnapshotsService, self).__init__(client) self._upload_configs = { } def Create(self, request, global_params=None): r"""Create a new snapshot for a volume. Args: request: (NetappProjectsLocationsVolumesSnapshotsCreateRequest) 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='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots', http_method='POST', method_id='netapp.projects.locations.volumes.snapshots.create', ordered_params=['parent'], path_params=['parent'], query_params=['snapshotId'], relative_path='v1beta1/{+parent}/snapshots', request_field='snapshot', request_type_name='NetappProjectsLocationsVolumesSnapshotsCreateRequest', response_type_name='Operation', supports_download=False, ) def Delete(self, request, global_params=None): r"""Deletes a snapshot. Args: request: (NetappProjectsLocationsVolumesSnapshotsDeleteRequest) 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='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots/{snapshotsId}', http_method='DELETE', method_id='netapp.projects.locations.volumes.snapshots.delete', ordered_params=['name'], path_params=['name'], query_params=[], relative_path='v1beta1/{+name}', request_field='', request_type_name='NetappProjectsLocationsVolumesSnapshotsDeleteRequest', response_type_name='Operation', supports_download=False, ) def Get(self, request, global_params=None): r"""Describe a snapshot for a volume. Args: request: (NetappProjectsLocationsVolumesSnapshotsGetRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (Snapshot) 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='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots/{snapshotsId}', http_method='GET', method_id='netapp.projects.locations.volumes.snapshots.get', ordered_params=['name'], path_params=['name'], query_params=[], relative_path='v1beta1/{+name}', request_field='', request_type_name='NetappProjectsLocationsVolumesSnapshotsGetRequest', response_type_name='Snapshot', supports_download=False, ) def List(self, request, global_params=None): r"""Returns descriptions of all snapshots for a volume. Args: request: (NetappProjectsLocationsVolumesSnapshotsListRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (ListSnapshotsResponse) 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='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots', http_method='GET', method_id='netapp.projects.locations.volumes.snapshots.list', ordered_params=['parent'], path_params=['parent'], query_params=['filter', 'orderBy', 'pageSize', 'pageToken'], relative_path='v1beta1/{+parent}/snapshots', request_field='', request_type_name='NetappProjectsLocationsVolumesSnapshotsListRequest', response_type_name='ListSnapshotsResponse', supports_download=False, ) def Patch(self, request, global_params=None): r"""Updates the settings of a specific snapshot. Args: request: (NetappProjectsLocationsVolumesSnapshotsPatchRequest) 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='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}/snapshots/{snapshotsId}', http_method='PATCH', method_id='netapp.projects.locations.volumes.snapshots.patch', ordered_params=['name'], path_params=['name'], query_params=['updateMask'], relative_path='v1beta1/{+name}', request_field='snapshot', request_type_name='NetappProjectsLocationsVolumesSnapshotsPatchRequest', response_type_name='Operation', supports_download=False, ) class ProjectsLocationsVolumesService(base_api.BaseApiService): """Service class for the projects_locations_volumes resource.""" _NAME = 'projects_locations_volumes' def __init__(self, client): super(NetappV1beta1.ProjectsLocationsVolumesService, self).__init__(client) self._upload_configs = { } def Create(self, request, global_params=None): r"""Creates a new Volume in a given project and location. Args: request: (NetappProjectsLocationsVolumesCreateRequest) 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='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes', http_method='POST', method_id='netapp.projects.locations.volumes.create', ordered_params=['parent'], path_params=['parent'], query_params=['volumeId'], relative_path='v1beta1/{+parent}/volumes', request_field='volume', request_type_name='NetappProjectsLocationsVolumesCreateRequest', response_type_name='Operation', supports_download=False, ) def Delete(self, request, global_params=None): r"""Deletes a single Volume. Args: request: (NetappProjectsLocationsVolumesDeleteRequest) 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='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}', http_method='DELETE', method_id='netapp.projects.locations.volumes.delete', ordered_params=['name'], path_params=['name'], query_params=['force'], relative_path='v1beta1/{+name}', request_field='', request_type_name='NetappProjectsLocationsVolumesDeleteRequest', response_type_name='Operation', supports_download=False, ) def EstablishPeering(self, request, global_params=None): r"""Establish volume peering. This is used to establish cluster and svm peerings between the GCNV and OnPrem clusters. Args: request: (NetappProjectsLocationsVolumesEstablishPeeringRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (Operation) The response message. """ config = self.GetMethodConfig('EstablishPeering') return self._RunMethod( config, request, global_params=global_params) EstablishPeering.method_config = lambda: base_api.ApiMethodInfo( flat_path='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}:establishPeering', http_method='POST', method_id='netapp.projects.locations.volumes.establishPeering', ordered_params=['name'], path_params=['name'], query_params=[], relative_path='v1beta1/{+name}:establishPeering', request_field='establishVolumePeeringRequest', request_type_name='NetappProjectsLocationsVolumesEstablishPeeringRequest', response_type_name='Operation', supports_download=False, ) def Get(self, request, global_params=None): r"""Gets details of a single Volume. Args: request: (NetappProjectsLocationsVolumesGetRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (Volume) 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='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}', http_method='GET', method_id='netapp.projects.locations.volumes.get', ordered_params=['name'], path_params=['name'], query_params=[], relative_path='v1beta1/{+name}', request_field='', request_type_name='NetappProjectsLocationsVolumesGetRequest', response_type_name='Volume', supports_download=False, ) def List(self, request, global_params=None): r"""Lists Volumes in a given project. Args: request: (NetappProjectsLocationsVolumesListRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (ListVolumesResponse) 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='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes', http_method='GET', method_id='netapp.projects.locations.volumes.list', ordered_params=['parent'], path_params=['parent'], query_params=['filter', 'orderBy', 'pageSize', 'pageToken'], relative_path='v1beta1/{+parent}/volumes', request_field='', request_type_name='NetappProjectsLocationsVolumesListRequest', response_type_name='ListVolumesResponse', supports_download=False, ) def Patch(self, request, global_params=None): r"""Updates the parameters of a single Volume. Args: request: (NetappProjectsLocationsVolumesPatchRequest) 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='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}', http_method='PATCH', method_id='netapp.projects.locations.volumes.patch', ordered_params=['name'], path_params=['name'], query_params=['updateMask'], relative_path='v1beta1/{+name}', request_field='volume', request_type_name='NetappProjectsLocationsVolumesPatchRequest', response_type_name='Operation', supports_download=False, ) def Restore(self, request, global_params=None): r"""Restore files from a backup to a volume. Args: request: (NetappProjectsLocationsVolumesRestoreRequest) 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='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}:restore', http_method='POST', method_id='netapp.projects.locations.volumes.restore', ordered_params=['name'], path_params=['name'], query_params=[], relative_path='v1beta1/{+name}:restore', request_field='restoreBackupFilesRequest', request_type_name='NetappProjectsLocationsVolumesRestoreRequest', response_type_name='Operation', supports_download=False, ) def Revert(self, request, global_params=None): r"""Revert an existing volume to a specified snapshot. Warning! This operation will permanently revert all changes made after the snapshot was created. Args: request: (NetappProjectsLocationsVolumesRevertRequest) input message global_params: (StandardQueryParameters, default: None) global arguments Returns: (Operation) The response message. """ config = self.GetMethodConfig('Revert') return self._RunMethod( config, request, global_params=global_params) Revert.method_config = lambda: base_api.ApiMethodInfo( flat_path='v1beta1/projects/{projectsId}/locations/{locationsId}/volumes/{volumesId}:revert', http_method='POST', method_id='netapp.projects.locations.volumes.revert', ordered_params=['name'], path_params=['name'], query_params=[], relative_path='v1beta1/{+name}:revert', request_field='revertVolumeRequest', request_type_name='NetappProjectsLocationsVolumesRevertRequest', response_type_name='Operation', supports_download=False, ) class ProjectsLocationsService(base_api.BaseApiService): """Service class for the projects_locations resource.""" _NAME = 'projects_locations' def __init__(self, client): super(NetappV1beta1.ProjectsLocationsService, self).__init__(client) self._upload_configs = { } def Get(self, request, global_params=None): r"""Gets information about a location. Args: request: (NetappProjectsLocationsGetRequest) 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='v1beta1/projects/{projectsId}/locations/{locationsId}', http_method='GET', method_id='netapp.projects.locations.get', ordered_params=['name'], path_params=['name'], query_params=[], relative_path='v1beta1/{+name}', request_field='', request_type_name='NetappProjectsLocationsGetRequest', response_type_name='Location', supports_download=False, ) def List(self, request, global_params=None): r"""Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include public locations as well as private or other locations specifically visible to the project. Args: request: (NetappProjectsLocationsListRequest) 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='v1beta1/projects/{projectsId}/locations', http_method='GET', method_id='netapp.projects.locations.list', ordered_params=['name'], path_params=['name'], query_params=['extraLocationTypes', 'filter', 'pageSize', 'pageToken'], relative_path='v1beta1/{+name}/locations', request_field='', request_type_name='NetappProjectsLocationsListRequest', 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(NetappV1beta1.ProjectsService, self).__init__(client) self._upload_configs = { }