Skip to content

Commit

Permalink
Generated from 32e702f1f44f7e0aad7ef2c61207ca6a705ad30f
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Sep 10, 2020
1 parent 3d9d990 commit f762b27
Show file tree
Hide file tree
Showing 11 changed files with 176 additions and 38 deletions.
4 changes: 2 additions & 2 deletions sdk/netapp/mgmt-v2020_02_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.3.2</version>
<relativePath>../../parents/azure-arm-parent/pom.xml</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 @@ -51,7 +51,7 @@ public interface CapacityPool extends HasInner<CapacityPoolInner>, Indexable, Re
/**
* @return the serviceLevel value.
*/
ServiceLevel serviceLevel();
PoolServiceLevel serviceLevel();

/**
* @return the size value.
Expand Down Expand Up @@ -118,7 +118,7 @@ interface WithServiceLevel {
* @param serviceLevel The service level of the file system. Possible values include: 'Standard', 'Premium', 'Ultra'
* @return the next definition stage
*/
WithSize withServiceLevel(ServiceLevel serviceLevel);
WithSize withServiceLevel(PoolServiceLevel serviceLevel);
}

/**
Expand Down Expand Up @@ -172,7 +172,7 @@ interface WithServiceLevel {
* @param serviceLevel The service level of the file system. Possible values include: 'Standard', 'Premium', 'Ultra'
* @return the next update stage
*/
Update withServiceLevel(ServiceLevel serviceLevel);
Update withServiceLevel(PatchServiceLevel serviceLevel);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CapacityPoolPatch extends Resource {
* 'Standard', 'Premium', 'Ultra'.
*/
@JsonProperty(value = "properties.serviceLevel")
private ServiceLevel serviceLevel;
private PatchServiceLevel serviceLevel;

/**
* Get provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be multiply of 4398046511104).
Expand All @@ -58,7 +58,7 @@ public CapacityPoolPatch withSize(Long size) {
*
* @return the serviceLevel value
*/
public ServiceLevel serviceLevel() {
public PatchServiceLevel serviceLevel() {
return this.serviceLevel;
}

Expand All @@ -68,7 +68,7 @@ public ServiceLevel serviceLevel() {
* @param serviceLevel the serviceLevel value to set
* @return the CapacityPoolPatch object itself.
*/
public CapacityPoolPatch withServiceLevel(ServiceLevel serviceLevel) {
public CapacityPoolPatch withServiceLevel(PatchServiceLevel serviceLevel) {
this.serviceLevel = serviceLevel;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* 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.v2020_02_01;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for PatchServiceLevel.
*/
public final class PatchServiceLevel extends ExpandableStringEnum<PatchServiceLevel> {
/** Static value Standard for PatchServiceLevel. */
public static final PatchServiceLevel STANDARD = fromString("Standard");

/** Static value Premium for PatchServiceLevel. */
public static final PatchServiceLevel PREMIUM = fromString("Premium");

/** Static value Ultra for PatchServiceLevel. */
public static final PatchServiceLevel ULTRA = fromString("Ultra");

/**
* Creates or finds a PatchServiceLevel from its string representation.
* @param name a name to look for
* @return the corresponding PatchServiceLevel
*/
@JsonCreator
public static PatchServiceLevel fromString(String name) {
return fromString(name, PatchServiceLevel.class);
}

/**
* @return known PatchServiceLevel values
*/
public static Collection<PatchServiceLevel> values() {
return values(PatchServiceLevel.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* 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.v2020_02_01;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for PoolServiceLevel.
*/
public final class PoolServiceLevel extends ExpandableStringEnum<PoolServiceLevel> {
/** Static value Standard for PoolServiceLevel. */
public static final PoolServiceLevel STANDARD = fromString("Standard");

/** Static value Premium for PoolServiceLevel. */
public static final PoolServiceLevel PREMIUM = fromString("Premium");

/** Static value Ultra for PoolServiceLevel. */
public static final PoolServiceLevel ULTRA = fromString("Ultra");

/**
* Creates or finds a PoolServiceLevel from its string representation.
* @param name a name to look for
* @return the corresponding PoolServiceLevel
*/
@JsonCreator
public static PoolServiceLevel fromString(String name) {
return fromString(name, PoolServiceLevel.class);
}

/**
* @return known PoolServiceLevel values
*/
public static Collection<PoolServiceLevel> values() {
return values(PoolServiceLevel.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public interface Volume extends HasInner<VolumeInner>, Indexable, Refreshable<Vo
/**
* @return the serviceLevel value.
*/
ServiceLevel serviceLevel();
VolumeServiceLevel serviceLevel();

/**
* @return the snapshotDirectoryVisible value.
Expand Down Expand Up @@ -271,7 +271,7 @@ interface WithServiceLevel {
* @param serviceLevel The service level of the file system. Possible values include: 'Standard', 'Premium', 'Ultra'
* @return the next definition stage
*/
WithCreate withServiceLevel(ServiceLevel serviceLevel);
WithCreate withServiceLevel(VolumeServiceLevel serviceLevel);
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* 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.v2020_02_01;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for VolumeServiceLevel.
*/
public final class VolumeServiceLevel extends ExpandableStringEnum<VolumeServiceLevel> {
/** Static value Standard for VolumeServiceLevel. */
public static final VolumeServiceLevel STANDARD = fromString("Standard");

/** Static value Premium for VolumeServiceLevel. */
public static final VolumeServiceLevel PREMIUM = fromString("Premium");

/** Static value Ultra for VolumeServiceLevel. */
public static final VolumeServiceLevel ULTRA = fromString("Ultra");

/**
* Creates or finds a VolumeServiceLevel from its string representation.
* @param name a name to look for
* @return the corresponding VolumeServiceLevel
*/
@JsonCreator
public static VolumeServiceLevel fromString(String name) {
return fromString(name, VolumeServiceLevel.class);
}

/**
* @return known VolumeServiceLevel values
*/
public static Collection<VolumeServiceLevel> values() {
return values(VolumeServiceLevel.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl;
import rx.Observable;
import com.microsoft.azure.management.netapp.v2020_02_01.CapacityPoolPatch;
import com.microsoft.azure.management.netapp.v2020_02_01.ServiceLevel;
import com.microsoft.azure.management.netapp.v2020_02_01.PoolServiceLevel;
import java.util.Map;
import com.microsoft.azure.management.netapp.v2020_02_01.PatchServiceLevel;
import rx.functions.Func1;

class CapacityPoolImpl extends CreatableUpdatableImpl<CapacityPool, CapacityPoolInner, CapacityPoolImpl> implements CapacityPool, CapacityPool.Definition, CapacityPool.Update {
Expand Down Expand Up @@ -119,7 +120,7 @@ public String provisioningState() {
}

@Override
public ServiceLevel serviceLevel() {
public PoolServiceLevel serviceLevel() {
return this.inner().serviceLevel();
}

Expand Down Expand Up @@ -151,25 +152,27 @@ public CapacityPoolImpl withLocation(String location) {
return this;
}

@Override
public CapacityPoolImpl withServiceLevel(PoolServiceLevel serviceLevel) {
this.inner().withServiceLevel(serviceLevel);
return this;
}

@Override
public CapacityPoolImpl withSize(long size) {
this.inner().withSize(size);
return this;
}

@Override
public CapacityPoolImpl withSize(Long size) {
this.updateParameter.withSize(size);
public CapacityPoolImpl withServiceLevel(PatchServiceLevel serviceLevel) {
this.updateParameter.withServiceLevel(serviceLevel);
return this;
}

@Override
public CapacityPoolImpl withServiceLevel(ServiceLevel serviceLevel) {
if (isInCreateMode()) {
this.inner().withServiceLevel(serviceLevel);
} else {
this.updateParameter.withServiceLevel(serviceLevel);
}
public CapacityPoolImpl withSize(Long size) {
this.updateParameter.withSize(size);
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

package com.microsoft.azure.management.netapp.v2020_02_01.implementation;

import com.microsoft.azure.management.netapp.v2020_02_01.ServiceLevel;
import com.microsoft.azure.management.netapp.v2020_02_01.PoolServiceLevel;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;
Expand Down Expand Up @@ -39,7 +39,7 @@ public class CapacityPoolInner extends Resource {
* 'Standard', 'Premium', 'Ultra'.
*/
@JsonProperty(value = "properties.serviceLevel", required = true)
private ServiceLevel serviceLevel;
private PoolServiceLevel serviceLevel;

/**
* Azure lifecycle management.
Expand Down Expand Up @@ -81,7 +81,7 @@ public CapacityPoolInner withSize(long size) {
*
* @return the serviceLevel value
*/
public ServiceLevel serviceLevel() {
public PoolServiceLevel serviceLevel() {
return this.serviceLevel;
}

Expand All @@ -91,7 +91,7 @@ public ServiceLevel serviceLevel() {
* @param serviceLevel the serviceLevel value to set
* @return the CapacityPoolInner object itself.
*/
public CapacityPoolInner withServiceLevel(ServiceLevel serviceLevel) {
public CapacityPoolInner withServiceLevel(PoolServiceLevel serviceLevel) {
this.serviceLevel = serviceLevel;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
import com.microsoft.azure.arm.model.implementation.CreatableUpdatableImpl;
import rx.Observable;
import com.microsoft.azure.management.netapp.v2020_02_01.VolumePatch;
import com.microsoft.azure.management.netapp.v2020_02_01.ServiceLevel;
import com.microsoft.azure.management.netapp.v2020_02_01.VolumeServiceLevel;
import com.microsoft.azure.management.netapp.v2020_02_01.VolumePropertiesExportPolicy;
import java.util.List;
import com.microsoft.azure.management.netapp.v2020_02_01.MountTargetProperties;
import com.microsoft.azure.management.netapp.v2020_02_01.VolumePropertiesDataProtection;
import java.util.Map;
import com.microsoft.azure.management.netapp.v2020_02_01.VolumePatchPropertiesExportPolicy;
import com.microsoft.azure.management.netapp.v2020_02_01.ServiceLevel;
import rx.functions.Func1;

class VolumeImpl extends CreatableUpdatableImpl<Volume, VolumeInner, VolumeImpl> implements Volume, Volume.Definition, Volume.Update {
Expand Down Expand Up @@ -161,7 +162,7 @@ public String provisioningState() {
}

@Override
public ServiceLevel serviceLevel() {
public VolumeServiceLevel serviceLevel() {
return this.inner().serviceLevel();
}

Expand Down Expand Up @@ -262,6 +263,12 @@ public VolumeImpl withProtocolTypes(List<String> protocolTypes) {
return this;
}

@Override
public VolumeImpl withServiceLevel(VolumeServiceLevel serviceLevel) {
this.inner().withServiceLevel(serviceLevel);
return this;
}

@Override
public VolumeImpl withSnapshotDirectoryVisible(Boolean snapshotDirectoryVisible) {
this.inner().withSnapshotDirectoryVisible(snapshotDirectoryVisible);
Expand All @@ -287,18 +294,14 @@ public VolumeImpl withExportPolicy(VolumePatchPropertiesExportPolicy exportPolic
}

@Override
public VolumeImpl withUsageThreshold(Long usageThreshold) {
this.updateParameter.withUsageThreshold(usageThreshold);
public VolumeImpl withServiceLevel(ServiceLevel serviceLevel) {
this.updateParameter.withServiceLevel(serviceLevel);
return this;
}

@Override
public VolumeImpl withServiceLevel(ServiceLevel serviceLevel) {
if (isInCreateMode()) {
this.inner().withServiceLevel(serviceLevel);
} else {
this.updateParameter.withServiceLevel(serviceLevel);
}
public VolumeImpl withUsageThreshold(Long usageThreshold) {
this.updateParameter.withUsageThreshold(usageThreshold);
return this;
}

Expand Down
Loading

0 comments on commit f762b27

Please sign in to comment.