Skip to content

Commit 405708e

Browse files
author
SDKAuto
committed
CodeGen from PR 13729 in Azure/azure-rest-api-specs
Merge 0a9bab83c1bdbe8f1a3fa23a3e6a076ebf93ca45 into f7d973f621c207c58b3a06a797c2540089858e95
1 parent e2bd563 commit 405708e

22 files changed

+113
-76
lines changed

sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.1 (2021-03-30)
44

5+
- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-netapp-2020-12-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
56

67
## 1.0.0-beta.2 (2021-03-15)
78

sdk/netapp/azure-resourcemanager-netapp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-netapp</artifactId>
35-
<version>1.0.0-beta.2</version>
35+
<version>1.0.0-beta.3</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
202202
.append("-")
203203
.append("com.azure.resourcemanager.netapp")
204204
.append("/")
205-
.append("1.0.0-beta.2");
205+
.append("1.0.0-beta.1");
206206
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
207207
userAgentBuilder
208208
.append(" (")

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.azure.core.annotation.JsonFlatten;
99
import com.azure.core.management.ProxyResource;
1010
import com.azure.core.util.logging.ClientLogger;
11+
import com.azure.resourcemanager.netapp.models.BackupType;
1112
import com.fasterxml.jackson.annotation.JsonIgnore;
1213
import com.fasterxml.jackson.annotation.JsonProperty;
1314
import java.time.OffsetDateTime;
@@ -55,10 +56,10 @@ public class BackupInner extends ProxyResource {
5556
private String label;
5657

5758
/*
58-
* Type of backup adhoc or scheduled
59+
* Type of backup Manual or Scheduled
5960
*/
6061
@JsonProperty(value = "properties.backupType", access = JsonProperty.Access.WRITE_ONLY)
61-
private String backupType;
62+
private BackupType backupType;
6263

6364
/*
6465
* Failure reason
@@ -149,11 +150,11 @@ public BackupInner withLabel(String label) {
149150
}
150151

151152
/**
152-
* Get the backupType property: Type of backup adhoc or scheduled.
153+
* Get the backupType property: Type of backup Manual or Scheduled.
153154
*
154155
* @return the backupType value.
155156
*/
156-
public String backupType() {
157+
public BackupType backupType() {
157158
return this.backupType;
158159
}
159160

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class VolumeInner extends Resource {
5757
private VolumePropertiesExportPolicy exportPolicy;
5858

5959
/*
60-
* Set of protocol types, default NFSv3, CIFS fro SMB protocol
60+
* Set of protocol types, default NFSv3, CIFS for SMB protocol
6161
*/
6262
@JsonProperty(value = "properties.protocolTypes")
6363
private List<String> protocolTypes;
@@ -265,7 +265,7 @@ public VolumeInner withExportPolicy(VolumePropertiesExportPolicy exportPolicy) {
265265
}
266266

267267
/**
268-
* Get the protocolTypes property: Set of protocol types, default NFSv3, CIFS fro SMB protocol.
268+
* Get the protocolTypes property: Set of protocol types, default NFSv3, CIFS for SMB protocol.
269269
*
270270
* @return the protocolTypes value.
271271
*/
@@ -274,7 +274,7 @@ public List<String> protocolTypes() {
274274
}
275275

276276
/**
277-
* Set the protocolTypes property: Set of protocol types, default NFSv3, CIFS fro SMB protocol.
277+
* Set the protocolTypes property: Set of protocol types, default NFSv3, CIFS for SMB protocol.
278278
*
279279
* @param protocolTypes the protocolTypes value to set.
280280
* @return the VolumeInner object itself.

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountBackupsClientImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private Mono<Response<BackupsListInner>> listWithResponseAsync(String resourceGr
152152
this.client.getApiVersion(),
153153
accept,
154154
context))
155-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
155+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
156156
}
157157

158158
/**
@@ -305,7 +305,7 @@ private Mono<Response<BackupInner>> getWithResponseAsync(
305305
this.client.getApiVersion(),
306306
accept,
307307
context))
308-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
308+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
309309
}
310310

311311
/**
@@ -465,7 +465,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
465465
backupName,
466466
this.client.getApiVersion(),
467467
context))
468-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
468+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
469469
}
470470

471471
/**

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private Mono<PagedResponse<NetAppAccountInner>> listByResourceGroupSinglePageAsy
202202
res.getValue().value(),
203203
res.getValue().nextLink(),
204204
null))
205-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
205+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
206206
}
207207

208208
/**
@@ -361,7 +361,7 @@ private Mono<Response<NetAppAccountInner>> getByResourceGroupWithResponseAsync(
361361
this.client.getApiVersion(),
362362
accept,
363363
context))
364-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
364+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
365365
}
366366

367367
/**
@@ -517,7 +517,7 @@ private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(
517517
body,
518518
accept,
519519
context))
520-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
520+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
521521
}
522522

523523
/**
@@ -768,7 +768,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resource
768768
accountName,
769769
this.client.getApiVersion(),
770770
context))
771-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
771+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
772772
}
773773

774774
/**
@@ -1000,7 +1000,7 @@ private Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(
10001000
body,
10011001
accept,
10021002
context))
1003-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
1003+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
10041004
}
10051005

10061006
/**
@@ -1240,7 +1240,7 @@ private Mono<PagedResponse<NetAppAccountInner>> listNextSinglePageAsync(String n
12401240
res.getValue().value(),
12411241
res.getValue().nextLink(),
12421242
null))
1243-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
1243+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
12441244
}
12451245

12461246
/**

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.azure.resourcemanager.netapp.fluent.models.BackupInner;
1010
import com.azure.resourcemanager.netapp.models.Backup;
1111
import com.azure.resourcemanager.netapp.models.BackupPatch;
12+
import com.azure.resourcemanager.netapp.models.BackupType;
1213
import java.time.OffsetDateTime;
1314
import java.util.Map;
1415

@@ -53,7 +54,7 @@ public String label() {
5354
return this.innerModel().label();
5455
}
5556

56-
public String backupType() {
57+
public BackupType backupType() {
5758
return this.innerModel().backupType();
5859
}
5960

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private Mono<PagedResponse<BackupPolicyInner>> listSinglePageAsync(String resour
198198
res ->
199199
new PagedResponseBase<>(
200200
res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
201-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
201+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
202202
}
203203

204204
/**
@@ -364,7 +364,7 @@ private Mono<Response<BackupPolicyInner>> getWithResponseAsync(
364364
this.client.getApiVersion(),
365365
accept,
366366
context))
367-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
367+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
368368
}
369369

370370
/**
@@ -535,7 +535,7 @@ private Mono<Response<Flux<ByteBuffer>>> createWithResponseAsync(
535535
body,
536536
accept,
537537
context))
538-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
538+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
539539
}
540540

541541
/**
@@ -838,7 +838,7 @@ private Mono<Response<BackupPolicyInner>> updateWithResponseAsync(
838838
body,
839839
accept,
840840
context))
841-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
841+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
842842
}
843843

844844
/**
@@ -1020,7 +1020,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
10201020
backupPolicyName,
10211021
this.client.getApiVersion(),
10221022
context))
1023-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
1023+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
10241024
}
10251025

10261026
/**

sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private Mono<PagedResponse<BackupInner>> listSinglePageAsync(
218218
res ->
219219
new PagedResponseBase<>(
220220
res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
221-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
221+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
222222
}
223223

224224
/**
@@ -416,7 +416,7 @@ private Mono<Response<BackupInner>> getWithResponseAsync(
416416
this.client.getApiVersion(),
417417
accept,
418418
context))
419-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
419+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
420420
}
421421

422422
/**
@@ -628,7 +628,7 @@ private Mono<Response<Flux<ByteBuffer>>> createWithResponseAsync(
628628
body,
629629
accept,
630630
context))
631-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
631+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
632632
}
633633

634634
/**
@@ -999,7 +999,7 @@ private Mono<Response<Flux<ByteBuffer>>> updateWithResponseAsync(
999999
body,
10001000
accept,
10011001
context))
1002-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
1002+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
10031003
}
10041004

10051005
/**
@@ -1398,7 +1398,7 @@ private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(
13981398
backupName,
13991399
this.client.getApiVersion(),
14001400
context))
1401-
.subscriberContext(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext())));
1401+
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
14021402
}
14031403

14041404
/**

0 commit comments

Comments
 (0)