Skip to content

Commit

Permalink
Fixed simple renames and doc issues from 74 (#15297)
Browse files Browse the repository at this point in the history
Co-authored-by: Gauri Prasad <[email protected]>
  • Loading branch information
gapra-msft and gapra-msft authored Sep 16, 2020
1 parent 70bd409 commit 652424c
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

package com.azure.storage.blob.models;

import com.azure.core.annotation.Fluent;
import com.azure.storage.common.implementation.StorageImplUtils;

/**
* Defines an arrow field for a blob quick query request.
*/
@Fluent
public class BlobQueryArrowField {

private String name;
Expand Down Expand Up @@ -36,7 +38,7 @@ public BlobQueryArrowField setName(String name) {
* @param precision The precision of the field. Required if type is {@link BlobQueryArrowFieldType#DECIMAL}
* @return The updated options.
*/
public BlobQueryArrowField setPrecision(int precision) {
public BlobQueryArrowField setPrecision(Integer precision) {
this.precision = precision;
return this;
}
Expand All @@ -45,7 +47,7 @@ public BlobQueryArrowField setPrecision(int precision) {
* @param scale The scale of the field. Required if type is {@link BlobQueryArrowFieldType#DECIMAL}
* @return The updated options.
*/
public BlobQueryArrowField setScale(int scale) {
public BlobQueryArrowField setScale(Integer scale) {
this.scale = scale;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ public String getVersion() {
*
* @param version Version to target
* @return the updated BlobServiceSASSignatureValues object
* @deprecated The version is set to the latest version of sas.
* @deprecated The version is set to the latest version of sas. Users should stop calling this API as it is now
* treated as a no-op.
*/
@Deprecated
public BlobServiceSasSignatureValues setVersion(String version) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ public Mono<Response<AccessControlChangeResult>> setAccessControlRecursiveWithRe
return withContext(context -> setAccessControlRecursiveWithResponse(
PathAccessControlEntry.serializeList(options.getAccessControlList()), options.getProgressHandler(),
PathSetAccessControlRecursiveMode.SET, options.getBatchSize(), options.getMaxBatches(),
options.isContinuingOnFailure(), options.getContinuationToken(), context));
options.isContinueOnFailure(), options.getContinuationToken(), context));
} catch (RuntimeException ex) {
return monoError(logger, ex);
}
Expand Down Expand Up @@ -746,7 +746,7 @@ public Mono<Response<AccessControlChangeResult>> updateAccessControlRecursiveWit
return withContext(context -> setAccessControlRecursiveWithResponse(
PathAccessControlEntry.serializeList(options.getAccessControlList()), options.getProgressHandler(),
PathSetAccessControlRecursiveMode.MODIFY, options.getBatchSize(), options.getMaxBatches(),
options.isContinuingOnFailure(), options.getContinuationToken(), context));
options.isContinueOnFailure(), options.getContinuationToken(), context));
} catch (RuntimeException ex) {
return monoError(logger, ex);
}
Expand Down Expand Up @@ -796,7 +796,7 @@ public Mono<Response<AccessControlChangeResult>> removeAccessControlRecursiveWit
return withContext(context -> setAccessControlRecursiveWithResponse(
PathRemoveAccessControlEntry.serializeList(options.getAccessControlList()),
options.getProgressHandler(), PathSetAccessControlRecursiveMode.REMOVE, options.getBatchSize(),
options.getMaxBatches(), options.isContinuingOnFailure(), options.getContinuationToken(), context));
options.getMaxBatches(), options.isContinueOnFailure(), options.getContinuationToken(), context));
} catch (RuntimeException ex) {
return monoError(logger, ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public Response<AccessControlChangeResult> setAccessControlRecursiveWithResponse
dataLakePathAsyncClient.setAccessControlRecursiveWithResponse(
PathAccessControlEntry.serializeList(options.getAccessControlList()), options.getProgressHandler(),
PathSetAccessControlRecursiveMode.SET, options.getBatchSize(), options.getMaxBatches(),
options.isContinuingOnFailure(), options.getContinuationToken(), context);
options.isContinueOnFailure(), options.getContinuationToken(), context);

return StorageImplUtils.blockWithOptionalTimeout(response, timeout);
}
Expand Down Expand Up @@ -443,7 +443,7 @@ public Response<AccessControlChangeResult> updateAccessControlRecursiveWithRespo
dataLakePathAsyncClient.setAccessControlRecursiveWithResponse(
PathAccessControlEntry.serializeList(options.getAccessControlList()), options.getProgressHandler(),
PathSetAccessControlRecursiveMode.MODIFY, options.getBatchSize(), options.getMaxBatches(),
options.isContinuingOnFailure(), options.getContinuationToken(), context);
options.isContinueOnFailure(), options.getContinuationToken(), context);

