Skip to content

Commit 0605856

Browse files
author
SDKAuto
committed
CodeGen from PR 11689 in Azure/azure-rest-api-specs
Merge 9f92c339bd0b47f0b7a293359fcacae05ef7fe62 into 150da63a09d1cb156cb0b6d8fe575cb9ccf7b6de
1 parent fd7f230 commit 0605856

File tree

5 files changed

+266
-9
lines changed

5 files changed

+266
-9
lines changed

sdk/netapp/mgmt-v2019_08_01/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.2.0</version>
15-
<relativePath>../../parents/azure-arm-parent</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-netapp</artifactId>
1818
<version>1.0.0-beta</version>
Lines changed: 255 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,255 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.netapp.v2019_08_01;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* Mount target properties.
15+
*/
16+
public class MountTargetProperties {
17+
/**
18+
* mountTargetId.
19+
* UUID v4 used to identify the MountTarget.
20+
*/
21+
@JsonProperty(value = "mountTargetId", access = JsonProperty.Access.WRITE_ONLY)
22+
private String mountTargetId;
23+
24+
/**
25+
* fileSystemId.
26+
* UUID v4 used to identify the MountTarget.
27+
*/
28+
@JsonProperty(value = "fileSystemId", required = true)
29+
private String fileSystemId;
30+
31+
/**
32+
* ipAddress.
33+
* The mount target's IPv4 address.
34+
*/
35+
@JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY)
36+
private String ipAddress;
37+
38+
/**
39+
* subnet.
40+
* The subnet.
41+
*/
42+
@JsonProperty(value = "subnet")
43+
private String subnet;
44+
45+
/**
46+
* startIp.
47+
* The start of IPv4 address range to use when creating a new mount target.
48+
*/
49+
@JsonProperty(value = "startIp")
50+
private String startIp;
51+
52+
/**
53+
* endIp.
54+
* The end of IPv4 address range to use when creating a new mount target.
55+
*/
56+
@JsonProperty(value = "endIp")
57+
private String endIp;
58+
59+
/**
60+
* gateway.
61+
* The gateway of the IPv4 address range to use when creating a new mount
62+
* target.
63+
*/
64+
@JsonProperty(value = "gateway")
65+
private String gateway;
66+
67+
/**
68+
* netmask.
69+
* The netmask of the IPv4 address range to use when creating a new mount
70+
* target.
71+
*/
72+
@JsonProperty(value = "netmask")
73+
private String netmask;
74+
75+
/**
76+
* smbServerFQDN.
77+
* The SMB server's Fully Qualified Domain Name, FQDN.
78+
*/
79+
@JsonProperty(value = "smbServerFqdn")
80+
private String smbServerFqdn;
81+
82+
/**
83+
* Azure lifecycle management.
84+
*/
85+
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
86+
private String provisioningState;
87+
88+
/**
89+
* Get uUID v4 used to identify the MountTarget.
90+
*
91+
* @return the mountTargetId value
92+
*/
93+
public String mountTargetId() {
94+
return this.mountTargetId;
95+
}
96+
97+
/**
98+
* Get uUID v4 used to identify the MountTarget.
99+
*
100+
* @return the fileSystemId value
101+
*/
102+
public String fileSystemId() {
103+
return this.fileSystemId;
104+
}
105+
106+
/**
107+
* Set uUID v4 used to identify the MountTarget.
108+
*
109+
* @param fileSystemId the fileSystemId value to set
110+
* @return the MountTargetProperties object itself.
111+
*/
112+
public MountTargetProperties withFileSystemId(String fileSystemId) {
113+
this.fileSystemId = fileSystemId;
114+
return this;
115+
}
116+
117+
/**
118+
* Get the mount target's IPv4 address.
119+
*
120+
* @return the ipAddress value
121+
*/
122+
public String ipAddress() {
123+
return this.ipAddress;
124+
}
125+
126+
/**
127+
* Get the subnet.
128+
*
129+
* @return the subnet value
130+
*/
131+
public String subnet() {
132+
return this.subnet;
133+
}
134+
135+
/**
136+
* Set the subnet.
137+
*
138+
* @param subnet the subnet value to set
139+
* @return the MountTargetProperties object itself.
140+
*/
141+
public MountTargetProperties withSubnet(String subnet) {
142+
this.subnet = subnet;
143+
return this;
144+
}
145+
146+
/**
147+
* Get the start of IPv4 address range to use when creating a new mount target.
148+
*
149+
* @return the startIp value
150+
*/
151+
public String startIp() {
152+
return this.startIp;
153+
}
154+
155+
/**
156+
* Set the start of IPv4 address range to use when creating a new mount target.
157+
*
158+
* @param startIp the startIp value to set
159+
* @return the MountTargetProperties object itself.
160+
*/
161+
public MountTargetProperties withStartIp(String startIp) {
162+
this.startIp = startIp;
163+
return this;
164+
}
165+
166+
/**
167+
* Get the end of IPv4 address range to use when creating a new mount target.
168+
*
169+
* @return the endIp value
170+
*/
171+
public String endIp() {
172+
return this.endIp;
173+
}
174+
175+
/**
176+
* Set the end of IPv4 address range to use when creating a new mount target.
177+
*
178+
* @param endIp the endIp value to set
179+
* @return the MountTargetProperties object itself.
180+
*/
181+
public MountTargetProperties withEndIp(String endIp) {
182+
this.endIp = endIp;
183+
return this;
184+
}
185+
186+
/**
187+
* Get the gateway of the IPv4 address range to use when creating a new mount target.
188+
*
189+
* @return the gateway value
190+
*/
191+
public String gateway() {
192+
return this.gateway;
193+
}
194+
195+
/**
196+
* Set the gateway of the IPv4 address range to use when creating a new mount target.
197+
*
198+
* @param gateway the gateway value to set
199+
* @return the MountTargetProperties object itself.
200+
*/
201+
public MountTargetProperties withGateway(String gateway) {
202+
this.gateway = gateway;
203+
return this;
204+
}
205+
206+
/**
207+
* Get the netmask of the IPv4 address range to use when creating a new mount target.
208+
*
209+
* @return the netmask value
210+
*/
211+
public String netmask() {
212+
return this.netmask;
213+
}
214+
215+
/**
216+
* Set the netmask of the IPv4 address range to use when creating a new mount target.
217+
*
218+
* @param netmask the netmask value to set
219+
* @return the MountTargetProperties object itself.
220+
*/
221+
public MountTargetProperties withNetmask(String netmask) {
222+
this.netmask = netmask;
223+
return this;
224+
}
225+
226+
/**
227+
* Get the SMB server's Fully Qualified Domain Name, FQDN.
228+
*
229+
* @return the smbServerFqdn value
230+
*/
231+
public String smbServerFqdn() {
232+
return this.smbServerFqdn;
233+
}
234+
235+
/**
236+
* Set the SMB server's Fully Qualified Domain Name, FQDN.
237+
*
238+
* @param smbServerFqdn the smbServerFqdn value to set
239+
* @return the MountTargetProperties object itself.
240+
*/
241+
public MountTargetProperties withSmbServerFqdn(String smbServerFqdn) {
242+
this.smbServerFqdn = smbServerFqdn;
243+
return this;
244+
}
245+
246+
/**
247+
* Get azure lifecycle management.
248+
*
249+
* @return the provisioningState value
250+
*/
251+
public String provisioningState() {
252+
return this.provisioningState;
253+
}
254+
255+
}

