Skip to content

Commit

Permalink
Generated from 360699b439708ea38449765f0b4647b3599da42b
Browse files Browse the repository at this point in the history
Require StorageCache StorageTarget discriminator: targetType
  • Loading branch information
SDK Automation committed Jul 20, 2020
1 parent 46d46c2 commit f644f2f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ public interface StorageTarget extends HasInner<StorageTargetInner>, Indexable,
*/
ProvisioningStateType provisioningState();

/**
* @return the targetType value.
*/
StorageTargetType targetType();

/**
* @return the type value.
*/
Expand Down Expand Up @@ -145,18 +140,6 @@ interface WithProvisioningState {
WithCreate withProvisioningState(ProvisioningStateType provisioningState);
}

/**
* The stage of the storagetarget definition allowing to specify TargetType.
*/
interface WithTargetType {
/**
* Specifies targetType.
* @param targetType Type of the Storage Target. Possible values include: 'nfs3', 'clfs', 'unknown'
* @return the next definition stage
*/
WithCreate withTargetType(StorageTargetType targetType);
}

/**
* The stage of the storagetarget definition allowing to specify Unknown.
*/
Expand All @@ -174,13 +157,13 @@ interface WithUnknown {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<StorageTarget>, DefinitionStages.WithClfs, DefinitionStages.WithJunctions, DefinitionStages.WithNfs3, DefinitionStages.WithProvisioningState, DefinitionStages.WithTargetType, DefinitionStages.WithUnknown {
interface WithCreate extends Creatable<StorageTarget>, DefinitionStages.WithClfs, DefinitionStages.WithJunctions, DefinitionStages.WithNfs3, DefinitionStages.WithProvisioningState, DefinitionStages.WithUnknown {
}
}
/**
* The template for a StorageTarget update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<StorageTarget>, UpdateStages.WithClfs, UpdateStages.WithJunctions, UpdateStages.WithNfs3, UpdateStages.WithProvisioningState, UpdateStages.WithTargetType, UpdateStages.WithUnknown {
interface Update extends Appliable<StorageTarget>, UpdateStages.WithClfs, UpdateStages.WithJunctions, UpdateStages.WithNfs3, UpdateStages.WithProvisioningState, UpdateStages.WithUnknown {
}

/**
Expand Down Expand Up @@ -235,18 +218,6 @@ interface WithProvisioningState {
Update withProvisioningState(ProvisioningStateType provisioningState);
}

/**
* The stage of the storagetarget update allowing to specify TargetType.
*/
interface WithTargetType {
/**
* Specifies targetType.
* @param targetType Type of the Storage Target. Possible values include: 'nfs3', 'clfs', 'unknown'
* @return the next update stage
*/
Update withTargetType(StorageTargetType targetType);
}

/**
* The stage of the storagetarget update allowing to specify Unknown.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import rx.Observable;
import java.util.List;
import com.microsoft.azure.management.storagecache.v2019_11_01.NamespaceJunction;
import com.microsoft.azure.management.storagecache.v2019_11_01.StorageTargetType;
import com.microsoft.azure.management.storagecache.v2019_11_01.ProvisioningStateType;
import com.microsoft.azure.management.storagecache.v2019_11_01.Nfs3Target;
import com.microsoft.azure.management.storagecache.v2019_11_01.ClfsTarget;
Expand Down Expand Up @@ -106,11 +105,6 @@ public ProvisioningStateType provisioningState() {
return this.inner().provisioningState();
}

@Override
public StorageTargetType targetType() {
return this.inner().targetType();
}

@Override
public String type() {
return this.inner().type();
Expand Down Expand Up @@ -152,12 +146,6 @@ public StorageTargetImpl withProvisioningState(ProvisioningStateType provisionin
return this;
}

@Override
public StorageTargetImpl withTargetType(StorageTargetType targetType) {
this.inner().withTargetType(targetType);
return this;
}

@Override
public StorageTargetImpl withUnknown(UnknownTarget unknown) {
this.inner().withUnknown(unknown);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import java.util.List;
import com.microsoft.azure.management.storagecache.v2019_11_01.NamespaceJunction;
import com.microsoft.azure.management.storagecache.v2019_11_01.StorageTargetType;
import com.microsoft.azure.management.storagecache.v2019_11_01.ProvisioningStateType;
import com.microsoft.azure.management.storagecache.v2019_11_01.Nfs3Target;
import com.microsoft.azure.management.storagecache.v2019_11_01.ClfsTarget;
Expand All @@ -30,13 +29,6 @@ public class StorageTargetInner extends ProxyResource {
@JsonProperty(value = "properties.junctions")
private List<NamespaceJunction> junctions;

/**
* Type of the Storage Target. Possible values include: 'nfs3', 'clfs',
* 'unknown'.
*/
@JsonProperty(value = "properties.targetType")
private StorageTargetType targetType;

/**
* ARM provisioning state, see
* https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property.
Expand Down Expand Up @@ -84,26 +76,6 @@ public StorageTargetInner withJunctions(List<NamespaceJunction> junctions) {
return this;
}

/**
* Get type of the Storage Target. Possible values include: 'nfs3', 'clfs', 'unknown'.
*
* @return the targetType value
*/
public StorageTargetType targetType() {
return this.targetType;
}

/**
* Set type of the Storage Target. Possible values include: 'nfs3', 'clfs', 'unknown'.
*
* @param targetType the targetType value to set
* @return the StorageTargetInner object itself.
*/
public StorageTargetInner withTargetType(StorageTargetType targetType) {
this.targetType = targetType;
return this;
}

/**
* Get aRM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property. Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Creating', 'Deleting', 'Updating'.
*
Expand Down

0 comments on commit f644f2f

Please sign in to comment.