return StorageImplUtils.blockWithOptionalTimeout(response, timeout);
}
Expand Down Expand Up @@ -488,7 +488,7 @@ public Response<AccessControlChangeResult> removeAccessControlRecursiveWithRespo
dataLakePathAsyncClient.setAccessControlRecursiveWithResponse(
PathRemoveAccessControlEntry.serializeList(options.getAccessControlList()),
options.getProgressHandler(), PathSetAccessControlRecursiveMode.REMOVE, options.getBatchSize(),
options.getMaxBatches(), options.isContinuingOnFailure(), options.getContinuationToken(), context);
options.getMaxBatches(), options.isContinueOnFailure(), options.getContinuationToken(), context);

return StorageImplUtils.blockWithOptionalTimeout(response, timeout);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

package com.azure.storage.file.datalake.models;

import com.azure.core.annotation.Fluent;
import com.azure.storage.common.implementation.StorageImplUtils;

/**
* Defines an arrow field for a file quick query request.
*/
@Fluent
public class FileQueryArrowField {

private String name;
Expand Down Expand Up @@ -36,7 +38,7 @@ public FileQueryArrowField setName(String name) {
* @param precision The precision of the field. Required if type is {@link FileQueryArrowFieldType#DECIMAL}
* @return The updated options.
*/
public FileQueryArrowField setPrecision(int precision) {
public FileQueryArrowField setPrecision(Integer precision) {
this.precision = precision;
return this;
}
Expand All @@ -45,7 +47,7 @@ public FileQueryArrowField setPrecision(int precision) {
* @param scale The scale of the field. Required if type is {@link FileQueryArrowFieldType#DECIMAL}
* @return The updated options.
*/
public FileQueryArrowField setScale(int scale) {
public FileQueryArrowField setScale(Integer scale) {
this.scale = scale;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public PathRemoveAccessControlRecursiveOptions setContinuationToken(String conti
*
* @return If the operation should continue on user failure.
*/
public boolean isContinuingOnFailure() {
public boolean isContinueOnFailure() {
return continueOnFailure;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public PathSetAccessControlRecursiveOptions setContinuationToken(String continua
*
* @return If the operation should continue on user failure.
*/
public boolean isContinuingOnFailure() {
public boolean isContinueOnFailure() {
return continueOnFailure;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public PathUpdateAccessControlRecursiveOptions setContinuationToken(String conti
*
* @return If the operation should continue on user failure.
*/
public boolean isContinuingOnFailure() {
public boolean isContinueOnFailure() {
return continueOnFailure;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ public String getVersion() {
*
* @param version Version to target
* @return the updated DataLakeServiceSasSignatureValues object
* @deprecated The version is set to the latest version of sas.
* @deprecated The version is set to the latest version of sas. Users should stop calling this API as it is now
* treated as a no-op.
*/
@Deprecated
public DataLakeServiceSasSignatureValues setVersion(String version) {
Expand Down

0 comments on commit 652424c

Please sign in to comment.