Interface FileSharesClient
public interface FileSharesClient
An instance of this class provides access to all the operations defined in FileSharesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare) Creates a new share under the specified account as described by request body.createAsync(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare) Creates a new share under the specified account as described by request body.createAsync(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, String expand) Creates a new share under the specified account as described by request body.com.azure.core.http.rest.Response<FileShareInner>createWithResponse(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, String expand, com.azure.core.util.Context context) Creates a new share under the specified account as described by request body.Mono<com.azure.core.http.rest.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.voidDeletes specified share under its account.deleteAsync(String resourceGroupName, String accountName, String shareName) Deletes specified share under its account.deleteAsync(String resourceGroupName, String accountName, String shareName, String xMsSnapshot, String include) Deletes specified share under its account.com.azure.core.http.rest.Response<Void>deleteWithResponse(String resourceGroupName, String accountName, String shareName, String xMsSnapshot, String include, com.azure.core.util.Context context) Deletes specified share under its account.deleteWithResponseAsync(String resourceGroupName, String accountName, String shareName, String xMsSnapshot, String include) Deletes specified share under its account.Gets properties of a specified share.Gets properties of a specified share.getAsync(String resourceGroupName, String accountName, String shareName, String expand, String xMsSnapshot) Gets properties of a specified share.com.azure.core.http.rest.Response<FileShareInner>getWithResponse(String resourceGroupName, String accountName, String shareName, String expand, String xMsSnapshot, com.azure.core.util.Context context) Gets properties of a specified share.Mono<com.azure.core.http.rest.Response<FileShareInner>>getWithResponseAsync(String resourceGroupName, String accountName, String shareName, String expand, String xMsSnapshot) Gets properties of a specified share.The Lease Share operation establishes and manages a lock on a share for delete operations.leaseAsync(String resourceGroupName, String accountName, String shareName) The Lease Share operation establishes and manages a lock on a share for delete operations.leaseAsync(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.leaseWithResponse(String resourceGroupName, String accountName, String shareName, String xMsSnapshot, LeaseShareRequest parameters, com.azure.core.util.Context context) The Lease Share operation establishes and manages a lock on a share for delete operations.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.com.azure.core.http.rest.PagedIterable<FileShareItemInner>Lists all shares.com.azure.core.http.rest.PagedIterable<FileShareItemInner>list(String resourceGroupName, String accountName, String maxpagesize, String filter, String expand, com.azure.core.util.Context context) Lists all shares.com.azure.core.http.rest.PagedFlux<FileShareItemInner>Lists all shares.com.azure.core.http.rest.PagedFlux<FileShareItemInner>listAsync(String resourceGroupName, String accountName, String maxpagesize, String filter, String expand) Lists all shares.voidrestore(String resourceGroupName, String accountName, String shareName, DeletedShare deletedShare) Restore a file share within a valid retention days if share soft delete is enabled.restoreAsync(String resourceGroupName, String accountName, String shareName, DeletedShare deletedShare) Restore a file share within a valid retention days if share soft delete is enabled.com.azure.core.http.rest.Response<Void>restoreWithResponse(String resourceGroupName, String accountName, String shareName, DeletedShare deletedShare, com.azure.core.util.Context context) Restore a file share within a valid retention days if share soft delete is enabled.restoreWithResponseAsync(String resourceGroupName, String accountName, String shareName, DeletedShare deletedShare) Restore a file share within a valid retention days if share soft delete is enabled.update(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare) Updates share properties as specified in request body.updateAsync(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare) Updates share properties as specified in request body.com.azure.core.http.rest.Response<FileShareInner>updateWithResponse(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare, com.azure.core.util.Context context) Updates share properties as specified in request body.Mono<com.azure.core.http.rest.Response<FileShareInner>>updateWithResponseAsync(String resourceGroupName, String accountName, String shareName, FileShareInner fileShare) Updates share properties as specified in request body.
-
Method Details
-
listAsync
com.azure.core.http.rest.PagedFlux<FileShareItemInner> listAsync(String resourceGroupName, String accountName, String maxpagesize, String filter, String expand) Lists all shares.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.maxpagesize- Optional. Specified maximum number of shares that can be included in the list.filter- Optional. When specified, only share names starting with the filter will be listed.expand- Optional, used to expand the properties within share's properties. Valid values are: deleted, snapshots. Should be passed as a string with delimiter ','.- Returns:
- response schema as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAsync
com.azure.core.http.rest.PagedFlux<FileShareItemInner> listAsync(String resourceGroupName, String accountName) Lists all shares.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.- Returns:
- response schema as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<FileShareItemInner> list(String resourceGroupName, String accountName) Lists all shares.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.- Returns:
- response schema as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<FileShareItemInner> list(String resourceGroupName, String accountName, String maxpagesize, String filter, String expand, com.azure.core.util.Context context) Lists all shares.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.maxpagesize- Optional. Specified maximum number of shares that can be included in the list.filter- Optional. When specified, only share names starting with the filter will be listed.expand- Optional, used to expand the properties within share's properties. Valid values are: deleted, snapshots. Should be passed as a string with delimiter ','.context- The context to associate with this operation.- Returns:
- response schema as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<FileShareInner>> getWithResponseAsync(String resourceGroupName, String accountName, String shareName, String expand, String xMsSnapshot) Gets properties of a specified share.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.shareName- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.expand- Optional, used to expand the properties within share's properties. Valid values are: stats. Should be passed as a string with delimiter ','.xMsSnapshot- Optional, used to retrieve properties of a snapshot.- Returns:
- properties of a specified share along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAsync
Mono<FileShareInner> getAsync(String resourceGroupName, String accountName, String shareName, String expand, String xMsSnapshot) Gets properties of a specified share.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.shareName- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.expand- Optional, used to expand the properties within share's properties. Valid values are: stats. Should be passed as a string with delimiter ','.xMsSnapshot- Optional, used to retrieve properties of a snapshot.- Returns:
- properties of a specified share on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAsync
Gets properties of a specified share.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.shareName- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.- Returns:
- properties of a specified share on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
Gets properties of a specified share.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.shareName- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.- Returns:
- properties of a specified share.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<FileShareInner> getWithResponse(String resourceGroupName, String accountName, String shareName, String expand, String xMsSnapshot, com.azure.core.util.Context context) Gets properties of a specified share.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.shareName- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.expand- Optional, used to expand the properties within share's properties. Valid values are: stats. Should be passed as a string with delimiter ','.xMsSnapshot- Optional, used to retrieve properties of a snapshot.context- The context to associate with this operation.- Returns:
- properties of a specified share along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String accountName, String shareName, String xMsSnapshot, String include) Deletes specified share under its account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.shareName- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.xMsSnapshot- Optional, used to delete a snapshot.include- Optional. Valid values are: snapshots, leased-snapshots, none. The default value is snapshots. For 'snapshots', the file share is deleted including all of its file share snapshots. If the file share contains leased-snapshots, the deletion fails. For 'leased-snapshots', the file share is deleted included all of its file share snapshots (leased/unleased). For 'none', the file share is deleted if it has no share snapshots. If the file share contains any snapshots (leased or unleased), the deletion fails.- Returns:
- the
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Mono<Void> deleteAsync(String resourceGroupName, String accountName, String shareName, String xMsSnapshot, String include) Deletes specified share under its account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.shareName- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.xMsSnapshot- Optional, used to delete a snapshot.include- Optional. Valid values are: snapshots, leased-snapshots, none. The default value is snapshots. For 'snapshots', the file share is deleted including all of its file share snapshots. If the file share contains leased-snapshots, the deletion fails. For 'leased-snapshots', the file share is deleted included all of its file share snapshots (leased/unleased). For 'none', the file share is deleted if it has no share snapshots. If the file share contains any snapshots (leased or unleased), the deletion fails.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Deletes specified share under its account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.shareName- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.- Returns:
- A
Monothat completes when a successful response is received. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes specified share under its account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.shareName- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String accountName, String shareName, String xMsSnapshot, String include, com.azure.core.util.Context context) Deletes specified share under its account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.shareName- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.xMsSnapshot- Optional, used to delete a snapshot.include- Optional. Valid values are: snapshots, leased-snapshots, none. The default value is snapshots. For 'snapshots', the file share is deleted including all of its file share snapshots. If the file share contains leased-snapshots, the deletion fails. For 'leased-snapshots', the file share is deleted included all of its file share snapshots (leased/unleased). For 'none', the file share is deleted if it has no share snapshots. If the file share contains any snapshots (leased or unleased), the deletion fails.context- The context to associate with this operation.- Returns:
- the
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
leaseAsync
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:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.shareName- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.- Returns:
- lease Share response schema on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
lease
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:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.shareName- The name of the file share within the specified storage account. File share names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.- Returns:
- lease Share response schema.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-