Skip to content

Commit 9be61b5

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

File tree

5 files changed

+266
-9
lines changed

5 files changed

+266
-9
lines changed

sdk/netapp/mgmt-v2019_07_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_07_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_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_01/Volume.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public interface Volume extends HasInner<VolumeInner>, Indexable, Refreshable<Vo
5757
/**
5858
* @return the mountTargets value.
5959
*/
60-
Object mountTargets();
60+
List<MountTargetProperties> mountTargets();
6161

6262
/**
6363
* @return the name value.
@@ -203,7 +203,7 @@ interface WithMountTargets {
203203
* @param mountTargets List of mount targets
204204
* @return the next definition stage
205205
*/
206-
WithCreate withMountTargets(Object mountTargets);
206+
WithCreate withMountTargets(List<MountTargetProperties> mountTargets);
207207
}
208208

209209
/**

sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_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_07_01.ServiceLevel;
1616
import com.microsoft.azure.management.netapp.v2019_07_01.VolumePropertiesExportPolicy;
1717
import java.util.List;
18+
import com.microsoft.azure.management.netapp.v2019_07_01.MountTargetProperties;
1819
import java.util.Map;
1920
import com.microsoft.azure.management.netapp.v2019_07_01.VolumePatchPropertiesExportPolicy;
2021
import rx.functions.Func1;
@@ -129,7 +130,7 @@ public String location() {
129130
}
130131

131132
@Override
132-
public Object mountTargets() {
133+
public List<MountTargetProperties> mountTargets() {
133134
return this.inner().mountTargets();
134135
}
135136

@@ -217,7 +218,7 @@ public VolumeImpl withExportPolicy(VolumePropertiesExportPolicy exportPolicy) {
217218
}
218219

219220
@Override
220-
public VolumeImpl withMountTargets(Object mountTargets) {
221+
public VolumeImpl withMountTargets(List<MountTargetProperties> mountTargets) {
221222
this.inner().withMountTargets(mountTargets);
222223
return this;
223224
}

sdk/netapp/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/netapp/v2019_07_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_07_01.ServiceLevel;
1212
import com.microsoft.azure.management.netapp.v2019_07_01.VolumePropertiesExportPolicy;
1313
import java.util.List;
14+
import com.microsoft.azure.management.netapp.v2019_07_01.MountTargetProperties;
1415
import com.fasterxml.jackson.annotation.JsonProperty;
1516
import com.microsoft.rest.serializer.JsonFlatten;
1617
import com.microsoft.azure.Resource;
@@ -97,7 +98,7 @@ public class VolumeInner extends Resource {
9798
* List of mount targets.
9899
*/
99100
@JsonProperty(value = "properties.mountTargets")
100-
private Object mountTargets;
101+
private List<MountTargetProperties> mountTargets;
101102

102103
/**
103104
* Get unique FileSystem Identifier.
@@ -271,7 +272,7 @@ public VolumeInner withSubnetId(String subnetId) {
271272
*
272273
* @return the mountTargets value
273274
*/
274-
public Object mountTargets() {
275+
public List<MountTargetProperties> mountTargets() {
275276
return this.mountTargets;
276277
}
277278

@@ -281,7 +282,7 @@ public Object mountTargets() {
281282
* @param mountTargets the mountTargets value to set
282283
* @return the VolumeInner object itself.
283284
*/
284-
public VolumeInner withMountTargets(Object mountTargets) {
285+
public VolumeInner withMountTargets(List<MountTargetProperties> mountTargets) {
285286
this.mountTargets = mountTargets;
286287
return this;
287288
}

0 commit comments

Comments
 (0)