Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Storage swagger #4981

Merged
merged 7 commits into from
Aug 15, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions eng/.docsettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ known_content_issues:
- ['sdk/cosmos/changelog/README.md', '#3113']
- ['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-queue/swagger/README.md', '#3113']
- ['sdk/storage/azure-storage-file/swagger/README.md', '#3113']
package_indexing_exclusion_list:
- azure-loganalytics-sample
- azure-applicationinsights-query-sample
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public AzureBlobStorageBuilder pipeline(HttpPipeline pipeline) {
* @return an instance of AzureBlobStorageImpl.
*/
public AzureBlobStorageImpl build() {
if (version == null) {
this.version = "2018-11-09";
}
if (pipeline == null) {
this.pipeline = RestProxy.createDefaultPipeline();
}
Expand All @@ -76,8 +79,6 @@ public AzureBlobStorageImpl build() {
}
if (this.version != null) {
client.setVersion(this.version);
} else {
client.setVersion("2018-11-09");
}
return client;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ public String getUrl() {
* Sets The URL of the service account, container, or blob that is the targe of the desired operation.
*
* @param url the url value.
* @return the service client itself.
*/
void setUrl(String url) {
AzureBlobStorageImpl setUrl(String url) {
this.url = url;
return this;
}

/**
Expand All @@ -52,9 +54,11 @@ public String getVersion() {
* Sets Specifies the version of the operation to use for this request.
*
* @param version the version value.
* @return the service client itself.
*/
void setVersion(String version) {
AzureBlobStorageImpl setVersion(String version) {
this.version = version;
return this;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private interface BlobsService {
}

/**
* The Download operation reads or downloads a blob from the system, including its metadata and properties. You can also call Download to read a snapshot or verison.
* The Download operation reads or downloads a blob from the system, including its metadata and properties. You can also call Download to read a snapshot or version.
*
* @param containerName The container name.
* @param blob The blob name.
Expand Down Expand Up @@ -199,7 +199,7 @@ public Mono<BlobsDownloadResponse> downloadWithRestResponseAsync(String containe
}

/**
* The Download operation reads or downloads a blob from the system, including its metadata and properties. You can also call Download to read a snapshot or verison.
* The Download operation reads or downloads a blob from the system, including its metadata and properties. You can also call Download to read a snapshot or version.
*
* @param containerName The container name.
* @param blob The blob name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,6 @@ public final class AppendBlobCreateHeaders {
@JsonProperty(value = "x-ms-version")
private String version;

/*
* UTC date/time value generated by the service that identifies a version
* of the blob. This header is returned for requests made against version
* 2018-11-09 and above.
*/
@JsonProperty(value = "x-ms-version-id")
private String versionId;

/*
* UTC date/time value generated by the service that indicates the time at
* which the response was initiated
Expand All @@ -79,6 +71,14 @@ public final class AppendBlobCreateHeaders {
@JsonProperty(value = "x-ms-request-server-encrypted")
private Boolean isServerEncrypted;

/*
* UTC date/time value generated by the service that identifies a version
* of the blob. This header is returned for requests made against version
* 2018-11-09 and above.
*/
@JsonProperty(value = "x-ms-version-id")
private String versionId;

/*
* The SHA-256 hash of the encryption key used to encrypt the blob. This
* header is only returned when the blob was encrypted with a
Expand Down Expand Up @@ -220,30 +220,6 @@ public AppendBlobCreateHeaders version(String version) {
return this;
}

/**
* Get the versionId property: UTC date/time value generated by the service
* that identifies a version of the blob. This header is returned for
* requests made against version 2018-11-09 and above.
*
* @return the versionId value.
*/
public String versionId() {
return this.versionId;
}

/**
* Set the versionId property: UTC date/time value generated by the service
* that identifies a version of the blob. This header is returned for
* requests made against version 2018-11-09 and above.
*
* @param versionId the versionId value to set.
* @return the AppendBlobCreateHeaders object itself.
*/
public AppendBlobCreateHeaders versionId(String versionId) {
this.versionId = versionId;
return this;
}

/**
* Get the dateProperty property: UTC date/time value generated by the
* service that indicates the time at which the response was initiated.
Expand Down Expand Up @@ -297,6 +273,30 @@ public AppendBlobCreateHeaders isServerEncrypted(Boolean isServerEncrypted) {
return this;
}

/**
* Get the versionId property: UTC date/time value generated by the service
* that identifies a version of the blob. This header is returned for
* requests made against version 2018-11-09 and above.
*
* @return the versionId value.
*/
public String versionId() {
return this.versionId;
}

/**
* Set the versionId property: UTC date/time value generated by the service
* that identifies a version of the blob. This header is returned for
* requests made against version 2018-11-09 and above.
*
* @param versionId the versionId value to set.
* @return the AppendBlobCreateHeaders object itself.
*/
public AppendBlobCreateHeaders versionId(String versionId) {
this.versionId = versionId;
return this;
}

/**
* Get the encryptionKeySha256 property: The SHA-256 hash of the encryption
* key used to encrypt the blob. This header is only returned when the blob
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ public final class BlobCopyFromURLHeaders {
@JsonProperty(value = "x-ms-version")
private String version;

/*
* UTC date/time value generated by the service that identifies the version
* of the blob. This header is returned for requests made against version
* 2018-11-09 and above.
*/
@JsonProperty(value = "x-ms-version-id")
private String versionId;

/*
* UTC date/time value generated by the service that indicates the time at
* which the response was initiated
Expand All @@ -75,6 +67,14 @@ public final class BlobCopyFromURLHeaders {
@JsonProperty(value = "x-ms-copy-status")
private SyncCopyStatusType copyStatus;

/*
* UTC date/time value generated by the service that identifies the version
* of the blob. This header is returned for requests made against version
* 2018-11-09 and above.
*/
@JsonProperty(value = "x-ms-version-id")
private String versionId;

/*
* The errorCode property.
*/
Expand Down Expand Up @@ -184,30 +184,6 @@ public BlobCopyFromURLHeaders version(String version) {
return this;
}

/**
* Get the versionId property: UTC date/time value generated by the service
* that identifies the version of the blob. This header is returned for
* requests made against version 2018-11-09 and above.
*
* @return the versionId value.
*/
public String versionId() {
return this.versionId;
}

/**
* Set the versionId property: UTC date/time value generated by the service
* that identifies the version of the blob. This header is returned for
* requests made against version 2018-11-09 and above.
*
* @param versionId the versionId value to set.
* @return the BlobCopyFromURLHeaders object itself.
*/
public BlobCopyFromURLHeaders versionId(String versionId) {
this.versionId = versionId;
return this;
}

/**
* Get the dateProperty property: UTC date/time value generated by the
* service that indicates the time at which the response was initiated.
Expand Down Expand Up @@ -279,6 +255,30 @@ public BlobCopyFromURLHeaders copyStatus(SyncCopyStatusType copyStatus) {
return this;
}

/**
* Get the versionId property: UTC date/time value generated by the service
* that identifies the version of the blob. This header is returned for
* requests made against version 2018-11-09 and above.
*
* @return the versionId value.
*/
public String versionId() {
return this.versionId;
}

/**
* Set the versionId property: UTC date/time value generated by the service
* that identifies the version of the blob. This header is returned for
* requests made against version 2018-11-09 and above.
*
* @param versionId the versionId value to set.
* @return the BlobCopyFromURLHeaders object itself.
*/
public BlobCopyFromURLHeaders versionId(String versionId) {
this.versionId = versionId;
return this;
}

/**
* Get the errorCode property: The errorCode property.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ public final class BlobCreateSnapshotHeaders {
@JsonProperty(value = "x-ms-version")
private String version;

/*
* UTC date/time value generated by the service that indicates the time at
* which the response was initiated
*/
@JsonProperty(value = "Date")
private DateTimeRfc1123 dateProperty;

/*
* UTC date/time value generated by the service that identifies the version
* of the blob. This header is returned for requests made against version
Expand All @@ -62,13 +69,6 @@ public final class BlobCreateSnapshotHeaders {
@JsonProperty(value = "x-ms-version-id")
private String versionId;

/*
* UTC date/time value generated by the service that indicates the time at
* which the response was initiated
*/
@JsonProperty(value = "Date")
private DateTimeRfc1123 dateProperty;

/*
* True if the contents of the request are successfully encrypted using the
* specified algorithm, and false otherwise. For a snapshot request, this
Expand Down Expand Up @@ -219,30 +219,6 @@ public BlobCreateSnapshotHeaders version(String version) {
return this;
}

/**
* Get the versionId property: UTC date/time value generated by the service
* that identifies the version of the blob. This header is returned for
* requests made against version 2018-11-09 and above.
*
* @return the versionId value.
*/
public String versionId() {
return this.versionId;
}

/**
* Set the versionId property: UTC date/time value generated by the service
* that identifies the version of the blob. This header is returned for
* requests made against version 2018-11-09 and above.
*
* @param versionId the versionId value to set.
* @return the BlobCreateSnapshotHeaders object itself.
*/
public BlobCreateSnapshotHeaders versionId(String versionId) {
this.versionId = versionId;
return this;
}

/**
* Get the dateProperty property: UTC date/time value generated by the
* service that indicates the time at which the response was initiated.
Expand Down Expand Up @@ -272,6 +248,30 @@ public BlobCreateSnapshotHeaders dateProperty(OffsetDateTime dateProperty) {
return this;
}

/**
* Get the versionId property: UTC date/time value generated by the service
* that identifies the version of the blob. This header is returned for
* requests made against version 2018-11-09 and above.
*
* @return the versionId value.
*/
public String versionId() {
return this.versionId;
}

/**
* Set the versionId property: UTC date/time value generated by the service
* that identifies the version of the blob. This header is returned for
* requests made against version 2018-11-09 and above.
*
* @param versionId the versionId value to set.
* @return the BlobCreateSnapshotHeaders object itself.
*/
public BlobCreateSnapshotHeaders versionId(String versionId) {
this.versionId = versionId;
return this;
}

/**
* Get the isServerEncrypted property: True if the contents of the request
* are successfully encrypted using the specified algorithm, and false
Expand Down
Loading