Skip to content

Commit 98d68ae

Browse files
author
SDKAuto
committed
CodeGen from PR 15213 in Azure/azure-rest-api-specs
Merge ada7ffb4f99e94fdd78ea148776bafb236eb702b into cde7f150e8d3bf3af2418cc347cae0fb2baed6a7
1 parent b438d88 commit 98d68ae

File tree

89 files changed

+1038
-4581
lines changed

Some content is hidden

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

89 files changed

+1038
-4581
lines changed

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

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

3-
## 1.0.0-beta.6 (Unreleased)
3+
## 1.0.0-beta.1 (2021-08-26)
4+
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-2021-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
46

57
### Features Added
68

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

Lines changed: 1 addition & 2 deletions
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.5</version>
35+
<version>1.0.0-beta.6</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})
@@ -74,7 +74,6 @@ See [API design][design] for general introduction on design and key concepts on
7474

7575
## Examples
7676

77-
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md)
7877

7978

8079
## Troubleshooting

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
@@ -210,7 +210,7 @@ public NetAppFilesManager authenticate(TokenCredential credential, AzureProfile
210210
.append("-")
211211
.append("com.azure.resourcemanager.netapp")
212212
.append("/")
213-
.append("1.0.0-beta.5");
213+
.append("1.0.0-beta.1");
214214
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
215215
userAgentBuilder
216216
.append(" (")

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

Lines changed: 0 additions & 100 deletions
This file was deleted.

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

Lines changed: 66 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package com.azure.resourcemanager.netapp.fluent.models;
66

77
import com.azure.core.annotation.Fluent;
8+
import com.azure.core.annotation.JsonFlatten;
89
import com.azure.core.management.ProxyResource;
910
import com.azure.core.util.logging.ClientLogger;
1011
import com.azure.resourcemanager.netapp.models.BackupType;
@@ -13,8 +14,9 @@
1314
import java.time.OffsetDateTime;
1415

1516
/** Backup of a Volume. */
17+
@JsonFlatten
1618
@Fluent
17-
public final class BackupInner extends ProxyResource {
19+
public class BackupInner extends ProxyResource {
1820
@JsonIgnore private final ClientLogger logger = new ClientLogger(BackupInner.class);
1921

2022
/*
@@ -24,10 +26,59 @@ public final class BackupInner extends ProxyResource {
2426
private String location;
2527

2628
/*
27-
* Backup Properties
29+
* backupId UUID v4 used to identify the Backup
2830
*/
29-
@JsonProperty(value = "properties", required = true)
30-
private BackupProperties innerProperties = new BackupProperties();
31+
@JsonProperty(value = "properties.backupId", access = JsonProperty.Access.WRITE_ONLY)
32+
private String backupId;
33+
34+
/*
35+
* name The creation date of the backup
36+
*/
37+
@JsonProperty(value = "properties.creationDate", access = JsonProperty.Access.WRITE_ONLY)
38+
private OffsetDateTime creationDate;
39+
40+
/*
41+
* Azure lifecycle management
42+
*/
43+
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
44+
private String provisioningState;
45+
46+
/*
47+
* Size of backup
48+
*/
49+
@JsonProperty(value = "properties.size", access = JsonProperty.Access.WRITE_ONLY)
50+
private Long size;
51+
52+
/*
53+
* Label for backup
54+
*/
55+
@JsonProperty(value = "properties.label")
56+
private String label;
57+
58+
/*
59+
* backupType Type of backup Manual or Scheduled
60+
*/
61+
@JsonProperty(value = "properties.backupType", access = JsonProperty.Access.WRITE_ONLY)
62+
private BackupType backupType;
63+
64+
/*
65+
* Failure reason
66+
*/
67+
@JsonProperty(value = "properties.failureReason", access = JsonProperty.Access.WRITE_ONLY)
68+
private String failureReason;
69+
70+
/*
71+
* Volume name
72+
*/
73+
@JsonProperty(value = "properties.volumeName", access = JsonProperty.Access.WRITE_ONLY)
74+
private String volumeName;
75+
76+
/*
77+
* Manual backup an already existing snapshot. This will always be false
78+
* for scheduled backups and true/false for manual backups
79+
*/
80+
@JsonProperty(value = "properties.useExistingSnapshot")
81+
private Boolean useExistingSnapshot;
3182

3283
/**
3384
* Get the location property: Resource location.
@@ -49,22 +100,13 @@ public BackupInner withLocation(String location) {
49100
return this;
50101
}
51102

52-
/**
53-
* Get the innerProperties property: Backup Properties.
54-
*
55-
* @return the innerProperties value.
56-
*/
57-
private BackupProperties innerProperties() {
58-
return this.innerProperties;
59-
}
60-
61103
/**
62104
* Get the backupId property: backupId UUID v4 used to identify the Backup.
63105
*
64106
* @return the backupId value.
65107
*/
66108
public String backupId() {
67-
return this.innerProperties() == null ? null : this.innerProperties().backupId();
109+
return this.backupId;
68110
}
69111

70112
/**
@@ -73,7 +115,7 @@ public String backupId() {
73115
* @return the creationDate value.
74116
*/
75117
public OffsetDateTime creationDate() {
76-
return this.innerProperties() == null ? null : this.innerProperties().creationDate();
118+
return this.creationDate;
77119
}
78120

79121
/**
@@ -82,7 +124,7 @@ public OffsetDateTime creationDate() {
82124
* @return the provisioningState value.
83125
*/
84126
public String provisioningState() {
85-
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
127+
return this.provisioningState;
86128
}
87129

88130
/**
@@ -91,7 +133,7 @@ public String provisioningState() {
91133
* @return the size value.
92134
*/
93135
public Long size() {
94-
return this.innerProperties() == null ? null : this.innerProperties().size();
136+
return this.size;
95137
}
96138

97139
/**
@@ -100,7 +142,7 @@ public Long size() {
100142
* @return the label value.
101143
*/
102144
public String label() {
103-
return this.innerProperties() == null ? null : this.innerProperties().label();
145+
return this.label;
104146
}
105147

106148
/**
@@ -110,10 +152,7 @@ public String label() {
110152
* @return the BackupInner object itself.
111153
*/
112154
public BackupInner withLabel(String label) {
113-
if (this.innerProperties() == null) {
114-
this.innerProperties = new BackupProperties();
115-
}
116-
this.innerProperties().withLabel(label);
155+
this.label = label;
117156
return this;
118157
}
119158

@@ -123,7 +162,7 @@ public BackupInner withLabel(String label) {
123162
* @return the backupType value.
124163
*/
125164
public BackupType backupType() {
126-
return this.innerProperties() == null ? null : this.innerProperties().backupType();
165+
return this.backupType;
127166
}
128167

129168
/**
@@ -132,7 +171,7 @@ public BackupType backupType() {
132171
* @return the failureReason value.
133172
*/
134173
public String failureReason() {
135-
return this.innerProperties() == null ? null : this.innerProperties().failureReason();
174+
return this.failureReason;
136175
}
137176

138177
/**
@@ -141,7 +180,7 @@ public String failureReason() {
141180
* @return the volumeName value.
142181
*/
143182
public String volumeName() {
144-
return this.innerProperties() == null ? null : this.innerProperties().volumeName();
183+
return this.volumeName;
145184
}
146185

147186
/**
@@ -151,7 +190,7 @@ public String volumeName() {
151190
* @return the useExistingSnapshot value.
152191
*/
153192
public Boolean useExistingSnapshot() {
154-
return this.innerProperties() == null ? null : this.innerProperties().useExistingSnapshot();
193+
return this.useExistingSnapshot;
155194
}
156195

157196
/**
@@ -162,10 +201,7 @@ public Boolean useExistingSnapshot() {
162201
* @return the BackupInner object itself.
163202
*/
164203
public BackupInner withUseExistingSnapshot(Boolean useExistingSnapshot) {
165-
if (this.innerProperties() == null) {
166-
this.innerProperties = new BackupProperties();
167-
}
168-
this.innerProperties().withUseExistingSnapshot(useExistingSnapshot);
204+
this.useExistingSnapshot = useExistingSnapshot;
169205
return this;
170206
}
171207

@@ -180,12 +216,5 @@ public void validate() {
180216
.logExceptionAsError(
181217
new IllegalArgumentException("Missing required property location in model BackupInner"));
182218
}
183-
if (innerProperties() == null) {
184-
throw logger
185-
.logExceptionAsError(
186-
new IllegalArgumentException("Missing required property innerProperties in model BackupInner"));
187-
} else {
188-
innerProperties().validate();
189-
}
190219
}
191220
}

0 commit comments

Comments
 (0)