Skip to content

Commit

Permalink
[AutoPR storage/resource-manager] Azure Storage 2018-02-01 (#111)
Browse files Browse the repository at this point in the history
* Generated from 5e659070f53a62a9614b6b6e4fe9aaddc7d690a6

[Storage] Set LegalHold Tags as required

* Generated from 45ac1371b5d6f0a37537325752b88c8d8ef15060

[Storage] revert to use REsourceGroup defined in storage swagger since the common one has input it from client, which is breaking
  • Loading branch information
AutorestCI authored Apr 26, 2018
1 parent e9b6d3f commit 3544567
Show file tree
Hide file tree
Showing 28 changed files with 3,376 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* 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.storage;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The resource model definition for a Azure Resource Manager resource with an
* etag.
*/
public class AzureEntityResource extends AzureResource {
/**
* Resource Etag.
*/
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/**
* 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.storage;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* An Azure Resource Manager resource.
*/
public class AzureResource {
/**
* Fully qualified resource ID for the resource. Ex -
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;

/**
* The name of the resource.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;

/**
* The type of the resource. Ex- Microsoft.Compute/virtualMachines or
* Microsoft.Storage/storageAccounts.
*/
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;

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

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

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

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/**
* 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.storage;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* The properties of an ImmutabilityPolicy of a blob container.
*/
@JsonFlatten
public class ImmutabilityPolicyProperties {
/**
* The immutability period for the blobs in the container since the policy
* creation, in days.
*/
@JsonProperty(value = "properties.immutabilityPeriodSinceCreationInDays", required = true)
private int immutabilityPeriodSinceCreationInDays;

/**
* The ImmutabilityPolicy state of a blob container, possible values
* include: Locked and Unlocked. Possible values include: 'Locked',
* 'Unlocked'.
*/
@JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY)
private ImmutabilityPolicyState state;

/**
* ImmutabilityPolicy Etag.
*/
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;

/**
* The ImmutabilityPolicy update history of the blob container.
*/
@JsonProperty(value = "updateHistory", access = JsonProperty.Access.WRITE_ONLY)
private List<UpdateHistoryProperty> updateHistory;

/**
* Get the immutabilityPeriodSinceCreationInDays value.
*
* @return the immutabilityPeriodSinceCreationInDays value
*/
public int immutabilityPeriodSinceCreationInDays() {
return this.immutabilityPeriodSinceCreationInDays;
}

/**
* Set the immutabilityPeriodSinceCreationInDays value.
*
* @param immutabilityPeriodSinceCreationInDays the immutabilityPeriodSinceCreationInDays value to set
* @return the ImmutabilityPolicyProperties object itself.
*/
public ImmutabilityPolicyProperties withImmutabilityPeriodSinceCreationInDays(int immutabilityPeriodSinceCreationInDays) {
this.immutabilityPeriodSinceCreationInDays = immutabilityPeriodSinceCreationInDays;
return this;
}

/**
* Get the state value.
*
* @return the state value
*/
public ImmutabilityPolicyState state() {
return this.state;
}

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

/**
* Get the updateHistory value.
*
* @return the updateHistory value
*/
public List<UpdateHistoryProperty> updateHistory() {
return this.updateHistory;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* 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.storage;

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

/**
* Defines values for ImmutabilityPolicyState.
*/
public final class ImmutabilityPolicyState extends ExpandableStringEnum<ImmutabilityPolicyState> {
/** Static value Locked for ImmutabilityPolicyState. */
public static final ImmutabilityPolicyState LOCKED = fromString("Locked");

/** Static value Unlocked for ImmutabilityPolicyState. */
public static final ImmutabilityPolicyState UNLOCKED = fromString("Unlocked");

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

/**
* @return known ImmutabilityPolicyState values
*/
public static Collection<ImmutabilityPolicyState> values() {
return values(ImmutabilityPolicyState.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.storage;

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

/**
* Defines values for ImmutabilityPolicyUpdateType.
*/
public final class ImmutabilityPolicyUpdateType extends ExpandableStringEnum<ImmutabilityPolicyUpdateType> {
/** Static value put for ImmutabilityPolicyUpdateType. */
public static final ImmutabilityPolicyUpdateType PUT = fromString("put");

/** Static value lock for ImmutabilityPolicyUpdateType. */
public static final ImmutabilityPolicyUpdateType LOCK = fromString("lock");

/** Static value extend for ImmutabilityPolicyUpdateType. */
public static final ImmutabilityPolicyUpdateType EXTEND = fromString("extend");

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

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

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

/**
* Defines values for LeaseDuration.
*/
public final class LeaseDuration extends ExpandableStringEnum<LeaseDuration> {
/** Static value Infinite for LeaseDuration. */
public static final LeaseDuration INFINITE = fromString("Infinite");

/** Static value Fixed for LeaseDuration. */
public static final LeaseDuration FIXED = fromString("Fixed");

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

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

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

/**
* Defines values for LeaseState.
*/
public final class LeaseState extends ExpandableStringEnum<LeaseState> {
/** Static value Available for LeaseState. */
public static final LeaseState AVAILABLE = fromString("Available");

/** Static value Leased for LeaseState. */
public static final LeaseState LEASED = fromString("Leased");

/** Static value Expired for LeaseState. */
public static final LeaseState EXPIRED = fromString("Expired");

/** Static value Breaking for LeaseState. */
public static final LeaseState BREAKING = fromString("Breaking");

/** Static value Broken for LeaseState. */
public static final LeaseState BROKEN = fromString("Broken");

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

/**
* @return known LeaseState values
*/
public static Collection<LeaseState> values() {
return values(LeaseState.class);
}
}
Loading

0 comments on commit 3544567

Please sign in to comment.