FileDetails Interface

public interface FileDetails

An immutable client-side representation of FileDetails.

Method Summary

Modifier and Type Method and Description
abstract Integer chunkSize()

Gets the chunkSize property: Size of each chunk.

abstract OffsetDateTime createdOn()

Gets the createdOn property: Time in UTC (ISO 8601 format) when file workspace was created.

abstract Integer fileSize()

Gets the fileSize property: Size of the file to be uploaded.

abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

abstract FileDetailsInner innerModel()

Gets the inner com.azure.resourcemanager.support.fluent.models.FileDetailsInner object.

abstract String name()

Gets the name property: The name of the resource.

abstract Integer numberOfChunks()

Gets the numberOfChunks property: Number of chunks to be uploaded.

abstract FileDetails refresh()

Refreshes the resource to sync with Azure.

abstract FileDetails refresh(Context context)

Refreshes the resource to sync with Azure.

abstract SystemData systemData()

Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

abstract String type()

Gets the type property: The type of the resource.

abstract void upload(UploadFile uploadFile)

This API allows you to upload content to a file.

abstract Response<Void> uploadWithResponse(UploadFile uploadFile, Context context)

This API allows you to upload content to a file.

Method Details

chunkSize

public abstract Integer chunkSize()

Gets the chunkSize property: Size of each chunk. The size of each chunk should be provided in bytes and must not exceed 2.5 megabytes (MB).

Returns:

the chunkSize value.

createdOn

public abstract OffsetDateTime createdOn()

Gets the createdOn property: Time in UTC (ISO 8601 format) when file workspace was created.

Returns:

the createdOn value.

fileSize

public abstract Integer fileSize()

Gets the fileSize property: Size of the file to be uploaded. The file size must not exceed 5 MB and should be provided in bytes.

Returns:

the fileSize value.

id

public abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

Returns:

the id value.

innerModel

public abstract FileDetailsInner innerModel()

Gets the inner com.azure.resourcemanager.support.fluent.models.FileDetailsInner object.

Returns:

the inner object.

name

public abstract String name()

Gets the name property: The name of the resource.

Returns:

the name value.

numberOfChunks

public abstract Integer numberOfChunks()

Gets the numberOfChunks property: Number of chunks to be uploaded. The maximum number of allowed chunks is 2.

Returns:

the numberOfChunks value.

refresh

public abstract FileDetails refresh()

Refreshes the resource to sync with Azure.

Returns:

the refreshed resource.

refresh

public abstract FileDetails refresh(Context context)

Refreshes the resource to sync with Azure.

Parameters:

context - The context to associate with this operation.

Returns:

the refreshed resource.

systemData

public abstract SystemData systemData()

Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

type

public abstract String type()

Gets the type property: The type of the resource.

Returns:

the type value.

upload

public abstract void upload(UploadFile uploadFile)

This API allows you to upload content to a file.

Parameters:

uploadFile - UploadFile object.

uploadWithResponse

public abstract Response<Void> uploadWithResponse(UploadFile uploadFile, Context context)

This API allows you to upload content to a file.

Parameters:

uploadFile - UploadFile object.
context - The context to associate with this operation.

Returns:

Applies to