FileSharesClient Interface
public interface FileSharesClient
An instance of this class provides access to all the operations defined in FileSharesClient.
Method Summary
Method Details
create
public abstract FileShareInner create(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare)
Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
Parameters:
Returns:
createAsync
public abstract Mono<FileShareInner> createAsync(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare)
Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
Parameters:
Returns:
createWithResponse
public abstract Response<FileShareInner> createWithResponse(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, String expand, Context context)
Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
Parameters:
Returns:
createWithResponseAsync
public abstract Mono<Response<FileShareInner>> createWithResponseAsync(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, String expand)
Creates a new share under the specified account as described by request body. The share resource includes metadata and properties for that share. It does not include a list of the files contained by the share.
Parameters:
Returns:
delete
public abstract void delete(String resourceGroupName, String accountName, String shareName)
Deletes specified share under its account.
Parameters:
deleteAsync
public abstract Mono<Void> deleteAsync(String resourceGroupName, String accountName, String shareName)
Deletes specified share under its account.
Parameters:
Returns:
deleteWithResponse
public abstract Response<Void> deleteWithResponse(String resourceGroupName, String accountName, String shareName, String xMsSnapshot, String include, Context context)
Deletes specified share under its account.
Parameters:
Returns:
deleteWithResponseAsync
public abstract Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String accountName, String shareName, String xMsSnapshot, String include)
Deletes specified share under its account.
Parameters:
Returns:
get
public abstract FileShareInner get(String resourceGroupName, String accountName, String shareName)
Gets properties of a specified share.
Parameters:
Returns:
getAsync
public abstract Mono<FileShareInner> getAsync(String resourceGroupName, String accountName, String shareName)
Gets properties of a specified share.
Parameters:
Returns:
getWithResponse
public abstract Response<FileShareInner> getWithResponse(String resourceGroupName, String accountName, String shareName, String expand, String xMsSnapshot, Context context)
Gets properties of a specified share.
Parameters:
Returns:
getWithResponseAsync
public abstract Mono<Response<FileShareInner>> getWithResponseAsync(String resourceGroupName, String accountName, String shareName, String expand, String xMsSnapshot)
Gets properties of a specified share.
Parameters:
Returns:
lease
public abstract LeaseShareResponseInner lease(String resourceGroupName, String accountName, String shareName)
The Lease Share operation establishes and manages a lock on a share for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
Parameters:
Returns:
leaseAsync
public abstract Mono<LeaseShareResponseInner> leaseAsync(String resourceGroupName, String accountName, String shareName)
The Lease Share operation establishes and manages a lock on a share for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
Parameters:
Returns:
leaseWithResponse
public abstract FileSharesLeaseResponse leaseWithResponse(String resourceGroupName, String accountName, String shareName, String xMsSnapshot, LeaseShareRequest parameters, Context context)
The Lease Share operation establishes and manages a lock on a share for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
Parameters:
Returns:
leaseWithResponseAsync
public abstract Mono<FileSharesLeaseResponse> leaseWithResponseAsync(String resourceGroupName, String accountName, String shareName, String xMsSnapshot, LeaseShareRequest parameters)
The Lease Share operation establishes and manages a lock on a share for delete operations. The lock duration can be 15 to 60 seconds, or can be infinite.
Parameters:
Returns:
list
public abstract PagedIterable<FileShareItemInner> list(String resourceGroupName, String accountName)
Lists all shares.
Parameters:
Returns:
list
public abstract PagedIterable<FileShareItemInner> list(String resourceGroupName, String accountName, String maxpagesize, String filter, String expand, Context context)
Lists all shares.
Parameters:
Returns:
listAsync
public abstract PagedFlux<FileShareItemInner> listAsync(String resourceGroupName, String accountName)
Lists all shares.
Parameters:
Returns:
listAsync
public abstract PagedFlux<FileShareItemInner> listAsync(String resourceGroupName, String accountName, String maxpagesize, String filter, String expand)
Lists all shares.
Parameters:
Returns:
restore
public abstract void restore(String resourceGroupName, String accountName, String shareName, DeletedShare deletedShare)
Restore a file share within a valid retention days if share soft delete is enabled.
Parameters:
restoreAsync
public abstract Mono<Void> restoreAsync(String resourceGroupName, String accountName, String shareName, DeletedShare deletedShare)
Restore a file share within a valid retention days if share soft delete is enabled.
Parameters:
Returns:
restoreWithResponse
public abstract Response<Void> restoreWithResponse(String resourceGroupName, String accountName, String shareName, DeletedShare deletedShare, Context context)
Restore a file share within a valid retention days if share soft delete is enabled.
Parameters:
Returns:
restoreWithResponseAsync
public abstract Mono<Response<Void>> restoreWithResponseAsync(String resourceGroupName, String accountName, String shareName, DeletedShare deletedShare)
Restore a file share within a valid retention days if share soft delete is enabled.
Parameters:
Returns:
update
public abstract FileShareInner update(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare)
Updates share properties as specified in request body. Properties not mentioned in the request will not be changed. Update fails if the specified share does not already exist.
Parameters:
Returns:
updateAsync
public abstract Mono<FileShareInner> updateAsync(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare)
Updates share properties as specified in request body. Properties not mentioned in the request will not be changed. Update fails if the specified share does not already exist.
Parameters:
Returns:
updateWithResponse
public abstract Response<FileShareInner> updateWithResponse(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, Context context)
Updates share properties as specified in request body. Properties not mentioned in the request will not be changed. Update fails if the specified share does not already exist.
Parameters:
Returns:
updateWithResponseAsync
public abstract Mono<Response<FileShareInner>> updateWithResponseAsync(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare)
Updates share properties as specified in request body. Properties not mentioned in the request will not be changed. Update fails if the specified share does not already exist.
Parameters:
Returns: