Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR sdk/netapp/mgmt-v2019_06_01] Anf 7051 2020 03 01 api version swagger linting issues kpi #3894

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/netapp/mgmt-v2019_06_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-netapp</artifactId>
<version>1.0.0-beta</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public class ExportPolicyRule {
private Boolean nfsv3;

/**
* Allows NFSv4 protocol.
* Deprecated: Will use the NFSv4.1 protocol, please use swagger version
* 2019-07-01 or later.
*/
@JsonProperty(value = "nfsv4")
private Boolean nfsv4;
Expand Down Expand Up @@ -158,7 +159,7 @@ public ExportPolicyRule withNfsv3(Boolean nfsv3) {
}

/**
* Get allows NFSv4 protocol.
* Get deprecated: Will use the NFSv4.1 protocol, please use swagger version 2019-07-01 or later.
*
* @return the nfsv4 value
*/
Expand All @@ -167,7 +168,7 @@ public Boolean nfsv4() {
}

/**
* Set allows NFSv4 protocol.
* Set deprecated: Will use the NFSv4.1 protocol, please use swagger version 2019-07-01 or later.
*
* @param nfsv4 the nfsv4 value to set
* @return the ExportPolicyRule object itself.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.netapp.v2019_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Mount target properties.
*/
public class MountTargetProperties {
/**
* mountTargetId.
* UUID v4 used to identify the MountTarget.
*/
@JsonProperty(value = "mountTargetId", access = JsonProperty.Access.WRITE_ONLY)
private String mountTargetId;

/**
* fileSystemId.
* UUID v4 used to identify the MountTarget.
*/
@JsonProperty(value = "fileSystemId", required = true)
private String fileSystemId;

/**
* ipAddress.
* The mount target's IPv4 address.
*/
@JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY)
private String ipAddress;

/**
* subnet.
* The subnet.
*/
@JsonProperty(value = "subnet")
private String subnet;

/**
* startIp.
* The start of IPv4 address range to use when creating a new mount target.
*/
@JsonProperty(value = "startIp")
private String startIp;

/**
* endIp.
* The end of IPv4 address range to use when creating a new mount target.
*/
@JsonProperty(value = "endIp")
private String endIp;

/**
* gateway.
* The gateway of the IPv4 address range to use when creating a new mount
* target.
*/
@JsonProperty(value = "gateway")
private String gateway;

/**
* netmask.
* The netmask of the IPv4 address range to use when creating a new mount
* target.
*/
@JsonProperty(value = "netmask")
private String netmask;

/**
* smbServerFQDN.
* The SMB server's Fully Qualified Domain Name, FQDN.
*/
@JsonProperty(value = "smbServerFqdn")
private String smbServerFqdn;

/**
* Azure lifecycle management.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;

/**
* Get uUID v4 used to identify the MountTarget.
*
* @return the mountTargetId value
*/
public String mountTargetId() {
return this.mountTargetId;
}

/**
* Get uUID v4 used to identify the MountTarget.
*
* @return the fileSystemId value
*/
public String fileSystemId() {
return this.fileSystemId;
}

/**
* Set uUID v4 used to identify the MountTarget.
*
* @param fileSystemId the fileSystemId value to set
* @return the MountTargetProperties object itself.
*/
public MountTargetProperties withFileSystemId(String fileSystemId) {
this.fileSystemId = fileSystemId;
return this;
}

/**
* Get the mount target's IPv4 address.
*
* @return the ipAddress value
*/
public String ipAddress() {
return this.ipAddress;
}

/**
* Get the subnet.
*
* @return the subnet value
*/
public String subnet() {
return this.subnet;
}

/**
* Set the subnet.
*
* @param subnet the subnet value to set
* @return the MountTargetProperties object itself.
*/
public MountTargetProperties withSubnet(String subnet) {
this.subnet = subnet;
return this;
}

/**
* Get the start of IPv4 address range to use when creating a new mount target.
*
* @return the startIp value
*/
public String startIp() {
return this.startIp;
}

/**
* Set the start of IPv4 address range to use when creating a new mount target.
*
* @param startIp the startIp value to set
* @return the MountTargetProperties object itself.
*/
public MountTargetProperties withStartIp(String startIp) {
this.startIp = startIp;
return this;
}

/**
* Get the end of IPv4 address range to use when creating a new mount target.
*
* @return the endIp value
*/
public String endIp() {
return this.endIp;
}

/**
* Set the end of IPv4 address range to use when creating a new mount target.
*
* @param endIp the endIp value to set
* @return the MountTargetProperties object itself.
*/
public MountTargetProperties withEndIp(String endIp) {
this.endIp = endIp;
return this;
}

/**
* Get the gateway of the IPv4 address range to use when creating a new mount target.
*
* @return the gateway value
*/
public String gateway() {
return this.gateway;
}

/**
* Set the gateway of the IPv4 address range to use when creating a new mount target.
*
* @param gateway the gateway value to set
* @return the MountTargetProperties object itself.
*/
public MountTargetProperties withGateway(String gateway) {
this.gateway = gateway;
return this;
}

/**
* Get the netmask of the IPv4 address range to use when creating a new mount target.
*
* @return the netmask value
*/
public String netmask() {
return this.netmask;
}

/**
* Set the netmask of the IPv4 address range to use when creating a new mount target.
*
* @param netmask the netmask value to set
* @return the MountTargetProperties object itself.
*/
public MountTargetProperties withNetmask(String netmask) {
this.netmask = netmask;
return this;
}

/**
* Get the SMB server's Fully Qualified Domain Name, FQDN.
*
* @return the smbServerFqdn value
*/
public String smbServerFqdn() {
return this.smbServerFqdn;
}

/**
* Set the SMB server's Fully Qualified Domain Name, FQDN.
*
* @param smbServerFqdn the smbServerFqdn value to set
* @return the MountTargetProperties object itself.
*/
public MountTargetProperties withSmbServerFqdn(String smbServerFqdn) {
this.smbServerFqdn = smbServerFqdn;
return this;
}

/**
* Get azure lifecycle management.
*
* @return the provisioningState value
*/
public String provisioningState() {
return this.provisioningState;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public interface Volume extends HasInner<VolumeInner>, Indexable, Refreshable<Vo
/**
* @return the mountTargets value.
*/
Object mountTargets();
List<MountTargetProperties> mountTargets();

/**
* @return the name value.
Expand Down Expand Up @@ -203,7 +203,7 @@ interface WithMountTargets {
* @param mountTargets List of mount targets
* @return the next definition stage
*/
WithCreate withMountTargets(Object mountTargets);
WithCreate withMountTargets(List<MountTargetProperties> mountTargets);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.microsoft.azure.management.netapp.v2019_06_01.ServiceLevel;
import com.microsoft.azure.management.netapp.v2019_06_01.VolumePropertiesExportPolicy;
import java.util.List;
import com.microsoft.azure.management.netapp.v2019_06_01.MountTargetProperties;
import java.util.Map;
import com.microsoft.azure.management.netapp.v2019_06_01.VolumePatchPropertiesExportPolicy;
import rx.functions.Func1;
Expand Down Expand Up @@ -129,7 +130,7 @@ public String location() {
}

@Override
public Object mountTargets() {
public List<MountTargetProperties> mountTargets() {
return this.inner().mountTargets();
}

Expand Down Expand Up @@ -217,7 +218,7 @@ public VolumeImpl withExportPolicy(VolumePropertiesExportPolicy exportPolicy) {
}

@Override
public VolumeImpl withMountTargets(Object mountTargets) {
public VolumeImpl withMountTargets(List<MountTargetProperties> mountTargets) {
this.inner().withMountTargets(mountTargets);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.microsoft.azure.management.netapp.v2019_06_01.ServiceLevel;
import com.microsoft.azure.management.netapp.v2019_06_01.VolumePropertiesExportPolicy;
import java.util.List;
import com.microsoft.azure.management.netapp.v2019_06_01.MountTargetProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;
Expand Down Expand Up @@ -97,7 +98,7 @@ public class VolumeInner extends Resource {
* List of mount targets.
*/
@JsonProperty(value = "properties.mountTargets")
private Object mountTargets;
private List<MountTargetProperties> mountTargets;

/**
* Get unique FileSystem Identifier.
Expand Down Expand Up @@ -271,7 +272,7 @@ public VolumeInner withSubnetId(String subnetId) {
*
* @return the mountTargets value
*/
public Object mountTargets() {
public List<MountTargetProperties> mountTargets() {
return this.mountTargets;
}

Expand All @@ -281,7 +282,7 @@ public Object mountTargets() {
* @param mountTargets the mountTargets value to set
* @return the VolumeInner object itself.
*/
public VolumeInner withMountTargets(Object mountTargets) {
public VolumeInner withMountTargets(List<MountTargetProperties> mountTargets) {
this.mountTargets = mountTargets;
return this;
}
Expand Down