-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed public API for file get range diff (#15562)
- Loading branch information
1 parent
95ab50a
commit 2c3b254
Showing
11 changed files
with
399 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
...zure-storage-file-share/src/main/java/com/azure/storage/file/share/models/ClearRange.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// 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.share.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; | ||
|
||
/** | ||
* The ClearRange model. | ||
*/ | ||
@JacksonXmlRootElement(localName = "ClearRange") | ||
@Fluent | ||
public final class ClearRange { | ||
/* | ||
* The start property. | ||
*/ | ||
@JsonProperty(value = "Start", required = true) | ||
private long start; | ||
|
||
/* | ||
* The end property. | ||
*/ | ||
@JsonProperty(value = "End", required = true) | ||
private long end; | ||
|
||
/** | ||
* Get the start property: The start property. | ||
* | ||
* @return the start value. | ||
*/ | ||
public long getStart() { | ||
return this.start; | ||
} | ||
|
||
/** | ||
* Set the start property: The start property. | ||
* | ||
* @param start the start value to set. | ||
* @return the ClearRange object itself. | ||
*/ | ||
public ClearRange setStart(long start) { | ||
this.start = start; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the end property: The end property. | ||
* | ||
* @return the end value. | ||
*/ | ||
public long getEnd() { | ||
return this.end; | ||
} | ||
|
||
/** | ||
* Set the end property: The end property. | ||
* | ||
* @param end the end value to set. | ||
* @return the ClearRange object itself. | ||
*/ | ||
public ClearRange setEnd(long end) { | ||
this.end = end; | ||
return this; | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
...azure-storage-file-share/src/main/java/com/azure/storage/file/share/models/FileRange.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// 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.share.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; | ||
|
||
/** | ||
* An Azure Storage file range. | ||
*/ | ||
@JacksonXmlRootElement(localName = "Range") | ||
@Fluent | ||
public final class FileRange { | ||
/* | ||
* Start of the range. | ||
*/ | ||
@JsonProperty(value = "Start", required = true) | ||
private long start; | ||
|
||
/* | ||
* End of the range. | ||
*/ | ||
@JsonProperty(value = "End", required = true) | ||
private long end; | ||
|
||
/** | ||
* Get the start property: Start of the range. | ||
* | ||
* @return the start value. | ||
*/ | ||
public long getStart() { | ||
return this.start; | ||
} | ||
|
||
/** | ||
* Set the start property: Start of the range. | ||
* | ||
* @param start the start value to set. | ||
* @return the FileRange object itself. | ||
*/ | ||
public FileRange setStart(long start) { | ||
this.start = start; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the end property: End of the range. | ||
* | ||
* @return the end value. | ||
*/ | ||
public long getEnd() { | ||
return this.end; | ||
} | ||
|
||
/** | ||
* Set the end property: End of the range. | ||
* | ||
* @param end the end value to set. | ||
* @return the FileRange object itself. | ||
*/ | ||
public FileRange setEnd(long end) { | ||
this.end = end; | ||
return this; | ||
} | ||
} |
Oops, something went wrong.