sdk/netapp/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/netapp/v2019_08_01/Volume.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public interface Volume extends HasInner<VolumeInner>, Indexable, Refreshable<Vo
6262
/**
6363
* @return the mountTargets value.
6464
*/
65-
Object mountTargets();
65+
List<MountTargetProperties> mountTargets();
6666

6767
/**
6868
* @return the name value.
@@ -225,7 +225,7 @@ interface WithMountTargets {
225225
* @param mountTargets List of mount targets
226226
* @return the next definition stage
227227
*/
228-
WithCreate withMountTargets(Object mountTargets);
228+
WithCreate withMountTargets(List<MountTargetProperties> mountTargets);
229229
}
230230

231231
/**

sdk/netapp/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/netapp/v2019_08_01/implementation/VolumeImpl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.microsoft.azure.management.netapp.v2019_08_01.ServiceLevel;
1616
import com.microsoft.azure.management.netapp.v2019_08_01.VolumePropertiesExportPolicy;
1717
import java.util.List;
18+
import com.microsoft.azure.management.netapp.v2019_08_01.MountTargetProperties;
1819
import com.microsoft.azure.management.netapp.v2019_08_01.VolumePropertiesDataProtection;
1920
import java.util.Map;
2021
import com.microsoft.azure.management.netapp.v2019_08_01.VolumePatchPropertiesExportPolicy;
@@ -135,7 +136,7 @@ public String location() {
135136
}
136137

137138
@Override
138-
public Object mountTargets() {
139+
public List<MountTargetProperties> mountTargets() {
139140
return this.inner().mountTargets();
140141
}
141142

@@ -234,7 +235,7 @@ public VolumeImpl withExportPolicy(VolumePropertiesExportPolicy exportPolicy) {
234235
}
235236

236237
@Override
237-
public VolumeImpl withMountTargets(Object mountTargets) {
238+
public VolumeImpl withMountTargets(List<MountTargetProperties> mountTargets) {
238239
this.inner().withMountTargets(mountTargets);
239240
return this;
240241
}

sdk/netapp/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/netapp/v2019_08_01/implementation/VolumeInner.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.microsoft.azure.management.netapp.v2019_08_01.ServiceLevel;
1212
import com.microsoft.azure.management.netapp.v2019_08_01.VolumePropertiesExportPolicy;
1313
import java.util.List;
14+
import com.microsoft.azure.management.netapp.v2019_08_01.MountTargetProperties;
1415
import com.microsoft.azure.management.netapp.v2019_08_01.VolumePropertiesDataProtection;
1516
import com.fasterxml.jackson.annotation.JsonProperty;
1617
import com.microsoft.rest.serializer.JsonFlatten;
@@ -98,7 +99,7 @@ public class VolumeInner extends Resource {
9899
* List of mount targets.
99100
*/
100101
@JsonProperty(value = "properties.mountTargets")
101-
private Object mountTargets;
102+
private List<MountTargetProperties> mountTargets;
102103

103104
/**
104105
* What type of volume is this.
@@ -285,7 +286,7 @@ public VolumeInner withSubnetId(String subnetId) {
285286
*
286287
* @return the mountTargets value
287288
*/
288-
public Object mountTargets() {
289+
public List<MountTargetProperties> mountTargets() {
289290
return this.mountTargets;
290291
}
291292

@@ -295,7 +296,7 @@ public Object mountTargets() {
295296
* @param mountTargets the mountTargets value to set
296297
* @return the VolumeInner object itself.
297298
*/
298-
public VolumeInner withMountTargets(Object mountTargets) {
299+
public VolumeInner withMountTargets(List<MountTargetProperties> mountTargets) {
299300
this.mountTargets = mountTargets;
300301
return this;
301302
}

0 commit comments

Comments
 (0)