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-v2020_02_01] fix java readme #5353

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-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 @@ -28,8 +28,7 @@ public class ReplicationObject {
private EndpointType endpointType;

/**
* Schedule. Possible values include: '_10minutely', 'hourly', 'daily',
* 'weekly', 'monthly'.
* Schedule. Possible values include: '_10minutely', 'hourly', 'daily'.
*/
@JsonProperty(value = "replicationSchedule", required = true)
private ReplicationSchedule replicationSchedule;
Expand Down Expand Up @@ -87,7 +86,7 @@ public ReplicationObject withEndpointType(EndpointType endpointType) {
}

/**
* Get schedule. Possible values include: '_10minutely', 'hourly', 'daily', 'weekly', 'monthly'.
* Get schedule. Possible values include: '_10minutely', 'hourly', 'daily'.
*
* @return the replicationSchedule value
*/
Expand All @@ -96,7 +95,7 @@ public ReplicationSchedule replicationSchedule() {
}

/**
* Set schedule. Possible values include: '_10minutely', 'hourly', 'daily', 'weekly', 'monthly'.
* Set schedule. Possible values include: '_10minutely', 'hourly', 'daily'.
*
* @param replicationSchedule the replicationSchedule value to set
* @return the ReplicationObject object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ public final class ReplicationSchedule extends ExpandableStringEnum<ReplicationS
/** Static value daily for ReplicationSchedule. */
public static final ReplicationSchedule DAILY = fromString("daily");

/** Static value weekly for ReplicationSchedule. */
public static final ReplicationSchedule WEEKLY = fromString("weekly");

/** Static value monthly for ReplicationSchedule. */
public static final ReplicationSchedule MONTHLY = fromString("monthly");

/**
* Creates or finds a ReplicationSchedule from its string representation.
* @param name a name to look for
Expand Down
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
Loading