Skip to content

Commit 098d044

Browse files
author
Liudmila Molkova
committed
more regen
1 parent f4c7cc7 commit 098d044

File tree

7 files changed

+102
-528
lines changed

7 files changed

+102
-528
lines changed

sdk/storage/azure-storage-blob-v2/src/main/java/com/azure/v2/storage/blob/AppendBlobClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public Response<Void> createWithResponse(String containerName, String blob, long
8686
OffsetDateTime immutabilityPolicyExpiry, BlobImmutabilityPolicyMode immutabilityPolicyMode, Boolean legalHold,
8787
BlobHttpHeaders blobHttpHeaders, CpkInfo cpkInfo, EncryptionScope encryptionScopeParam,
8888
RequestOptions requestOptions) {
89-
return this.instrumentation.instrument("AppendBlob_Create", requestOptions,
89+
return this.instrumentation.instrumentWithResponse("AppendBlob_Create", requestOptions,
9090
updatedOptions -> this.serviceClient.createWithResponse(containerName, blob, contentLength, timeout,
9191
metadata, leaseId, ifModifiedSince, ifUnmodifiedSince, ifMatch, ifNoneMatch, ifTags, requestId,
9292
blobTagsString, immutabilityPolicyExpiry, immutabilityPolicyMode, legalHold, blobHttpHeaders, cpkInfo,
@@ -193,7 +193,7 @@ public Response<Void> appendBlockWithResponse(String containerName, String blob,
193193
OffsetDateTime ifUnmodifiedSince, String ifMatch, String ifNoneMatch, String ifTags, String requestId,
194194
String structuredBodyType, Long structuredContentLength, CpkInfo cpkInfo, EncryptionScope encryptionScopeParam,
195195
RequestOptions requestOptions) {
196-
return this.instrumentation.instrument("AppendBlob_AppendBlock", requestOptions,
196+
return this.instrumentation.instrumentWithResponse("AppendBlob_AppendBlock", requestOptions,
197197
updatedOptions -> this.serviceClient.appendBlockWithResponse(containerName, blob, contentLength, body,
198198
timeout, transactionalContentMD5, transactionalContentCrc64, leaseId, maxSize, appendPosition,
199199
ifModifiedSince, ifUnmodifiedSince, ifMatch, ifNoneMatch, ifTags, requestId, structuredBodyType,
@@ -314,7 +314,7 @@ public Response<Void> appendBlockFromUrlWithResponse(String containerName, Strin
314314
String ifTags, OffsetDateTime sourceIfModifiedSince, OffsetDateTime sourceIfUnmodifiedSince,
315315
String sourceIfMatch, String sourceIfNoneMatch, String requestId, String copySourceAuthorization,
316316
CpkInfo cpkInfo, EncryptionScope encryptionScopeParam, RequestOptions requestOptions) {
317-
return this.instrumentation.instrument("AppendBlob_AppendBlockFromUrl", requestOptions,
317+
return this.instrumentation.instrumentWithResponse("AppendBlob_AppendBlockFromUrl", requestOptions,
318318
updatedOptions -> this.serviceClient.appendBlockFromUrlWithResponse(containerName, blob, sourceUrl,
319319
contentLength, sourceRange, sourceContentMD5, sourceContentcrc64, timeout, transactionalContentMD5,
320320
leaseId, maxSize, appendPosition, ifModifiedSince, ifUnmodifiedSince, ifMatch, ifNoneMatch, ifTags,
@@ -419,7 +419,7 @@ public void appendBlockFromUrl(String containerName, String blob, String sourceU
419419
public Response<Void> sealWithResponse(String containerName, String blob, Integer timeout, String requestId,
420420
String leaseId, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String ifMatch,
421421
String ifNoneMatch, Long appendPosition, RequestOptions requestOptions) {
422-
return this.instrumentation.instrument("AppendBlob_Seal", requestOptions,
422+
return this.instrumentation.instrumentWithResponse("AppendBlob_Seal", requestOptions,
423423
updatedOptions -> this.serviceClient.sealWithResponse(containerName, blob, timeout, requestId, leaseId,
424424
ifModifiedSince, ifUnmodifiedSince, ifMatch, ifNoneMatch, appendPosition, updatedOptions));
425425
}

sdk/storage/azure-storage-blob-v2/src/main/java/com/azure/v2/storage/blob/AzureBlobStorageBuilder.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*/
3434
@ServiceClientBuilder(
3535
serviceClients = {
36-
ServiceClient.class,
36+
StorageServiceClient.class,
3737
ContainerClient.class,
3838
BlobClient.class,
3939
PageBlobClient.class,
@@ -193,7 +193,7 @@ public AzureBlobStorageBuilder configuration(Configuration configuration) {
193193

194194
/**
195195
* Sets The URL of the service account, container, or blob that is the target of the desired operation.
196-
*
196+
*
197197
* @param url the url value.
198198
* @return the AzureBlobStorageBuilder.
199199
*/
@@ -211,7 +211,7 @@ public AzureBlobStorageBuilder url(String url) {
211211

212212
/**
213213
* Sets Specifies the version of the operation to use for this request.
214-
*
214+
*
215215
* @param version the version value.
216216
* @return the AzureBlobStorageBuilder.
217217
*/
@@ -223,7 +223,7 @@ public AzureBlobStorageBuilder version(String version) {
223223

224224
/**
225225
* Builds an instance of AzureBlobStorageImpl with the provided parameters.
226-
*
226+
*
227227
* @return an instance of AzureBlobStorageImpl.
228228
*/
229229
@Metadata(generated = true)
@@ -261,22 +261,22 @@ private HttpPipeline createHttpPipeline() {
261261

262262
/**
263263
* Builds an instance of ServiceClient class.
264-
*
264+
*
265265
* @return an instance of ServiceClient.
266266
*/
267267
@Metadata(generated = true)
268-
public ServiceClient buildServiceClient() {
268+
public StorageServiceClient buildServiceClient() {
269269
HttpInstrumentationOptions localHttpInstrumentationOptions = this.httpInstrumentationOptions == null
270270
? new HttpInstrumentationOptions()
271271
: this.httpInstrumentationOptions;
272272
Instrumentation instrumentation
273-
= Instrumentation.create(localHttpInstrumentationOptions, LIBRARY_INSTRUMENTATION_OPTIONS, this.endpoint);
274-
return new ServiceClient(buildInnerClient().getServices(), instrumentation);
273+
= Instrumentation.create(localHttpInstrumentationOptions, LIBRARY_INSTRUMENTATION_OPTIONS, null);
274+
return new StorageServiceClient(buildInnerClient().getServices(), instrumentation);
275275
}
276276

277277
/**
278278
* Builds an instance of ContainerClient class.
279-
*
279+
*
280280
* @return an instance of ContainerClient.
281281
*/
282282
@Metadata(generated = true)
@@ -285,13 +285,13 @@ public ContainerClient buildContainerClient() {
285285
? new HttpInstrumentationOptions()
286286
: this.httpInstrumentationOptions;
287287
Instrumentation instrumentation
288-
= Instrumentation.create(localHttpInstrumentationOptions, LIBRARY_INSTRUMENTATION_OPTIONS, this.endpoint);
288+
= Instrumentation.create(localHttpInstrumentationOptions, LIBRARY_INSTRUMENTATION_OPTIONS, null);
289289
return new ContainerClient(buildInnerClient().getContainers(), instrumentation);
290290
}
291291

292292
/**
293293
* Builds an instance of BlobClient class.
294-
*
294+
*
295295
* @return an instance of BlobClient.
296296
*/
297297
@Metadata(generated = true)
@@ -300,13 +300,13 @@ public BlobClient buildBlobClient() {
300300
? new HttpInstrumentationOptions()
301301
: this.httpInstrumentationOptions;
302302
Instrumentation instrumentation
303-
= Instrumentation.create(localHttpInstrumentationOptions, LIBRARY_INSTRUMENTATION_OPTIONS, this.endpoint);
303+
= Instrumentation.create(localHttpInstrumentationOptions, LIBRARY_INSTRUMENTATION_OPTIONS, null);
304304
return new BlobClient(buildInnerClient().getBlobs(), instrumentation);
305305
}
306306

307307
/**
308308
* Builds an instance of PageBlobClient class.
309-
*
309+
*
310310
* @return an instance of PageBlobClient.
311311
*/
312312
@Metadata(generated = true)
@@ -315,13 +315,13 @@ public PageBlobClient buildPageBlobClient() {
315315
? new HttpInstrumentationOptions()
316316
: this.httpInstrumentationOptions;
317317
Instrumentation instrumentation
318-
= Instrumentation.create(localHttpInstrumentationOptions, LIBRARY_INSTRUMENTATION_OPTIONS, this.endpoint);
318+
= Instrumentation.create(localHttpInstrumentationOptions, LIBRARY_INSTRUMENTATION_OPTIONS, null);
319319
return new PageBlobClient(buildInnerClient().getPageBlobs(), instrumentation);
320320
}
321321

322322
/**
323323
* Builds an instance of AppendBlobClient class.
324-
*
324+
*
325325
* @return an instance of AppendBlobClient.
326326
*/
327327
@Metadata(generated = true)
@@ -330,13 +330,13 @@ public AppendBlobClient buildAppendBlobClient() {
330330
? new HttpInstrumentationOptions()
331331
: this.httpInstrumentationOptions;
332332
Instrumentation instrumentation
333-
= Instrumentation.create(localHttpInstrumentationOptions, LIBRARY_INSTRUMENTATION_OPTIONS, this.endpoint);
333+
= Instrumentation.create(localHttpInstrumentationOptions, LIBRARY_INSTRUMENTATION_OPTIONS, null);
334334
return new AppendBlobClient(buildInnerClient().getAppendBlobs(), instrumentation);
335335
}
336336

337337
/**
338338
* Builds an instance of BlockBlobClient class.
339-
*
339+
*
340340
* @return an instance of BlockBlobClient.
341341
*/
342342
@Metadata(generated = true)
@@ -345,7 +345,7 @@ public BlockBlobClient buildBlockBlobClient() {
345345
? new HttpInstrumentationOptions()
346346
: this.httpInstrumentationOptions;
347347
Instrumentation instrumentation
348-
= Instrumentation.create(localHttpInstrumentationOptions, LIBRARY_INSTRUMENTATION_OPTIONS, this.endpoint);
348+
= Instrumentation.create(localHttpInstrumentationOptions, LIBRARY_INSTRUMENTATION_OPTIONS, null);
349349
return new BlockBlobClient(buildInnerClient().getBlockBlobs(), instrumentation);
350350
}
351351
}

0 commit comments

Comments
 (0)