Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit cd74c1f

Browse files
committed
Generated with new autorest version to comply with new runtime
1 parent a48518b commit cd74c1f

File tree

71 files changed

+1345
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1345
-132
lines changed

src/main/java/com/microsoft/azure/storage/GeneratedBlobs.java

Lines changed: 63 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import com.microsoft.azure.storage.blob.models.BlobCreateSnapshotResponse;
1919
import com.microsoft.azure.storage.blob.models.BlobDeleteResponse;
2020
import com.microsoft.azure.storage.blob.models.BlobDownloadResponse;
21+
import com.microsoft.azure.storage.blob.models.BlobGetAccountInfoResponse;
2122
import com.microsoft.azure.storage.blob.models.BlobGetPropertiesResponse;
2223
import com.microsoft.azure.storage.blob.models.BlobReleaseLeaseResponse;
2324
import com.microsoft.azure.storage.blob.models.BlobRenewLeaseResponse;
@@ -149,7 +150,7 @@ private interface BlobsService {
149150
@PUT("{containerName}/{blob}")
150151
@ExpectedResponses({202})
151152
@UnexpectedResponseExceptionType(StorageErrorException.class)
152-
Single<BlobStartCopyFromURLResponse> startCopyFromURL(@HostParam("url") String url, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map<String, String> metadata, @HeaderParam("x-ms-source-if-modified-since") DateTimeRfc1123 sourceIfModifiedSince, @HeaderParam("x-ms-source-if-unmodified-since") DateTimeRfc1123 sourceIfUnmodifiedSince, @HeaderParam("x-ms-source-if-match") String sourceIfMatches, @HeaderParam("x-ms-source-if-none-match") String sourceIfNoneMatch, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, @HeaderParam("If-Match") String ifMatches, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("x-ms-copy-source") URL copySource, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("x-ms-source-lease-id") String sourceLeaseId, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId);
153+
Single<BlobStartCopyFromURLResponse> startCopyFromURL(@HostParam("url") String url, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-meta-") Map<String, String> metadata, @HeaderParam("x-ms-source-if-modified-since") DateTimeRfc1123 sourceIfModifiedSince, @HeaderParam("x-ms-source-if-unmodified-since") DateTimeRfc1123 sourceIfUnmodifiedSince, @HeaderParam("x-ms-source-if-match") String sourceIfMatches, @HeaderParam("x-ms-source-if-none-match") String sourceIfNoneMatch, @HeaderParam("If-Modified-Since") DateTimeRfc1123 ifModifiedSince, @HeaderParam("If-Unmodified-Since") DateTimeRfc1123 ifUnmodifiedSince, @HeaderParam("If-Match") String ifMatches, @HeaderParam("If-None-Match") String ifNoneMatch, @HeaderParam("x-ms-copy-source") URL copySource, @HeaderParam("x-ms-lease-id") String leaseId, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId);
153154

154155
@PUT("{containerName}/{blob}")
155156
@ExpectedResponses({204})
@@ -160,6 +161,11 @@ private interface BlobsService {
160161
@ExpectedResponses({200, 202})
161162
@UnexpectedResponseExceptionType(StorageErrorException.class)
162163
Single<BlobSetTierResponse> setTier(@HostParam("url") String url, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-access-tier") AccessTier tier, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("comp") String comp);
164+
165+
@GET("{containerName}/{blobName}")
166+
@ExpectedResponses({200})
167+
@UnexpectedResponseExceptionType(StorageErrorException.class)
168+
Single<BlobGetAccountInfoResponse> getAccountInfo(@HostParam("url") String url, @HeaderParam("x-ms-version") String version, @QueryParam("restype") String restype, @QueryParam("comp") String comp);
163169
}
164170

165171
/**
@@ -1263,14 +1269,13 @@ public Completable createSnapshotAsync(Integer timeout, Map<String, String> meta
12631269
* @param ifMatches Specify an ETag value to operate only on blobs with a matching value.
12641270
* @param ifNoneMatch Specify an ETag value to operate only on blobs without a matching value.
12651271
* @param leaseId If specified, the operation only succeeds if the container's lease is active and matches this ID.
1266-
* @param sourceLeaseId Specify this header to perform the operation only if the lease ID given matches the active lease ID of the source blob.
12671272
* @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
12681273
* @throws IllegalArgumentException thrown if parameters fail the validation.
12691274
* @throws StorageErrorException thrown if the request is rejected by server.
12701275
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
12711276
*/
1272-
public void startCopyFromURL(@NonNull URL copySource, Integer timeout, Map<String, String> metadata, OffsetDateTime sourceIfModifiedSince, OffsetDateTime sourceIfUnmodifiedSince, String sourceIfMatches, String sourceIfNoneMatch, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String ifMatches, String ifNoneMatch, String leaseId, String sourceLeaseId, String requestId) {
1273-
startCopyFromURLAsync(copySource, timeout, metadata, sourceIfModifiedSince, sourceIfUnmodifiedSince, sourceIfMatches, sourceIfNoneMatch, ifModifiedSince, ifUnmodifiedSince, ifMatches, ifNoneMatch, leaseId, sourceLeaseId, requestId).blockingAwait();
1277+
public void startCopyFromURL(@NonNull URL copySource, Integer timeout, Map<String, String> metadata, OffsetDateTime sourceIfModifiedSince, OffsetDateTime sourceIfUnmodifiedSince, String sourceIfMatches, String sourceIfNoneMatch, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String ifMatches, String ifNoneMatch, String leaseId, String requestId) {
1278+
startCopyFromURLAsync(copySource, timeout, metadata, sourceIfModifiedSince, sourceIfUnmodifiedSince, sourceIfMatches, sourceIfNoneMatch, ifModifiedSince, ifUnmodifiedSince, ifMatches, ifNoneMatch, leaseId, requestId).blockingAwait();
12741279
}
12751280

12761281
/**
@@ -1288,14 +1293,13 @@ public void startCopyFromURL(@NonNull URL copySource, Integer timeout, Map<Strin
12881293
* @param ifMatches Specify an ETag value to operate only on blobs with a matching value.
12891294
* @param ifNoneMatch Specify an ETag value to operate only on blobs without a matching value.
12901295
* @param leaseId If specified, the operation only succeeds if the container's lease is active and matches this ID.
1291-
* @param sourceLeaseId Specify this header to perform the operation only if the lease ID given matches the active lease ID of the source blob.
12921296
* @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
12931297
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
12941298
* @throws IllegalArgumentException thrown if parameters fail the validation.
12951299
* @return a ServiceFuture which will be completed with the result of the network request.
12961300
*/
1297-
public ServiceFuture<Void> startCopyFromURLAsync(@NonNull URL copySource, Integer timeout, Map<String, String> metadata, OffsetDateTime sourceIfModifiedSince, OffsetDateTime sourceIfUnmodifiedSince, String sourceIfMatches, String sourceIfNoneMatch, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String ifMatches, String ifNoneMatch, String leaseId, String sourceLeaseId, String requestId, ServiceCallback<Void> serviceCallback) {
1298-
return ServiceFuture.fromBody(startCopyFromURLAsync(copySource, timeout, metadata, sourceIfModifiedSince, sourceIfUnmodifiedSince, sourceIfMatches, sourceIfNoneMatch, ifModifiedSince, ifUnmodifiedSince, ifMatches, ifNoneMatch, leaseId, sourceLeaseId, requestId), serviceCallback);
1301+
public ServiceFuture<Void> startCopyFromURLAsync(@NonNull URL copySource, Integer timeout, Map<String, String> metadata, OffsetDateTime sourceIfModifiedSince, OffsetDateTime sourceIfUnmodifiedSince, String sourceIfMatches, String sourceIfNoneMatch, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String ifMatches, String ifNoneMatch, String leaseId, String requestId, ServiceCallback<Void> serviceCallback) {
1302+
return ServiceFuture.fromBody(startCopyFromURLAsync(copySource, timeout, metadata, sourceIfModifiedSince, sourceIfUnmodifiedSince, sourceIfMatches, sourceIfNoneMatch, ifModifiedSince, ifUnmodifiedSince, ifMatches, ifNoneMatch, leaseId, requestId), serviceCallback);
12991303
}
13001304

13011305
/**
@@ -1313,12 +1317,11 @@ public ServiceFuture<Void> startCopyFromURLAsync(@NonNull URL copySource, Intege
13131317
* @param ifMatches Specify an ETag value to operate only on blobs with a matching value.
13141318
* @param ifNoneMatch Specify an ETag value to operate only on blobs without a matching value.
13151319
* @param leaseId If specified, the operation only succeeds if the container's lease is active and matches this ID.
1316-
* @param sourceLeaseId Specify this header to perform the operation only if the lease ID given matches the active lease ID of the source blob.
13171320
* @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
13181321
* @throws IllegalArgumentException thrown if parameters fail the validation.
13191322
* @return a Single which performs the network request upon subscription.
13201323
*/
1321-
public Single<BlobStartCopyFromURLResponse> startCopyFromURLWithRestResponseAsync(@NonNull URL copySource, Integer timeout, Map<String, String> metadata, OffsetDateTime sourceIfModifiedSince, OffsetDateTime sourceIfUnmodifiedSince, String sourceIfMatches, String sourceIfNoneMatch, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String ifMatches, String ifNoneMatch, String leaseId, String sourceLeaseId, String requestId) {
1324+
public Single<BlobStartCopyFromURLResponse> startCopyFromURLWithRestResponseAsync(@NonNull URL copySource, Integer timeout, Map<String, String> metadata, OffsetDateTime sourceIfModifiedSince, OffsetDateTime sourceIfUnmodifiedSince, String sourceIfMatches, String sourceIfNoneMatch, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String ifMatches, String ifNoneMatch, String leaseId, String requestId) {
13221325
if (this.client.url() == null) {
13231326
throw new IllegalArgumentException("Parameter this.client.url() is required and cannot be null.");
13241327
}
@@ -1346,7 +1349,7 @@ public Single<BlobStartCopyFromURLResponse> startCopyFromURLWithRestResponseAsyn
13461349
if (ifUnmodifiedSince != null) {
13471350
ifUnmodifiedSinceConverted = new DateTimeRfc1123(ifUnmodifiedSince);
13481351
}
1349-
return service.startCopyFromURL(this.client.url(), timeout, metadata, sourceIfModifiedSinceConverted, sourceIfUnmodifiedSinceConverted, sourceIfMatches, sourceIfNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, ifMatches, ifNoneMatch, copySource, leaseId, sourceLeaseId, this.client.version(), requestId);
1352+
return service.startCopyFromURL(this.client.url(), timeout, metadata, sourceIfModifiedSinceConverted, sourceIfUnmodifiedSinceConverted, sourceIfMatches, sourceIfNoneMatch, ifModifiedSinceConverted, ifUnmodifiedSinceConverted, ifMatches, ifNoneMatch, copySource, leaseId, this.client.version(), requestId);
13501353
}
13511354

13521355
/**
@@ -1364,13 +1367,12 @@ public Single<BlobStartCopyFromURLResponse> startCopyFromURLWithRestResponseAsyn
13641367
* @param ifMatches Specify an ETag value to operate only on blobs with a matching value.
13651368
* @param ifNoneMatch Specify an ETag value to operate only on blobs without a matching value.
13661369
* @param leaseId If specified, the operation only succeeds if the container's lease is active and matches this ID.
1367-
* @param sourceLeaseId Specify this header to perform the operation only if the lease ID given matches the active lease ID of the source blob.
13681370
* @param requestId Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage analytics logging is enabled.
13691371
* @throws IllegalArgumentException thrown if parameters fail the validation.
13701372
* @return a Single which performs the network request upon subscription.
13711373
*/
1372-
public Completable startCopyFromURLAsync(@NonNull URL copySource, Integer timeout, Map<String, String> metadata, OffsetDateTime sourceIfModifiedSince, OffsetDateTime sourceIfUnmodifiedSince, String sourceIfMatches, String sourceIfNoneMatch, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String ifMatches, String ifNoneMatch, String leaseId, String sourceLeaseId, String requestId) {
1373-
return startCopyFromURLWithRestResponseAsync(copySource, timeout, metadata, sourceIfModifiedSince, sourceIfUnmodifiedSince, sourceIfMatches, sourceIfNoneMatch, ifModifiedSince, ifUnmodifiedSince, ifMatches, ifNoneMatch, leaseId, sourceLeaseId, requestId)
1374+
public Completable startCopyFromURLAsync(@NonNull URL copySource, Integer timeout, Map<String, String> metadata, OffsetDateTime sourceIfModifiedSince, OffsetDateTime sourceIfUnmodifiedSince, String sourceIfMatches, String sourceIfNoneMatch, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String ifMatches, String ifNoneMatch, String leaseId, String requestId) {
1375+
return startCopyFromURLWithRestResponseAsync(copySource, timeout, metadata, sourceIfModifiedSince, sourceIfUnmodifiedSince, sourceIfMatches, sourceIfNoneMatch, ifModifiedSince, ifUnmodifiedSince, ifMatches, ifNoneMatch, leaseId, requestId)
13741376
.toCompletable();
13751377
}
13761378

@@ -1508,4 +1510,52 @@ public Completable setTierAsync(@NonNull AccessTier tier, Integer timeout, Strin
15081510
return setTierWithRestResponseAsync(tier, timeout, requestId)
15091511
.toCompletable();
15101512
}
1513+
1514+
/**
1515+
* Returns the sku name and account kind.
1516+
*
1517+
* @throws StorageErrorException thrown if the request is rejected by server.
1518+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
1519+
*/
1520+
public void getAccountInfo() {
1521+
getAccountInfoAsync().blockingAwait();
1522+
}
1523+
1524+
/**
1525+
* Returns the sku name and account kind.
1526+
*
1527+
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
1528+
* @throws IllegalArgumentException thrown if parameters fail the validation.
1529+
* @return a ServiceFuture which will be completed with the result of the network request.
1530+
*/
1531+
public ServiceFuture<Void> getAccountInfoAsync(ServiceCallback<Void> serviceCallback) {
1532+
return ServiceFuture.fromBody(getAccountInfoAsync(), serviceCallback);
1533+
}
1534+
1535+
/**
1536+
* Returns the sku name and account kind.
1537+
*
1538+
* @return a Single which performs the network request upon subscription.
1539+
*/
1540+
public Single<BlobGetAccountInfoResponse> getAccountInfoWithRestResponseAsync() {
1541+
if (this.client.url() == null) {
1542+
throw new IllegalArgumentException("Parameter this.client.url() is required and cannot be null.");
1543+
}
1544+
if (this.client.version() == null) {
1545+
throw new IllegalArgumentException("Parameter this.client.version() is required and cannot be null.");
1546+
}
1547+
final String restype = "account";
1548+
final String comp = "properties";
1549+
return service.getAccountInfo(this.client.url(), this.client.version(), restype, comp);
1550+
}
1551+
1552+
/**
1553+
* Returns the sku name and account kind.
1554+
*
1555+
* @return a Single which performs the network request upon subscription.
1556+
*/
1557+
public Completable getAccountInfoAsync() {
1558+
return getAccountInfoWithRestResponseAsync()
1559+
.toCompletable();
1560+
}
15111561
}

src/main/java/com/microsoft/azure/storage/GeneratedContainers.java

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.microsoft.azure.storage.blob.models.ContainerCreateResponse;
1818
import com.microsoft.azure.storage.blob.models.ContainerDeleteResponse;
1919
import com.microsoft.azure.storage.blob.models.ContainerGetAccessPolicyResponse;
20+
import com.microsoft.azure.storage.blob.models.ContainerGetAccountInfoResponse;
2021
import com.microsoft.azure.storage.blob.models.ContainerGetPropertiesResponse;
2122
import com.microsoft.azure.storage.blob.models.ContainerListBlobFlatSegmentResponse;
2223
import com.microsoft.azure.storage.blob.models.ContainerListBlobHierarchySegmentResponse;
@@ -151,6 +152,11 @@ private interface ContainersService {
151152
@ExpectedResponses({200})
152153
@UnexpectedResponseExceptionType(StorageErrorException.class)
153154
Single<ContainerListBlobHierarchySegmentResponse> listBlobHierarchySegment(@HostParam("url") String url, @QueryParam("prefix") String prefix, @QueryParam("delimiter") String delimiter, @QueryParam("marker") String marker, @QueryParam("maxresults") Integer maxresults, @QueryParam("include") String include, @QueryParam("timeout") Integer timeout, @HeaderParam("x-ms-version") String version, @HeaderParam("x-ms-client-request-id") String requestId, @QueryParam("restype") String restype, @QueryParam("comp") String comp);
155+
156+
@GET("{containerName}")
157+
@ExpectedResponses({200})
158+
@UnexpectedResponseExceptionType(StorageErrorException.class)
159+
Single<ContainerGetAccountInfoResponse> getAccountInfo(@HostParam("url") String url, @HeaderParam("x-ms-version") String version, @QueryParam("restype") String restype, @QueryParam("comp") String comp);
154160
}
155161

156162
/**
@@ -1170,4 +1176,52 @@ public Maybe<ListBlobsHierarchySegmentResponse> listBlobHierarchySegmentAsync(@N
11701176
return listBlobHierarchySegmentWithRestResponseAsync(delimiter, prefix, marker, maxresults, include, timeout, requestId)
11711177
.flatMapMaybe((ContainerListBlobHierarchySegmentResponse res) -> res.body() == null ? Maybe.empty() : Maybe.just(res.body()));
11721178
}
1179+
1180+
/**
1181+
* Returns the sku name and account kind.
1182+
*
1183+
* @throws StorageErrorException thrown if the request is rejected by server.
1184+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
1185+
*/
1186+
public void getAccountInfo() {
1187+
getAccountInfoAsync().blockingAwait();
1188+
}
1189+
1190+
/**
1191+
* Returns the sku name and account kind.
1192+
*
1193+
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
1194+
* @throws IllegalArgumentException thrown if parameters fail the validation.
1195+
* @return a ServiceFuture which will be completed with the result of the network request.
1196+
*/
1197+
public ServiceFuture<Void> getAccountInfoAsync(ServiceCallback<Void> serviceCallback) {
1198+
return ServiceFuture.fromBody(getAccountInfoAsync(), serviceCallback);
1199+
}
1200+
1201+
/**
1202+
* Returns the sku name and account kind.
1203+
*
1204+
* @return a Single which performs the network request upon subscription.
1205+
*/
1206+
public Single<ContainerGetAccountInfoResponse> getAccountInfoWithRestResponseAsync() {
1207+
if (this.client.url() == null) {
1208+
throw new IllegalArgumentException("Parameter this.client.url() is required and cannot be null.");
1209+
}
1210+
if (this.client.version() == null) {
1211+
throw new IllegalArgumentException("Parameter this.client.version() is required and cannot be null.");
1212+
}
1213+
final String restype = "account";
1214+
final String comp = "properties";
1215+
return service.getAccountInfo(this.client.url(), this.client.version(), restype, comp);
1216+
}
1217+
1218+
/**
1219+
* Returns the sku name and account kind.
1220+
*
1221+
* @return a Single which performs the network request upon subscription.
1222+
*/
1223+
public Completable getAccountInfoAsync() {
1224+
return getAccountInfoWithRestResponseAsync()
1225+
.toCompletable();
1226+
}
11731227
}

0 commit comments

Comments
 (0)