forked from Azure/azure-libraries-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR storage/resource-manager] Azure Storage 2018-02-01 (#111)
* 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
1 parent
e9b6d3f
commit 3544567
Showing
28 changed files
with
3,376 additions
and
9 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...gmt-storage/src/main/java/com/microsoft/azure/management/storage/AzureEntityResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
64 changes: 64 additions & 0 deletions
64
azure-mgmt-storage/src/main/java/com/microsoft/azure/management/storage/AzureResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
94 changes: 94 additions & 0 deletions
94
...ge/src/main/java/com/microsoft/azure/management/storage/ImmutabilityPolicyProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
...storage/src/main/java/com/microsoft/azure/management/storage/ImmutabilityPolicyState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...ge/src/main/java/com/microsoft/azure/management/storage/ImmutabilityPolicyUpdateType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
azure-mgmt-storage/src/main/java/com/microsoft/azure/management/storage/LeaseDuration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
azure-mgmt-storage/src/main/java/com/microsoft/azure/management/storage/LeaseState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
Oops, something went wrong.