From 4942f405ec241df9a7836dc83e0aeb0bc4e5f687 Mon Sep 17 00:00:00 2001 From: Gauri Prasad Date: Wed, 25 Sep 2019 14:20:56 -0700 Subject: [PATCH 1/7] Added modules for ADLS --- eng/jacoco-test-coverage/pom.xml | 6 + eng/spotbugs-aggregate-report/pom.xml | 8 + pom.client.xml | 5 + .../azure-storage-file-datalake/CHANGELOG.md | 0 .../azure-storage-file-datalake/README.md | 66 +++++ .../azure-storage-file-datalake/pom.xml | 227 ++++++++++++++++++ sdk/storage/ci.yml | 3 + sdk/storage/pom.service.xml | 1 + 8 files changed, 316 insertions(+) create mode 100644 sdk/storage/azure-storage-file-datalake/CHANGELOG.md create mode 100644 sdk/storage/azure-storage-file-datalake/README.md create mode 100644 sdk/storage/azure-storage-file-datalake/pom.xml diff --git a/eng/jacoco-test-coverage/pom.xml b/eng/jacoco-test-coverage/pom.xml index e15f99fa9ac1..a2dba16484ff 100644 --- a/eng/jacoco-test-coverage/pom.xml +++ b/eng/jacoco-test-coverage/pom.xml @@ -37,6 +37,7 @@ 12.0.0-preview.4 12.0.0-preview.4 12.0.0-preview.4 + 12.0.0-preview4 12.0.0-preview.4 12.0.0-preview.4 com.azure.eng.jacoco.test.coverage @@ -126,6 +127,11 @@ azure-storage-file ${azure-storage-file.version} + + com.azure + azure-storage-file-datalake + ${azure-storage-file-datalake.version} + com.azure azure-storage-queue diff --git a/eng/spotbugs-aggregate-report/pom.xml b/eng/spotbugs-aggregate-report/pom.xml index cab38e666c2d..25bb32c6ca9a 100644 --- a/eng/spotbugs-aggregate-report/pom.xml +++ b/eng/spotbugs-aggregate-report/pom.xml @@ -32,6 +32,7 @@ 12.0.0-preview.4 12.0.0-preview.4 12.0.0-preview.4 + 12.0.0-preview.4 12.0.0-preview.4 12.0.0-preview.4 com.azure.eng.spotbugs.reporting @@ -84,6 +85,8 @@ ..\..\sdk\storage\azure-storage-blob-cryptography\src\main\java\com ..\..\sdk\storage\azure-storage-file\src\main\java\com ..\..\sdk\storage\azure-storage-file\src\samples\java\com + ..\..\sdk\storage\azure-storage-file-datalake\src\main\java\com + ..\..\sdk\storage\azure-storage-file-datalake\src\samples\java\com ..\..\sdk\storage\azure-storage-queue\src\main\java\com ..\..\sdk\storage\azure-storage-queue\src\samples\java\com ..\..\sdk\storage\azure-storage-queue-cryptography\src\main\java\com @@ -228,6 +231,11 @@ azure-storage-file ${azure-storage-file.version} + + com.azure + azure-storage-file-datalake + ${azure-storage-file-datalake.version} + com.azure azure-storage-queue diff --git a/pom.client.xml b/pom.client.xml index 177ad83bf460..f03a4eeed626 100644 --- a/pom.client.xml +++ b/pom.client.xml @@ -409,6 +409,10 @@ Azure Storage - Files com.azure.storage.file* + + Azure Storage Files - Data Lake + com.azure.storage.file.datalake* + Azure Storage - Queues com.azure.storage.queue* @@ -860,6 +864,7 @@ sdk/storage/azure-storage-blob-cryptography sdk/storage/azure-storage-common sdk/storage/azure-storage-file + sdk/storage/azure-storage-file-datalake sdk/storage/azure-storage-queue sdk/storage/azure-storage-queue-cryptography sdk/tracing/tracing-opentelemetry diff --git a/sdk/storage/azure-storage-file-datalake/CHANGELOG.md b/sdk/storage/azure-storage-file-datalake/CHANGELOG.md new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/sdk/storage/azure-storage-file-datalake/README.md b/sdk/storage/azure-storage-file-datalake/README.md new file mode 100644 index 000000000000..e5691b1cb916 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/README.md @@ -0,0 +1,66 @@ +# Azure File Data Lake client library for Java + +[Source code][source_code] | [API reference documentation][api_documentation] | [Product documentation][storage_docs] | +[Samples][samples] + +## Getting started + +### Prerequisites + +- [Java Development Kit (JDK)][jdk] with version 8 or above +- [Azure Subscription][azure_subscription] +- [Create Storage Account][storage_account] + +### Adding the package to your product + +```xml + + com.azure + azure-storage-file-datalake + 12.0.0-preview.4 + +``` + +### Default HTTP Client +All client libraries support a pluggable HTTP transport layer. Users can specify an HTTP client specific for their needs by including the following dependency in the Maven pom.xml file: + +```xml + + com.azure + azure-core-http-netty + 1.0.0-preview.4 + +``` + +This will automatically configure all client libraries on the same classpath to make use of Netty for the HTTP client. Netty is the recommended HTTP client for most applications. OkHttp is recommended only when the application being built is deployed to Android devices. + +If, instead of Netty it is preferable to use OkHTTP, there is a HTTP client available for that too. Simply include the following dependency instead: + +```xml + + com.azure + azure-core-http-okhttp + 1.0.0-preview.4 + +``` + +### Configuring HTTP Clients +When an HTTP client is included on the classpath, as shown above, it is not necessary to specify it in the client library [builders](#file-services), unless you want to customize the HTTP client in some fashion. If this is desired, the `httpClient` builder method is often available to achieve just this, by allowing users to provide a custom (or customized) `com.azure.core.http.HttpClient` instances. + +For starters, by having the Netty or OkHTTP dependencies on your classpath, as shown above, you can create new instances of these `HttpClient` types using their builder APIs. For example, here is how you would create a Netty HttpClient instance: + +```java +HttpClient client = new NettyAsyncHttpClientBuilder() + .port(8080) + .wiretap(true) + .build(); +``` + +### Create a Storage Account +To create a Storage Account you can use the Azure Portal or [Azure CLI][azure_cli]. + +```powershell +az group create \ + --name storage-resource-group \ + --location westus +``` diff --git a/sdk/storage/azure-storage-file-datalake/pom.xml b/sdk/storage/azure-storage-file-datalake/pom.xml new file mode 100644 index 000000000000..d1a1581cf1fe --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/pom.xml @@ -0,0 +1,227 @@ + + + + com.azure + azure-client-sdk-parent + 1.4.0 + ../../../pom.client.xml + + + 4.0.0 + + com.azure + azure-storage-file-datalake + 12.0.0-preview.4 + + Microsoft Azure client library for File Storage Data Lake + This module contains client library for Microsoft Azure File Storage Data Lake. + https://github.com/Azure/azure-sdk-for-java + + + + azure-java-build-docs + ${site.url}/site/${project.artifactId} + + + + + scm:git:https://github.com/Azure/azure-sdk-for-java + scm:git:git@github.com:Azure/azure-sdk-for-java.git + HEAD + + + + com.azure.storage.file.datalake + + + + + com.azure + azure-core + 1.0.0-preview.5 + + + com.azure + azure-storage-common + 12.0.0-preview.4 + + + + + com.google.code.findbugs + jsr305 + 3.0.2 + provided + + + + com.azure + azure-core-test + 1.0.0-preview.5 + test + + + com.azure + azure-core-http-netty + 1.0.0-preview.5 + test + + + org.slf4j + slf4j-simple + test + + + io.projectreactor + reactor-test + test + + + org.spockframework + spock-core + test + + + + + + java8 + + [1.8,9) + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + + + + test-compile + process-test-sources + + testCompile + + + groovy-eclipse-compiler + -Xlint:unchecked + + + + default-testCompile + process-test-sources + + testCompile + + + groovy-eclipse-compiler + -Xlint:unchecked + + + + + + org.codehaus.groovy + groovy-eclipse-compiler + ${groovy-eclipse-compiler.version} + + + org.codehaus.groovy + groovy-eclipse-batch + ${groovy-eclipse-batch.version} + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + + + + + + java9plus + + [9,) + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 9 + 9 + + + + test-compile + process-test-sources + + testCompile + + + groovy-eclipse-compiler + -Xlint:unchecked + 8 + + + + default-testCompile + process-test-sources + + testCompile + + + groovy-eclipse-compiler + -Xlint:unchecked + 8 + + + + + + org.codehaus.groovy + groovy-eclipse-compiler + ${groovy-eclipse-compiler.version} + + + org.codehaus.groovy + groovy-eclipse-batch + ${groovy-eclipse-batch.version} + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven-surefire-plugin.version} + + + --add-exports com.azure.core/com.azure.core.implementation.http=ALL-UNNAMED + --add-exports com.azure.core/com.azure.core.implementation.serializer.jackson=ALL-UNNAMED + --add-exports com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED + --add-opens com.azure.storage.file.datalake/com.azure.storage.file.datalake=ALL-UNNAMED + --add-opens com.azure.storage.file.datalake/com.azure.storage.file.datalake.implementation=ALL-UNNAMED + --add-opens com.azure.storage.file.datalake/com.azure.storage.file.datalake.models=ALL-UNNAMED + + + + + + + + diff --git a/sdk/storage/ci.yml b/sdk/storage/ci.yml index ae6c798b7cf7..8a599d4b7dca 100644 --- a/sdk/storage/ci.yml +++ b/sdk/storage/ci.yml @@ -50,6 +50,9 @@ stages: - name: azure-storage-file safeName: azurestoragefile stagingProfileId: 88192f04117501 + - name: azure-storage-file-datalake + safeName: azurestoragefiledatalake + stagingProfileId: 88192f04117501 - name: azure-storage-queue safeName: azurestoragequeue stagingProfileId: 88192f04117501 diff --git a/sdk/storage/pom.service.xml b/sdk/storage/pom.service.xml index 20933185a462..dd6b3eb45b2c 100644 --- a/sdk/storage/pom.service.xml +++ b/sdk/storage/pom.service.xml @@ -18,6 +18,7 @@ azure-storage-blob azure-storage-blob-cryptography azure-storage-file + azure-storage-file-datalake azure-storage-queue azure-storage-queue-cryptography From a75df3d22d38b48ce94ba451e85c806590ea3ec1 Mon Sep 17 00:00:00 2001 From: Gauri Prasad Date: Wed, 25 Sep 2019 15:23:11 -0700 Subject: [PATCH 2/7] Added autogenerated code for ADLS --- .../DataLakeStorageClientBuilder.java | 104 +++ .../DataLakeStorageClientImpl.java | 148 ++++ .../implementation/FilesystemsImpl.java | 286 +++++++ .../datalake/implementation/PathsImpl.java | 530 +++++++++++++ .../datalake/implementation/package-info.java | 11 + .../datalake/models/DataLakeStorageError.java | 40 + .../models/DataLakeStorageErrorError.java | 66 ++ .../models/DataLakeStorageErrorException.java | 39 + .../file/datalake/models/Filesystem.java | 92 +++ .../models/FilesystemCreateHeaders.java | 190 +++++ .../models/FilesystemDeleteHeaders.java | 100 +++ .../FilesystemGetPropertiesHeaders.java | 233 ++++++ .../file/datalake/models/FilesystemList.java | 41 + .../models/FilesystemListHeaders.java | 167 ++++ .../FilesystemSetPropertiesHeaders.java | 164 ++++ .../models/FilesystemsCreateResponse.java | 27 + .../models/FilesystemsDeleteResponse.java | 27 + .../FilesystemsGetPropertiesResponse.java | 27 + .../models/FilesystemsListResponse.java | 35 + .../FilesystemsSetPropertiesResponse.java | 27 + .../storage/file/datalake/models/Path.java | 222 ++++++ .../datalake/models/PathCreateHeaders.java | 226 ++++++ .../datalake/models/PathDeleteHeaders.java | 141 ++++ .../models/PathGetPropertiesAction.java | 55 ++ .../models/PathGetPropertiesHeaders.java | 710 ++++++++++++++++++ .../file/datalake/models/PathLeaseAction.java | 70 ++ .../datalake/models/PathLeaseHeaders.java | 215 ++++++ .../file/datalake/models/PathList.java | 41 + .../file/datalake/models/PathListHeaders.java | 202 +++++ .../file/datalake/models/PathReadHeaders.java | 622 +++++++++++++++ .../file/datalake/models/PathRenameMode.java | 55 ++ .../datalake/models/PathResourceType.java | 55 ++ .../datalake/models/PathUpdateAction.java | 65 ++ .../datalake/models/PathUpdateHeaders.java | 474 ++++++++++++ .../datalake/models/PathsCreateResponse.java | 27 + .../datalake/models/PathsDeleteResponse.java | 27 + .../models/PathsGetPropertiesResponse.java | 27 + .../datalake/models/PathsLeaseResponse.java | 27 + .../datalake/models/PathsListResponse.java | 35 + .../datalake/models/PathsReadResponse.java | 46 ++ .../datalake/models/PathsUpdateResponse.java | 27 + .../file/datalake/models/package-info.java | 10 + .../storage/file/datalake/package-info.java | 10 + .../swagger/README.md | 37 + 44 files changed, 5780 insertions(+) create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientImpl.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FilesystemsImpl.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/package-info.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageError.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorError.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorException.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Filesystem.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemCreateHeaders.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemDeleteHeaders.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemGetPropertiesHeaders.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemList.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemListHeaders.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemSetPropertiesHeaders.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsCreateResponse.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsDeleteResponse.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsGetPropertiesResponse.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsListResponse.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsSetPropertiesResponse.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Path.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathCreateHeaders.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathDeleteHeaders.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesAction.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesHeaders.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseAction.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseHeaders.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathList.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathListHeaders.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathReadHeaders.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathRenameMode.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathResourceType.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateAction.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateHeaders.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsCreateResponse.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsDeleteResponse.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsGetPropertiesResponse.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsLeaseResponse.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsListResponse.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsReadResponse.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsUpdateResponse.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/package-info.java create mode 100644 sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/package-info.java create mode 100644 sdk/storage/azure-storage-file-datalake/swagger/README.md diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java new file mode 100644 index 000000000000..dee1d8747c98 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation; + +import com.azure.core.http.HttpPipeline; +import com.azure.core.implementation.RestProxy; +import com.azure.core.implementation.annotation.ServiceClientBuilder; + +/** + * A builder for creating a new instance of the DataLakeStorageClient type. + */ +@ServiceClientBuilder(serviceClients = DataLakeStorageClientImpl.class) +public final class DataLakeStorageClientBuilder { + /* + * Specifies the version of the REST protocol used for processing the request. This is required when using shared key authorization. + */ + private String xMsVersion; + + /** + * Sets Specifies the version of the REST protocol used for processing the request. This is required when using shared key authorization. + * + * @param xMsVersion the xMsVersion value. + * @return the DataLakeStorageClientBuilder. + */ + public DataLakeStorageClientBuilder xMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } + + /* + * The Azure Storage account name. + */ + private String accountName; + + /** + * Sets The Azure Storage account name. + * + * @param accountName the accountName value. + * @return the DataLakeStorageClientBuilder. + */ + public DataLakeStorageClientBuilder accountName(String accountName) { + this.accountName = accountName; + return this; + } + + /* + * The DNS suffix for the Azure Data Lake Storage endpoint. + */ + private String dnsSuffix; + + /** + * Sets The DNS suffix for the Azure Data Lake Storage endpoint. + * + * @param dnsSuffix the dnsSuffix value. + * @return the DataLakeStorageClientBuilder. + */ + public DataLakeStorageClientBuilder dnsSuffix(String dnsSuffix) { + this.dnsSuffix = dnsSuffix; + return this; + } + + /* + * The HTTP pipeline to send requests through + */ + private HttpPipeline pipeline; + + /** + * Sets The HTTP pipeline to send requests through. + * + * @param pipeline the pipeline value. + * @return the DataLakeStorageClientBuilder. + */ + public DataLakeStorageClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; + return this; + } + + /** + * Builds an instance of DataLakeStorageClientImpl with the provided parameters. + * + * @return an instance of DataLakeStorageClientImpl. + */ + public DataLakeStorageClientImpl build() { + if (dnsSuffix == null) { + this.dnsSuffix = "dfs.core.windows.net"; + } + if (pipeline == null) { + this.pipeline = RestProxy.createDefaultPipeline(); + } + DataLakeStorageClientImpl client = new DataLakeStorageClientImpl(pipeline); + if (this.xMsVersion != null) { + client.setXMsVersion(this.xMsVersion); + } + if (this.accountName != null) { + client.setAccountName(this.accountName); + } + if (this.dnsSuffix != null) { + client.setDnsSuffix(this.dnsSuffix); + } + return client; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientImpl.java new file mode 100644 index 000000000000..34c9937f0350 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientImpl.java @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation; + +import com.azure.core.http.HttpPipeline; +import com.azure.core.implementation.RestProxy; + +/** + * Initializes a new instance of the DataLakeStorageClient type. + */ +public final class DataLakeStorageClientImpl { + /** + * Specifies the version of the REST protocol used for processing the request. This is required when using shared key authorization. + */ + private String xMsVersion; + + /** + * Gets Specifies the version of the REST protocol used for processing the request. This is required when using shared key authorization. + * + * @return the xMsVersion value. + */ + public String getXMsVersion() { + return this.xMsVersion; + } + + /** + * Sets Specifies the version of the REST protocol used for processing the request. This is required when using shared key authorization. + * + * @param xMsVersion the xMsVersion value. + * @return the service client itself. + */ + DataLakeStorageClientImpl setXMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } + + /** + * The Azure Storage account name. + */ + private String accountName; + + /** + * Gets The Azure Storage account name. + * + * @return the accountName value. + */ + public String getAccountName() { + return this.accountName; + } + + /** + * Sets The Azure Storage account name. + * + * @param accountName the accountName value. + * @return the service client itself. + */ + DataLakeStorageClientImpl setAccountName(String accountName) { + this.accountName = accountName; + return this; + } + + /** + * The DNS suffix for the Azure Data Lake Storage endpoint. + */ + private String dnsSuffix; + + /** + * Gets The DNS suffix for the Azure Data Lake Storage endpoint. + * + * @return the dnsSuffix value. + */ + public String getDnsSuffix() { + return this.dnsSuffix; + } + + /** + * Sets The DNS suffix for the Azure Data Lake Storage endpoint. + * + * @param dnsSuffix the dnsSuffix value. + * @return the service client itself. + */ + DataLakeStorageClientImpl setDnsSuffix(String dnsSuffix) { + this.dnsSuffix = dnsSuffix; + return this; + } + + /** + * The HTTP pipeline to send requests through. + */ + private HttpPipeline httpPipeline; + + /** + * Gets The HTTP pipeline to send requests through. + * + * @return the httpPipeline value. + */ + public HttpPipeline getHttpPipeline() { + return this.httpPipeline; + } + + /** + * The FilesystemsImpl object to access its operations. + */ + private FilesystemsImpl filesystems; + + /** + * Gets the FilesystemsImpl object to access its operations. + * + * @return the FilesystemsImpl object. + */ + public FilesystemsImpl filesystems() { + return this.filesystems; + } + + /** + * The PathsImpl object to access its operations. + */ + private PathsImpl paths; + + /** + * Gets the PathsImpl object to access its operations. + * + * @return the PathsImpl object. + */ + public PathsImpl paths() { + return this.paths; + } + + /** + * Initializes an instance of DataLakeStorageClient client. + */ + public DataLakeStorageClientImpl() { + this(RestProxy.createDefaultPipeline()); + } + + /** + * Initializes an instance of DataLakeStorageClient client. + * + * @param httpPipeline The HTTP pipeline to send requests through. + */ + public DataLakeStorageClientImpl(HttpPipeline httpPipeline) { + this.httpPipeline = httpPipeline; + this.filesystems = new FilesystemsImpl(this); + this.paths = new PathsImpl(this); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FilesystemsImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FilesystemsImpl.java new file mode 100644 index 000000000000..15e4cbccc6f4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FilesystemsImpl.java @@ -0,0 +1,286 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation; + +import com.azure.core.implementation.RestProxy; +import com.azure.core.implementation.annotation.Delete; +import com.azure.core.implementation.annotation.ExpectedResponses; +import com.azure.core.implementation.annotation.Get; +import com.azure.core.implementation.annotation.Head; +import com.azure.core.implementation.annotation.HeaderParam; +import com.azure.core.implementation.annotation.Host; +import com.azure.core.implementation.annotation.HostParam; +import com.azure.core.implementation.annotation.Patch; +import com.azure.core.implementation.annotation.PathParam; +import com.azure.core.implementation.annotation.Put; +import com.azure.core.implementation.annotation.QueryParam; +import com.azure.core.implementation.annotation.ReturnType; +import com.azure.core.implementation.annotation.ServiceInterface; +import com.azure.core.implementation.annotation.ServiceMethod; +import com.azure.core.implementation.annotation.UnexpectedResponseExceptionType; +import com.azure.core.util.Context; +import com.azure.storage.file.datalake.models.DataLakeStorageErrorException; +import com.azure.storage.file.datalake.models.FilesystemsCreateResponse; +import com.azure.storage.file.datalake.models.FilesystemsDeleteResponse; +import com.azure.storage.file.datalake.models.FilesystemsGetPropertiesResponse; +import com.azure.storage.file.datalake.models.FilesystemsListResponse; +import com.azure.storage.file.datalake.models.FilesystemsSetPropertiesResponse; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * Filesystems. + */ +public final class FilesystemsImpl { + /** + * The proxy service used to perform REST calls. + */ + private FilesystemsService service; + + /** + * The service client containing this operation class. + */ + private DataLakeStorageClientImpl client; + + /** + * Initializes an instance of FilesystemsImpl. + * + * @param client the instance of the service client containing this operation class. + */ + public FilesystemsImpl(DataLakeStorageClientImpl client) { + this.service = RestProxy.create(FilesystemsService.class, client.getHttpPipeline()); + this.client = client; + } + + /** + * The interface defining all the services for + * DataLakeStorageClientFilesystems to be used by the proxy service to + * perform REST calls. + */ + @Host("http://{accountName}.{dnsSuffix}") + @ServiceInterface(name = "DataLakeStorageClientFilesystems") + private interface FilesystemsService { + @Get("") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) + Mono list(@HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("resource") String resource, @QueryParam("prefix") String prefix, @QueryParam("continuation") String continuation, @QueryParam("maxResults") Integer maxResults, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + + @Put("{filesystem}") + @ExpectedResponses({201}) + @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) + Mono create(@PathParam("filesystem") String filesystem, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @HeaderParam("x-ms-properties") String xMsProperties, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + + @Patch("{filesystem}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) + Mono setProperties(@PathParam("filesystem") String filesystem, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @HeaderParam("x-ms-properties") String xMsProperties, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + + @Head("{filesystem}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) + Mono getProperties(@PathParam("filesystem") String filesystem, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + + @Delete("{filesystem}") + @ExpectedResponses({202}) + @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) + Mono delete(@PathParam("filesystem") String filesystem, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + } + + /** + * List Filesystems + * List filesystems and their properties in given account. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listWithRestResponseAsync(Context context) { + final String resource = "account"; + final String prefix = null; + final String continuation = null; + final Integer maxResults = null; + final String xMsClientRequestId = null; + final Integer timeout = null; + final String xMsDate = null; + return service.list(this.client.getAccountName(), this.client.getDnsSuffix(), resource, prefix, continuation, maxResults, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * List Filesystems + * List filesystems and their properties in given account. + * + * @param prefix Filters results to filesystems within the specified prefix. + * @param continuation The number of filesystems returned with each invocation is limited. If the number of filesystems to be returned exceeds this limit, a continuation token is returned in the response header x-ms-continuation. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the list operation to continue listing the filesystems. + * @param maxResults An optional value that specifies the maximum number of items to return. If omitted or greater than 5,000, the response will include up to 5,000 items. + * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. + * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. + * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listWithRestResponseAsync(String prefix, String continuation, Integer maxResults, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { + final String resource = "account"; + return service.list(this.client.getAccountName(), this.client.getDnsSuffix(), resource, prefix, continuation, maxResults, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Create Filesystem + * Create a filesystem rooted at the specified location. If the filesystem already exists, the operation fails. This operation does not support conditional HTTP requests. + * + * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createWithRestResponseAsync(String filesystem, Context context) { + final String xMsProperties = null; + final String resource = "filesystem"; + final String xMsClientRequestId = null; + final Integer timeout = null; + final String xMsDate = null; + return service.create(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), xMsProperties, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Create Filesystem + * Create a filesystem rooted at the specified location. If the filesystem already exists, the operation fails. This operation does not support conditional HTTP requests. + * + * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. + * @param xMsProperties User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. + * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. + * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. + * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createWithRestResponseAsync(String filesystem, String xMsProperties, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { + final String resource = "filesystem"; + return service.create(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), xMsProperties, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Set Filesystem Properties + * Set properties for the filesystem. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono setPropertiesWithRestResponseAsync(String filesystem, Context context) { + final String xMsProperties = null; + final String ifModifiedSince = null; + final String ifUnmodifiedSince = null; + final String resource = "filesystem"; + final String xMsClientRequestId = null; + final Integer timeout = null; + final String xMsDate = null; + return service.setProperties(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), xMsProperties, ifModifiedSince, ifUnmodifiedSince, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Set Filesystem Properties + * Set properties for the filesystem. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. + * @param xMsProperties Optional. User-defined properties to be stored with the filesystem, in the format of a comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. If the filesystem exists, any properties not included in the list will be removed. All properties are removed if the header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then make a conditional request with the E-Tag and include values for all properties. + * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. + * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. + * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. + * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. + * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono setPropertiesWithRestResponseAsync(String filesystem, String xMsProperties, String ifModifiedSince, String ifUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { + final String resource = "filesystem"; + return service.setProperties(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), xMsProperties, ifModifiedSince, ifUnmodifiedSince, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Get Filesystem Properties. + * All system and user-defined filesystem properties are specified in the response headers. + * + * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getPropertiesWithRestResponseAsync(String filesystem, Context context) { + final String resource = "filesystem"; + final String xMsClientRequestId = null; + final Integer timeout = null; + final String xMsDate = null; + return service.getProperties(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Get Filesystem Properties. + * All system and user-defined filesystem properties are specified in the response headers. + * + * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. + * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. + * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. + * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getPropertiesWithRestResponseAsync(String filesystem, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { + final String resource = "filesystem"; + return service.getProperties(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Delete Filesystem + * Marks the filesystem for deletion. When a filesystem is deleted, a filesystem with the same identifier cannot be created for at least 30 seconds. While the filesystem is being deleted, attempts to create a filesystem with the same identifier will fail with status code 409 (Conflict), with the service returning additional error information indicating that the filesystem is being deleted. All other operations, including operations on any files or directories within the filesystem, will fail with status code 404 (Not Found) while the filesystem is being deleted. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteWithRestResponseAsync(String filesystem, Context context) { + final String ifModifiedSince = null; + final String ifUnmodifiedSince = null; + final String resource = "filesystem"; + final String xMsClientRequestId = null; + final Integer timeout = null; + final String xMsDate = null; + return service.delete(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), ifModifiedSince, ifUnmodifiedSince, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Delete Filesystem + * Marks the filesystem for deletion. When a filesystem is deleted, a filesystem with the same identifier cannot be created for at least 30 seconds. While the filesystem is being deleted, attempts to create a filesystem with the same identifier will fail with status code 409 (Conflict), with the service returning additional error information indicating that the filesystem is being deleted. All other operations, including operations on any files or directories within the filesystem, will fail with status code 404 (Not Found) while the filesystem is being deleted. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. + * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. + * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. + * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. + * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. + * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteWithRestResponseAsync(String filesystem, String ifModifiedSince, String ifUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { + final String resource = "filesystem"; + return service.delete(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), ifModifiedSince, ifUnmodifiedSince, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java new file mode 100644 index 000000000000..2e66949feb68 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java @@ -0,0 +1,530 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.implementation; + +import com.azure.core.implementation.RestProxy; +import com.azure.core.implementation.annotation.BodyParam; +import com.azure.core.implementation.annotation.Delete; +import com.azure.core.implementation.annotation.ExpectedResponses; +import com.azure.core.implementation.annotation.Get; +import com.azure.core.implementation.annotation.Head; +import com.azure.core.implementation.annotation.HeaderParam; +import com.azure.core.implementation.annotation.Host; +import com.azure.core.implementation.annotation.HostParam; +import com.azure.core.implementation.annotation.Patch; +import com.azure.core.implementation.annotation.PathParam; +import com.azure.core.implementation.annotation.Post; +import com.azure.core.implementation.annotation.Put; +import com.azure.core.implementation.annotation.QueryParam; +import com.azure.core.implementation.annotation.ReturnType; +import com.azure.core.implementation.annotation.ServiceInterface; +import com.azure.core.implementation.annotation.ServiceMethod; +import com.azure.core.implementation.annotation.UnexpectedResponseExceptionType; +import com.azure.core.util.Context; +import com.azure.storage.file.datalake.models.DataLakeStorageErrorException; +import com.azure.storage.file.datalake.models.PathGetPropertiesAction; +import com.azure.storage.file.datalake.models.PathLeaseAction; +import com.azure.storage.file.datalake.models.PathRenameMode; +import com.azure.storage.file.datalake.models.PathResourceType; +import com.azure.storage.file.datalake.models.PathsCreateResponse; +import com.azure.storage.file.datalake.models.PathsDeleteResponse; +import com.azure.storage.file.datalake.models.PathsGetPropertiesResponse; +import com.azure.storage.file.datalake.models.PathsLeaseResponse; +import com.azure.storage.file.datalake.models.PathsListResponse; +import com.azure.storage.file.datalake.models.PathsReadResponse; +import com.azure.storage.file.datalake.models.PathsUpdateResponse; +import com.azure.storage.file.datalake.models.PathUpdateAction; +import io.netty.buffer.ByteBuf; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * Paths. + */ +public final class PathsImpl { + /** + * The proxy service used to perform REST calls. + */ + private PathsService service; + + /** + * The service client containing this operation class. + */ + private DataLakeStorageClientImpl client; + + /** + * Initializes an instance of PathsImpl. + * + * @param client the instance of the service client containing this operation class. + */ + public PathsImpl(DataLakeStorageClientImpl client) { + this.service = RestProxy.create(PathsService.class, client.getHttpPipeline()); + this.client = client; + } + + /** + * The interface defining all the services for DataLakeStorageClientPaths + * to be used by the proxy service to perform REST calls. + */ + @Host("http://{accountName}.{dnsSuffix}") + @ServiceInterface(name = "DataLakeStorageClientPaths") + private interface PathsService { + @Get("{filesystem}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) + Mono list(@PathParam("filesystem") String filesystem, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("directory") String directory, @QueryParam("recursive") boolean recursive, @QueryParam("continuation") String continuation, @QueryParam("maxResults") Integer maxResults, @QueryParam("upn") Boolean upn, @QueryParam("resource") String resource, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + + @Put("{filesystem}/{path}") + @ExpectedResponses({201}) + @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) + Mono create(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("resource") PathResourceType resource, @QueryParam("continuation") String continuation, @QueryParam("mode") PathRenameMode mode, @HeaderParam("Cache-Control") String cacheControl, @HeaderParam("Content-Encoding") String contentEncoding, @HeaderParam("Content-Language") String contentLanguage, @HeaderParam("Content-Disposition") String contentDisposition, @HeaderParam("x-ms-cache-control") String xMsCacheControl, @HeaderParam("x-ms-content-type") String xMsContentType, @HeaderParam("x-ms-content-encoding") String xMsContentEncoding, @HeaderParam("x-ms-content-language") String xMsContentLanguage, @HeaderParam("x-ms-content-disposition") String xMsContentDisposition, @HeaderParam("x-ms-rename-source") String xMsRenameSource, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("x-ms-source-lease-id") String xMsSourceLeaseId, @HeaderParam("x-ms-properties") String xMsProperties, @HeaderParam("x-ms-permissions") String xMsPermissions, @HeaderParam("x-ms-umask") String xMsUmask, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @HeaderParam("x-ms-source-if-match") String xMsSourceIfMatch, @HeaderParam("x-ms-source-if-none-match") String xMsSourceIfNoneMatch, @HeaderParam("x-ms-source-if-modified-since") String xMsSourceIfModifiedSince, @HeaderParam("x-ms-source-if-unmodified-since") String xMsSourceIfUnmodifiedSince, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + + @Patch("{filesystem}/{path}") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) + Mono update(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("action") PathUpdateAction action, @QueryParam("position") Long position, @QueryParam("retainUncommittedData") Boolean retainUncommittedData, @QueryParam("close") Boolean close, @HeaderParam("Content-Length") Long contentLength, @HeaderParam("Content-MD5") String contentMD5, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("x-ms-cache-control") String xMsCacheControl, @HeaderParam("x-ms-content-type") String xMsContentType, @HeaderParam("x-ms-content-disposition") String xMsContentDisposition, @HeaderParam("x-ms-content-encoding") String xMsContentEncoding, @HeaderParam("x-ms-content-language") String xMsContentLanguage, @HeaderParam("x-ms-content-md5") String xMsContentMd5, @HeaderParam("x-ms-properties") String xMsProperties, @HeaderParam("x-ms-owner") String xMsOwner, @HeaderParam("x-ms-group") String xMsGroup, @HeaderParam("x-ms-permissions") String xMsPermissions, @HeaderParam("x-ms-acl") String xMsAcl, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @BodyParam("application/octet-stream") Flux requestBody, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + + @Post("{filesystem}/{path}") + @ExpectedResponses({200, 201, 202}) + @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) + Mono lease(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @HeaderParam("x-ms-lease-action") PathLeaseAction xMsLeaseAction, @HeaderParam("x-ms-lease-duration") Integer xMsLeaseDuration, @HeaderParam("x-ms-lease-break-period") Integer xMsLeaseBreakPeriod, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("x-ms-proposed-lease-id") String xMsProposedLeaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + + @Get("{filesystem}/{path}") + @ExpectedResponses({200, 206}) + @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) + Mono read(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @HeaderParam("Range") String range, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("x-ms-range-get-content-md5") Boolean xMsRangeGetContentMd5, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + + @Head("{filesystem}/{path}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) + Mono getProperties(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("action") PathGetPropertiesAction action, @QueryParam("upn") Boolean upn, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + + @Delete("{filesystem}/{path}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) + Mono delete(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("recursive") Boolean recursive, @QueryParam("continuation") String continuation, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + } + + /** + * List Paths + * List filesystem paths and their properties. + * + * @param recursive If "true", all paths are listed; otherwise, only paths at the root of the filesystem are listed. If "directory" is specified, the list will only include paths that share the same root. + * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listWithRestResponseAsync(boolean recursive, String filesystem, Context context) { + final String directory = null; + final String continuation = null; + final Integer maxResults = null; + final Boolean upn = null; + final String resource = "filesystem"; + final String xMsClientRequestId = null; + final Integer timeout = null; + final String xMsDate = null; + return service.list(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), directory, recursive, continuation, maxResults, upn, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * List Paths + * List filesystem paths and their properties. + * + * @param recursive If "true", all paths are listed; otherwise, only paths at the root of the filesystem are listed. If "directory" is specified, the list will only include paths that share the same root. + * @param filesystem The filesystem identifier. The value must start and end with a letter or number and must contain only letters, numbers, and the dash (-) character. Consecutive dashes are not permitted. All letters must be lowercase. The value must have between 3 and 63 characters. + * @param directory Filters results to paths within the specified directory. An error occurs if the directory does not exist. + * @param continuation The number of paths returned with each invocation is limited. If the number of paths to be returned exceeds this limit, a continuation token is returned in the response header x-ms-continuation. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the list operation to continue listing the paths. + * @param maxResults An optional value that specifies the maximum number of items to return. If omitted or greater than 5,000, the response will include up to 5,000 items. + * @param upn Optional. Valid only when Hierarchical Namespace is enabled for the account. If "true", the user identity values returned in the owner and group fields of each list entry will be transformed from Azure Active Directory Object IDs to User Principal Names. If "false", the values will be returned as Azure Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not translated because they do not have unique friendly names. + * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. + * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. + * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listWithRestResponseAsync(boolean recursive, String filesystem, String directory, String continuation, Integer maxResults, Boolean upn, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { + final String resource = "filesystem"; + return service.list(filesystem, this.client.getAccountName(), this.client.getDnsSuffix(), directory, recursive, continuation, maxResults, upn, resource, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Create File | Create Directory | Rename File | Rename Directory + * Create or rename a file or directory. By default, the destination is overwritten and if the destination already exists and has a lease the lease is broken. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). To fail if the destination already exists, use a conditional request with If-None-Match: "*". + * + * @param filesystem The filesystem identifier. + * @param path The file or directory path. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createWithRestResponseAsync(String filesystem, String path, Context context) { + final PathResourceType resource = null; + final String continuation = null; + final PathRenameMode mode = null; + final String cacheControl = null; + final String contentEncoding = null; + final String contentLanguage = null; + final String contentDisposition = null; + final String xMsCacheControl = null; + final String xMsContentType = null; + final String xMsContentEncoding = null; + final String xMsContentLanguage = null; + final String xMsContentDisposition = null; + final String xMsRenameSource = null; + final String xMsLeaseId = null; + final String xMsSourceLeaseId = null; + final String xMsProperties = null; + final String xMsPermissions = null; + final String xMsUmask = null; + final String ifMatch = null; + final String ifNoneMatch = null; + final String ifModifiedSince = null; + final String ifUnmodifiedSince = null; + final String xMsSourceIfMatch = null; + final String xMsSourceIfNoneMatch = null; + final String xMsSourceIfModifiedSince = null; + final String xMsSourceIfUnmodifiedSince = null; + final String xMsClientRequestId = null; + final Integer timeout = null; + final String xMsDate = null; + return service.create(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), resource, continuation, mode, cacheControl, contentEncoding, contentLanguage, contentDisposition, xMsCacheControl, xMsContentType, xMsContentEncoding, xMsContentLanguage, xMsContentDisposition, xMsRenameSource, xMsLeaseId, xMsSourceLeaseId, xMsProperties, xMsPermissions, xMsUmask, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsSourceIfMatch, xMsSourceIfNoneMatch, xMsSourceIfModifiedSince, xMsSourceIfUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Create File | Create Directory | Rename File | Rename Directory + * Create or rename a file or directory. By default, the destination is overwritten and if the destination already exists and has a lease the lease is broken. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). To fail if the destination already exists, use a conditional request with If-None-Match: "*". + * + * @param filesystem The filesystem identifier. + * @param path The file or directory path. + * @param resource Required only for Create File and Create Directory. The value must be "file" or "directory". Possible values include: 'directory', 'file'. + * @param continuation Optional. When renaming a directory, the number of paths that are renamed with each invocation is limited. If the number of paths to be renamed exceeds this limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the rename operation to continue renaming the directory. + * @param mode Optional. Valid only when namespace is enabled. This parameter determines the behavior of the rename operation. The value must be "legacy" or "posix", and the default value will be "posix". Possible values include: 'legacy', 'posix'. + * @param cacheControl Optional. The service stores this value and includes it in the "Cache-Control" response header for "Read File" operations for "Read File" operations. + * @param contentEncoding Optional. Specifies which content encodings have been applied to the file. This value is returned to the client when the "Read File" operation is performed. + * @param contentLanguage Optional. Specifies the natural language used by the intended audience for the file. + * @param contentDisposition Optional. The service stores this value and includes it in the "Content-Disposition" response header for "Read File" operations. + * @param xMsCacheControl Optional. The service stores this value and includes it in the "Cache-Control" response header for "Read File" operations. + * @param xMsContentType Optional. The service stores this value and includes it in the "Content-Type" response header for "Read File" operations. + * @param xMsContentEncoding Optional. The service stores this value and includes it in the "Content-Encoding" response header for "Read File" operations. + * @param xMsContentLanguage Optional. The service stores this value and includes it in the "Content-Language" response header for "Read File" operations. + * @param xMsContentDisposition Optional. The service stores this value and includes it in the "Content-Disposition" response header for "Read File" operations. + * @param xMsRenameSource An optional file or directory to be renamed. The value must have the following format: "/{filesystem}/{path}". If "x-ms-properties" is specified, the properties will overwrite the existing properties; otherwise, the existing properties will be preserved. This value must be a URL percent-encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. + * @param xMsLeaseId Optional. A lease ID for the path specified in the URI. The path to be overwritten must have an active lease and the lease ID must match. + * @param xMsSourceLeaseId Optional for rename operations. A lease ID for the source path. The source path must have an active lease and the lease ID must match. + * @param xMsProperties Optional. User-defined properties to be stored with the file or directory, in the format of a comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. + * @param xMsPermissions Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported. + * @param xMsUmask Optional and only valid if Hierarchical Namespace is enabled for the account. When creating a file or directory and the parent folder does not have a default ACL, the umask restricts the permissions of the file or directory to be created. The resulting permission is given by p & ^u, where p is the permission and u is the umask. For example, if p is 0777 and u is 0057, then the resulting permission is 0720. The default permission is 0777 for a directory and 0666 for a file. The default umask is 0027. The umask must be specified in 4-digit octal notation (e.g. 0766). + * @param ifMatch Optional. An ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified. The ETag must be specified in quotes. + * @param ifNoneMatch Optional. An ETag value or the special wildcard ("*") value. Specify this header to perform the operation only if the resource's ETag does not match the value specified. The ETag must be specified in quotes. + * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. + * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. + * @param xMsSourceIfMatch Optional. An ETag value. Specify this header to perform the rename operation only if the source's ETag matches the value specified. The ETag must be specified in quotes. + * @param xMsSourceIfNoneMatch Optional. An ETag value or the special wildcard ("*") value. Specify this header to perform the rename operation only if the source's ETag does not match the value specified. The ETag must be specified in quotes. + * @param xMsSourceIfModifiedSince Optional. A date and time value. Specify this header to perform the rename operation only if the source has been modified since the specified date and time. + * @param xMsSourceIfUnmodifiedSince Optional. A date and time value. Specify this header to perform the rename operation only if the source has not been modified since the specified date and time. + * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. + * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. + * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createWithRestResponseAsync(String filesystem, String path, PathResourceType resource, String continuation, PathRenameMode mode, String cacheControl, String contentEncoding, String contentLanguage, String contentDisposition, String xMsCacheControl, String xMsContentType, String xMsContentEncoding, String xMsContentLanguage, String xMsContentDisposition, String xMsRenameSource, String xMsLeaseId, String xMsSourceLeaseId, String xMsProperties, String xMsPermissions, String xMsUmask, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, String xMsSourceIfMatch, String xMsSourceIfNoneMatch, String xMsSourceIfModifiedSince, String xMsSourceIfUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { + return service.create(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), resource, continuation, mode, cacheControl, contentEncoding, contentLanguage, contentDisposition, xMsCacheControl, xMsContentType, xMsContentEncoding, xMsContentLanguage, xMsContentDisposition, xMsRenameSource, xMsLeaseId, xMsSourceLeaseId, xMsProperties, xMsPermissions, xMsUmask, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsSourceIfMatch, xMsSourceIfNoneMatch, xMsSourceIfModifiedSince, xMsSourceIfUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Append Data | Flush Data | Set Properties | Set Access Control + * Uploads data to be appended to a file, flushes (writes) previously uploaded data to a file, sets properties for a file or directory, or sets access control for a file or directory. Data can only be appended to a file. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param action The action must be "append" to upload data to be appended to a file, "flush" to flush previously uploaded data to a file, "setProperties" to set the properties of a file or directory, or "setAccessControl" to set the owner, group, permissions, or access control list for a file or directory. Note that Hierarchical Namespace must be enabled for the account in order to use access control. Also note that the Access Control List (ACL) includes permissions for the owner, owning group, and others, so the x-ms-permissions and x-ms-acl request headers are mutually exclusive. Possible values include: 'append', 'flush', 'setProperties', 'setAccessControl'. + * @param filesystem The filesystem identifier. + * @param path The file or directory path. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateWithRestResponseAsync(PathUpdateAction action, String filesystem, String path, Context context) { + final Long position = null; + final Boolean retainUncommittedData = null; + final Boolean close = null; + final Long contentLength = null; + final String contentMD5 = null; + final String xMsLeaseId = null; + final String xMsCacheControl = null; + final String xMsContentType = null; + final String xMsContentDisposition = null; + final String xMsContentEncoding = null; + final String xMsContentLanguage = null; + final String xMsContentMd5 = null; + final String xMsProperties = null; + final String xMsOwner = null; + final String xMsGroup = null; + final String xMsPermissions = null; + final String xMsAcl = null; + final String ifMatch = null; + final String ifNoneMatch = null; + final String ifModifiedSince = null; + final String ifUnmodifiedSince = null; + final Flux requestBody = null; + final String xMsClientRequestId = null; + final Integer timeout = null; + final String xMsDate = null; + return service.update(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), action, position, retainUncommittedData, close, contentLength, contentMD5, xMsLeaseId, xMsCacheControl, xMsContentType, xMsContentDisposition, xMsContentEncoding, xMsContentLanguage, xMsContentMd5, xMsProperties, xMsOwner, xMsGroup, xMsPermissions, xMsAcl, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, requestBody, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Append Data | Flush Data | Set Properties | Set Access Control + * Uploads data to be appended to a file, flushes (writes) previously uploaded data to a file, sets properties for a file or directory, or sets access control for a file or directory. Data can only be appended to a file. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param action The action must be "append" to upload data to be appended to a file, "flush" to flush previously uploaded data to a file, "setProperties" to set the properties of a file or directory, or "setAccessControl" to set the owner, group, permissions, or access control list for a file or directory. Note that Hierarchical Namespace must be enabled for the account in order to use access control. Also note that the Access Control List (ACL) includes permissions for the owner, owning group, and others, so the x-ms-permissions and x-ms-acl request headers are mutually exclusive. Possible values include: 'append', 'flush', 'setProperties', 'setAccessControl'. + * @param filesystem The filesystem identifier. + * @param path The file or directory path. + * @param position This parameter allows the caller to upload data in parallel and control the order in which it is appended to the file. It is required when uploading data to be appended to the file and when flushing previously uploaded data to the file. The value must be the position where the data is to be appended. Uploaded data is not immediately flushed, or written, to the file. To flush, the previously uploaded data must be contiguous, the position parameter must be specified and equal to the length of the file after all data has been written, and there must not be a request entity body included with the request. + * @param retainUncommittedData Valid only for flush operations. If "true", uncommitted data is retained after the flush operation completes; otherwise, the uncommitted data is deleted after the flush operation. The default is false. Data at offsets less than the specified position are written to the file when flush succeeds, but this optional parameter allows data after the flush position to be retained for a future flush operation. + * @param close Azure Storage Events allow applications to receive notifications when files change. When Azure Storage Events are enabled, a file changed event is raised. This event has a property indicating whether this is the final change to distinguish the difference between an intermediate flush to a file stream and the final close of a file stream. The close query parameter is valid only when the action is "flush" and change notifications are enabled. If the value of close is "true" and the flush operation completes successfully, the service raises a file change notification with a property indicating that this is the final update (the file stream has been closed). If "false" a change notification is raised indicating the file has changed. The default is false. This query parameter is set to true by the Hadoop ABFS driver to indicate that the file stream has been closed.". + * @param contentLength Required for "Append Data" and "Flush Data". Must be 0 for "Flush Data". Must be the length of the request content in bytes for "Append Data". + * @param contentMD5 Optional. An MD5 hash of the request content. This header is valid on "Append" and "Flush" operations. This hash is used to verify the integrity of the request content during transport. When this header is specified, the storage service compares the hash of the content that has arrived with this header value. If the two hashes do not match, the operation will fail with error code 400 (Bad Request). Note that this MD5 hash is not stored with the file. This header is associated with the request content, and not with the stored content of the file itself. + * @param xMsLeaseId The lease ID must be specified if there is an active lease. + * @param xMsCacheControl Optional and only valid for flush and set properties operations. The service stores this value and includes it in the "Cache-Control" response header for "Read File" operations. + * @param xMsContentType Optional and only valid for flush and set properties operations. The service stores this value and includes it in the "Content-Type" response header for "Read File" operations. + * @param xMsContentDisposition Optional and only valid for flush and set properties operations. The service stores this value and includes it in the "Content-Disposition" response header for "Read File" operations. + * @param xMsContentEncoding Optional and only valid for flush and set properties operations. The service stores this value and includes it in the "Content-Encoding" response header for "Read File" operations. + * @param xMsContentLanguage Optional and only valid for flush and set properties operations. The service stores this value and includes it in the "Content-Language" response header for "Read File" operations. + * @param xMsContentMd5 Optional and only valid for "Flush & Set Properties" operations. The service stores this value and includes it in the "Content-Md5" response header for "Read & Get Properties" operations. If this property is not specified on the request, then the property will be cleared for the file. Subsequent calls to "Read & Get Properties" will not return this property unless it is explicitly set on that file again. + * @param xMsProperties Optional. User-defined properties to be stored with the file or directory, in the format of a comma-separated list of name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. Valid only for the setProperties operation. If the file or directory exists, any properties not included in the list will be removed. All properties are removed if the header is omitted. To merge new and existing properties, first get all existing properties and the current E-Tag, then make a conditional request with the E-Tag and include values for all properties. + * @param xMsOwner Optional and valid only for the setAccessControl operation. Sets the owner of the file or directory. + * @param xMsGroup Optional and valid only for the setAccessControl operation. Sets the owning group of the file or directory. + * @param xMsPermissions Optional and only valid if Hierarchical Namespace is enabled for the account. Sets POSIX access permissions for the file owner, the file owning group, and others. Each class may be granted read, write, or execute permission. The sticky bit is also supported. Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported. Invalid in conjunction with x-ms-acl. + * @param xMsAcl Optional and valid only for the setAccessControl operation. Sets POSIX access control rights on files and directories. The value is a comma-separated list of access control entries that fully replaces the existing access control list (ACL). Each access control entry (ACE) consists of a scope, a type, a user or group identifier, and permissions in the format "[scope:][type]:[id]:[permissions]". The scope must be "default" to indicate the ACE belongs to the default ACL for a directory; otherwise scope is implicit and the ACE belongs to the access ACL. There are four ACE types: "user" grants rights to the owner or a named user, "group" grants rights to the owning group or a named group, "mask" restricts rights granted to named users and the members of groups, and "other" grants rights to all users not found in any of the other entries. The user or group identifier is omitted for entries of type "mask" and "other". The user or group identifier is also omitted for the owner and owning group. The permission field is a 3-character sequence where the first character is 'r' to grant read access, the second character is 'w' to grant write access, and the third character is 'x' to grant execute permission. If access is not granted, the '-' character is used to denote that the permission is denied. For example, the following ACL grants read, write, and execute rights to the file owner and john.doe@contoso, the read right to the owning group, and nothing to everyone else: "user::rwx,user:john.doe@contoso:rwx,group::r--,other::---,mask=rwx". Invalid in conjunction with x-ms-permissions. + * @param ifMatch Optional for Flush Data and Set Properties, but invalid for Append Data. An ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified. The ETag must be specified in quotes. + * @param ifNoneMatch Optional for Flush Data and Set Properties, but invalid for Append Data. An ETag value or the special wildcard ("*") value. Specify this header to perform the operation only if the resource's ETag does not match the value specified. The ETag must be specified in quotes. + * @param ifModifiedSince Optional for Flush Data and Set Properties, but invalid for Append Data. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. + * @param ifUnmodifiedSince Optional for Flush Data and Set Properties, but invalid for Append Data. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. + * @param requestBody Valid only for append operations. The data to be uploaded and appended to the file. + * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. + * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. + * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateWithRestResponseAsync(PathUpdateAction action, String filesystem, String path, Long position, Boolean retainUncommittedData, Boolean close, Long contentLength, String contentMD5, String xMsLeaseId, String xMsCacheControl, String xMsContentType, String xMsContentDisposition, String xMsContentEncoding, String xMsContentLanguage, String xMsContentMd5, String xMsProperties, String xMsOwner, String xMsGroup, String xMsPermissions, String xMsAcl, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, Flux requestBody, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { + return service.update(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), action, position, retainUncommittedData, close, contentLength, contentMD5, xMsLeaseId, xMsCacheControl, xMsContentType, xMsContentDisposition, xMsContentEncoding, xMsContentLanguage, xMsContentMd5, xMsProperties, xMsOwner, xMsGroup, xMsPermissions, xMsAcl, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, requestBody, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Lease Path + * Create and manage a lease to restrict write and delete access to the path. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param xMsLeaseAction There are five lease actions: "acquire", "break", "change", "renew", and "release". Use "acquire" and specify the "x-ms-proposed-lease-id" and "x-ms-lease-duration" to acquire a new lease. Use "break" to break an existing lease. When a lease is broken, the lease break period is allowed to elapse, during which time no lease operation except break and release can be performed on the file. When a lease is successfully broken, the response indicates the interval in seconds until a new lease can be acquired. Use "change" and specify the current lease ID in "x-ms-lease-id" and the new lease ID in "x-ms-proposed-lease-id" to change the lease ID of an active lease. Use "renew" and specify the "x-ms-lease-id" to renew an existing lease. Use "release" and specify the "x-ms-lease-id" to release a lease. Possible values include: 'acquire', 'break', 'change', 'renew', 'release'. + * @param filesystem The filesystem identifier. + * @param path The file or directory path. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono leaseWithRestResponseAsync(PathLeaseAction xMsLeaseAction, String filesystem, String path, Context context) { + final Integer xMsLeaseDuration = null; + final Integer xMsLeaseBreakPeriod = null; + final String xMsLeaseId = null; + final String xMsProposedLeaseId = null; + final String ifMatch = null; + final String ifNoneMatch = null; + final String ifModifiedSince = null; + final String ifUnmodifiedSince = null; + final String xMsClientRequestId = null; + final Integer timeout = null; + final String xMsDate = null; + return service.lease(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), xMsLeaseAction, xMsLeaseDuration, xMsLeaseBreakPeriod, xMsLeaseId, xMsProposedLeaseId, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Lease Path + * Create and manage a lease to restrict write and delete access to the path. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param xMsLeaseAction There are five lease actions: "acquire", "break", "change", "renew", and "release". Use "acquire" and specify the "x-ms-proposed-lease-id" and "x-ms-lease-duration" to acquire a new lease. Use "break" to break an existing lease. When a lease is broken, the lease break period is allowed to elapse, during which time no lease operation except break and release can be performed on the file. When a lease is successfully broken, the response indicates the interval in seconds until a new lease can be acquired. Use "change" and specify the current lease ID in "x-ms-lease-id" and the new lease ID in "x-ms-proposed-lease-id" to change the lease ID of an active lease. Use "renew" and specify the "x-ms-lease-id" to renew an existing lease. Use "release" and specify the "x-ms-lease-id" to release a lease. Possible values include: 'acquire', 'break', 'change', 'renew', 'release'. + * @param filesystem The filesystem identifier. + * @param path The file or directory path. + * @param xMsLeaseDuration The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease. + * @param xMsLeaseBreakPeriod The lease break period duration is optional to break a lease, and specifies the break period of the lease in seconds. The lease break duration must be between 0 and 60 seconds. + * @param xMsLeaseId Required when "x-ms-lease-action" is "renew", "change" or "release". For the renew and release actions, this must match the current lease ID. + * @param xMsProposedLeaseId Required when "x-ms-lease-action" is "acquire" or "change". A lease will be acquired with this lease ID if the operation is successful. + * @param ifMatch Optional. An ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified. The ETag must be specified in quotes. + * @param ifNoneMatch Optional. An ETag value or the special wildcard ("*") value. Specify this header to perform the operation only if the resource's ETag does not match the value specified. The ETag must be specified in quotes. + * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. + * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. + * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. + * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. + * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono leaseWithRestResponseAsync(PathLeaseAction xMsLeaseAction, String filesystem, String path, Integer xMsLeaseDuration, Integer xMsLeaseBreakPeriod, String xMsLeaseId, String xMsProposedLeaseId, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { + return service.lease(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), xMsLeaseAction, xMsLeaseDuration, xMsLeaseBreakPeriod, xMsLeaseId, xMsProposedLeaseId, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Read File + * Read the contents of a file. For read operations, range requests are supported. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param filesystem The filesystem identifier. + * @param path The file or directory path. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono readWithRestResponseAsync(String filesystem, String path, Context context) { + final String range = null; + final String xMsLeaseId = null; + final Boolean xMsRangeGetContentMd5 = null; + final String ifMatch = null; + final String ifNoneMatch = null; + final String ifModifiedSince = null; + final String ifUnmodifiedSince = null; + final String xMsClientRequestId = null; + final Integer timeout = null; + final String xMsDate = null; + return service.read(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), range, xMsLeaseId, xMsRangeGetContentMd5, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Read File + * Read the contents of a file. For read operations, range requests are supported. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param filesystem The filesystem identifier. + * @param path The file or directory path. + * @param range The HTTP Range request header specifies one or more byte ranges of the resource to be retrieved. + * @param xMsLeaseId Optional. If this header is specified, the operation will be performed only if both of the following conditions are met: i) the path's lease is currently active and ii) the lease ID specified in the request matches that of the path. + * @param xMsRangeGetContentMd5 Optional. When this header is set to "true" and specified together with the Range header, the service returns the MD5 hash for the range, as long as the range is less than or equal to 4MB in size. If this header is specified without the Range header, the service returns status code 400 (Bad Request). If this header is set to true when the range exceeds 4 MB in size, the service returns status code 400 (Bad Request). + * @param ifMatch Optional. An ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified. The ETag must be specified in quotes. + * @param ifNoneMatch Optional. An ETag value or the special wildcard ("*") value. Specify this header to perform the operation only if the resource's ETag does not match the value specified. The ETag must be specified in quotes. + * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. + * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. + * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. + * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. + * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono readWithRestResponseAsync(String filesystem, String path, String range, String xMsLeaseId, Boolean xMsRangeGetContentMd5, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { + return service.read(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), range, xMsLeaseId, xMsRangeGetContentMd5, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Get Properties | Get Status | Get Access Control List + * Get Properties returns all system and user defined properties for a path. Get Status returns all system defined properties for a path. Get Access Control List returns the access control list for a path. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param filesystem The filesystem identifier. + * @param path The file or directory path. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getPropertiesWithRestResponseAsync(String filesystem, String path, Context context) { + final PathGetPropertiesAction action = null; + final Boolean upn = null; + final String xMsLeaseId = null; + final String ifMatch = null; + final String ifNoneMatch = null; + final String ifModifiedSince = null; + final String ifUnmodifiedSince = null; + final String xMsClientRequestId = null; + final Integer timeout = null; + final String xMsDate = null; + return service.getProperties(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), action, upn, xMsLeaseId, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Get Properties | Get Status | Get Access Control List + * Get Properties returns all system and user defined properties for a path. Get Status returns all system defined properties for a path. Get Access Control List returns the access control list for a path. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param filesystem The filesystem identifier. + * @param path The file or directory path. + * @param action Optional. If the value is "getStatus" only the system defined properties for the path are returned. If the value is "getAccessControl" the access control list is returned in the response headers (Hierarchical Namespace must be enabled for the account), otherwise the properties are returned. Possible values include: 'getAccessControl', 'getStatus'. + * @param upn Optional. Valid only when Hierarchical Namespace is enabled for the account. If "true", the user identity values returned in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User Principal Names. If "false", the values will be returned as Azure Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not translated because they do not have unique friendly names. + * @param xMsLeaseId Optional. If this header is specified, the operation will be performed only if both of the following conditions are met: i) the path's lease is currently active and ii) the lease ID specified in the request matches that of the path. + * @param ifMatch Optional. An ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified. The ETag must be specified in quotes. + * @param ifNoneMatch Optional. An ETag value or the special wildcard ("*") value. Specify this header to perform the operation only if the resource's ETag does not match the value specified. The ETag must be specified in quotes. + * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. + * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. + * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. + * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. + * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getPropertiesWithRestResponseAsync(String filesystem, String path, PathGetPropertiesAction action, Boolean upn, String xMsLeaseId, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { + return service.getProperties(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), action, upn, xMsLeaseId, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Delete File | Delete Directory + * Delete the file or directory. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param filesystem The filesystem identifier. + * @param path The file or directory path. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteWithRestResponseAsync(String filesystem, String path, Context context) { + final Boolean recursive = null; + final String continuation = null; + final String xMsLeaseId = null; + final String ifMatch = null; + final String ifNoneMatch = null; + final String ifModifiedSince = null; + final String ifUnmodifiedSince = null; + final String xMsClientRequestId = null; + final Integer timeout = null; + final String xMsDate = null; + return service.delete(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), recursive, continuation, xMsLeaseId, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } + + /** + * Delete File | Delete Directory + * Delete the file or directory. This operation supports conditional HTTP requests. For more information, see [Specifying Conditional Headers for Blob Service Operations](https://docs.microsoft.com/en-us/rest/api/storageservices/specifying-conditional-headers-for-blob-service-operations). + * + * @param filesystem The filesystem identifier. + * @param path The file or directory path. + * @param recursive Required and valid only when the resource is a directory. If "true", all paths beneath the directory will be deleted. If "false" and the directory is non-empty, an error occurs. + * @param continuation Optional. When deleting a directory, the number of paths that are deleted with each invocation is limited. If the number of paths to be deleted exceeds this limit, a continuation token is returned in this response header. When a continuation token is returned in the response, it must be specified in a subsequent invocation of the delete operation to continue deleting the directory. + * @param xMsLeaseId The lease ID must be specified if there is an active lease. + * @param ifMatch Optional. An ETag value. Specify this header to perform the operation only if the resource's ETag matches the value specified. The ETag must be specified in quotes. + * @param ifNoneMatch Optional. An ETag value or the special wildcard ("*") value. Specify this header to perform the operation only if the resource's ETag does not match the value specified. The ETag must be specified in quotes. + * @param ifModifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has been modified since the specified date and time. + * @param ifUnmodifiedSince Optional. A date and time value. Specify this header to perform the operation only if the resource has not been modified since the specified date and time. + * @param xMsClientRequestId A UUID recorded in the analytics logs for troubleshooting and correlation. + * @param timeout An optional operation timeout value in seconds. The period begins when the request is received by the service. If the timeout value elapses before the operation completes, the operation fails. + * @param xMsDate Specifies the Coordinated Universal Time (UTC) for the request. This is required when using shared key authorization. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @return a Mono which performs the network request upon subscription. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono deleteWithRestResponseAsync(String filesystem, String path, Boolean recursive, String continuation, String xMsLeaseId, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { + return service.delete(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), recursive, continuation, xMsLeaseId, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/package-info.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/package-info.java new file mode 100644 index 000000000000..27df243a9213 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/package-info.java @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** + * Package containing the implementations and inner classes for + * DataLakeStorageClient. + * Azure Data Lake Storage provides storage for Hadoop and other big data + * workloads. + */ +package com.azure.storage.file.datalake.implementation; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageError.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageError.java new file mode 100644 index 000000000000..f6f161de65c1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageError.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The DataLakeStorageError model. + */ +@Fluent +public final class DataLakeStorageError { + /* + * The service error response object. + */ + @JsonProperty(value = "error") + private DataLakeStorageErrorError error; + + /** + * Get the error property: The service error response object. + * + * @return the error value. + */ + public DataLakeStorageErrorError error() { + return this.error; + } + + /** + * Set the error property: The service error response object. + * + * @param error the error value to set. + * @return the DataLakeStorageError object itself. + */ + public DataLakeStorageError error(DataLakeStorageErrorError error) { + this.error = error; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorError.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorError.java new file mode 100644 index 000000000000..e9fca4415623 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorError.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The service error response object. + */ +@Fluent +public final class DataLakeStorageErrorError { + /* + * The service error code. + */ + @JsonProperty(value = "code") + private String code; + + /* + * The service error message. + */ + @JsonProperty(value = "message") + private String message; + + /** + * Get the code property: The service error code. + * + * @return the code value. + */ + public String code() { + return this.code; + } + + /** + * Set the code property: The service error code. + * + * @param code the code value to set. + * @return the DataLakeStorageErrorError object itself. + */ + public DataLakeStorageErrorError code(String code) { + this.code = code; + return this; + } + + /** + * Get the message property: The service error message. + * + * @return the message value. + */ + public String message() { + return this.message; + } + + /** + * Set the message property: The service error message. + * + * @param message the message value to set. + * @return the DataLakeStorageErrorError object itself. + */ + public DataLakeStorageErrorError message(String message) { + this.message = message; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorException.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorException.java new file mode 100644 index 000000000000..5769dbff7ae2 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorException.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.exception.HttpResponseException; +import com.azure.core.http.HttpResponse; + +/** + * Exception thrown for an invalid response with DataLakeStorageError information. + */ +public final class DataLakeStorageErrorException extends HttpResponseException { + /** + * Initializes a new instance of the DataLakeStorageErrorException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + */ + public DataLakeStorageErrorException(String message, HttpResponse response) { + super(message, response); + } + + /** + * Initializes a new instance of the DataLakeStorageErrorException class. + * + * @param message the exception message or the response content if a message is not available. + * @param response the HTTP response. + * @param value the deserialized response value. + */ + public DataLakeStorageErrorException(String message, HttpResponse response, DataLakeStorageError value) { + super(message, response, value); + } + + @Override + public DataLakeStorageError value() { + return (DataLakeStorageError) super.value(); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Filesystem.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Filesystem.java new file mode 100644 index 000000000000..c7f90b4b1f4a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Filesystem.java @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Filesystem model. + */ +@Fluent +public final class Filesystem { + /* + * The name property. + */ + @JsonProperty(value = "name") + private String name; + + /* + * The lastModified property. + */ + @JsonProperty(value = "lastModified") + private String lastModified; + + /* + * The eTag property. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /** + * Get the name property: The name property. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name property. + * + * @param name the name value to set. + * @return the Filesystem object itself. + */ + public Filesystem name(String name) { + this.name = name; + return this; + } + + /** + * Get the lastModified property: The lastModified property. + * + * @return the lastModified value. + */ + public String lastModified() { + return this.lastModified; + } + + /** + * Set the lastModified property: The lastModified property. + * + * @param lastModified the lastModified value to set. + * @return the Filesystem object itself. + */ + public Filesystem lastModified(String lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * Get the eTag property: The eTag property. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the eTag property: The eTag property. + * + * @param eTag the eTag value to set. + * @return the Filesystem object itself. + */ + public Filesystem eTag(String eTag) { + this.eTag = eTag; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemCreateHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemCreateHeaders.java new file mode 100644 index 000000000000..5de195699985 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemCreateHeaders.java @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for Create operation. + */ +@Fluent +public final class FilesystemCreateHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private String dateProperty; + + /* + * An HTTP entity tag associated with the filesystem. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /* + * The data and time the filesystem was last modified. Operations on files + * and directories do not affect the last modified time. + */ + @JsonProperty(value = "Last-Modified") + private String lastModified; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String xMsRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String xMsVersion; + + /* + * A bool string indicates whether the namespace feature is enabled. If + * "true", the namespace is enabled for the filesystem. + */ + @JsonProperty(value = "x-ms-namespace-enabled") + private String xMsNamespaceEnabled; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public String dateProperty() { + return this.dateProperty; + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the FilesystemCreateHeaders object itself. + */ + public FilesystemCreateHeaders dateProperty(String dateProperty) { + this.dateProperty = dateProperty; + return this; + } + + /** + * Get the eTag property: An HTTP entity tag associated with the + * filesystem. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the eTag property: An HTTP entity tag associated with the + * filesystem. + * + * @param eTag the eTag value to set. + * @return the FilesystemCreateHeaders object itself. + */ + public FilesystemCreateHeaders eTag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the lastModified property: The data and time the filesystem was last + * modified. Operations on files and directories do not affect the last + * modified time. + * + * @return the lastModified value. + */ + public String lastModified() { + return this.lastModified; + } + + /** + * Set the lastModified property: The data and time the filesystem was last + * modified. Operations on files and directories do not affect the last + * modified time. + * + * @param lastModified the lastModified value to set. + * @return the FilesystemCreateHeaders object itself. + */ + public FilesystemCreateHeaders lastModified(String lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * Get the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the xMsRequestId value. + */ + public String xMsRequestId() { + return this.xMsRequestId; + } + + /** + * Set the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param xMsRequestId the xMsRequestId value to set. + * @return the FilesystemCreateHeaders object itself. + */ + public FilesystemCreateHeaders xMsRequestId(String xMsRequestId) { + this.xMsRequestId = xMsRequestId; + return this; + } + + /** + * Get the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @return the xMsVersion value. + */ + public String xMsVersion() { + return this.xMsVersion; + } + + /** + * Set the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @param xMsVersion the xMsVersion value to set. + * @return the FilesystemCreateHeaders object itself. + */ + public FilesystemCreateHeaders xMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } + + /** + * Get the xMsNamespaceEnabled property: A bool string indicates whether + * the namespace feature is enabled. If "true", the namespace is enabled + * for the filesystem. + * + * @return the xMsNamespaceEnabled value. + */ + public String xMsNamespaceEnabled() { + return this.xMsNamespaceEnabled; + } + + /** + * Set the xMsNamespaceEnabled property: A bool string indicates whether + * the namespace feature is enabled. If "true", the namespace is enabled + * for the filesystem. + * + * @param xMsNamespaceEnabled the xMsNamespaceEnabled value to set. + * @return the FilesystemCreateHeaders object itself. + */ + public FilesystemCreateHeaders xMsNamespaceEnabled(String xMsNamespaceEnabled) { + this.xMsNamespaceEnabled = xMsNamespaceEnabled; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemDeleteHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemDeleteHeaders.java new file mode 100644 index 000000000000..688c618bd602 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemDeleteHeaders.java @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for Delete operation. + */ +@Fluent +public final class FilesystemDeleteHeaders { + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String xMsRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String xMsVersion; + + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private String dateProperty; + + /** + * Get the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the xMsRequestId value. + */ + public String xMsRequestId() { + return this.xMsRequestId; + } + + /** + * Set the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param xMsRequestId the xMsRequestId value to set. + * @return the FilesystemDeleteHeaders object itself. + */ + public FilesystemDeleteHeaders xMsRequestId(String xMsRequestId) { + this.xMsRequestId = xMsRequestId; + return this; + } + + /** + * Get the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @return the xMsVersion value. + */ + public String xMsVersion() { + return this.xMsVersion; + } + + /** + * Set the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @param xMsVersion the xMsVersion value to set. + * @return the FilesystemDeleteHeaders object itself. + */ + public FilesystemDeleteHeaders xMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public String dateProperty() { + return this.dateProperty; + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the FilesystemDeleteHeaders object itself. + */ + public FilesystemDeleteHeaders dateProperty(String dateProperty) { + this.dateProperty = dateProperty; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemGetPropertiesHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemGetPropertiesHeaders.java new file mode 100644 index 000000000000..5b55456ab9d3 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemGetPropertiesHeaders.java @@ -0,0 +1,233 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for GetProperties operation. + */ +@Fluent +public final class FilesystemGetPropertiesHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private String dateProperty; + + /* + * An HTTP entity tag associated with the filesystem. Changes to + * filesystem properties affect the entity tag, but operations on files and + * directories do not. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /* + * The data and time the filesystem was last modified. Changes to + * filesystem properties update the last modified time, but operations on + * files and directories do not. + */ + @JsonProperty(value = "Last-Modified") + private String lastModified; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String xMsRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String xMsVersion; + + /* + * The user-defined properties associated with the filesystem. A + * comma-separated list of name and value pairs in the format "n1=v1, + * n2=v2, ...", where each value is a base64 encoded string. Note that the + * string may only contain ASCII characters in the ISO-8859-1 character + * set. + */ + @JsonProperty(value = "x-ms-properties") + private String xMsProperties; + + /* + * A bool string indicates whether the namespace feature is enabled. If + * "true", the namespace is enabled for the filesystem. + */ + @JsonProperty(value = "x-ms-namespace-enabled") + private String xMsNamespaceEnabled; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public String dateProperty() { + return this.dateProperty; + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the FilesystemGetPropertiesHeaders object itself. + */ + public FilesystemGetPropertiesHeaders dateProperty(String dateProperty) { + this.dateProperty = dateProperty; + return this; + } + + /** + * Get the eTag property: An HTTP entity tag associated with the + * filesystem. Changes to filesystem properties affect the entity tag, but + * operations on files and directories do not. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the eTag property: An HTTP entity tag associated with the + * filesystem. Changes to filesystem properties affect the entity tag, but + * operations on files and directories do not. + * + * @param eTag the eTag value to set. + * @return the FilesystemGetPropertiesHeaders object itself. + */ + public FilesystemGetPropertiesHeaders eTag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the lastModified property: The data and time the filesystem was last + * modified. Changes to filesystem properties update the last modified + * time, but operations on files and directories do not. + * + * @return the lastModified value. + */ + public String lastModified() { + return this.lastModified; + } + + /** + * Set the lastModified property: The data and time the filesystem was last + * modified. Changes to filesystem properties update the last modified + * time, but operations on files and directories do not. + * + * @param lastModified the lastModified value to set. + * @return the FilesystemGetPropertiesHeaders object itself. + */ + public FilesystemGetPropertiesHeaders lastModified(String lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * Get the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the xMsRequestId value. + */ + public String xMsRequestId() { + return this.xMsRequestId; + } + + /** + * Set the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param xMsRequestId the xMsRequestId value to set. + * @return the FilesystemGetPropertiesHeaders object itself. + */ + public FilesystemGetPropertiesHeaders xMsRequestId(String xMsRequestId) { + this.xMsRequestId = xMsRequestId; + return this; + } + + /** + * Get the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @return the xMsVersion value. + */ + public String xMsVersion() { + return this.xMsVersion; + } + + /** + * Set the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @param xMsVersion the xMsVersion value to set. + * @return the FilesystemGetPropertiesHeaders object itself. + */ + public FilesystemGetPropertiesHeaders xMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } + + /** + * Get the xMsProperties property: The user-defined properties associated + * with the filesystem. A comma-separated list of name and value pairs in + * the format "n1=v1, n2=v2, ...", where each value is a base64 encoded + * string. Note that the string may only contain ASCII characters in the + * ISO-8859-1 character set. + * + * @return the xMsProperties value. + */ + public String xMsProperties() { + return this.xMsProperties; + } + + /** + * Set the xMsProperties property: The user-defined properties associated + * with the filesystem. A comma-separated list of name and value pairs in + * the format "n1=v1, n2=v2, ...", where each value is a base64 encoded + * string. Note that the string may only contain ASCII characters in the + * ISO-8859-1 character set. + * + * @param xMsProperties the xMsProperties value to set. + * @return the FilesystemGetPropertiesHeaders object itself. + */ + public FilesystemGetPropertiesHeaders xMsProperties(String xMsProperties) { + this.xMsProperties = xMsProperties; + return this; + } + + /** + * Get the xMsNamespaceEnabled property: A bool string indicates whether + * the namespace feature is enabled. If "true", the namespace is enabled + * for the filesystem. + * + * @return the xMsNamespaceEnabled value. + */ + public String xMsNamespaceEnabled() { + return this.xMsNamespaceEnabled; + } + + /** + * Set the xMsNamespaceEnabled property: A bool string indicates whether + * the namespace feature is enabled. If "true", the namespace is enabled + * for the filesystem. + * + * @param xMsNamespaceEnabled the xMsNamespaceEnabled value to set. + * @return the FilesystemGetPropertiesHeaders object itself. + */ + public FilesystemGetPropertiesHeaders xMsNamespaceEnabled(String xMsNamespaceEnabled) { + this.xMsNamespaceEnabled = xMsNamespaceEnabled; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemList.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemList.java new file mode 100644 index 000000000000..8fd6bb3124df --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemList.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * The FilesystemList model. + */ +@Fluent +public final class FilesystemList { + /* + * The filesystems property. + */ + @JsonProperty(value = "filesystems") + private List filesystems; + + /** + * Get the filesystems property: The filesystems property. + * + * @return the filesystems value. + */ + public List filesystems() { + return this.filesystems; + } + + /** + * Set the filesystems property: The filesystems property. + * + * @param filesystems the filesystems value to set. + * @return the FilesystemList object itself. + */ + public FilesystemList filesystems(List filesystems) { + this.filesystems = filesystems; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemListHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemListHeaders.java new file mode 100644 index 000000000000..afc792088bbf --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemListHeaders.java @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for List operation. + */ +@Fluent +public final class FilesystemListHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private String dateProperty; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String xMsRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String xMsVersion; + + /* + * If the number of filesystems to be listed exceeds the maxResults limit, + * a continuation token is returned in this response header. When a + * continuation token is returned in the response, it must be specified in + * a subsequent invocation of the list operation to continue listing the + * filesystems. + */ + @JsonProperty(value = "x-ms-continuation") + private String xMsContinuation; + + /* + * The content type of list filesystem response. The default content type + * is application/json. + */ + @JsonProperty(value = "Content-Type") + private String contentType; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public String dateProperty() { + return this.dateProperty; + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the FilesystemListHeaders object itself. + */ + public FilesystemListHeaders dateProperty(String dateProperty) { + this.dateProperty = dateProperty; + return this; + } + + /** + * Get the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the xMsRequestId value. + */ + public String xMsRequestId() { + return this.xMsRequestId; + } + + /** + * Set the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param xMsRequestId the xMsRequestId value to set. + * @return the FilesystemListHeaders object itself. + */ + public FilesystemListHeaders xMsRequestId(String xMsRequestId) { + this.xMsRequestId = xMsRequestId; + return this; + } + + /** + * Get the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @return the xMsVersion value. + */ + public String xMsVersion() { + return this.xMsVersion; + } + + /** + * Set the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @param xMsVersion the xMsVersion value to set. + * @return the FilesystemListHeaders object itself. + */ + public FilesystemListHeaders xMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } + + /** + * Get the xMsContinuation property: If the number of filesystems to be + * listed exceeds the maxResults limit, a continuation token is returned in + * this response header. When a continuation token is returned in the + * response, it must be specified in a subsequent invocation of the list + * operation to continue listing the filesystems. + * + * @return the xMsContinuation value. + */ + public String xMsContinuation() { + return this.xMsContinuation; + } + + /** + * Set the xMsContinuation property: If the number of filesystems to be + * listed exceeds the maxResults limit, a continuation token is returned in + * this response header. When a continuation token is returned in the + * response, it must be specified in a subsequent invocation of the list + * operation to continue listing the filesystems. + * + * @param xMsContinuation the xMsContinuation value to set. + * @return the FilesystemListHeaders object itself. + */ + public FilesystemListHeaders xMsContinuation(String xMsContinuation) { + this.xMsContinuation = xMsContinuation; + return this; + } + + /** + * Get the contentType property: The content type of list filesystem + * response. The default content type is application/json. + * + * @return the contentType value. + */ + public String contentType() { + return this.contentType; + } + + /** + * Set the contentType property: The content type of list filesystem + * response. The default content type is application/json. + * + * @param contentType the contentType value to set. + * @return the FilesystemListHeaders object itself. + */ + public FilesystemListHeaders contentType(String contentType) { + this.contentType = contentType; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemSetPropertiesHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemSetPropertiesHeaders.java new file mode 100644 index 000000000000..bf0b8d975dcb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemSetPropertiesHeaders.java @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for SetProperties operation. + */ +@Fluent +public final class FilesystemSetPropertiesHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private String dateProperty; + + /* + * An HTTP entity tag associated with the filesystem. Changes to + * filesystem properties affect the entity tag, but operations on files and + * directories do not. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /* + * The data and time the filesystem was last modified. Changes to + * filesystem properties update the last modified time, but operations on + * files and directories do not. + */ + @JsonProperty(value = "Last-Modified") + private String lastModified; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String xMsRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String xMsVersion; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public String dateProperty() { + return this.dateProperty; + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the FilesystemSetPropertiesHeaders object itself. + */ + public FilesystemSetPropertiesHeaders dateProperty(String dateProperty) { + this.dateProperty = dateProperty; + return this; + } + + /** + * Get the eTag property: An HTTP entity tag associated with the + * filesystem. Changes to filesystem properties affect the entity tag, but + * operations on files and directories do not. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the eTag property: An HTTP entity tag associated with the + * filesystem. Changes to filesystem properties affect the entity tag, but + * operations on files and directories do not. + * + * @param eTag the eTag value to set. + * @return the FilesystemSetPropertiesHeaders object itself. + */ + public FilesystemSetPropertiesHeaders eTag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the lastModified property: The data and time the filesystem was last + * modified. Changes to filesystem properties update the last modified + * time, but operations on files and directories do not. + * + * @return the lastModified value. + */ + public String lastModified() { + return this.lastModified; + } + + /** + * Set the lastModified property: The data and time the filesystem was last + * modified. Changes to filesystem properties update the last modified + * time, but operations on files and directories do not. + * + * @param lastModified the lastModified value to set. + * @return the FilesystemSetPropertiesHeaders object itself. + */ + public FilesystemSetPropertiesHeaders lastModified(String lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * Get the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the xMsRequestId value. + */ + public String xMsRequestId() { + return this.xMsRequestId; + } + + /** + * Set the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param xMsRequestId the xMsRequestId value to set. + * @return the FilesystemSetPropertiesHeaders object itself. + */ + public FilesystemSetPropertiesHeaders xMsRequestId(String xMsRequestId) { + this.xMsRequestId = xMsRequestId; + return this; + } + + /** + * Get the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @return the xMsVersion value. + */ + public String xMsVersion() { + return this.xMsVersion; + } + + /** + * Set the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @param xMsVersion the xMsVersion value to set. + * @return the FilesystemSetPropertiesHeaders object itself. + */ + public FilesystemSetPropertiesHeaders xMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsCreateResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsCreateResponse.java new file mode 100644 index 000000000000..2bb9ff6a9453 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsCreateResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the create operation. + */ +public final class FilesystemsCreateResponse extends ResponseBase { + /** + * Creates an instance of FilesystemsCreateResponse. + * + * @param request the request which resulted in this FilesystemsCreateResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public FilesystemsCreateResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, FilesystemCreateHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsDeleteResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsDeleteResponse.java new file mode 100644 index 000000000000..09ca6bc474fb --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsDeleteResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the delete operation. + */ +public final class FilesystemsDeleteResponse extends ResponseBase { + /** + * Creates an instance of FilesystemsDeleteResponse. + * + * @param request the request which resulted in this FilesystemsDeleteResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public FilesystemsDeleteResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, FilesystemDeleteHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsGetPropertiesResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsGetPropertiesResponse.java new file mode 100644 index 000000000000..daee39a896be --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsGetPropertiesResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the getProperties operation. + */ +public final class FilesystemsGetPropertiesResponse extends ResponseBase { + /** + * Creates an instance of FilesystemsGetPropertiesResponse. + * + * @param request the request which resulted in this FilesystemsGetPropertiesResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public FilesystemsGetPropertiesResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, FilesystemGetPropertiesHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsListResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsListResponse.java new file mode 100644 index 000000000000..a302e017d163 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsListResponse.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the list operation. + */ +public final class FilesystemsListResponse extends ResponseBase { + /** + * Creates an instance of FilesystemsListResponse. + * + * @param request the request which resulted in this FilesystemsListResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public FilesystemsListResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, FilesystemList value, FilesystemListHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } + + /** + * @return the deserialized response body. + */ + @Override + public FilesystemList value() { + return super.value(); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsSetPropertiesResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsSetPropertiesResponse.java new file mode 100644 index 000000000000..5d841632e936 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsSetPropertiesResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the setProperties operation. + */ +public final class FilesystemsSetPropertiesResponse extends ResponseBase { + /** + * Creates an instance of FilesystemsSetPropertiesResponse. + * + * @param request the request which resulted in this FilesystemsSetPropertiesResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public FilesystemsSetPropertiesResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, FilesystemSetPropertiesHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Path.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Path.java new file mode 100644 index 000000000000..178377697816 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Path.java @@ -0,0 +1,222 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Path model. + */ +@Fluent +public final class Path { + /* + * The name property. + */ + @JsonProperty(value = "name") + private String name; + + /* + * The isDirectory property. + */ + @JsonProperty(value = "isDirectory") + private Boolean isDirectory; + + /* + * The lastModified property. + */ + @JsonProperty(value = "lastModified") + private String lastModified; + + /* + * The eTag property. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /* + * The contentLength property. + */ + @JsonProperty(value = "contentLength") + private Long contentLength; + + /* + * The owner property. + */ + @JsonProperty(value = "owner") + private String owner; + + /* + * The group property. + */ + @JsonProperty(value = "group") + private String group; + + /* + * The permissions property. + */ + @JsonProperty(value = "permissions") + private String permissions; + + /** + * Get the name property: The name property. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name property. + * + * @param name the name value to set. + * @return the Path object itself. + */ + public Path name(String name) { + this.name = name; + return this; + } + + /** + * Get the isDirectory property: The isDirectory property. + * + * @return the isDirectory value. + */ + public Boolean isDirectory() { + return this.isDirectory; + } + + /** + * Set the isDirectory property: The isDirectory property. + * + * @param isDirectory the isDirectory value to set. + * @return the Path object itself. + */ + public Path isDirectory(Boolean isDirectory) { + this.isDirectory = isDirectory; + return this; + } + + /** + * Get the lastModified property: The lastModified property. + * + * @return the lastModified value. + */ + public String lastModified() { + return this.lastModified; + } + + /** + * Set the lastModified property: The lastModified property. + * + * @param lastModified the lastModified value to set. + * @return the Path object itself. + */ + public Path lastModified(String lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * Get the eTag property: The eTag property. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the eTag property: The eTag property. + * + * @param eTag the eTag value to set. + * @return the Path object itself. + */ + public Path eTag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the contentLength property: The contentLength property. + * + * @return the contentLength value. + */ + public Long contentLength() { + return this.contentLength; + } + + /** + * Set the contentLength property: The contentLength property. + * + * @param contentLength the contentLength value to set. + * @return the Path object itself. + */ + public Path contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** + * Get the owner property: The owner property. + * + * @return the owner value. + */ + public String owner() { + return this.owner; + } + + /** + * Set the owner property: The owner property. + * + * @param owner the owner value to set. + * @return the Path object itself. + */ + public Path owner(String owner) { + this.owner = owner; + return this; + } + + /** + * Get the group property: The group property. + * + * @return the group value. + */ + public String group() { + return this.group; + } + + /** + * Set the group property: The group property. + * + * @param group the group value to set. + * @return the Path object itself. + */ + public Path group(String group) { + this.group = group; + return this; + } + + /** + * Get the permissions property: The permissions property. + * + * @return the permissions value. + */ + public String permissions() { + return this.permissions; + } + + /** + * Set the permissions property: The permissions property. + * + * @param permissions the permissions value to set. + * @return the Path object itself. + */ + public Path permissions(String permissions) { + this.permissions = permissions; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathCreateHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathCreateHeaders.java new file mode 100644 index 000000000000..6039ae28496a --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathCreateHeaders.java @@ -0,0 +1,226 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for Create operation. + */ +@Fluent +public final class PathCreateHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private String dateProperty; + + /* + * An HTTP entity tag associated with the file or directory. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /* + * The data and time the file or directory was last modified. Write + * operations on the file or directory update the last modified time. + */ + @JsonProperty(value = "Last-Modified") + private String lastModified; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String xMsRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String xMsVersion; + + /* + * When renaming a directory, the number of paths that are renamed with + * each invocation is limited. If the number of paths to be renamed + * exceeds this limit, a continuation token is returned in this response + * header. When a continuation token is returned in the response, it must + * be specified in a subsequent invocation of the rename operation to + * continue renaming the directory. + */ + @JsonProperty(value = "x-ms-continuation") + private String xMsContinuation; + + /* + * The size of the resource in bytes. + */ + @JsonProperty(value = "Content-Length") + private Long contentLength; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public String dateProperty() { + return this.dateProperty; + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the PathCreateHeaders object itself. + */ + public PathCreateHeaders dateProperty(String dateProperty) { + this.dateProperty = dateProperty; + return this; + } + + /** + * Get the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @param eTag the eTag value to set. + * @return the PathCreateHeaders object itself. + */ + public PathCreateHeaders eTag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @return the lastModified value. + */ + public String lastModified() { + return this.lastModified; + } + + /** + * Set the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @param lastModified the lastModified value to set. + * @return the PathCreateHeaders object itself. + */ + public PathCreateHeaders lastModified(String lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * Get the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the xMsRequestId value. + */ + public String xMsRequestId() { + return this.xMsRequestId; + } + + /** + * Set the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param xMsRequestId the xMsRequestId value to set. + * @return the PathCreateHeaders object itself. + */ + public PathCreateHeaders xMsRequestId(String xMsRequestId) { + this.xMsRequestId = xMsRequestId; + return this; + } + + /** + * Get the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @return the xMsVersion value. + */ + public String xMsVersion() { + return this.xMsVersion; + } + + /** + * Set the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @param xMsVersion the xMsVersion value to set. + * @return the PathCreateHeaders object itself. + */ + public PathCreateHeaders xMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } + + /** + * Get the xMsContinuation property: When renaming a directory, the number + * of paths that are renamed with each invocation is limited. If the + * number of paths to be renamed exceeds this limit, a continuation token + * is returned in this response header. When a continuation token is + * returned in the response, it must be specified in a subsequent + * invocation of the rename operation to continue renaming the directory. + * + * @return the xMsContinuation value. + */ + public String xMsContinuation() { + return this.xMsContinuation; + } + + /** + * Set the xMsContinuation property: When renaming a directory, the number + * of paths that are renamed with each invocation is limited. If the + * number of paths to be renamed exceeds this limit, a continuation token + * is returned in this response header. When a continuation token is + * returned in the response, it must be specified in a subsequent + * invocation of the rename operation to continue renaming the directory. + * + * @param xMsContinuation the xMsContinuation value to set. + * @return the PathCreateHeaders object itself. + */ + public PathCreateHeaders xMsContinuation(String xMsContinuation) { + this.xMsContinuation = xMsContinuation; + return this; + } + + /** + * Get the contentLength property: The size of the resource in bytes. + * + * @return the contentLength value. + */ + public Long contentLength() { + return this.contentLength; + } + + /** + * Set the contentLength property: The size of the resource in bytes. + * + * @param contentLength the contentLength value to set. + * @return the PathCreateHeaders object itself. + */ + public PathCreateHeaders contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathDeleteHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathDeleteHeaders.java new file mode 100644 index 000000000000..e28d1747632b --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathDeleteHeaders.java @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for Delete operation. + */ +@Fluent +public final class PathDeleteHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private String dateProperty; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String xMsRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String xMsVersion; + + /* + * When deleting a directory, the number of paths that are deleted with + * each invocation is limited. If the number of paths to be deleted + * exceeds this limit, a continuation token is returned in this response + * header. When a continuation token is returned in the response, it must + * be specified in a subsequent invocation of the delete operation to + * continue deleting the directory. + */ + @JsonProperty(value = "x-ms-continuation") + private String xMsContinuation; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public String dateProperty() { + return this.dateProperty; + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the PathDeleteHeaders object itself. + */ + public PathDeleteHeaders dateProperty(String dateProperty) { + this.dateProperty = dateProperty; + return this; + } + + /** + * Get the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the xMsRequestId value. + */ + public String xMsRequestId() { + return this.xMsRequestId; + } + + /** + * Set the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param xMsRequestId the xMsRequestId value to set. + * @return the PathDeleteHeaders object itself. + */ + public PathDeleteHeaders xMsRequestId(String xMsRequestId) { + this.xMsRequestId = xMsRequestId; + return this; + } + + /** + * Get the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @return the xMsVersion value. + */ + public String xMsVersion() { + return this.xMsVersion; + } + + /** + * Set the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @param xMsVersion the xMsVersion value to set. + * @return the PathDeleteHeaders object itself. + */ + public PathDeleteHeaders xMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } + + /** + * Get the xMsContinuation property: When deleting a directory, the number + * of paths that are deleted with each invocation is limited. If the + * number of paths to be deleted exceeds this limit, a continuation token + * is returned in this response header. When a continuation token is + * returned in the response, it must be specified in a subsequent + * invocation of the delete operation to continue deleting the directory. + * + * @return the xMsContinuation value. + */ + public String xMsContinuation() { + return this.xMsContinuation; + } + + /** + * Set the xMsContinuation property: When deleting a directory, the number + * of paths that are deleted with each invocation is limited. If the + * number of paths to be deleted exceeds this limit, a continuation token + * is returned in this response header. When a continuation token is + * returned in the response, it must be specified in a subsequent + * invocation of the delete operation to continue deleting the directory. + * + * @param xMsContinuation the xMsContinuation value to set. + * @return the PathDeleteHeaders object itself. + */ + public PathDeleteHeaders xMsContinuation(String xMsContinuation) { + this.xMsContinuation = xMsContinuation; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesAction.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesAction.java new file mode 100644 index 000000000000..8e9d28d5e579 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesAction.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for PathGetPropertiesAction. + */ +public enum PathGetPropertiesAction { + /** + * Enum value getAccessControl. + */ + GET_ACCESS_CONTROL("getAccessControl"), + + /** + * Enum value getStatus. + */ + GET_STATUS("getStatus"); + + /** + * The actual serialized value for a PathGetPropertiesAction instance. + */ + private final String value; + + PathGetPropertiesAction(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a PathGetPropertiesAction instance. + * + * @param value the serialized value to parse. + * @return the parsed PathGetPropertiesAction object, or null if unable to parse. + */ + @JsonCreator + public static PathGetPropertiesAction fromString(String value) { + PathGetPropertiesAction[] items = PathGetPropertiesAction.values(); + for (PathGetPropertiesAction item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesHeaders.java new file mode 100644 index 000000000000..e3e39d5cfebc --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesHeaders.java @@ -0,0 +1,710 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for GetProperties operation. + */ +@Fluent +public final class PathGetPropertiesHeaders { + /* + * Indicates that the service supports requests for partial file content. + */ + @JsonProperty(value = "Accept-Ranges") + private String acceptRanges; + + /* + * If the Cache-Control request header has previously been set for the + * resource, that value is returned in this header. + */ + @JsonProperty(value = "Cache-Control") + private String cacheControl; + + /* + * If the Content-Disposition request header has previously been set for + * the resource, that value is returned in this header. + */ + @JsonProperty(value = "Content-Disposition") + private String contentDisposition; + + /* + * If the Content-Encoding request header has previously been set for the + * resource, that value is returned in this header. + */ + @JsonProperty(value = "Content-Encoding") + private String contentEncoding; + + /* + * If the Content-Language request header has previously been set for the + * resource, that value is returned in this header. + */ + @JsonProperty(value = "Content-Language") + private String contentLanguage; + + /* + * The size of the resource in bytes. + */ + @JsonProperty(value = "Content-Length") + private Long contentLength; + + /* + * Indicates the range of bytes returned in the event that the client + * requested a subset of the file by setting the Range request header. + */ + @JsonProperty(value = "Content-Range") + private String contentRange; + + /* + * The content type specified for the resource. If no content type was + * specified, the default content type is application/octet-stream. + */ + @JsonProperty(value = "Content-Type") + private String contentType; + + /* + * The MD5 hash of complete file stored in storage. This header is returned + * only for "GetProperties" operation. If the Content-MD5 header has been + * set for the file, this response header is returned for GetProperties + * call so that the client can check for message content integrity. + */ + @JsonProperty(value = "Content-MD5") + private String contentMD5; + + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private String dateProperty; + + /* + * An HTTP entity tag associated with the file or directory. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /* + * The data and time the file or directory was last modified. Write + * operations on the file or directory update the last modified time. + */ + @JsonProperty(value = "Last-Modified") + private String lastModified; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String xMsRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String xMsVersion; + + /* + * The type of the resource. The value may be "file" or "directory". If + * not set, the value is "file". + */ + @JsonProperty(value = "x-ms-resource-type") + private String xMsResourceType; + + /* + * The user-defined properties associated with the file or directory, in + * the format of a comma-separated list of name and value pairs "n1=v1, + * n2=v2, ...", where each value is a base64 encoded string. Note that the + * string may only contain ASCII characters in the ISO-8859-1 character + * set. + */ + @JsonProperty(value = "x-ms-properties") + private String xMsProperties; + + /* + * The owner of the file or directory. Included in the response if + * Hierarchical Namespace is enabled for the account. + */ + @JsonProperty(value = "x-ms-owner") + private String xMsOwner; + + /* + * The owning group of the file or directory. Included in the response if + * Hierarchical Namespace is enabled for the account. + */ + @JsonProperty(value = "x-ms-group") + private String xMsGroup; + + /* + * The POSIX access permissions for the file owner, the file owning group, + * and others. Included in the response if Hierarchical Namespace is + * enabled for the account. + */ + @JsonProperty(value = "x-ms-permissions") + private String xMsPermissions; + + /* + * The POSIX access control list for the file or directory. Included in + * the response only if the action is "getAccessControl" and Hierarchical + * Namespace is enabled for the account. + */ + @JsonProperty(value = "x-ms-acl") + private String xMsAcl; + + /* + * When a resource is leased, specifies whether the lease is of infinite or + * fixed duration. + */ + @JsonProperty(value = "x-ms-lease-duration") + private String xMsLeaseDuration; + + /* + * Lease state of the resource. + */ + @JsonProperty(value = "x-ms-lease-state") + private String xMsLeaseState; + + /* + * The lease status of the resource. + */ + @JsonProperty(value = "x-ms-lease-status") + private String xMsLeaseStatus; + + /** + * Get the acceptRanges property: Indicates that the service supports + * requests for partial file content. + * + * @return the acceptRanges value. + */ + public String acceptRanges() { + return this.acceptRanges; + } + + /** + * Set the acceptRanges property: Indicates that the service supports + * requests for partial file content. + * + * @param acceptRanges the acceptRanges value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders acceptRanges(String acceptRanges) { + this.acceptRanges = acceptRanges; + return this; + } + + /** + * Get the cacheControl property: If the Cache-Control request header has + * previously been set for the resource, that value is returned in this + * header. + * + * @return the cacheControl value. + */ + public String cacheControl() { + return this.cacheControl; + } + + /** + * Set the cacheControl property: If the Cache-Control request header has + * previously been set for the resource, that value is returned in this + * header. + * + * @param cacheControl the cacheControl value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders cacheControl(String cacheControl) { + this.cacheControl = cacheControl; + return this; + } + + /** + * Get the contentDisposition property: If the Content-Disposition request + * header has previously been set for the resource, that value is returned + * in this header. + * + * @return the contentDisposition value. + */ + public String contentDisposition() { + return this.contentDisposition; + } + + /** + * Set the contentDisposition property: If the Content-Disposition request + * header has previously been set for the resource, that value is returned + * in this header. + * + * @param contentDisposition the contentDisposition value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders contentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + return this; + } + + /** + * Get the contentEncoding property: If the Content-Encoding request header + * has previously been set for the resource, that value is returned in this + * header. + * + * @return the contentEncoding value. + */ + public String contentEncoding() { + return this.contentEncoding; + } + + /** + * Set the contentEncoding property: If the Content-Encoding request header + * has previously been set for the resource, that value is returned in this + * header. + * + * @param contentEncoding the contentEncoding value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders contentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + return this; + } + + /** + * Get the contentLanguage property: If the Content-Language request header + * has previously been set for the resource, that value is returned in this + * header. + * + * @return the contentLanguage value. + */ + public String contentLanguage() { + return this.contentLanguage; + } + + /** + * Set the contentLanguage property: If the Content-Language request header + * has previously been set for the resource, that value is returned in this + * header. + * + * @param contentLanguage the contentLanguage value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders contentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + return this; + } + + /** + * Get the contentLength property: The size of the resource in bytes. + * + * @return the contentLength value. + */ + public Long contentLength() { + return this.contentLength; + } + + /** + * Set the contentLength property: The size of the resource in bytes. + * + * @param contentLength the contentLength value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** + * Get the contentRange property: Indicates the range of bytes returned in + * the event that the client requested a subset of the file by setting the + * Range request header. + * + * @return the contentRange value. + */ + public String contentRange() { + return this.contentRange; + } + + /** + * Set the contentRange property: Indicates the range of bytes returned in + * the event that the client requested a subset of the file by setting the + * Range request header. + * + * @param contentRange the contentRange value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders contentRange(String contentRange) { + this.contentRange = contentRange; + return this; + } + + /** + * Get the contentType property: The content type specified for the + * resource. If no content type was specified, the default content type is + * application/octet-stream. + * + * @return the contentType value. + */ + public String contentType() { + return this.contentType; + } + + /** + * Set the contentType property: The content type specified for the + * resource. If no content type was specified, the default content type is + * application/octet-stream. + * + * @param contentType the contentType value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders contentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Get the contentMD5 property: The MD5 hash of complete file stored in + * storage. This header is returned only for "GetProperties" operation. If + * the Content-MD5 header has been set for the file, this response header + * is returned for GetProperties call so that the client can check for + * message content integrity. + * + * @return the contentMD5 value. + */ + public String contentMD5() { + return this.contentMD5; + } + + /** + * Set the contentMD5 property: The MD5 hash of complete file stored in + * storage. This header is returned only for "GetProperties" operation. If + * the Content-MD5 header has been set for the file, this response header + * is returned for GetProperties call so that the client can check for + * message content integrity. + * + * @param contentMD5 the contentMD5 value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders contentMD5(String contentMD5) { + this.contentMD5 = contentMD5; + return this; + } + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public String dateProperty() { + return this.dateProperty; + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders dateProperty(String dateProperty) { + this.dateProperty = dateProperty; + return this; + } + + /** + * Get the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @param eTag the eTag value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders eTag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @return the lastModified value. + */ + public String lastModified() { + return this.lastModified; + } + + /** + * Set the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @param lastModified the lastModified value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders lastModified(String lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * Get the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the xMsRequestId value. + */ + public String xMsRequestId() { + return this.xMsRequestId; + } + + /** + * Set the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param xMsRequestId the xMsRequestId value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders xMsRequestId(String xMsRequestId) { + this.xMsRequestId = xMsRequestId; + return this; + } + + /** + * Get the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @return the xMsVersion value. + */ + public String xMsVersion() { + return this.xMsVersion; + } + + /** + * Set the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @param xMsVersion the xMsVersion value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders xMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } + + /** + * Get the xMsResourceType property: The type of the resource. The value + * may be "file" or "directory". If not set, the value is "file". + * + * @return the xMsResourceType value. + */ + public String xMsResourceType() { + return this.xMsResourceType; + } + + /** + * Set the xMsResourceType property: The type of the resource. The value + * may be "file" or "directory". If not set, the value is "file". + * + * @param xMsResourceType the xMsResourceType value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders xMsResourceType(String xMsResourceType) { + this.xMsResourceType = xMsResourceType; + return this; + } + + /** + * Get the xMsProperties property: The user-defined properties associated + * with the file or directory, in the format of a comma-separated list of + * name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 + * encoded string. Note that the string may only contain ASCII characters + * in the ISO-8859-1 character set. + * + * @return the xMsProperties value. + */ + public String xMsProperties() { + return this.xMsProperties; + } + + /** + * Set the xMsProperties property: The user-defined properties associated + * with the file or directory, in the format of a comma-separated list of + * name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 + * encoded string. Note that the string may only contain ASCII characters + * in the ISO-8859-1 character set. + * + * @param xMsProperties the xMsProperties value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders xMsProperties(String xMsProperties) { + this.xMsProperties = xMsProperties; + return this; + } + + /** + * Get the xMsOwner property: The owner of the file or directory. Included + * in the response if Hierarchical Namespace is enabled for the account. + * + * @return the xMsOwner value. + */ + public String xMsOwner() { + return this.xMsOwner; + } + + /** + * Set the xMsOwner property: The owner of the file or directory. Included + * in the response if Hierarchical Namespace is enabled for the account. + * + * @param xMsOwner the xMsOwner value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders xMsOwner(String xMsOwner) { + this.xMsOwner = xMsOwner; + return this; + } + + /** + * Get the xMsGroup property: The owning group of the file or directory. + * Included in the response if Hierarchical Namespace is enabled for the + * account. + * + * @return the xMsGroup value. + */ + public String xMsGroup() { + return this.xMsGroup; + } + + /** + * Set the xMsGroup property: The owning group of the file or directory. + * Included in the response if Hierarchical Namespace is enabled for the + * account. + * + * @param xMsGroup the xMsGroup value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders xMsGroup(String xMsGroup) { + this.xMsGroup = xMsGroup; + return this; + } + + /** + * Get the xMsPermissions property: The POSIX access permissions for the + * file owner, the file owning group, and others. Included in the response + * if Hierarchical Namespace is enabled for the account. + * + * @return the xMsPermissions value. + */ + public String xMsPermissions() { + return this.xMsPermissions; + } + + /** + * Set the xMsPermissions property: The POSIX access permissions for the + * file owner, the file owning group, and others. Included in the response + * if Hierarchical Namespace is enabled for the account. + * + * @param xMsPermissions the xMsPermissions value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders xMsPermissions(String xMsPermissions) { + this.xMsPermissions = xMsPermissions; + return this; + } + + /** + * Get the xMsAcl property: The POSIX access control list for the file or + * directory. Included in the response only if the action is + * "getAccessControl" and Hierarchical Namespace is enabled for the + * account. + * + * @return the xMsAcl value. + */ + public String xMsAcl() { + return this.xMsAcl; + } + + /** + * Set the xMsAcl property: The POSIX access control list for the file or + * directory. Included in the response only if the action is + * "getAccessControl" and Hierarchical Namespace is enabled for the + * account. + * + * @param xMsAcl the xMsAcl value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders xMsAcl(String xMsAcl) { + this.xMsAcl = xMsAcl; + return this; + } + + /** + * Get the xMsLeaseDuration property: When a resource is leased, specifies + * whether the lease is of infinite or fixed duration. + * + * @return the xMsLeaseDuration value. + */ + public String xMsLeaseDuration() { + return this.xMsLeaseDuration; + } + + /** + * Set the xMsLeaseDuration property: When a resource is leased, specifies + * whether the lease is of infinite or fixed duration. + * + * @param xMsLeaseDuration the xMsLeaseDuration value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders xMsLeaseDuration(String xMsLeaseDuration) { + this.xMsLeaseDuration = xMsLeaseDuration; + return this; + } + + /** + * Get the xMsLeaseState property: Lease state of the resource. + * + * @return the xMsLeaseState value. + */ + public String xMsLeaseState() { + return this.xMsLeaseState; + } + + /** + * Set the xMsLeaseState property: Lease state of the resource. + * + * @param xMsLeaseState the xMsLeaseState value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders xMsLeaseState(String xMsLeaseState) { + this.xMsLeaseState = xMsLeaseState; + return this; + } + + /** + * Get the xMsLeaseStatus property: The lease status of the resource. + * + * @return the xMsLeaseStatus value. + */ + public String xMsLeaseStatus() { + return this.xMsLeaseStatus; + } + + /** + * Set the xMsLeaseStatus property: The lease status of the resource. + * + * @param xMsLeaseStatus the xMsLeaseStatus value to set. + * @return the PathGetPropertiesHeaders object itself. + */ + public PathGetPropertiesHeaders xMsLeaseStatus(String xMsLeaseStatus) { + this.xMsLeaseStatus = xMsLeaseStatus; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseAction.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseAction.java new file mode 100644 index 000000000000..7a1262fd2ca1 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseAction.java @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for PathLeaseAction. + */ +public enum PathLeaseAction { + /** + * Enum value acquire. + */ + ACQUIRE("acquire"), + + /** + * Enum value break. + */ + BREAK("break"), + + /** + * Enum value change. + */ + CHANGE("change"), + + /** + * Enum value renew. + */ + RENEW("renew"), + + /** + * Enum value release. + */ + RELEASE("release"); + + /** + * The actual serialized value for a PathLeaseAction instance. + */ + private final String value; + + PathLeaseAction(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a PathLeaseAction instance. + * + * @param value the serialized value to parse. + * @return the parsed PathLeaseAction object, or null if unable to parse. + */ + @JsonCreator + public static PathLeaseAction fromString(String value) { + PathLeaseAction[] items = PathLeaseAction.values(); + for (PathLeaseAction item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseHeaders.java new file mode 100644 index 000000000000..d2f86b0d89f7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseHeaders.java @@ -0,0 +1,215 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for Lease operation. + */ +@Fluent +public final class PathLeaseHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private String dateProperty; + + /* + * An HTTP entity tag associated with the file or directory. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /* + * The data and time the file or directory was last modified. Write + * operations on the file or directory update the last modified time. + */ + @JsonProperty(value = "Last-Modified") + private String lastModified; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String xMsRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String xMsVersion; + + /* + * A successful "acquire" action returns the lease ID. + */ + @JsonProperty(value = "x-ms-lease-id") + private String xMsLeaseId; + + /* + * The time remaining in the lease period in seconds. + */ + @JsonProperty(value = "x-ms-lease-time") + private String xMsLeaseTime; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public String dateProperty() { + return this.dateProperty; + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the PathLeaseHeaders object itself. + */ + public PathLeaseHeaders dateProperty(String dateProperty) { + this.dateProperty = dateProperty; + return this; + } + + /** + * Get the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @param eTag the eTag value to set. + * @return the PathLeaseHeaders object itself. + */ + public PathLeaseHeaders eTag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @return the lastModified value. + */ + public String lastModified() { + return this.lastModified; + } + + /** + * Set the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @param lastModified the lastModified value to set. + * @return the PathLeaseHeaders object itself. + */ + public PathLeaseHeaders lastModified(String lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * Get the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the xMsRequestId value. + */ + public String xMsRequestId() { + return this.xMsRequestId; + } + + /** + * Set the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param xMsRequestId the xMsRequestId value to set. + * @return the PathLeaseHeaders object itself. + */ + public PathLeaseHeaders xMsRequestId(String xMsRequestId) { + this.xMsRequestId = xMsRequestId; + return this; + } + + /** + * Get the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @return the xMsVersion value. + */ + public String xMsVersion() { + return this.xMsVersion; + } + + /** + * Set the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @param xMsVersion the xMsVersion value to set. + * @return the PathLeaseHeaders object itself. + */ + public PathLeaseHeaders xMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } + + /** + * Get the xMsLeaseId property: A successful "acquire" action returns the + * lease ID. + * + * @return the xMsLeaseId value. + */ + public String xMsLeaseId() { + return this.xMsLeaseId; + } + + /** + * Set the xMsLeaseId property: A successful "acquire" action returns the + * lease ID. + * + * @param xMsLeaseId the xMsLeaseId value to set. + * @return the PathLeaseHeaders object itself. + */ + public PathLeaseHeaders xMsLeaseId(String xMsLeaseId) { + this.xMsLeaseId = xMsLeaseId; + return this; + } + + /** + * Get the xMsLeaseTime property: The time remaining in the lease period in + * seconds. + * + * @return the xMsLeaseTime value. + */ + public String xMsLeaseTime() { + return this.xMsLeaseTime; + } + + /** + * Set the xMsLeaseTime property: The time remaining in the lease period in + * seconds. + * + * @param xMsLeaseTime the xMsLeaseTime value to set. + * @return the PathLeaseHeaders object itself. + */ + public PathLeaseHeaders xMsLeaseTime(String xMsLeaseTime) { + this.xMsLeaseTime = xMsLeaseTime; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathList.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathList.java new file mode 100644 index 000000000000..c18fba7009b7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathList.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * The PathList model. + */ +@Fluent +public final class PathList { + /* + * The paths property. + */ + @JsonProperty(value = "paths") + private List paths; + + /** + * Get the paths property: The paths property. + * + * @return the paths value. + */ + public List paths() { + return this.paths; + } + + /** + * Set the paths property: The paths property. + * + * @param paths the paths value to set. + * @return the PathList object itself. + */ + public PathList paths(List paths) { + this.paths = paths; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathListHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathListHeaders.java new file mode 100644 index 000000000000..c9aeb16ad7ab --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathListHeaders.java @@ -0,0 +1,202 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for List operation. + */ +@Fluent +public final class PathListHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private String dateProperty; + + /* + * An HTTP entity tag associated with the filesystem. Changes to + * filesystem properties affect the entity tag, but operations on files and + * directories do not. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /* + * The data and time the filesystem was last modified. Changes to + * filesystem properties update the last modified time, but operations on + * files and directories do not. + */ + @JsonProperty(value = "Last-Modified") + private String lastModified; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String xMsRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String xMsVersion; + + /* + * If the number of paths to be listed exceeds the maxResults limit, a + * continuation token is returned in this response header. When a + * continuation token is returned in the response, it must be specified in + * a subsequent invocation of the list operation to continue listing the + * paths. + */ + @JsonProperty(value = "x-ms-continuation") + private String xMsContinuation; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public String dateProperty() { + return this.dateProperty; + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the PathListHeaders object itself. + */ + public PathListHeaders dateProperty(String dateProperty) { + this.dateProperty = dateProperty; + return this; + } + + /** + * Get the eTag property: An HTTP entity tag associated with the + * filesystem. Changes to filesystem properties affect the entity tag, but + * operations on files and directories do not. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the eTag property: An HTTP entity tag associated with the + * filesystem. Changes to filesystem properties affect the entity tag, but + * operations on files and directories do not. + * + * @param eTag the eTag value to set. + * @return the PathListHeaders object itself. + */ + public PathListHeaders eTag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the lastModified property: The data and time the filesystem was last + * modified. Changes to filesystem properties update the last modified + * time, but operations on files and directories do not. + * + * @return the lastModified value. + */ + public String lastModified() { + return this.lastModified; + } + + /** + * Set the lastModified property: The data and time the filesystem was last + * modified. Changes to filesystem properties update the last modified + * time, but operations on files and directories do not. + * + * @param lastModified the lastModified value to set. + * @return the PathListHeaders object itself. + */ + public PathListHeaders lastModified(String lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * Get the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the xMsRequestId value. + */ + public String xMsRequestId() { + return this.xMsRequestId; + } + + /** + * Set the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param xMsRequestId the xMsRequestId value to set. + * @return the PathListHeaders object itself. + */ + public PathListHeaders xMsRequestId(String xMsRequestId) { + this.xMsRequestId = xMsRequestId; + return this; + } + + /** + * Get the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @return the xMsVersion value. + */ + public String xMsVersion() { + return this.xMsVersion; + } + + /** + * Set the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @param xMsVersion the xMsVersion value to set. + * @return the PathListHeaders object itself. + */ + public PathListHeaders xMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } + + /** + * Get the xMsContinuation property: If the number of paths to be listed + * exceeds the maxResults limit, a continuation token is returned in this + * response header. When a continuation token is returned in the response, + * it must be specified in a subsequent invocation of the list operation to + * continue listing the paths. + * + * @return the xMsContinuation value. + */ + public String xMsContinuation() { + return this.xMsContinuation; + } + + /** + * Set the xMsContinuation property: If the number of paths to be listed + * exceeds the maxResults limit, a continuation token is returned in this + * response header. When a continuation token is returned in the response, + * it must be specified in a subsequent invocation of the list operation to + * continue listing the paths. + * + * @param xMsContinuation the xMsContinuation value to set. + * @return the PathListHeaders object itself. + */ + public PathListHeaders xMsContinuation(String xMsContinuation) { + this.xMsContinuation = xMsContinuation; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathReadHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathReadHeaders.java new file mode 100644 index 000000000000..1ba3b2cd186c --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathReadHeaders.java @@ -0,0 +1,622 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for Read operation. + */ +@Fluent +public final class PathReadHeaders { + /* + * Indicates that the service supports requests for partial file content. + */ + @JsonProperty(value = "Accept-Ranges") + private String acceptRanges; + + /* + * If the Cache-Control request header has previously been set for the + * resource, that value is returned in this header. + */ + @JsonProperty(value = "Cache-Control") + private String cacheControl; + + /* + * If the Content-Disposition request header has previously been set for + * the resource, that value is returned in this header. + */ + @JsonProperty(value = "Content-Disposition") + private String contentDisposition; + + /* + * If the Content-Encoding request header has previously been set for the + * resource, that value is returned in this header. + */ + @JsonProperty(value = "Content-Encoding") + private String contentEncoding; + + /* + * If the Content-Language request header has previously been set for the + * resource, that value is returned in this header. + */ + @JsonProperty(value = "Content-Language") + private String contentLanguage; + + /* + * The size of the resource in bytes. + */ + @JsonProperty(value = "Content-Length") + private Long contentLength; + + /* + * Indicates the range of bytes returned in the event that the client + * requested a subset of the file by setting the Range request header. + */ + @JsonProperty(value = "Content-Range") + private String contentRange; + + /* + * The content type specified for the resource. If no content type was + * specified, the default content type is application/octet-stream. + */ + @JsonProperty(value = "Content-Type") + private String contentType; + + /* + * The MD5 hash of read range. If the request is to read a specified range + * and the "x-ms-range-get-content-md5" is set to true, then the request + * returns an MD5 hash for the range, as long as the range size is less + * than or equal to 4 MB. + */ + @JsonProperty(value = "Content-MD5") + private String contentMD5; + + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private String dateProperty; + + /* + * An HTTP entity tag associated with the file or directory. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /* + * The data and time the file or directory was last modified. Write + * operations on the file or directory update the last modified time. + */ + @JsonProperty(value = "Last-Modified") + private String lastModified; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String xMsRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String xMsVersion; + + /* + * The type of the resource. The value may be "file" or "directory". If + * not set, the value is "file". + */ + @JsonProperty(value = "x-ms-resource-type") + private String xMsResourceType; + + /* + * The user-defined properties associated with the file or directory, in + * the format of a comma-separated list of name and value pairs "n1=v1, + * n2=v2, ...", where each value is a base64 encoded string. Note that the + * string may only contain ASCII characters in the ISO-8859-1 character + * set. + */ + @JsonProperty(value = "x-ms-properties") + private String xMsProperties; + + /* + * When a resource is leased, specifies whether the lease is of infinite or + * fixed duration. + */ + @JsonProperty(value = "x-ms-lease-duration") + private String xMsLeaseDuration; + + /* + * Lease state of the resource. + */ + @JsonProperty(value = "x-ms-lease-state") + private String xMsLeaseState; + + /* + * The lease status of the resource. + */ + @JsonProperty(value = "x-ms-lease-status") + private String xMsLeaseStatus; + + /* + * The MD5 hash of complete file stored in storage. If the file has a MD5 + * hash, and if request contains range header (Range or x-ms-range), this + * response header is returned with the value of the complete file's MD5 + * value. This value may or may not be equal to the value returned in + * Content-MD5 header, with the latter calculated from the requested range. + */ + @JsonProperty(value = "x-ms-content-md5") + private String xMsContentMd5; + + /** + * Get the acceptRanges property: Indicates that the service supports + * requests for partial file content. + * + * @return the acceptRanges value. + */ + public String acceptRanges() { + return this.acceptRanges; + } + + /** + * Set the acceptRanges property: Indicates that the service supports + * requests for partial file content. + * + * @param acceptRanges the acceptRanges value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders acceptRanges(String acceptRanges) { + this.acceptRanges = acceptRanges; + return this; + } + + /** + * Get the cacheControl property: If the Cache-Control request header has + * previously been set for the resource, that value is returned in this + * header. + * + * @return the cacheControl value. + */ + public String cacheControl() { + return this.cacheControl; + } + + /** + * Set the cacheControl property: If the Cache-Control request header has + * previously been set for the resource, that value is returned in this + * header. + * + * @param cacheControl the cacheControl value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders cacheControl(String cacheControl) { + this.cacheControl = cacheControl; + return this; + } + + /** + * Get the contentDisposition property: If the Content-Disposition request + * header has previously been set for the resource, that value is returned + * in this header. + * + * @return the contentDisposition value. + */ + public String contentDisposition() { + return this.contentDisposition; + } + + /** + * Set the contentDisposition property: If the Content-Disposition request + * header has previously been set for the resource, that value is returned + * in this header. + * + * @param contentDisposition the contentDisposition value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders contentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + return this; + } + + /** + * Get the contentEncoding property: If the Content-Encoding request header + * has previously been set for the resource, that value is returned in this + * header. + * + * @return the contentEncoding value. + */ + public String contentEncoding() { + return this.contentEncoding; + } + + /** + * Set the contentEncoding property: If the Content-Encoding request header + * has previously been set for the resource, that value is returned in this + * header. + * + * @param contentEncoding the contentEncoding value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders contentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + return this; + } + + /** + * Get the contentLanguage property: If the Content-Language request header + * has previously been set for the resource, that value is returned in this + * header. + * + * @return the contentLanguage value. + */ + public String contentLanguage() { + return this.contentLanguage; + } + + /** + * Set the contentLanguage property: If the Content-Language request header + * has previously been set for the resource, that value is returned in this + * header. + * + * @param contentLanguage the contentLanguage value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders contentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + return this; + } + + /** + * Get the contentLength property: The size of the resource in bytes. + * + * @return the contentLength value. + */ + public Long contentLength() { + return this.contentLength; + } + + /** + * Set the contentLength property: The size of the resource in bytes. + * + * @param contentLength the contentLength value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** + * Get the contentRange property: Indicates the range of bytes returned in + * the event that the client requested a subset of the file by setting the + * Range request header. + * + * @return the contentRange value. + */ + public String contentRange() { + return this.contentRange; + } + + /** + * Set the contentRange property: Indicates the range of bytes returned in + * the event that the client requested a subset of the file by setting the + * Range request header. + * + * @param contentRange the contentRange value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders contentRange(String contentRange) { + this.contentRange = contentRange; + return this; + } + + /** + * Get the contentType property: The content type specified for the + * resource. If no content type was specified, the default content type is + * application/octet-stream. + * + * @return the contentType value. + */ + public String contentType() { + return this.contentType; + } + + /** + * Set the contentType property: The content type specified for the + * resource. If no content type was specified, the default content type is + * application/octet-stream. + * + * @param contentType the contentType value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders contentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Get the contentMD5 property: The MD5 hash of read range. If the request + * is to read a specified range and the "x-ms-range-get-content-md5" is set + * to true, then the request returns an MD5 hash for the range, as long as + * the range size is less than or equal to 4 MB. + * + * @return the contentMD5 value. + */ + public String contentMD5() { + return this.contentMD5; + } + + /** + * Set the contentMD5 property: The MD5 hash of read range. If the request + * is to read a specified range and the "x-ms-range-get-content-md5" is set + * to true, then the request returns an MD5 hash for the range, as long as + * the range size is less than or equal to 4 MB. + * + * @param contentMD5 the contentMD5 value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders contentMD5(String contentMD5) { + this.contentMD5 = contentMD5; + return this; + } + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public String dateProperty() { + return this.dateProperty; + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders dateProperty(String dateProperty) { + this.dateProperty = dateProperty; + return this; + } + + /** + * Get the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @param eTag the eTag value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders eTag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @return the lastModified value. + */ + public String lastModified() { + return this.lastModified; + } + + /** + * Set the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @param lastModified the lastModified value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders lastModified(String lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * Get the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the xMsRequestId value. + */ + public String xMsRequestId() { + return this.xMsRequestId; + } + + /** + * Set the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param xMsRequestId the xMsRequestId value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders xMsRequestId(String xMsRequestId) { + this.xMsRequestId = xMsRequestId; + return this; + } + + /** + * Get the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @return the xMsVersion value. + */ + public String xMsVersion() { + return this.xMsVersion; + } + + /** + * Set the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @param xMsVersion the xMsVersion value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders xMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } + + /** + * Get the xMsResourceType property: The type of the resource. The value + * may be "file" or "directory". If not set, the value is "file". + * + * @return the xMsResourceType value. + */ + public String xMsResourceType() { + return this.xMsResourceType; + } + + /** + * Set the xMsResourceType property: The type of the resource. The value + * may be "file" or "directory". If not set, the value is "file". + * + * @param xMsResourceType the xMsResourceType value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders xMsResourceType(String xMsResourceType) { + this.xMsResourceType = xMsResourceType; + return this; + } + + /** + * Get the xMsProperties property: The user-defined properties associated + * with the file or directory, in the format of a comma-separated list of + * name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 + * encoded string. Note that the string may only contain ASCII characters + * in the ISO-8859-1 character set. + * + * @return the xMsProperties value. + */ + public String xMsProperties() { + return this.xMsProperties; + } + + /** + * Set the xMsProperties property: The user-defined properties associated + * with the file or directory, in the format of a comma-separated list of + * name and value pairs "n1=v1, n2=v2, ...", where each value is a base64 + * encoded string. Note that the string may only contain ASCII characters + * in the ISO-8859-1 character set. + * + * @param xMsProperties the xMsProperties value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders xMsProperties(String xMsProperties) { + this.xMsProperties = xMsProperties; + return this; + } + + /** + * Get the xMsLeaseDuration property: When a resource is leased, specifies + * whether the lease is of infinite or fixed duration. + * + * @return the xMsLeaseDuration value. + */ + public String xMsLeaseDuration() { + return this.xMsLeaseDuration; + } + + /** + * Set the xMsLeaseDuration property: When a resource is leased, specifies + * whether the lease is of infinite or fixed duration. + * + * @param xMsLeaseDuration the xMsLeaseDuration value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders xMsLeaseDuration(String xMsLeaseDuration) { + this.xMsLeaseDuration = xMsLeaseDuration; + return this; + } + + /** + * Get the xMsLeaseState property: Lease state of the resource. + * + * @return the xMsLeaseState value. + */ + public String xMsLeaseState() { + return this.xMsLeaseState; + } + + /** + * Set the xMsLeaseState property: Lease state of the resource. + * + * @param xMsLeaseState the xMsLeaseState value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders xMsLeaseState(String xMsLeaseState) { + this.xMsLeaseState = xMsLeaseState; + return this; + } + + /** + * Get the xMsLeaseStatus property: The lease status of the resource. + * + * @return the xMsLeaseStatus value. + */ + public String xMsLeaseStatus() { + return this.xMsLeaseStatus; + } + + /** + * Set the xMsLeaseStatus property: The lease status of the resource. + * + * @param xMsLeaseStatus the xMsLeaseStatus value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders xMsLeaseStatus(String xMsLeaseStatus) { + this.xMsLeaseStatus = xMsLeaseStatus; + return this; + } + + /** + * Get the xMsContentMd5 property: The MD5 hash of complete file stored in + * storage. If the file has a MD5 hash, and if request contains range + * header (Range or x-ms-range), this response header is returned with the + * value of the complete file's MD5 value. This value may or may not be + * equal to the value returned in Content-MD5 header, with the latter + * calculated from the requested range. + * + * @return the xMsContentMd5 value. + */ + public String xMsContentMd5() { + return this.xMsContentMd5; + } + + /** + * Set the xMsContentMd5 property: The MD5 hash of complete file stored in + * storage. If the file has a MD5 hash, and if request contains range + * header (Range or x-ms-range), this response header is returned with the + * value of the complete file's MD5 value. This value may or may not be + * equal to the value returned in Content-MD5 header, with the latter + * calculated from the requested range. + * + * @param xMsContentMd5 the xMsContentMd5 value to set. + * @return the PathReadHeaders object itself. + */ + public PathReadHeaders xMsContentMd5(String xMsContentMd5) { + this.xMsContentMd5 = xMsContentMd5; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathRenameMode.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathRenameMode.java new file mode 100644 index 000000000000..58991934d2dc --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathRenameMode.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for PathRenameMode. + */ +public enum PathRenameMode { + /** + * Enum value legacy. + */ + LEGACY("legacy"), + + /** + * Enum value posix. + */ + POSIX("posix"); + + /** + * The actual serialized value for a PathRenameMode instance. + */ + private final String value; + + PathRenameMode(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a PathRenameMode instance. + * + * @param value the serialized value to parse. + * @return the parsed PathRenameMode object, or null if unable to parse. + */ + @JsonCreator + public static PathRenameMode fromString(String value) { + PathRenameMode[] items = PathRenameMode.values(); + for (PathRenameMode item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathResourceType.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathResourceType.java new file mode 100644 index 000000000000..e9bd61206101 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathResourceType.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for PathResourceType. + */ +public enum PathResourceType { + /** + * Enum value directory. + */ + DIRECTORY("directory"), + + /** + * Enum value file. + */ + FILE("file"); + + /** + * The actual serialized value for a PathResourceType instance. + */ + private final String value; + + PathResourceType(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a PathResourceType instance. + * + * @param value the serialized value to parse. + * @return the parsed PathResourceType object, or null if unable to parse. + */ + @JsonCreator + public static PathResourceType fromString(String value) { + PathResourceType[] items = PathResourceType.values(); + for (PathResourceType item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateAction.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateAction.java new file mode 100644 index 000000000000..c87af882dcf7 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateAction.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for PathUpdateAction. + */ +public enum PathUpdateAction { + /** + * Enum value append. + */ + APPEND("append"), + + /** + * Enum value flush. + */ + FLUSH("flush"), + + /** + * Enum value setProperties. + */ + SET_PROPERTIES("setProperties"), + + /** + * Enum value setAccessControl. + */ + SET_ACCESS_CONTROL("setAccessControl"); + + /** + * The actual serialized value for a PathUpdateAction instance. + */ + private final String value; + + PathUpdateAction(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a PathUpdateAction instance. + * + * @param value the serialized value to parse. + * @return the parsed PathUpdateAction object, or null if unable to parse. + */ + @JsonCreator + public static PathUpdateAction fromString(String value) { + PathUpdateAction[] items = PathUpdateAction.values(); + for (PathUpdateAction item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateHeaders.java new file mode 100644 index 000000000000..18d3b93e42c0 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateHeaders.java @@ -0,0 +1,474 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.implementation.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines headers for Update operation. + */ +@Fluent +public final class PathUpdateHeaders { + /* + * A UTC date/time value generated by the service that indicates the time + * at which the response was initiated. + */ + @JsonProperty(value = "Date") + private String dateProperty; + + /* + * An HTTP entity tag associated with the file or directory. + */ + @JsonProperty(value = "ETag") + private String eTag; + + /* + * The data and time the file or directory was last modified. Write + * operations on the file or directory update the last modified time. + */ + @JsonProperty(value = "Last-Modified") + private String lastModified; + + /* + * Indicates that the service supports requests for partial file content. + */ + @JsonProperty(value = "Accept-Ranges") + private String acceptRanges; + + /* + * If the Cache-Control request header has previously been set for the + * resource, that value is returned in this header. + */ + @JsonProperty(value = "Cache-Control") + private String cacheControl; + + /* + * If the Content-Disposition request header has previously been set for + * the resource, that value is returned in this header. + */ + @JsonProperty(value = "Content-Disposition") + private String contentDisposition; + + /* + * If the Content-Encoding request header has previously been set for the + * resource, that value is returned in this header. + */ + @JsonProperty(value = "Content-Encoding") + private String contentEncoding; + + /* + * If the Content-Language request header has previously been set for the + * resource, that value is returned in this header. + */ + @JsonProperty(value = "Content-Language") + private String contentLanguage; + + /* + * The size of the resource in bytes. + */ + @JsonProperty(value = "Content-Length") + private Long contentLength; + + /* + * Indicates the range of bytes returned in the event that the client + * requested a subset of the file by setting the Range request header. + */ + @JsonProperty(value = "Content-Range") + private String contentRange; + + /* + * The content type specified for the resource. If no content type was + * specified, the default content type is application/octet-stream. + */ + @JsonProperty(value = "Content-Type") + private String contentType; + + /* + * An MD5 hash of the request content. This header is only returned for + * "Append" operation. This header is returned so that the client can check + * for message content integrity. The value of this header is computed by + * the service; it is not necessarily the same value specified in the + * request headers. + */ + @JsonProperty(value = "Content-MD5") + private String contentMD5; + + /* + * User-defined properties associated with the file or directory, in the + * format of a comma-separated list of name and value pairs "n1=v1, n2=v2, + * ...", where each value is a base64 encoded string. Note that the string + * may only contain ASCII characters in the ISO-8859-1 character set. + */ + @JsonProperty(value = "x-ms-properties") + private String xMsProperties; + + /* + * A server-generated UUID recorded in the analytics logs for + * troubleshooting and correlation. + */ + @JsonProperty(value = "x-ms-request-id") + private String xMsRequestId; + + /* + * The version of the REST protocol used to process the request. + */ + @JsonProperty(value = "x-ms-version") + private String xMsVersion; + + /** + * Get the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @return the dateProperty value. + */ + public String dateProperty() { + return this.dateProperty; + } + + /** + * Set the dateProperty property: A UTC date/time value generated by the + * service that indicates the time at which the response was initiated. + * + * @param dateProperty the dateProperty value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders dateProperty(String dateProperty) { + this.dateProperty = dateProperty; + return this; + } + + /** + * Get the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the eTag property: An HTTP entity tag associated with the file or + * directory. + * + * @param eTag the eTag value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders eTag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @return the lastModified value. + */ + public String lastModified() { + return this.lastModified; + } + + /** + * Set the lastModified property: The data and time the file or directory + * was last modified. Write operations on the file or directory update the + * last modified time. + * + * @param lastModified the lastModified value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders lastModified(String lastModified) { + this.lastModified = lastModified; + return this; + } + + /** + * Get the acceptRanges property: Indicates that the service supports + * requests for partial file content. + * + * @return the acceptRanges value. + */ + public String acceptRanges() { + return this.acceptRanges; + } + + /** + * Set the acceptRanges property: Indicates that the service supports + * requests for partial file content. + * + * @param acceptRanges the acceptRanges value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders acceptRanges(String acceptRanges) { + this.acceptRanges = acceptRanges; + return this; + } + + /** + * Get the cacheControl property: If the Cache-Control request header has + * previously been set for the resource, that value is returned in this + * header. + * + * @return the cacheControl value. + */ + public String cacheControl() { + return this.cacheControl; + } + + /** + * Set the cacheControl property: If the Cache-Control request header has + * previously been set for the resource, that value is returned in this + * header. + * + * @param cacheControl the cacheControl value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders cacheControl(String cacheControl) { + this.cacheControl = cacheControl; + return this; + } + + /** + * Get the contentDisposition property: If the Content-Disposition request + * header has previously been set for the resource, that value is returned + * in this header. + * + * @return the contentDisposition value. + */ + public String contentDisposition() { + return this.contentDisposition; + } + + /** + * Set the contentDisposition property: If the Content-Disposition request + * header has previously been set for the resource, that value is returned + * in this header. + * + * @param contentDisposition the contentDisposition value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders contentDisposition(String contentDisposition) { + this.contentDisposition = contentDisposition; + return this; + } + + /** + * Get the contentEncoding property: If the Content-Encoding request header + * has previously been set for the resource, that value is returned in this + * header. + * + * @return the contentEncoding value. + */ + public String contentEncoding() { + return this.contentEncoding; + } + + /** + * Set the contentEncoding property: If the Content-Encoding request header + * has previously been set for the resource, that value is returned in this + * header. + * + * @param contentEncoding the contentEncoding value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders contentEncoding(String contentEncoding) { + this.contentEncoding = contentEncoding; + return this; + } + + /** + * Get the contentLanguage property: If the Content-Language request header + * has previously been set for the resource, that value is returned in this + * header. + * + * @return the contentLanguage value. + */ + public String contentLanguage() { + return this.contentLanguage; + } + + /** + * Set the contentLanguage property: If the Content-Language request header + * has previously been set for the resource, that value is returned in this + * header. + * + * @param contentLanguage the contentLanguage value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders contentLanguage(String contentLanguage) { + this.contentLanguage = contentLanguage; + return this; + } + + /** + * Get the contentLength property: The size of the resource in bytes. + * + * @return the contentLength value. + */ + public Long contentLength() { + return this.contentLength; + } + + /** + * Set the contentLength property: The size of the resource in bytes. + * + * @param contentLength the contentLength value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders contentLength(Long contentLength) { + this.contentLength = contentLength; + return this; + } + + /** + * Get the contentRange property: Indicates the range of bytes returned in + * the event that the client requested a subset of the file by setting the + * Range request header. + * + * @return the contentRange value. + */ + public String contentRange() { + return this.contentRange; + } + + /** + * Set the contentRange property: Indicates the range of bytes returned in + * the event that the client requested a subset of the file by setting the + * Range request header. + * + * @param contentRange the contentRange value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders contentRange(String contentRange) { + this.contentRange = contentRange; + return this; + } + + /** + * Get the contentType property: The content type specified for the + * resource. If no content type was specified, the default content type is + * application/octet-stream. + * + * @return the contentType value. + */ + public String contentType() { + return this.contentType; + } + + /** + * Set the contentType property: The content type specified for the + * resource. If no content type was specified, the default content type is + * application/octet-stream. + * + * @param contentType the contentType value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders contentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * Get the contentMD5 property: An MD5 hash of the request content. This + * header is only returned for "Append" operation. This header is returned + * so that the client can check for message content integrity. The value of + * this header is computed by the service; it is not necessarily the same + * value specified in the request headers. + * + * @return the contentMD5 value. + */ + public String contentMD5() { + return this.contentMD5; + } + + /** + * Set the contentMD5 property: An MD5 hash of the request content. This + * header is only returned for "Append" operation. This header is returned + * so that the client can check for message content integrity. The value of + * this header is computed by the service; it is not necessarily the same + * value specified in the request headers. + * + * @param contentMD5 the contentMD5 value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders contentMD5(String contentMD5) { + this.contentMD5 = contentMD5; + return this; + } + + /** + * Get the xMsProperties property: User-defined properties associated with + * the file or directory, in the format of a comma-separated list of name + * and value pairs "n1=v1, n2=v2, ...", where each value is a base64 + * encoded string. Note that the string may only contain ASCII characters + * in the ISO-8859-1 character set. + * + * @return the xMsProperties value. + */ + public String xMsProperties() { + return this.xMsProperties; + } + + /** + * Set the xMsProperties property: User-defined properties associated with + * the file or directory, in the format of a comma-separated list of name + * and value pairs "n1=v1, n2=v2, ...", where each value is a base64 + * encoded string. Note that the string may only contain ASCII characters + * in the ISO-8859-1 character set. + * + * @param xMsProperties the xMsProperties value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders xMsProperties(String xMsProperties) { + this.xMsProperties = xMsProperties; + return this; + } + + /** + * Get the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @return the xMsRequestId value. + */ + public String xMsRequestId() { + return this.xMsRequestId; + } + + /** + * Set the xMsRequestId property: A server-generated UUID recorded in the + * analytics logs for troubleshooting and correlation. + * + * @param xMsRequestId the xMsRequestId value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders xMsRequestId(String xMsRequestId) { + this.xMsRequestId = xMsRequestId; + return this; + } + + /** + * Get the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @return the xMsVersion value. + */ + public String xMsVersion() { + return this.xMsVersion; + } + + /** + * Set the xMsVersion property: The version of the REST protocol used to + * process the request. + * + * @param xMsVersion the xMsVersion value to set. + * @return the PathUpdateHeaders object itself. + */ + public PathUpdateHeaders xMsVersion(String xMsVersion) { + this.xMsVersion = xMsVersion; + return this; + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsCreateResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsCreateResponse.java new file mode 100644 index 000000000000..eacff86e98df --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsCreateResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the create operation. + */ +public final class PathsCreateResponse extends ResponseBase { + /** + * Creates an instance of PathsCreateResponse. + * + * @param request the request which resulted in this PathsCreateResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public PathsCreateResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, PathCreateHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsDeleteResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsDeleteResponse.java new file mode 100644 index 000000000000..79e8b5be04f4 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsDeleteResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the delete operation. + */ +public final class PathsDeleteResponse extends ResponseBase { + /** + * Creates an instance of PathsDeleteResponse. + * + * @param request the request which resulted in this PathsDeleteResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public PathsDeleteResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, PathDeleteHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsGetPropertiesResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsGetPropertiesResponse.java new file mode 100644 index 000000000000..b297bd3e9fd6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsGetPropertiesResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the getProperties operation. + */ +public final class PathsGetPropertiesResponse extends ResponseBase { + /** + * Creates an instance of PathsGetPropertiesResponse. + * + * @param request the request which resulted in this PathsGetPropertiesResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public PathsGetPropertiesResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, PathGetPropertiesHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsLeaseResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsLeaseResponse.java new file mode 100644 index 000000000000..9869bcba9f6d --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsLeaseResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the lease operation. + */ +public final class PathsLeaseResponse extends ResponseBase { + /** + * Creates an instance of PathsLeaseResponse. + * + * @param request the request which resulted in this PathsLeaseResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public PathsLeaseResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, PathLeaseHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsListResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsListResponse.java new file mode 100644 index 000000000000..922ccb087379 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsListResponse.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the list operation. + */ +public final class PathsListResponse extends ResponseBase { + /** + * Creates an instance of PathsListResponse. + * + * @param request the request which resulted in this PathsListResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public PathsListResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, PathList value, PathListHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } + + /** + * @return the deserialized response body. + */ + @Override + public PathList value() { + return super.value(); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsReadResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsReadResponse.java new file mode 100644 index 000000000000..026b4ecd7602 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsReadResponse.java @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; +import io.netty.buffer.ByteBuf; +import java.io.Closeable; +import reactor.core.publisher.Flux; + +/** + * Contains all response data for the read operation. + */ +public final class PathsReadResponse extends ResponseBase> implements Closeable { + /** + * Creates an instance of PathsReadResponse. + * + * @param request the request which resulted in this PathsReadResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the content stream. + * @param headers the deserialized headers of the HTTP response. + */ + public PathsReadResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Flux value, PathReadHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } + + /** + * @return the response content stream. + */ + @Override + public Flux value() { + return super.value(); + } + + /** + * Disposes of the connection associated with this stream response. + */ + @Override + public void close() { + value().subscribe(bb -> { }, t -> { }).dispose(); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsUpdateResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsUpdateResponse.java new file mode 100644 index 000000000000..65b0500199dc --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsUpdateResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.storage.file.datalake.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the update operation. + */ +public final class PathsUpdateResponse extends ResponseBase { + /** + * Creates an instance of PathsUpdateResponse. + * + * @param request the request which resulted in this PathsUpdateResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public PathsUpdateResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, PathUpdateHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/package-info.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/package-info.java new file mode 100644 index 000000000000..23286f8025c6 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/package-info.java @@ -0,0 +1,10 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** + * Package containing the data models for DataLakeStorageClient. + * Azure Data Lake Storage provides storage for Hadoop and other big data + * workloads. + */ +package com.azure.storage.file.datalake.models; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/package-info.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/package-info.java new file mode 100644 index 000000000000..77d02b6a2876 --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/package-info.java @@ -0,0 +1,10 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +/** + * Package containing the class required for DataLakeStorageClient. + * Azure Data Lake Storage provides storage for Hadoop and other big data + * workloads. + */ +package com.azure.storage.file.datalake; diff --git a/sdk/storage/azure-storage-file-datalake/swagger/README.md b/sdk/storage/azure-storage-file-datalake/swagger/README.md new file mode 100644 index 000000000000..c1cbf9c5d59e --- /dev/null +++ b/sdk/storage/azure-storage-file-datalake/swagger/README.md @@ -0,0 +1,37 @@ +# Azure File Data Lake Storage for Java + +> see https://aka.ms/autorest + +### Setup +```ps +cd C:\work +git clone --recursive https://github.com/Azure/autorest.java/ +cd autorest.java +git checkout v3 +npm install +cd .. +git clone --recursive https://github.com/jianghaolu/autorest.modeler/ +cd autorest.modeler +git checkout headerprefixfix +npm install +``` + +### Generation +```ps +cd +autorest --use=C:/work/autorest.java --use=C:/work/autorest.modeler --version=2.0.4280 +``` + +### Code generation settings +``` yaml +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/storage-dataplane-preview/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2018-11-09/DataLakeStorage.json +java: true +output-folder: ../ +namespace: com.azure.storage.file.datalake +enable-xml: true +generate-client-interfaces: false +sync-methods: none +license-header: MICROSOFT_MIT_SMALL +add-context-parameter: true +``` + From ef5538ec291887ad1f175c4dc17178a79b3c7bb4 Mon Sep 17 00:00:00 2001 From: Gauri Prasad Date: Wed, 25 Sep 2019 16:26:46 -0700 Subject: [PATCH 3/7] Added README with all required headers --- .../azure-storage-file-datalake/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/sdk/storage/azure-storage-file-datalake/README.md b/sdk/storage/azure-storage-file-datalake/README.md index e5691b1cb916..8d26539f759b 100644 --- a/sdk/storage/azure-storage-file-datalake/README.md +++ b/sdk/storage/azure-storage-file-datalake/README.md @@ -64,3 +64,20 @@ az group create \ --name storage-resource-group \ --location westus ``` + +## Key concepts + +## Examples + +## Troubleshooting + +## Next steps + +## Contributing +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com. + +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments. + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java/sdk/tracing/README.png) From 3c433bb8018b7efbb8d94090cde0bddd87717dca Mon Sep 17 00:00:00 2001 From: Gauri Prasad Date: Wed, 25 Sep 2019 17:16:59 -0700 Subject: [PATCH 4/7] Fixed bug with servicebuilder and removed ADLS from CI --- .../implementation/DataLakeStorageClientBuilder.java | 2 +- sdk/storage/ci.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java index dee1d8747c98..e46761ef2f2e 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java @@ -6,7 +6,7 @@ import com.azure.core.http.HttpPipeline; import com.azure.core.implementation.RestProxy; -import com.azure.core.implementation.annotation.ServiceClientBuilder; +import com.azure.core.annotation.ServiceClientBuilder; /** * A builder for creating a new instance of the DataLakeStorageClient type. diff --git a/sdk/storage/ci.yml b/sdk/storage/ci.yml index 8a599d4b7dca..9defadb883e0 100644 --- a/sdk/storage/ci.yml +++ b/sdk/storage/ci.yml @@ -50,9 +50,9 @@ stages: - name: azure-storage-file safeName: azurestoragefile stagingProfileId: 88192f04117501 - - name: azure-storage-file-datalake - safeName: azurestoragefiledatalake - stagingProfileId: 88192f04117501 +# - name: azure-storage-file-datalake +# safeName: azurestoragefiledatalake +# stagingProfileId: 88192f04117501 - name: azure-storage-queue safeName: azurestoragequeue stagingProfileId: 88192f04117501 From ce4151c3519e85bc5c478f7418a9ed76c19b24ee Mon Sep 17 00:00:00 2001 From: Gauri Prasad Date: Wed, 25 Sep 2019 17:21:49 -0700 Subject: [PATCH 5/7] Created blank README --- .../azure-storage-file-datalake/README.md | 63 ------------------- 1 file changed, 63 deletions(-) diff --git a/sdk/storage/azure-storage-file-datalake/README.md b/sdk/storage/azure-storage-file-datalake/README.md index 8d26539f759b..a38da8a6ed2a 100644 --- a/sdk/storage/azure-storage-file-datalake/README.md +++ b/sdk/storage/azure-storage-file-datalake/README.md @@ -1,70 +1,7 @@ # Azure File Data Lake client library for Java -[Source code][source_code] | [API reference documentation][api_documentation] | [Product documentation][storage_docs] | -[Samples][samples] - ## Getting started -### Prerequisites - -- [Java Development Kit (JDK)][jdk] with version 8 or above -- [Azure Subscription][azure_subscription] -- [Create Storage Account][storage_account] - -### Adding the package to your product - -```xml - - com.azure - azure-storage-file-datalake - 12.0.0-preview.4 - -``` - -### Default HTTP Client -All client libraries support a pluggable HTTP transport layer. Users can specify an HTTP client specific for their needs by including the following dependency in the Maven pom.xml file: - -```xml - - com.azure - azure-core-http-netty - 1.0.0-preview.4 - -``` - -This will automatically configure all client libraries on the same classpath to make use of Netty for the HTTP client. Netty is the recommended HTTP client for most applications. OkHttp is recommended only when the application being built is deployed to Android devices. - -If, instead of Netty it is preferable to use OkHTTP, there is a HTTP client available for that too. Simply include the following dependency instead: - -```xml - - com.azure - azure-core-http-okhttp - 1.0.0-preview.4 - -``` - -### Configuring HTTP Clients -When an HTTP client is included on the classpath, as shown above, it is not necessary to specify it in the client library [builders](#file-services), unless you want to customize the HTTP client in some fashion. If this is desired, the `httpClient` builder method is often available to achieve just this, by allowing users to provide a custom (or customized) `com.azure.core.http.HttpClient` instances. - -For starters, by having the Netty or OkHTTP dependencies on your classpath, as shown above, you can create new instances of these `HttpClient` types using their builder APIs. For example, here is how you would create a Netty HttpClient instance: - -```java -HttpClient client = new NettyAsyncHttpClientBuilder() - .port(8080) - .wiretap(true) - .build(); -``` - -### Create a Storage Account -To create a Storage Account you can use the Azure Portal or [Azure CLI][azure_cli]. - -```powershell -az group create \ - --name storage-resource-group \ - --location westus -``` - ## Key concepts ## Examples From c751ee5b8ba5917a6697c499eb6bec5afd982154 Mon Sep 17 00:00:00 2001 From: Gauri Prasad Date: Wed, 25 Sep 2019 17:25:01 -0700 Subject: [PATCH 6/7] Autogenerated off latest generator --- .../DataLakeStorageClientBuilder.java | 7 +- .../DataLakeStorageClientImpl.java | 3 - .../implementation/FilesystemsImpl.java | 30 +++--- .../datalake/implementation/PathsImpl.java | 42 ++++----- .../datalake/models/DataLakeStorageError.java | 6 +- .../models/DataLakeStorageErrorError.java | 10 +- .../models/DataLakeStorageErrorException.java | 4 +- .../file/datalake/models/Filesystem.java | 14 +-- .../models/FilesystemCreateHeaders.java | 26 ++--- .../models/FilesystemDeleteHeaders.java | 14 +-- .../FilesystemGetPropertiesHeaders.java | 30 +++--- .../file/datalake/models/FilesystemList.java | 6 +- .../models/FilesystemListHeaders.java | 22 ++--- .../FilesystemSetPropertiesHeaders.java | 22 ++--- .../models/FilesystemsListResponse.java | 4 +- .../storage/file/datalake/models/Path.java | 32 +++---- .../datalake/models/PathCreateHeaders.java | 30 +++--- .../datalake/models/PathDeleteHeaders.java | 18 ++-- .../models/PathGetPropertiesHeaders.java | 94 +++++++++---------- .../datalake/models/PathLeaseHeaders.java | 30 +++--- .../file/datalake/models/PathList.java | 6 +- .../file/datalake/models/PathListHeaders.java | 26 ++--- .../file/datalake/models/PathReadHeaders.java | 82 ++++++++-------- .../datalake/models/PathUpdateHeaders.java | 62 ++++++------ .../datalake/models/PathsListResponse.java | 4 +- .../datalake/models/PathsReadResponse.java | 12 +-- 26 files changed, 316 insertions(+), 320 deletions(-) diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java index e46761ef2f2e..fc32992df5e9 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientBuilder.java @@ -4,9 +4,9 @@ package com.azure.storage.file.datalake.implementation; +import com.azure.core.annotation.ServiceClientBuilder; import com.azure.core.http.HttpPipeline; import com.azure.core.implementation.RestProxy; -import com.azure.core.annotation.ServiceClientBuilder; /** * A builder for creating a new instance of the DataLakeStorageClient type. @@ -83,9 +83,6 @@ public DataLakeStorageClientBuilder pipeline(HttpPipeline pipeline) { * @return an instance of DataLakeStorageClientImpl. */ public DataLakeStorageClientImpl build() { - if (dnsSuffix == null) { - this.dnsSuffix = "dfs.core.windows.net"; - } if (pipeline == null) { this.pipeline = RestProxy.createDefaultPipeline(); } @@ -98,6 +95,8 @@ public DataLakeStorageClientImpl build() { } if (this.dnsSuffix != null) { client.setDnsSuffix(this.dnsSuffix); + } else { + client.setDnsSuffix("dfs.core.windows.net"); } return client; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientImpl.java index 34c9937f0350..928696c461ea 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientImpl.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/DataLakeStorageClientImpl.java @@ -29,7 +29,6 @@ public String getXMsVersion() { * Sets Specifies the version of the REST protocol used for processing the request. This is required when using shared key authorization. * * @param xMsVersion the xMsVersion value. - * @return the service client itself. */ DataLakeStorageClientImpl setXMsVersion(String xMsVersion) { this.xMsVersion = xMsVersion; @@ -54,7 +53,6 @@ public String getAccountName() { * Sets The Azure Storage account name. * * @param accountName the accountName value. - * @return the service client itself. */ DataLakeStorageClientImpl setAccountName(String accountName) { this.accountName = accountName; @@ -79,7 +77,6 @@ public String getDnsSuffix() { * Sets The DNS suffix for the Azure Data Lake Storage endpoint. * * @param dnsSuffix the dnsSuffix value. - * @return the service client itself. */ DataLakeStorageClientImpl setDnsSuffix(String dnsSuffix) { this.dnsSuffix = dnsSuffix; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FilesystemsImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FilesystemsImpl.java index 15e4cbccc6f4..d09a8017e4c1 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FilesystemsImpl.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/FilesystemsImpl.java @@ -4,22 +4,22 @@ package com.azure.storage.file.datalake.implementation; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.Head; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; import com.azure.core.implementation.RestProxy; -import com.azure.core.implementation.annotation.Delete; -import com.azure.core.implementation.annotation.ExpectedResponses; -import com.azure.core.implementation.annotation.Get; -import com.azure.core.implementation.annotation.Head; -import com.azure.core.implementation.annotation.HeaderParam; -import com.azure.core.implementation.annotation.Host; -import com.azure.core.implementation.annotation.HostParam; -import com.azure.core.implementation.annotation.Patch; -import com.azure.core.implementation.annotation.PathParam; -import com.azure.core.implementation.annotation.Put; -import com.azure.core.implementation.annotation.QueryParam; -import com.azure.core.implementation.annotation.ReturnType; -import com.azure.core.implementation.annotation.ServiceInterface; -import com.azure.core.implementation.annotation.ServiceMethod; -import com.azure.core.implementation.annotation.UnexpectedResponseExceptionType; import com.azure.core.util.Context; import com.azure.storage.file.datalake.models.DataLakeStorageErrorException; import com.azure.storage.file.datalake.models.FilesystemsCreateResponse; diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java index 2e66949feb68..352aabe497f0 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/PathsImpl.java @@ -4,24 +4,24 @@ package com.azure.storage.file.datalake.implementation; +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.Head; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; import com.azure.core.implementation.RestProxy; -import com.azure.core.implementation.annotation.BodyParam; -import com.azure.core.implementation.annotation.Delete; -import com.azure.core.implementation.annotation.ExpectedResponses; -import com.azure.core.implementation.annotation.Get; -import com.azure.core.implementation.annotation.Head; -import com.azure.core.implementation.annotation.HeaderParam; -import com.azure.core.implementation.annotation.Host; -import com.azure.core.implementation.annotation.HostParam; -import com.azure.core.implementation.annotation.Patch; -import com.azure.core.implementation.annotation.PathParam; -import com.azure.core.implementation.annotation.Post; -import com.azure.core.implementation.annotation.Put; -import com.azure.core.implementation.annotation.QueryParam; -import com.azure.core.implementation.annotation.ReturnType; -import com.azure.core.implementation.annotation.ServiceInterface; -import com.azure.core.implementation.annotation.ServiceMethod; -import com.azure.core.implementation.annotation.UnexpectedResponseExceptionType; import com.azure.core.util.Context; import com.azure.storage.file.datalake.models.DataLakeStorageErrorException; import com.azure.storage.file.datalake.models.PathGetPropertiesAction; @@ -36,7 +36,7 @@ import com.azure.storage.file.datalake.models.PathsReadResponse; import com.azure.storage.file.datalake.models.PathsUpdateResponse; import com.azure.storage.file.datalake.models.PathUpdateAction; -import io.netty.buffer.ByteBuf; +import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -85,7 +85,7 @@ private interface PathsService { @Patch("{filesystem}/{path}") @ExpectedResponses({200, 202}) @UnexpectedResponseExceptionType(DataLakeStorageErrorException.class) - Mono update(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("action") PathUpdateAction action, @QueryParam("position") Long position, @QueryParam("retainUncommittedData") Boolean retainUncommittedData, @QueryParam("close") Boolean close, @HeaderParam("Content-Length") Long contentLength, @HeaderParam("Content-MD5") String contentMD5, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("x-ms-cache-control") String xMsCacheControl, @HeaderParam("x-ms-content-type") String xMsContentType, @HeaderParam("x-ms-content-disposition") String xMsContentDisposition, @HeaderParam("x-ms-content-encoding") String xMsContentEncoding, @HeaderParam("x-ms-content-language") String xMsContentLanguage, @HeaderParam("x-ms-content-md5") String xMsContentMd5, @HeaderParam("x-ms-properties") String xMsProperties, @HeaderParam("x-ms-owner") String xMsOwner, @HeaderParam("x-ms-group") String xMsGroup, @HeaderParam("x-ms-permissions") String xMsPermissions, @HeaderParam("x-ms-acl") String xMsAcl, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @BodyParam("application/octet-stream") Flux requestBody, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); + Mono update(@PathParam("filesystem") String filesystem, @PathParam("path") String path, @HostParam("accountName") String accountName, @HostParam("dnsSuffix") String dnsSuffix, @QueryParam("action") PathUpdateAction action, @QueryParam("position") Long position, @QueryParam("retainUncommittedData") Boolean retainUncommittedData, @QueryParam("close") Boolean close, @HeaderParam("Content-Length") Long contentLength, @HeaderParam("Content-MD5") String contentMD5, @HeaderParam("x-ms-lease-id") String xMsLeaseId, @HeaderParam("x-ms-cache-control") String xMsCacheControl, @HeaderParam("x-ms-content-type") String xMsContentType, @HeaderParam("x-ms-content-disposition") String xMsContentDisposition, @HeaderParam("x-ms-content-encoding") String xMsContentEncoding, @HeaderParam("x-ms-content-language") String xMsContentLanguage, @HeaderParam("x-ms-content-md5") String xMsContentMd5, @HeaderParam("x-ms-properties") String xMsProperties, @HeaderParam("x-ms-owner") String xMsOwner, @HeaderParam("x-ms-group") String xMsGroup, @HeaderParam("x-ms-permissions") String xMsPermissions, @HeaderParam("x-ms-acl") String xMsAcl, @HeaderParam("If-Match") String ifMatch, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("If-Modified-Since") String ifModifiedSince, @HeaderParam("If-Unmodified-Since") String ifUnmodifiedSince, @BodyParam("application/octet-stream") Flux requestBody, @HeaderParam("x-ms-client-request-id") String xMsClientRequestId, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-date") String xMsDate, @HeaderParam("x-ms-version") String xMsVersion, Context context); @Post("{filesystem}/{path}") @ExpectedResponses({200, 201, 202}) @@ -276,7 +276,7 @@ public Mono updateWithRestResponseAsync(PathUpdateAction ac final String ifNoneMatch = null; final String ifModifiedSince = null; final String ifUnmodifiedSince = null; - final Flux requestBody = null; + final Flux requestBody = null; final String xMsClientRequestId = null; final Integer timeout = null; final String xMsDate = null; @@ -320,7 +320,7 @@ public Mono updateWithRestResponseAsync(PathUpdateAction ac * @return a Mono which performs the network request upon subscription. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateWithRestResponseAsync(PathUpdateAction action, String filesystem, String path, Long position, Boolean retainUncommittedData, Boolean close, Long contentLength, String contentMD5, String xMsLeaseId, String xMsCacheControl, String xMsContentType, String xMsContentDisposition, String xMsContentEncoding, String xMsContentLanguage, String xMsContentMd5, String xMsProperties, String xMsOwner, String xMsGroup, String xMsPermissions, String xMsAcl, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, Flux requestBody, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { + public Mono updateWithRestResponseAsync(PathUpdateAction action, String filesystem, String path, Long position, Boolean retainUncommittedData, Boolean close, Long contentLength, String contentMD5, String xMsLeaseId, String xMsCacheControl, String xMsContentType, String xMsContentDisposition, String xMsContentEncoding, String xMsContentLanguage, String xMsContentMd5, String xMsProperties, String xMsOwner, String xMsGroup, String xMsPermissions, String xMsAcl, String ifMatch, String ifNoneMatch, String ifModifiedSince, String ifUnmodifiedSince, Flux requestBody, String xMsClientRequestId, Integer timeout, String xMsDate, Context context) { return service.update(filesystem, path, this.client.getAccountName(), this.client.getDnsSuffix(), action, position, retainUncommittedData, close, contentLength, contentMD5, xMsLeaseId, xMsCacheControl, xMsContentType, xMsContentDisposition, xMsContentEncoding, xMsContentLanguage, xMsContentMd5, xMsProperties, xMsOwner, xMsGroup, xMsPermissions, xMsAcl, ifMatch, ifNoneMatch, ifModifiedSince, ifUnmodifiedSince, requestBody, xMsClientRequestId, timeout, xMsDate, this.client.getXMsVersion(), context); } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageError.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageError.java index f6f161de65c1..648b4fd63591 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageError.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageError.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -23,7 +23,7 @@ public final class DataLakeStorageError { * * @return the error value. */ - public DataLakeStorageErrorError error() { + public DataLakeStorageErrorError getError() { return this.error; } @@ -33,7 +33,7 @@ public DataLakeStorageErrorError error() { * @param error the error value to set. * @return the DataLakeStorageError object itself. */ - public DataLakeStorageError error(DataLakeStorageErrorError error) { + public DataLakeStorageError setError(DataLakeStorageErrorError error) { this.error = error; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorError.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorError.java index e9fca4415623..5f302241e661 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorError.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorError.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -29,7 +29,7 @@ public final class DataLakeStorageErrorError { * * @return the code value. */ - public String code() { + public String getCode() { return this.code; } @@ -39,7 +39,7 @@ public String code() { * @param code the code value to set. * @return the DataLakeStorageErrorError object itself. */ - public DataLakeStorageErrorError code(String code) { + public DataLakeStorageErrorError setCode(String code) { this.code = code; return this; } @@ -49,7 +49,7 @@ public DataLakeStorageErrorError code(String code) { * * @return the message value. */ - public String message() { + public String getMessage() { return this.message; } @@ -59,7 +59,7 @@ public String message() { * @param message the message value to set. * @return the DataLakeStorageErrorError object itself. */ - public DataLakeStorageErrorError message(String message) { + public DataLakeStorageErrorError setMessage(String message) { this.message = message; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorException.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorException.java index 5769dbff7ae2..6045cbc2e2fa 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorException.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/DataLakeStorageErrorException.java @@ -33,7 +33,7 @@ public DataLakeStorageErrorException(String message, HttpResponse response, Data } @Override - public DataLakeStorageError value() { - return (DataLakeStorageError) super.value(); + public DataLakeStorageError getValue() { + return (DataLakeStorageError) super.getValue(); } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Filesystem.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Filesystem.java index c7f90b4b1f4a..8db976f13efe 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Filesystem.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Filesystem.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -35,7 +35,7 @@ public final class Filesystem { * * @return the name value. */ - public String name() { + public String getName() { return this.name; } @@ -45,7 +45,7 @@ public String name() { * @param name the name value to set. * @return the Filesystem object itself. */ - public Filesystem name(String name) { + public Filesystem setName(String name) { this.name = name; return this; } @@ -55,7 +55,7 @@ public Filesystem name(String name) { * * @return the lastModified value. */ - public String lastModified() { + public String getLastModified() { return this.lastModified; } @@ -65,7 +65,7 @@ public String lastModified() { * @param lastModified the lastModified value to set. * @return the Filesystem object itself. */ - public Filesystem lastModified(String lastModified) { + public Filesystem setLastModified(String lastModified) { this.lastModified = lastModified; return this; } @@ -75,7 +75,7 @@ public Filesystem lastModified(String lastModified) { * * @return the eTag value. */ - public String eTag() { + public String getETag() { return this.eTag; } @@ -85,7 +85,7 @@ public String eTag() { * @param eTag the eTag value to set. * @return the Filesystem object itself. */ - public Filesystem eTag(String eTag) { + public Filesystem setETag(String eTag) { this.eTag = eTag; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemCreateHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemCreateHeaders.java index 5de195699985..6a7674ad590c 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemCreateHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemCreateHeaders.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -58,7 +58,7 @@ public final class FilesystemCreateHeaders { * * @return the dateProperty value. */ - public String dateProperty() { + public String getDateProperty() { return this.dateProperty; } @@ -69,7 +69,7 @@ public String dateProperty() { * @param dateProperty the dateProperty value to set. * @return the FilesystemCreateHeaders object itself. */ - public FilesystemCreateHeaders dateProperty(String dateProperty) { + public FilesystemCreateHeaders setDateProperty(String dateProperty) { this.dateProperty = dateProperty; return this; } @@ -80,7 +80,7 @@ public FilesystemCreateHeaders dateProperty(String dateProperty) { * * @return the eTag value. */ - public String eTag() { + public String getETag() { return this.eTag; } @@ -91,7 +91,7 @@ public String eTag() { * @param eTag the eTag value to set. * @return the FilesystemCreateHeaders object itself. */ - public FilesystemCreateHeaders eTag(String eTag) { + public FilesystemCreateHeaders setETag(String eTag) { this.eTag = eTag; return this; } @@ -103,7 +103,7 @@ public FilesystemCreateHeaders eTag(String eTag) { * * @return the lastModified value. */ - public String lastModified() { + public String getLastModified() { return this.lastModified; } @@ -115,7 +115,7 @@ public String lastModified() { * @param lastModified the lastModified value to set. * @return the FilesystemCreateHeaders object itself. */ - public FilesystemCreateHeaders lastModified(String lastModified) { + public FilesystemCreateHeaders setLastModified(String lastModified) { this.lastModified = lastModified; return this; } @@ -126,7 +126,7 @@ public FilesystemCreateHeaders lastModified(String lastModified) { * * @return the xMsRequestId value. */ - public String xMsRequestId() { + public String getXMsRequestId() { return this.xMsRequestId; } @@ -137,7 +137,7 @@ public String xMsRequestId() { * @param xMsRequestId the xMsRequestId value to set. * @return the FilesystemCreateHeaders object itself. */ - public FilesystemCreateHeaders xMsRequestId(String xMsRequestId) { + public FilesystemCreateHeaders setXMsRequestId(String xMsRequestId) { this.xMsRequestId = xMsRequestId; return this; } @@ -148,7 +148,7 @@ public FilesystemCreateHeaders xMsRequestId(String xMsRequestId) { * * @return the xMsVersion value. */ - public String xMsVersion() { + public String getXMsVersion() { return this.xMsVersion; } @@ -159,7 +159,7 @@ public String xMsVersion() { * @param xMsVersion the xMsVersion value to set. * @return the FilesystemCreateHeaders object itself. */ - public FilesystemCreateHeaders xMsVersion(String xMsVersion) { + public FilesystemCreateHeaders setXMsVersion(String xMsVersion) { this.xMsVersion = xMsVersion; return this; } @@ -171,7 +171,7 @@ public FilesystemCreateHeaders xMsVersion(String xMsVersion) { * * @return the xMsNamespaceEnabled value. */ - public String xMsNamespaceEnabled() { + public String getXMsNamespaceEnabled() { return this.xMsNamespaceEnabled; } @@ -183,7 +183,7 @@ public String xMsNamespaceEnabled() { * @param xMsNamespaceEnabled the xMsNamespaceEnabled value to set. * @return the FilesystemCreateHeaders object itself. */ - public FilesystemCreateHeaders xMsNamespaceEnabled(String xMsNamespaceEnabled) { + public FilesystemCreateHeaders setXMsNamespaceEnabled(String xMsNamespaceEnabled) { this.xMsNamespaceEnabled = xMsNamespaceEnabled; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemDeleteHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemDeleteHeaders.java index 688c618bd602..8950c157c142 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemDeleteHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemDeleteHeaders.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -38,7 +38,7 @@ public final class FilesystemDeleteHeaders { * * @return the xMsRequestId value. */ - public String xMsRequestId() { + public String getXMsRequestId() { return this.xMsRequestId; } @@ -49,7 +49,7 @@ public String xMsRequestId() { * @param xMsRequestId the xMsRequestId value to set. * @return the FilesystemDeleteHeaders object itself. */ - public FilesystemDeleteHeaders xMsRequestId(String xMsRequestId) { + public FilesystemDeleteHeaders setXMsRequestId(String xMsRequestId) { this.xMsRequestId = xMsRequestId; return this; } @@ -60,7 +60,7 @@ public FilesystemDeleteHeaders xMsRequestId(String xMsRequestId) { * * @return the xMsVersion value. */ - public String xMsVersion() { + public String getXMsVersion() { return this.xMsVersion; } @@ -71,7 +71,7 @@ public String xMsVersion() { * @param xMsVersion the xMsVersion value to set. * @return the FilesystemDeleteHeaders object itself. */ - public FilesystemDeleteHeaders xMsVersion(String xMsVersion) { + public FilesystemDeleteHeaders setXMsVersion(String xMsVersion) { this.xMsVersion = xMsVersion; return this; } @@ -82,7 +82,7 @@ public FilesystemDeleteHeaders xMsVersion(String xMsVersion) { * * @return the dateProperty value. */ - public String dateProperty() { + public String getDateProperty() { return this.dateProperty; } @@ -93,7 +93,7 @@ public String dateProperty() { * @param dateProperty the dateProperty value to set. * @return the FilesystemDeleteHeaders object itself. */ - public FilesystemDeleteHeaders dateProperty(String dateProperty) { + public FilesystemDeleteHeaders setDateProperty(String dateProperty) { this.dateProperty = dateProperty; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemGetPropertiesHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemGetPropertiesHeaders.java index 5b55456ab9d3..646e3ee26b39 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemGetPropertiesHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemGetPropertiesHeaders.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -71,7 +71,7 @@ public final class FilesystemGetPropertiesHeaders { * * @return the dateProperty value. */ - public String dateProperty() { + public String getDateProperty() { return this.dateProperty; } @@ -82,7 +82,7 @@ public String dateProperty() { * @param dateProperty the dateProperty value to set. * @return the FilesystemGetPropertiesHeaders object itself. */ - public FilesystemGetPropertiesHeaders dateProperty(String dateProperty) { + public FilesystemGetPropertiesHeaders setDateProperty(String dateProperty) { this.dateProperty = dateProperty; return this; } @@ -94,7 +94,7 @@ public FilesystemGetPropertiesHeaders dateProperty(String dateProperty) { * * @return the eTag value. */ - public String eTag() { + public String getETag() { return this.eTag; } @@ -106,7 +106,7 @@ public String eTag() { * @param eTag the eTag value to set. * @return the FilesystemGetPropertiesHeaders object itself. */ - public FilesystemGetPropertiesHeaders eTag(String eTag) { + public FilesystemGetPropertiesHeaders setETag(String eTag) { this.eTag = eTag; return this; } @@ -118,7 +118,7 @@ public FilesystemGetPropertiesHeaders eTag(String eTag) { * * @return the lastModified value. */ - public String lastModified() { + public String getLastModified() { return this.lastModified; } @@ -130,7 +130,7 @@ public String lastModified() { * @param lastModified the lastModified value to set. * @return the FilesystemGetPropertiesHeaders object itself. */ - public FilesystemGetPropertiesHeaders lastModified(String lastModified) { + public FilesystemGetPropertiesHeaders setLastModified(String lastModified) { this.lastModified = lastModified; return this; } @@ -141,7 +141,7 @@ public FilesystemGetPropertiesHeaders lastModified(String lastModified) { * * @return the xMsRequestId value. */ - public String xMsRequestId() { + public String getXMsRequestId() { return this.xMsRequestId; } @@ -152,7 +152,7 @@ public String xMsRequestId() { * @param xMsRequestId the xMsRequestId value to set. * @return the FilesystemGetPropertiesHeaders object itself. */ - public FilesystemGetPropertiesHeaders xMsRequestId(String xMsRequestId) { + public FilesystemGetPropertiesHeaders setXMsRequestId(String xMsRequestId) { this.xMsRequestId = xMsRequestId; return this; } @@ -163,7 +163,7 @@ public FilesystemGetPropertiesHeaders xMsRequestId(String xMsRequestId) { * * @return the xMsVersion value. */ - public String xMsVersion() { + public String getXMsVersion() { return this.xMsVersion; } @@ -174,7 +174,7 @@ public String xMsVersion() { * @param xMsVersion the xMsVersion value to set. * @return the FilesystemGetPropertiesHeaders object itself. */ - public FilesystemGetPropertiesHeaders xMsVersion(String xMsVersion) { + public FilesystemGetPropertiesHeaders setXMsVersion(String xMsVersion) { this.xMsVersion = xMsVersion; return this; } @@ -188,7 +188,7 @@ public FilesystemGetPropertiesHeaders xMsVersion(String xMsVersion) { * * @return the xMsProperties value. */ - public String xMsProperties() { + public String getXMsProperties() { return this.xMsProperties; } @@ -202,7 +202,7 @@ public String xMsProperties() { * @param xMsProperties the xMsProperties value to set. * @return the FilesystemGetPropertiesHeaders object itself. */ - public FilesystemGetPropertiesHeaders xMsProperties(String xMsProperties) { + public FilesystemGetPropertiesHeaders setXMsProperties(String xMsProperties) { this.xMsProperties = xMsProperties; return this; } @@ -214,7 +214,7 @@ public FilesystemGetPropertiesHeaders xMsProperties(String xMsProperties) { * * @return the xMsNamespaceEnabled value. */ - public String xMsNamespaceEnabled() { + public String getXMsNamespaceEnabled() { return this.xMsNamespaceEnabled; } @@ -226,7 +226,7 @@ public String xMsNamespaceEnabled() { * @param xMsNamespaceEnabled the xMsNamespaceEnabled value to set. * @return the FilesystemGetPropertiesHeaders object itself. */ - public FilesystemGetPropertiesHeaders xMsNamespaceEnabled(String xMsNamespaceEnabled) { + public FilesystemGetPropertiesHeaders setXMsNamespaceEnabled(String xMsNamespaceEnabled) { this.xMsNamespaceEnabled = xMsNamespaceEnabled; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemList.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemList.java index 8fd6bb3124df..0a178366730b 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemList.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemList.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -24,7 +24,7 @@ public final class FilesystemList { * * @return the filesystems value. */ - public List filesystems() { + public List getFilesystems() { return this.filesystems; } @@ -34,7 +34,7 @@ public List filesystems() { * @param filesystems the filesystems value to set. * @return the FilesystemList object itself. */ - public FilesystemList filesystems(List filesystems) { + public FilesystemList setFilesystems(List filesystems) { this.filesystems = filesystems; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemListHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemListHeaders.java index afc792088bbf..193aeea5f3af 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemListHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemListHeaders.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -55,7 +55,7 @@ public final class FilesystemListHeaders { * * @return the dateProperty value. */ - public String dateProperty() { + public String getDateProperty() { return this.dateProperty; } @@ -66,7 +66,7 @@ public String dateProperty() { * @param dateProperty the dateProperty value to set. * @return the FilesystemListHeaders object itself. */ - public FilesystemListHeaders dateProperty(String dateProperty) { + public FilesystemListHeaders setDateProperty(String dateProperty) { this.dateProperty = dateProperty; return this; } @@ -77,7 +77,7 @@ public FilesystemListHeaders dateProperty(String dateProperty) { * * @return the xMsRequestId value. */ - public String xMsRequestId() { + public String getXMsRequestId() { return this.xMsRequestId; } @@ -88,7 +88,7 @@ public String xMsRequestId() { * @param xMsRequestId the xMsRequestId value to set. * @return the FilesystemListHeaders object itself. */ - public FilesystemListHeaders xMsRequestId(String xMsRequestId) { + public FilesystemListHeaders setXMsRequestId(String xMsRequestId) { this.xMsRequestId = xMsRequestId; return this; } @@ -99,7 +99,7 @@ public FilesystemListHeaders xMsRequestId(String xMsRequestId) { * * @return the xMsVersion value. */ - public String xMsVersion() { + public String getXMsVersion() { return this.xMsVersion; } @@ -110,7 +110,7 @@ public String xMsVersion() { * @param xMsVersion the xMsVersion value to set. * @return the FilesystemListHeaders object itself. */ - public FilesystemListHeaders xMsVersion(String xMsVersion) { + public FilesystemListHeaders setXMsVersion(String xMsVersion) { this.xMsVersion = xMsVersion; return this; } @@ -124,7 +124,7 @@ public FilesystemListHeaders xMsVersion(String xMsVersion) { * * @return the xMsContinuation value. */ - public String xMsContinuation() { + public String getXMsContinuation() { return this.xMsContinuation; } @@ -138,7 +138,7 @@ public String xMsContinuation() { * @param xMsContinuation the xMsContinuation value to set. * @return the FilesystemListHeaders object itself. */ - public FilesystemListHeaders xMsContinuation(String xMsContinuation) { + public FilesystemListHeaders setXMsContinuation(String xMsContinuation) { this.xMsContinuation = xMsContinuation; return this; } @@ -149,7 +149,7 @@ public FilesystemListHeaders xMsContinuation(String xMsContinuation) { * * @return the contentType value. */ - public String contentType() { + public String getContentType() { return this.contentType; } @@ -160,7 +160,7 @@ public String contentType() { * @param contentType the contentType value to set. * @return the FilesystemListHeaders object itself. */ - public FilesystemListHeaders contentType(String contentType) { + public FilesystemListHeaders setContentType(String contentType) { this.contentType = contentType; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemSetPropertiesHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemSetPropertiesHeaders.java index bf0b8d975dcb..7cefffede86f 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemSetPropertiesHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemSetPropertiesHeaders.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -54,7 +54,7 @@ public final class FilesystemSetPropertiesHeaders { * * @return the dateProperty value. */ - public String dateProperty() { + public String getDateProperty() { return this.dateProperty; } @@ -65,7 +65,7 @@ public String dateProperty() { * @param dateProperty the dateProperty value to set. * @return the FilesystemSetPropertiesHeaders object itself. */ - public FilesystemSetPropertiesHeaders dateProperty(String dateProperty) { + public FilesystemSetPropertiesHeaders setDateProperty(String dateProperty) { this.dateProperty = dateProperty; return this; } @@ -77,7 +77,7 @@ public FilesystemSetPropertiesHeaders dateProperty(String dateProperty) { * * @return the eTag value. */ - public String eTag() { + public String getETag() { return this.eTag; } @@ -89,7 +89,7 @@ public String eTag() { * @param eTag the eTag value to set. * @return the FilesystemSetPropertiesHeaders object itself. */ - public FilesystemSetPropertiesHeaders eTag(String eTag) { + public FilesystemSetPropertiesHeaders setETag(String eTag) { this.eTag = eTag; return this; } @@ -101,7 +101,7 @@ public FilesystemSetPropertiesHeaders eTag(String eTag) { * * @return the lastModified value. */ - public String lastModified() { + public String getLastModified() { return this.lastModified; } @@ -113,7 +113,7 @@ public String lastModified() { * @param lastModified the lastModified value to set. * @return the FilesystemSetPropertiesHeaders object itself. */ - public FilesystemSetPropertiesHeaders lastModified(String lastModified) { + public FilesystemSetPropertiesHeaders setLastModified(String lastModified) { this.lastModified = lastModified; return this; } @@ -124,7 +124,7 @@ public FilesystemSetPropertiesHeaders lastModified(String lastModified) { * * @return the xMsRequestId value. */ - public String xMsRequestId() { + public String getXMsRequestId() { return this.xMsRequestId; } @@ -135,7 +135,7 @@ public String xMsRequestId() { * @param xMsRequestId the xMsRequestId value to set. * @return the FilesystemSetPropertiesHeaders object itself. */ - public FilesystemSetPropertiesHeaders xMsRequestId(String xMsRequestId) { + public FilesystemSetPropertiesHeaders setXMsRequestId(String xMsRequestId) { this.xMsRequestId = xMsRequestId; return this; } @@ -146,7 +146,7 @@ public FilesystemSetPropertiesHeaders xMsRequestId(String xMsRequestId) { * * @return the xMsVersion value. */ - public String xMsVersion() { + public String getXMsVersion() { return this.xMsVersion; } @@ -157,7 +157,7 @@ public String xMsVersion() { * @param xMsVersion the xMsVersion value to set. * @return the FilesystemSetPropertiesHeaders object itself. */ - public FilesystemSetPropertiesHeaders xMsVersion(String xMsVersion) { + public FilesystemSetPropertiesHeaders setXMsVersion(String xMsVersion) { this.xMsVersion = xMsVersion; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsListResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsListResponse.java index a302e017d163..2361ba0e0cb6 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsListResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/FilesystemsListResponse.java @@ -29,7 +29,7 @@ public FilesystemsListResponse(HttpRequest request, int statusCode, HttpHeaders * @return the deserialized response body. */ @Override - public FilesystemList value() { - return super.value(); + public FilesystemList getValue() { + return super.getValue(); } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Path.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Path.java index 178377697816..ab7cd9161da7 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Path.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/Path.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -65,7 +65,7 @@ public final class Path { * * @return the name value. */ - public String name() { + public String getName() { return this.name; } @@ -75,7 +75,7 @@ public String name() { * @param name the name value to set. * @return the Path object itself. */ - public Path name(String name) { + public Path setName(String name) { this.name = name; return this; } @@ -95,7 +95,7 @@ public Boolean isDirectory() { * @param isDirectory the isDirectory value to set. * @return the Path object itself. */ - public Path isDirectory(Boolean isDirectory) { + public Path setIsDirectory(Boolean isDirectory) { this.isDirectory = isDirectory; return this; } @@ -105,7 +105,7 @@ public Path isDirectory(Boolean isDirectory) { * * @return the lastModified value. */ - public String lastModified() { + public String getLastModified() { return this.lastModified; } @@ -115,7 +115,7 @@ public String lastModified() { * @param lastModified the lastModified value to set. * @return the Path object itself. */ - public Path lastModified(String lastModified) { + public Path setLastModified(String lastModified) { this.lastModified = lastModified; return this; } @@ -125,7 +125,7 @@ public Path lastModified(String lastModified) { * * @return the eTag value. */ - public String eTag() { + public String getETag() { return this.eTag; } @@ -135,7 +135,7 @@ public String eTag() { * @param eTag the eTag value to set. * @return the Path object itself. */ - public Path eTag(String eTag) { + public Path setETag(String eTag) { this.eTag = eTag; return this; } @@ -145,7 +145,7 @@ public Path eTag(String eTag) { * * @return the contentLength value. */ - public Long contentLength() { + public Long getContentLength() { return this.contentLength; } @@ -155,7 +155,7 @@ public Long contentLength() { * @param contentLength the contentLength value to set. * @return the Path object itself. */ - public Path contentLength(Long contentLength) { + public Path setContentLength(Long contentLength) { this.contentLength = contentLength; return this; } @@ -165,7 +165,7 @@ public Path contentLength(Long contentLength) { * * @return the owner value. */ - public String owner() { + public String getOwner() { return this.owner; } @@ -175,7 +175,7 @@ public String owner() { * @param owner the owner value to set. * @return the Path object itself. */ - public Path owner(String owner) { + public Path setOwner(String owner) { this.owner = owner; return this; } @@ -185,7 +185,7 @@ public Path owner(String owner) { * * @return the group value. */ - public String group() { + public String getGroup() { return this.group; } @@ -195,7 +195,7 @@ public String group() { * @param group the group value to set. * @return the Path object itself. */ - public Path group(String group) { + public Path setGroup(String group) { this.group = group; return this; } @@ -205,7 +205,7 @@ public Path group(String group) { * * @return the permissions value. */ - public String permissions() { + public String getPermissions() { return this.permissions; } @@ -215,7 +215,7 @@ public String permissions() { * @param permissions the permissions value to set. * @return the Path object itself. */ - public Path permissions(String permissions) { + public Path setPermissions(String permissions) { this.permissions = permissions; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathCreateHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathCreateHeaders.java index 6039ae28496a..82f0bd4df16e 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathCreateHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathCreateHeaders.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -68,7 +68,7 @@ public final class PathCreateHeaders { * * @return the dateProperty value. */ - public String dateProperty() { + public String getDateProperty() { return this.dateProperty; } @@ -79,7 +79,7 @@ public String dateProperty() { * @param dateProperty the dateProperty value to set. * @return the PathCreateHeaders object itself. */ - public PathCreateHeaders dateProperty(String dateProperty) { + public PathCreateHeaders setDateProperty(String dateProperty) { this.dateProperty = dateProperty; return this; } @@ -90,7 +90,7 @@ public PathCreateHeaders dateProperty(String dateProperty) { * * @return the eTag value. */ - public String eTag() { + public String getETag() { return this.eTag; } @@ -101,7 +101,7 @@ public String eTag() { * @param eTag the eTag value to set. * @return the PathCreateHeaders object itself. */ - public PathCreateHeaders eTag(String eTag) { + public PathCreateHeaders setETag(String eTag) { this.eTag = eTag; return this; } @@ -113,7 +113,7 @@ public PathCreateHeaders eTag(String eTag) { * * @return the lastModified value. */ - public String lastModified() { + public String getLastModified() { return this.lastModified; } @@ -125,7 +125,7 @@ public String lastModified() { * @param lastModified the lastModified value to set. * @return the PathCreateHeaders object itself. */ - public PathCreateHeaders lastModified(String lastModified) { + public PathCreateHeaders setLastModified(String lastModified) { this.lastModified = lastModified; return this; } @@ -136,7 +136,7 @@ public PathCreateHeaders lastModified(String lastModified) { * * @return the xMsRequestId value. */ - public String xMsRequestId() { + public String getXMsRequestId() { return this.xMsRequestId; } @@ -147,7 +147,7 @@ public String xMsRequestId() { * @param xMsRequestId the xMsRequestId value to set. * @return the PathCreateHeaders object itself. */ - public PathCreateHeaders xMsRequestId(String xMsRequestId) { + public PathCreateHeaders setXMsRequestId(String xMsRequestId) { this.xMsRequestId = xMsRequestId; return this; } @@ -158,7 +158,7 @@ public PathCreateHeaders xMsRequestId(String xMsRequestId) { * * @return the xMsVersion value. */ - public String xMsVersion() { + public String getXMsVersion() { return this.xMsVersion; } @@ -169,7 +169,7 @@ public String xMsVersion() { * @param xMsVersion the xMsVersion value to set. * @return the PathCreateHeaders object itself. */ - public PathCreateHeaders xMsVersion(String xMsVersion) { + public PathCreateHeaders setXMsVersion(String xMsVersion) { this.xMsVersion = xMsVersion; return this; } @@ -184,7 +184,7 @@ public PathCreateHeaders xMsVersion(String xMsVersion) { * * @return the xMsContinuation value. */ - public String xMsContinuation() { + public String getXMsContinuation() { return this.xMsContinuation; } @@ -199,7 +199,7 @@ public String xMsContinuation() { * @param xMsContinuation the xMsContinuation value to set. * @return the PathCreateHeaders object itself. */ - public PathCreateHeaders xMsContinuation(String xMsContinuation) { + public PathCreateHeaders setXMsContinuation(String xMsContinuation) { this.xMsContinuation = xMsContinuation; return this; } @@ -209,7 +209,7 @@ public PathCreateHeaders xMsContinuation(String xMsContinuation) { * * @return the contentLength value. */ - public Long contentLength() { + public Long getContentLength() { return this.contentLength; } @@ -219,7 +219,7 @@ public Long contentLength() { * @param contentLength the contentLength value to set. * @return the PathCreateHeaders object itself. */ - public PathCreateHeaders contentLength(Long contentLength) { + public PathCreateHeaders setContentLength(Long contentLength) { this.contentLength = contentLength; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathDeleteHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathDeleteHeaders.java index e28d1747632b..d9934fc71361 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathDeleteHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathDeleteHeaders.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -49,7 +49,7 @@ public final class PathDeleteHeaders { * * @return the dateProperty value. */ - public String dateProperty() { + public String getDateProperty() { return this.dateProperty; } @@ -60,7 +60,7 @@ public String dateProperty() { * @param dateProperty the dateProperty value to set. * @return the PathDeleteHeaders object itself. */ - public PathDeleteHeaders dateProperty(String dateProperty) { + public PathDeleteHeaders setDateProperty(String dateProperty) { this.dateProperty = dateProperty; return this; } @@ -71,7 +71,7 @@ public PathDeleteHeaders dateProperty(String dateProperty) { * * @return the xMsRequestId value. */ - public String xMsRequestId() { + public String getXMsRequestId() { return this.xMsRequestId; } @@ -82,7 +82,7 @@ public String xMsRequestId() { * @param xMsRequestId the xMsRequestId value to set. * @return the PathDeleteHeaders object itself. */ - public PathDeleteHeaders xMsRequestId(String xMsRequestId) { + public PathDeleteHeaders setXMsRequestId(String xMsRequestId) { this.xMsRequestId = xMsRequestId; return this; } @@ -93,7 +93,7 @@ public PathDeleteHeaders xMsRequestId(String xMsRequestId) { * * @return the xMsVersion value. */ - public String xMsVersion() { + public String getXMsVersion() { return this.xMsVersion; } @@ -104,7 +104,7 @@ public String xMsVersion() { * @param xMsVersion the xMsVersion value to set. * @return the PathDeleteHeaders object itself. */ - public PathDeleteHeaders xMsVersion(String xMsVersion) { + public PathDeleteHeaders setXMsVersion(String xMsVersion) { this.xMsVersion = xMsVersion; return this; } @@ -119,7 +119,7 @@ public PathDeleteHeaders xMsVersion(String xMsVersion) { * * @return the xMsContinuation value. */ - public String xMsContinuation() { + public String getXMsContinuation() { return this.xMsContinuation; } @@ -134,7 +134,7 @@ public String xMsContinuation() { * @param xMsContinuation the xMsContinuation value to set. * @return the PathDeleteHeaders object itself. */ - public PathDeleteHeaders xMsContinuation(String xMsContinuation) { + public PathDeleteHeaders setXMsContinuation(String xMsContinuation) { this.xMsContinuation = xMsContinuation; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesHeaders.java index e3e39d5cfebc..54aa241c4b50 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathGetPropertiesHeaders.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -180,7 +180,7 @@ public final class PathGetPropertiesHeaders { * * @return the acceptRanges value. */ - public String acceptRanges() { + public String getAcceptRanges() { return this.acceptRanges; } @@ -191,7 +191,7 @@ public String acceptRanges() { * @param acceptRanges the acceptRanges value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders acceptRanges(String acceptRanges) { + public PathGetPropertiesHeaders setAcceptRanges(String acceptRanges) { this.acceptRanges = acceptRanges; return this; } @@ -203,7 +203,7 @@ public PathGetPropertiesHeaders acceptRanges(String acceptRanges) { * * @return the cacheControl value. */ - public String cacheControl() { + public String getCacheControl() { return this.cacheControl; } @@ -215,7 +215,7 @@ public String cacheControl() { * @param cacheControl the cacheControl value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders cacheControl(String cacheControl) { + public PathGetPropertiesHeaders setCacheControl(String cacheControl) { this.cacheControl = cacheControl; return this; } @@ -227,7 +227,7 @@ public PathGetPropertiesHeaders cacheControl(String cacheControl) { * * @return the contentDisposition value. */ - public String contentDisposition() { + public String getContentDisposition() { return this.contentDisposition; } @@ -239,7 +239,7 @@ public String contentDisposition() { * @param contentDisposition the contentDisposition value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders contentDisposition(String contentDisposition) { + public PathGetPropertiesHeaders setContentDisposition(String contentDisposition) { this.contentDisposition = contentDisposition; return this; } @@ -251,7 +251,7 @@ public PathGetPropertiesHeaders contentDisposition(String contentDisposition) { * * @return the contentEncoding value. */ - public String contentEncoding() { + public String getContentEncoding() { return this.contentEncoding; } @@ -263,7 +263,7 @@ public String contentEncoding() { * @param contentEncoding the contentEncoding value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders contentEncoding(String contentEncoding) { + public PathGetPropertiesHeaders setContentEncoding(String contentEncoding) { this.contentEncoding = contentEncoding; return this; } @@ -275,7 +275,7 @@ public PathGetPropertiesHeaders contentEncoding(String contentEncoding) { * * @return the contentLanguage value. */ - public String contentLanguage() { + public String getContentLanguage() { return this.contentLanguage; } @@ -287,7 +287,7 @@ public String contentLanguage() { * @param contentLanguage the contentLanguage value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders contentLanguage(String contentLanguage) { + public PathGetPropertiesHeaders setContentLanguage(String contentLanguage) { this.contentLanguage = contentLanguage; return this; } @@ -297,7 +297,7 @@ public PathGetPropertiesHeaders contentLanguage(String contentLanguage) { * * @return the contentLength value. */ - public Long contentLength() { + public Long getContentLength() { return this.contentLength; } @@ -307,7 +307,7 @@ public Long contentLength() { * @param contentLength the contentLength value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders contentLength(Long contentLength) { + public PathGetPropertiesHeaders setContentLength(Long contentLength) { this.contentLength = contentLength; return this; } @@ -319,7 +319,7 @@ public PathGetPropertiesHeaders contentLength(Long contentLength) { * * @return the contentRange value. */ - public String contentRange() { + public String getContentRange() { return this.contentRange; } @@ -331,7 +331,7 @@ public String contentRange() { * @param contentRange the contentRange value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders contentRange(String contentRange) { + public PathGetPropertiesHeaders setContentRange(String contentRange) { this.contentRange = contentRange; return this; } @@ -343,7 +343,7 @@ public PathGetPropertiesHeaders contentRange(String contentRange) { * * @return the contentType value. */ - public String contentType() { + public String getContentType() { return this.contentType; } @@ -355,7 +355,7 @@ public String contentType() { * @param contentType the contentType value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders contentType(String contentType) { + public PathGetPropertiesHeaders setContentType(String contentType) { this.contentType = contentType; return this; } @@ -369,7 +369,7 @@ public PathGetPropertiesHeaders contentType(String contentType) { * * @return the contentMD5 value. */ - public String contentMD5() { + public String getContentMD5() { return this.contentMD5; } @@ -383,7 +383,7 @@ public String contentMD5() { * @param contentMD5 the contentMD5 value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders contentMD5(String contentMD5) { + public PathGetPropertiesHeaders setContentMD5(String contentMD5) { this.contentMD5 = contentMD5; return this; } @@ -394,7 +394,7 @@ public PathGetPropertiesHeaders contentMD5(String contentMD5) { * * @return the dateProperty value. */ - public String dateProperty() { + public String getDateProperty() { return this.dateProperty; } @@ -405,7 +405,7 @@ public String dateProperty() { * @param dateProperty the dateProperty value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders dateProperty(String dateProperty) { + public PathGetPropertiesHeaders setDateProperty(String dateProperty) { this.dateProperty = dateProperty; return this; } @@ -416,7 +416,7 @@ public PathGetPropertiesHeaders dateProperty(String dateProperty) { * * @return the eTag value. */ - public String eTag() { + public String getETag() { return this.eTag; } @@ -427,7 +427,7 @@ public String eTag() { * @param eTag the eTag value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders eTag(String eTag) { + public PathGetPropertiesHeaders setETag(String eTag) { this.eTag = eTag; return this; } @@ -439,7 +439,7 @@ public PathGetPropertiesHeaders eTag(String eTag) { * * @return the lastModified value. */ - public String lastModified() { + public String getLastModified() { return this.lastModified; } @@ -451,7 +451,7 @@ public String lastModified() { * @param lastModified the lastModified value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders lastModified(String lastModified) { + public PathGetPropertiesHeaders setLastModified(String lastModified) { this.lastModified = lastModified; return this; } @@ -462,7 +462,7 @@ public PathGetPropertiesHeaders lastModified(String lastModified) { * * @return the xMsRequestId value. */ - public String xMsRequestId() { + public String getXMsRequestId() { return this.xMsRequestId; } @@ -473,7 +473,7 @@ public String xMsRequestId() { * @param xMsRequestId the xMsRequestId value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders xMsRequestId(String xMsRequestId) { + public PathGetPropertiesHeaders setXMsRequestId(String xMsRequestId) { this.xMsRequestId = xMsRequestId; return this; } @@ -484,7 +484,7 @@ public PathGetPropertiesHeaders xMsRequestId(String xMsRequestId) { * * @return the xMsVersion value. */ - public String xMsVersion() { + public String getXMsVersion() { return this.xMsVersion; } @@ -495,7 +495,7 @@ public String xMsVersion() { * @param xMsVersion the xMsVersion value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders xMsVersion(String xMsVersion) { + public PathGetPropertiesHeaders setXMsVersion(String xMsVersion) { this.xMsVersion = xMsVersion; return this; } @@ -506,7 +506,7 @@ public PathGetPropertiesHeaders xMsVersion(String xMsVersion) { * * @return the xMsResourceType value. */ - public String xMsResourceType() { + public String getXMsResourceType() { return this.xMsResourceType; } @@ -517,7 +517,7 @@ public String xMsResourceType() { * @param xMsResourceType the xMsResourceType value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders xMsResourceType(String xMsResourceType) { + public PathGetPropertiesHeaders setXMsResourceType(String xMsResourceType) { this.xMsResourceType = xMsResourceType; return this; } @@ -531,7 +531,7 @@ public PathGetPropertiesHeaders xMsResourceType(String xMsResourceType) { * * @return the xMsProperties value. */ - public String xMsProperties() { + public String getXMsProperties() { return this.xMsProperties; } @@ -545,7 +545,7 @@ public String xMsProperties() { * @param xMsProperties the xMsProperties value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders xMsProperties(String xMsProperties) { + public PathGetPropertiesHeaders setXMsProperties(String xMsProperties) { this.xMsProperties = xMsProperties; return this; } @@ -556,7 +556,7 @@ public PathGetPropertiesHeaders xMsProperties(String xMsProperties) { * * @return the xMsOwner value. */ - public String xMsOwner() { + public String getXMsOwner() { return this.xMsOwner; } @@ -567,7 +567,7 @@ public String xMsOwner() { * @param xMsOwner the xMsOwner value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders xMsOwner(String xMsOwner) { + public PathGetPropertiesHeaders setXMsOwner(String xMsOwner) { this.xMsOwner = xMsOwner; return this; } @@ -579,7 +579,7 @@ public PathGetPropertiesHeaders xMsOwner(String xMsOwner) { * * @return the xMsGroup value. */ - public String xMsGroup() { + public String getXMsGroup() { return this.xMsGroup; } @@ -591,7 +591,7 @@ public String xMsGroup() { * @param xMsGroup the xMsGroup value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders xMsGroup(String xMsGroup) { + public PathGetPropertiesHeaders setXMsGroup(String xMsGroup) { this.xMsGroup = xMsGroup; return this; } @@ -603,7 +603,7 @@ public PathGetPropertiesHeaders xMsGroup(String xMsGroup) { * * @return the xMsPermissions value. */ - public String xMsPermissions() { + public String getXMsPermissions() { return this.xMsPermissions; } @@ -615,7 +615,7 @@ public String xMsPermissions() { * @param xMsPermissions the xMsPermissions value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders xMsPermissions(String xMsPermissions) { + public PathGetPropertiesHeaders setXMsPermissions(String xMsPermissions) { this.xMsPermissions = xMsPermissions; return this; } @@ -628,7 +628,7 @@ public PathGetPropertiesHeaders xMsPermissions(String xMsPermissions) { * * @return the xMsAcl value. */ - public String xMsAcl() { + public String getXMsAcl() { return this.xMsAcl; } @@ -641,7 +641,7 @@ public String xMsAcl() { * @param xMsAcl the xMsAcl value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders xMsAcl(String xMsAcl) { + public PathGetPropertiesHeaders setXMsAcl(String xMsAcl) { this.xMsAcl = xMsAcl; return this; } @@ -652,7 +652,7 @@ public PathGetPropertiesHeaders xMsAcl(String xMsAcl) { * * @return the xMsLeaseDuration value. */ - public String xMsLeaseDuration() { + public String getXMsLeaseDuration() { return this.xMsLeaseDuration; } @@ -663,7 +663,7 @@ public String xMsLeaseDuration() { * @param xMsLeaseDuration the xMsLeaseDuration value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders xMsLeaseDuration(String xMsLeaseDuration) { + public PathGetPropertiesHeaders setXMsLeaseDuration(String xMsLeaseDuration) { this.xMsLeaseDuration = xMsLeaseDuration; return this; } @@ -673,7 +673,7 @@ public PathGetPropertiesHeaders xMsLeaseDuration(String xMsLeaseDuration) { * * @return the xMsLeaseState value. */ - public String xMsLeaseState() { + public String getXMsLeaseState() { return this.xMsLeaseState; } @@ -683,7 +683,7 @@ public String xMsLeaseState() { * @param xMsLeaseState the xMsLeaseState value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders xMsLeaseState(String xMsLeaseState) { + public PathGetPropertiesHeaders setXMsLeaseState(String xMsLeaseState) { this.xMsLeaseState = xMsLeaseState; return this; } @@ -693,7 +693,7 @@ public PathGetPropertiesHeaders xMsLeaseState(String xMsLeaseState) { * * @return the xMsLeaseStatus value. */ - public String xMsLeaseStatus() { + public String getXMsLeaseStatus() { return this.xMsLeaseStatus; } @@ -703,7 +703,7 @@ public String xMsLeaseStatus() { * @param xMsLeaseStatus the xMsLeaseStatus value to set. * @return the PathGetPropertiesHeaders object itself. */ - public PathGetPropertiesHeaders xMsLeaseStatus(String xMsLeaseStatus) { + public PathGetPropertiesHeaders setXMsLeaseStatus(String xMsLeaseStatus) { this.xMsLeaseStatus = xMsLeaseStatus; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseHeaders.java index d2f86b0d89f7..49fd0548b465 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathLeaseHeaders.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -63,7 +63,7 @@ public final class PathLeaseHeaders { * * @return the dateProperty value. */ - public String dateProperty() { + public String getDateProperty() { return this.dateProperty; } @@ -74,7 +74,7 @@ public String dateProperty() { * @param dateProperty the dateProperty value to set. * @return the PathLeaseHeaders object itself. */ - public PathLeaseHeaders dateProperty(String dateProperty) { + public PathLeaseHeaders setDateProperty(String dateProperty) { this.dateProperty = dateProperty; return this; } @@ -85,7 +85,7 @@ public PathLeaseHeaders dateProperty(String dateProperty) { * * @return the eTag value. */ - public String eTag() { + public String getETag() { return this.eTag; } @@ -96,7 +96,7 @@ public String eTag() { * @param eTag the eTag value to set. * @return the PathLeaseHeaders object itself. */ - public PathLeaseHeaders eTag(String eTag) { + public PathLeaseHeaders setETag(String eTag) { this.eTag = eTag; return this; } @@ -108,7 +108,7 @@ public PathLeaseHeaders eTag(String eTag) { * * @return the lastModified value. */ - public String lastModified() { + public String getLastModified() { return this.lastModified; } @@ -120,7 +120,7 @@ public String lastModified() { * @param lastModified the lastModified value to set. * @return the PathLeaseHeaders object itself. */ - public PathLeaseHeaders lastModified(String lastModified) { + public PathLeaseHeaders setLastModified(String lastModified) { this.lastModified = lastModified; return this; } @@ -131,7 +131,7 @@ public PathLeaseHeaders lastModified(String lastModified) { * * @return the xMsRequestId value. */ - public String xMsRequestId() { + public String getXMsRequestId() { return this.xMsRequestId; } @@ -142,7 +142,7 @@ public String xMsRequestId() { * @param xMsRequestId the xMsRequestId value to set. * @return the PathLeaseHeaders object itself. */ - public PathLeaseHeaders xMsRequestId(String xMsRequestId) { + public PathLeaseHeaders setXMsRequestId(String xMsRequestId) { this.xMsRequestId = xMsRequestId; return this; } @@ -153,7 +153,7 @@ public PathLeaseHeaders xMsRequestId(String xMsRequestId) { * * @return the xMsVersion value. */ - public String xMsVersion() { + public String getXMsVersion() { return this.xMsVersion; } @@ -164,7 +164,7 @@ public String xMsVersion() { * @param xMsVersion the xMsVersion value to set. * @return the PathLeaseHeaders object itself. */ - public PathLeaseHeaders xMsVersion(String xMsVersion) { + public PathLeaseHeaders setXMsVersion(String xMsVersion) { this.xMsVersion = xMsVersion; return this; } @@ -175,7 +175,7 @@ public PathLeaseHeaders xMsVersion(String xMsVersion) { * * @return the xMsLeaseId value. */ - public String xMsLeaseId() { + public String getXMsLeaseId() { return this.xMsLeaseId; } @@ -186,7 +186,7 @@ public String xMsLeaseId() { * @param xMsLeaseId the xMsLeaseId value to set. * @return the PathLeaseHeaders object itself. */ - public PathLeaseHeaders xMsLeaseId(String xMsLeaseId) { + public PathLeaseHeaders setXMsLeaseId(String xMsLeaseId) { this.xMsLeaseId = xMsLeaseId; return this; } @@ -197,7 +197,7 @@ public PathLeaseHeaders xMsLeaseId(String xMsLeaseId) { * * @return the xMsLeaseTime value. */ - public String xMsLeaseTime() { + public String getXMsLeaseTime() { return this.xMsLeaseTime; } @@ -208,7 +208,7 @@ public String xMsLeaseTime() { * @param xMsLeaseTime the xMsLeaseTime value to set. * @return the PathLeaseHeaders object itself. */ - public PathLeaseHeaders xMsLeaseTime(String xMsLeaseTime) { + public PathLeaseHeaders setXMsLeaseTime(String xMsLeaseTime) { this.xMsLeaseTime = xMsLeaseTime; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathList.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathList.java index c18fba7009b7..95a36be86f60 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathList.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathList.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; @@ -24,7 +24,7 @@ public final class PathList { * * @return the paths value. */ - public List paths() { + public List getPaths() { return this.paths; } @@ -34,7 +34,7 @@ public List paths() { * @param paths the paths value to set. * @return the PathList object itself. */ - public PathList paths(List paths) { + public PathList setPaths(List paths) { this.paths = paths; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathListHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathListHeaders.java index c9aeb16ad7ab..6d1608a5c8dc 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathListHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathListHeaders.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -64,7 +64,7 @@ public final class PathListHeaders { * * @return the dateProperty value. */ - public String dateProperty() { + public String getDateProperty() { return this.dateProperty; } @@ -75,7 +75,7 @@ public String dateProperty() { * @param dateProperty the dateProperty value to set. * @return the PathListHeaders object itself. */ - public PathListHeaders dateProperty(String dateProperty) { + public PathListHeaders setDateProperty(String dateProperty) { this.dateProperty = dateProperty; return this; } @@ -87,7 +87,7 @@ public PathListHeaders dateProperty(String dateProperty) { * * @return the eTag value. */ - public String eTag() { + public String getETag() { return this.eTag; } @@ -99,7 +99,7 @@ public String eTag() { * @param eTag the eTag value to set. * @return the PathListHeaders object itself. */ - public PathListHeaders eTag(String eTag) { + public PathListHeaders setETag(String eTag) { this.eTag = eTag; return this; } @@ -111,7 +111,7 @@ public PathListHeaders eTag(String eTag) { * * @return the lastModified value. */ - public String lastModified() { + public String getLastModified() { return this.lastModified; } @@ -123,7 +123,7 @@ public String lastModified() { * @param lastModified the lastModified value to set. * @return the PathListHeaders object itself. */ - public PathListHeaders lastModified(String lastModified) { + public PathListHeaders setLastModified(String lastModified) { this.lastModified = lastModified; return this; } @@ -134,7 +134,7 @@ public PathListHeaders lastModified(String lastModified) { * * @return the xMsRequestId value. */ - public String xMsRequestId() { + public String getXMsRequestId() { return this.xMsRequestId; } @@ -145,7 +145,7 @@ public String xMsRequestId() { * @param xMsRequestId the xMsRequestId value to set. * @return the PathListHeaders object itself. */ - public PathListHeaders xMsRequestId(String xMsRequestId) { + public PathListHeaders setXMsRequestId(String xMsRequestId) { this.xMsRequestId = xMsRequestId; return this; } @@ -156,7 +156,7 @@ public PathListHeaders xMsRequestId(String xMsRequestId) { * * @return the xMsVersion value. */ - public String xMsVersion() { + public String getXMsVersion() { return this.xMsVersion; } @@ -167,7 +167,7 @@ public String xMsVersion() { * @param xMsVersion the xMsVersion value to set. * @return the PathListHeaders object itself. */ - public PathListHeaders xMsVersion(String xMsVersion) { + public PathListHeaders setXMsVersion(String xMsVersion) { this.xMsVersion = xMsVersion; return this; } @@ -181,7 +181,7 @@ public PathListHeaders xMsVersion(String xMsVersion) { * * @return the xMsContinuation value. */ - public String xMsContinuation() { + public String getXMsContinuation() { return this.xMsContinuation; } @@ -195,7 +195,7 @@ public String xMsContinuation() { * @param xMsContinuation the xMsContinuation value to set. * @return the PathListHeaders object itself. */ - public PathListHeaders xMsContinuation(String xMsContinuation) { + public PathListHeaders setXMsContinuation(String xMsContinuation) { this.xMsContinuation = xMsContinuation; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathReadHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathReadHeaders.java index 1ba3b2cd186c..9f8c50c35080 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathReadHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathReadHeaders.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -160,7 +160,7 @@ public final class PathReadHeaders { * * @return the acceptRanges value. */ - public String acceptRanges() { + public String getAcceptRanges() { return this.acceptRanges; } @@ -171,7 +171,7 @@ public String acceptRanges() { * @param acceptRanges the acceptRanges value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders acceptRanges(String acceptRanges) { + public PathReadHeaders setAcceptRanges(String acceptRanges) { this.acceptRanges = acceptRanges; return this; } @@ -183,7 +183,7 @@ public PathReadHeaders acceptRanges(String acceptRanges) { * * @return the cacheControl value. */ - public String cacheControl() { + public String getCacheControl() { return this.cacheControl; } @@ -195,7 +195,7 @@ public String cacheControl() { * @param cacheControl the cacheControl value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders cacheControl(String cacheControl) { + public PathReadHeaders setCacheControl(String cacheControl) { this.cacheControl = cacheControl; return this; } @@ -207,7 +207,7 @@ public PathReadHeaders cacheControl(String cacheControl) { * * @return the contentDisposition value. */ - public String contentDisposition() { + public String getContentDisposition() { return this.contentDisposition; } @@ -219,7 +219,7 @@ public String contentDisposition() { * @param contentDisposition the contentDisposition value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders contentDisposition(String contentDisposition) { + public PathReadHeaders setContentDisposition(String contentDisposition) { this.contentDisposition = contentDisposition; return this; } @@ -231,7 +231,7 @@ public PathReadHeaders contentDisposition(String contentDisposition) { * * @return the contentEncoding value. */ - public String contentEncoding() { + public String getContentEncoding() { return this.contentEncoding; } @@ -243,7 +243,7 @@ public String contentEncoding() { * @param contentEncoding the contentEncoding value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders contentEncoding(String contentEncoding) { + public PathReadHeaders setContentEncoding(String contentEncoding) { this.contentEncoding = contentEncoding; return this; } @@ -255,7 +255,7 @@ public PathReadHeaders contentEncoding(String contentEncoding) { * * @return the contentLanguage value. */ - public String contentLanguage() { + public String getContentLanguage() { return this.contentLanguage; } @@ -267,7 +267,7 @@ public String contentLanguage() { * @param contentLanguage the contentLanguage value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders contentLanguage(String contentLanguage) { + public PathReadHeaders setContentLanguage(String contentLanguage) { this.contentLanguage = contentLanguage; return this; } @@ -277,7 +277,7 @@ public PathReadHeaders contentLanguage(String contentLanguage) { * * @return the contentLength value. */ - public Long contentLength() { + public Long getContentLength() { return this.contentLength; } @@ -287,7 +287,7 @@ public Long contentLength() { * @param contentLength the contentLength value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders contentLength(Long contentLength) { + public PathReadHeaders setContentLength(Long contentLength) { this.contentLength = contentLength; return this; } @@ -299,7 +299,7 @@ public PathReadHeaders contentLength(Long contentLength) { * * @return the contentRange value. */ - public String contentRange() { + public String getContentRange() { return this.contentRange; } @@ -311,7 +311,7 @@ public String contentRange() { * @param contentRange the contentRange value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders contentRange(String contentRange) { + public PathReadHeaders setContentRange(String contentRange) { this.contentRange = contentRange; return this; } @@ -323,7 +323,7 @@ public PathReadHeaders contentRange(String contentRange) { * * @return the contentType value. */ - public String contentType() { + public String getContentType() { return this.contentType; } @@ -335,7 +335,7 @@ public String contentType() { * @param contentType the contentType value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders contentType(String contentType) { + public PathReadHeaders setContentType(String contentType) { this.contentType = contentType; return this; } @@ -348,7 +348,7 @@ public PathReadHeaders contentType(String contentType) { * * @return the contentMD5 value. */ - public String contentMD5() { + public String getContentMD5() { return this.contentMD5; } @@ -361,7 +361,7 @@ public String contentMD5() { * @param contentMD5 the contentMD5 value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders contentMD5(String contentMD5) { + public PathReadHeaders setContentMD5(String contentMD5) { this.contentMD5 = contentMD5; return this; } @@ -372,7 +372,7 @@ public PathReadHeaders contentMD5(String contentMD5) { * * @return the dateProperty value. */ - public String dateProperty() { + public String getDateProperty() { return this.dateProperty; } @@ -383,7 +383,7 @@ public String dateProperty() { * @param dateProperty the dateProperty value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders dateProperty(String dateProperty) { + public PathReadHeaders setDateProperty(String dateProperty) { this.dateProperty = dateProperty; return this; } @@ -394,7 +394,7 @@ public PathReadHeaders dateProperty(String dateProperty) { * * @return the eTag value. */ - public String eTag() { + public String getETag() { return this.eTag; } @@ -405,7 +405,7 @@ public String eTag() { * @param eTag the eTag value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders eTag(String eTag) { + public PathReadHeaders setETag(String eTag) { this.eTag = eTag; return this; } @@ -417,7 +417,7 @@ public PathReadHeaders eTag(String eTag) { * * @return the lastModified value. */ - public String lastModified() { + public String getLastModified() { return this.lastModified; } @@ -429,7 +429,7 @@ public String lastModified() { * @param lastModified the lastModified value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders lastModified(String lastModified) { + public PathReadHeaders setLastModified(String lastModified) { this.lastModified = lastModified; return this; } @@ -440,7 +440,7 @@ public PathReadHeaders lastModified(String lastModified) { * * @return the xMsRequestId value. */ - public String xMsRequestId() { + public String getXMsRequestId() { return this.xMsRequestId; } @@ -451,7 +451,7 @@ public String xMsRequestId() { * @param xMsRequestId the xMsRequestId value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders xMsRequestId(String xMsRequestId) { + public PathReadHeaders setXMsRequestId(String xMsRequestId) { this.xMsRequestId = xMsRequestId; return this; } @@ -462,7 +462,7 @@ public PathReadHeaders xMsRequestId(String xMsRequestId) { * * @return the xMsVersion value. */ - public String xMsVersion() { + public String getXMsVersion() { return this.xMsVersion; } @@ -473,7 +473,7 @@ public String xMsVersion() { * @param xMsVersion the xMsVersion value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders xMsVersion(String xMsVersion) { + public PathReadHeaders setXMsVersion(String xMsVersion) { this.xMsVersion = xMsVersion; return this; } @@ -484,7 +484,7 @@ public PathReadHeaders xMsVersion(String xMsVersion) { * * @return the xMsResourceType value. */ - public String xMsResourceType() { + public String getXMsResourceType() { return this.xMsResourceType; } @@ -495,7 +495,7 @@ public String xMsResourceType() { * @param xMsResourceType the xMsResourceType value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders xMsResourceType(String xMsResourceType) { + public PathReadHeaders setXMsResourceType(String xMsResourceType) { this.xMsResourceType = xMsResourceType; return this; } @@ -509,7 +509,7 @@ public PathReadHeaders xMsResourceType(String xMsResourceType) { * * @return the xMsProperties value. */ - public String xMsProperties() { + public String getXMsProperties() { return this.xMsProperties; } @@ -523,7 +523,7 @@ public String xMsProperties() { * @param xMsProperties the xMsProperties value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders xMsProperties(String xMsProperties) { + public PathReadHeaders setXMsProperties(String xMsProperties) { this.xMsProperties = xMsProperties; return this; } @@ -534,7 +534,7 @@ public PathReadHeaders xMsProperties(String xMsProperties) { * * @return the xMsLeaseDuration value. */ - public String xMsLeaseDuration() { + public String getXMsLeaseDuration() { return this.xMsLeaseDuration; } @@ -545,7 +545,7 @@ public String xMsLeaseDuration() { * @param xMsLeaseDuration the xMsLeaseDuration value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders xMsLeaseDuration(String xMsLeaseDuration) { + public PathReadHeaders setXMsLeaseDuration(String xMsLeaseDuration) { this.xMsLeaseDuration = xMsLeaseDuration; return this; } @@ -555,7 +555,7 @@ public PathReadHeaders xMsLeaseDuration(String xMsLeaseDuration) { * * @return the xMsLeaseState value. */ - public String xMsLeaseState() { + public String getXMsLeaseState() { return this.xMsLeaseState; } @@ -565,7 +565,7 @@ public String xMsLeaseState() { * @param xMsLeaseState the xMsLeaseState value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders xMsLeaseState(String xMsLeaseState) { + public PathReadHeaders setXMsLeaseState(String xMsLeaseState) { this.xMsLeaseState = xMsLeaseState; return this; } @@ -575,7 +575,7 @@ public PathReadHeaders xMsLeaseState(String xMsLeaseState) { * * @return the xMsLeaseStatus value. */ - public String xMsLeaseStatus() { + public String getXMsLeaseStatus() { return this.xMsLeaseStatus; } @@ -585,7 +585,7 @@ public String xMsLeaseStatus() { * @param xMsLeaseStatus the xMsLeaseStatus value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders xMsLeaseStatus(String xMsLeaseStatus) { + public PathReadHeaders setXMsLeaseStatus(String xMsLeaseStatus) { this.xMsLeaseStatus = xMsLeaseStatus; return this; } @@ -600,7 +600,7 @@ public PathReadHeaders xMsLeaseStatus(String xMsLeaseStatus) { * * @return the xMsContentMd5 value. */ - public String xMsContentMd5() { + public String getXMsContentMd5() { return this.xMsContentMd5; } @@ -615,7 +615,7 @@ public String xMsContentMd5() { * @param xMsContentMd5 the xMsContentMd5 value to set. * @return the PathReadHeaders object itself. */ - public PathReadHeaders xMsContentMd5(String xMsContentMd5) { + public PathReadHeaders setXMsContentMd5(String xMsContentMd5) { this.xMsContentMd5 = xMsContentMd5; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateHeaders.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateHeaders.java index 18d3b93e42c0..b07ffdada529 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateHeaders.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathUpdateHeaders.java @@ -4,7 +4,7 @@ package com.azure.storage.file.datalake.models; -import com.azure.core.implementation.annotation.Fluent; +import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -124,7 +124,7 @@ public final class PathUpdateHeaders { * * @return the dateProperty value. */ - public String dateProperty() { + public String getDateProperty() { return this.dateProperty; } @@ -135,7 +135,7 @@ public String dateProperty() { * @param dateProperty the dateProperty value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders dateProperty(String dateProperty) { + public PathUpdateHeaders setDateProperty(String dateProperty) { this.dateProperty = dateProperty; return this; } @@ -146,7 +146,7 @@ public PathUpdateHeaders dateProperty(String dateProperty) { * * @return the eTag value. */ - public String eTag() { + public String getETag() { return this.eTag; } @@ -157,7 +157,7 @@ public String eTag() { * @param eTag the eTag value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders eTag(String eTag) { + public PathUpdateHeaders setETag(String eTag) { this.eTag = eTag; return this; } @@ -169,7 +169,7 @@ public PathUpdateHeaders eTag(String eTag) { * * @return the lastModified value. */ - public String lastModified() { + public String getLastModified() { return this.lastModified; } @@ -181,7 +181,7 @@ public String lastModified() { * @param lastModified the lastModified value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders lastModified(String lastModified) { + public PathUpdateHeaders setLastModified(String lastModified) { this.lastModified = lastModified; return this; } @@ -192,7 +192,7 @@ public PathUpdateHeaders lastModified(String lastModified) { * * @return the acceptRanges value. */ - public String acceptRanges() { + public String getAcceptRanges() { return this.acceptRanges; } @@ -203,7 +203,7 @@ public String acceptRanges() { * @param acceptRanges the acceptRanges value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders acceptRanges(String acceptRanges) { + public PathUpdateHeaders setAcceptRanges(String acceptRanges) { this.acceptRanges = acceptRanges; return this; } @@ -215,7 +215,7 @@ public PathUpdateHeaders acceptRanges(String acceptRanges) { * * @return the cacheControl value. */ - public String cacheControl() { + public String getCacheControl() { return this.cacheControl; } @@ -227,7 +227,7 @@ public String cacheControl() { * @param cacheControl the cacheControl value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders cacheControl(String cacheControl) { + public PathUpdateHeaders setCacheControl(String cacheControl) { this.cacheControl = cacheControl; return this; } @@ -239,7 +239,7 @@ public PathUpdateHeaders cacheControl(String cacheControl) { * * @return the contentDisposition value. */ - public String contentDisposition() { + public String getContentDisposition() { return this.contentDisposition; } @@ -251,7 +251,7 @@ public String contentDisposition() { * @param contentDisposition the contentDisposition value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders contentDisposition(String contentDisposition) { + public PathUpdateHeaders setContentDisposition(String contentDisposition) { this.contentDisposition = contentDisposition; return this; } @@ -263,7 +263,7 @@ public PathUpdateHeaders contentDisposition(String contentDisposition) { * * @return the contentEncoding value. */ - public String contentEncoding() { + public String getContentEncoding() { return this.contentEncoding; } @@ -275,7 +275,7 @@ public String contentEncoding() { * @param contentEncoding the contentEncoding value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders contentEncoding(String contentEncoding) { + public PathUpdateHeaders setContentEncoding(String contentEncoding) { this.contentEncoding = contentEncoding; return this; } @@ -287,7 +287,7 @@ public PathUpdateHeaders contentEncoding(String contentEncoding) { * * @return the contentLanguage value. */ - public String contentLanguage() { + public String getContentLanguage() { return this.contentLanguage; } @@ -299,7 +299,7 @@ public String contentLanguage() { * @param contentLanguage the contentLanguage value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders contentLanguage(String contentLanguage) { + public PathUpdateHeaders setContentLanguage(String contentLanguage) { this.contentLanguage = contentLanguage; return this; } @@ -309,7 +309,7 @@ public PathUpdateHeaders contentLanguage(String contentLanguage) { * * @return the contentLength value. */ - public Long contentLength() { + public Long getContentLength() { return this.contentLength; } @@ -319,7 +319,7 @@ public Long contentLength() { * @param contentLength the contentLength value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders contentLength(Long contentLength) { + public PathUpdateHeaders setContentLength(Long contentLength) { this.contentLength = contentLength; return this; } @@ -331,7 +331,7 @@ public PathUpdateHeaders contentLength(Long contentLength) { * * @return the contentRange value. */ - public String contentRange() { + public String getContentRange() { return this.contentRange; } @@ -343,7 +343,7 @@ public String contentRange() { * @param contentRange the contentRange value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders contentRange(String contentRange) { + public PathUpdateHeaders setContentRange(String contentRange) { this.contentRange = contentRange; return this; } @@ -355,7 +355,7 @@ public PathUpdateHeaders contentRange(String contentRange) { * * @return the contentType value. */ - public String contentType() { + public String getContentType() { return this.contentType; } @@ -367,7 +367,7 @@ public String contentType() { * @param contentType the contentType value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders contentType(String contentType) { + public PathUpdateHeaders setContentType(String contentType) { this.contentType = contentType; return this; } @@ -381,7 +381,7 @@ public PathUpdateHeaders contentType(String contentType) { * * @return the contentMD5 value. */ - public String contentMD5() { + public String getContentMD5() { return this.contentMD5; } @@ -395,7 +395,7 @@ public String contentMD5() { * @param contentMD5 the contentMD5 value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders contentMD5(String contentMD5) { + public PathUpdateHeaders setContentMD5(String contentMD5) { this.contentMD5 = contentMD5; return this; } @@ -409,7 +409,7 @@ public PathUpdateHeaders contentMD5(String contentMD5) { * * @return the xMsProperties value. */ - public String xMsProperties() { + public String getXMsProperties() { return this.xMsProperties; } @@ -423,7 +423,7 @@ public String xMsProperties() { * @param xMsProperties the xMsProperties value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders xMsProperties(String xMsProperties) { + public PathUpdateHeaders setXMsProperties(String xMsProperties) { this.xMsProperties = xMsProperties; return this; } @@ -434,7 +434,7 @@ public PathUpdateHeaders xMsProperties(String xMsProperties) { * * @return the xMsRequestId value. */ - public String xMsRequestId() { + public String getXMsRequestId() { return this.xMsRequestId; } @@ -445,7 +445,7 @@ public String xMsRequestId() { * @param xMsRequestId the xMsRequestId value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders xMsRequestId(String xMsRequestId) { + public PathUpdateHeaders setXMsRequestId(String xMsRequestId) { this.xMsRequestId = xMsRequestId; return this; } @@ -456,7 +456,7 @@ public PathUpdateHeaders xMsRequestId(String xMsRequestId) { * * @return the xMsVersion value. */ - public String xMsVersion() { + public String getXMsVersion() { return this.xMsVersion; } @@ -467,7 +467,7 @@ public String xMsVersion() { * @param xMsVersion the xMsVersion value to set. * @return the PathUpdateHeaders object itself. */ - public PathUpdateHeaders xMsVersion(String xMsVersion) { + public PathUpdateHeaders setXMsVersion(String xMsVersion) { this.xMsVersion = xMsVersion; return this; } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsListResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsListResponse.java index 922ccb087379..b61f71e35b5f 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsListResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsListResponse.java @@ -29,7 +29,7 @@ public PathsListResponse(HttpRequest request, int statusCode, HttpHeaders rawHea * @return the deserialized response body. */ @Override - public PathList value() { - return super.value(); + public PathList getValue() { + return super.getValue(); } } diff --git a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsReadResponse.java b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsReadResponse.java index 026b4ecd7602..ef1d1e6532bf 100644 --- a/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsReadResponse.java +++ b/sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/PathsReadResponse.java @@ -7,14 +7,14 @@ import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.core.http.rest.ResponseBase; -import io.netty.buffer.ByteBuf; import java.io.Closeable; +import java.nio.ByteBuffer; import reactor.core.publisher.Flux; /** * Contains all response data for the read operation. */ -public final class PathsReadResponse extends ResponseBase> implements Closeable { +public final class PathsReadResponse extends ResponseBase> implements Closeable { /** * Creates an instance of PathsReadResponse. * @@ -24,7 +24,7 @@ public final class PathsReadResponse extends ResponseBase value, PathReadHeaders headers) { + public PathsReadResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Flux value, PathReadHeaders headers) { super(request, statusCode, rawHeaders, value, headers); } @@ -32,8 +32,8 @@ public PathsReadResponse(HttpRequest request, int statusCode, HttpHeaders rawHea * @return the response content stream. */ @Override - public Flux value() { - return super.value(); + public Flux getValue() { + return super.getValue(); } /** @@ -41,6 +41,6 @@ public Flux value() { */ @Override public void close() { - value().subscribe(bb -> { }, t -> { }).dispose(); + getValue().subscribe(bb -> { }, t -> { }).dispose(); } } From 5619ecdffcf200403d7c524bc31fca16c93ceb79 Mon Sep 17 00:00:00 2001 From: Gauri Prasad Date: Thu, 26 Sep 2019 08:48:47 -0700 Subject: [PATCH 7/7] Added ADLS swagger to README known content issues --- eng/.docsettings.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/.docsettings.yml b/eng/.docsettings.yml index 4fb91b2a5c7e..7ae1ae394bf0 100644 --- a/eng/.docsettings.yml +++ b/eng/.docsettings.yml @@ -76,6 +76,7 @@ known_content_issues: - ['sdk/cosmos/microsoft-azure-cosmos-benchmark/README.md', '#3113'] - ['sdk/cosmos/README.md', '#3113'] - ['sdk/storage/azure-storage-blob/swagger/README.md', '#3113'] + - ['sdk/storage/azure-storage-file-datalake/swagger/README.md', '#3113'] - ['sdk/storage/azure-storage-queue/swagger/README.md', '#3113'] - ['sdk/storage/azure-storage-file/swagger/README.md', '#3113'] package_indexing_exclusion_list: