Skip to content
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* 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.keyvault;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* A rule governing the accesibility of a vault from a specific ip address or
* ip range.
*/
public class IPRule {
/**
* An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple
* IP address) or '124.56.78.0/24' (all addresses that start with
* 124.56.78).
*/
@JsonProperty(value = "value", required = true)
private String value;

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

/**
* Set the value value.
*
* @param value the value value to set
* @return the IPRule object itself.
*/
public IPRule withValue(String value) {
this.value = value;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@

package com.microsoft.azure.management.keyvault;

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

import java.util.Collection;

/**
* Defines values for KeyPermissions.
*/
Expand Down
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.keyvault;

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

/**
* Defines values for NetworkRuleAction.
*/
public final class NetworkRuleAction extends ExpandableStringEnum<NetworkRuleAction> {
/** Static value Allow for NetworkRuleAction. */
public static final NetworkRuleAction ALLOW = fromString("Allow");

/** Static value Deny for NetworkRuleAction. */
public static final NetworkRuleAction DENY = fromString("Deny");

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

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

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

/**
* Defines values for NetworkRuleBypassOptions.
*/
public final class NetworkRuleBypassOptions extends ExpandableStringEnum<NetworkRuleBypassOptions> {
/** Static value AzureServices for NetworkRuleBypassOptions. */
public static final NetworkRuleBypassOptions AZURE_SERVICES = fromString("AzureServices");

/** Static value None for NetworkRuleBypassOptions. */
public static final NetworkRuleBypassOptions NONE = fromString("None");

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

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

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* A set of rules governing the network accessibility of a vault.
*/
public class NetworkRuleSet {
/**
* Tells what traffic can bypass network rules. This can be 'AzureServices'
* or 'None'. If not specified the default is 'AzureServices'. Possible
* values include: 'AzureServices', 'None'.
*/
@JsonProperty(value = "bypass")
private NetworkRuleBypassOptions bypass;

/**
* The default action when no rule from ipRules and from
* virtualNetworkRules match. This is only used after the bypass property
* has been evaluated. Possible values include: 'Allow', 'Deny'.
*/
@JsonProperty(value = "defaultAction")
private NetworkRuleAction defaultAction;

/**
* The list of IP address rules.
*/
@JsonProperty(value = "ipRules")
private List<IPRule> ipRules;

/**
* The list of virtual network rules.
*/
@JsonProperty(value = "virtualNetworkRules")
private List<VirtualNetworkRule> virtualNetworkRules;

/**
* Get the bypass value.
*
* @return the bypass value
*/
public NetworkRuleBypassOptions bypass() {
return this.bypass;
}

/**
* Set the bypass value.
*
* @param bypass the bypass value to set
* @return the NetworkRuleSet object itself.
*/
public NetworkRuleSet withBypass(NetworkRuleBypassOptions bypass) {
this.bypass = bypass;
return this;
}

/**
* Get the defaultAction value.
*
* @return the defaultAction value
*/
public NetworkRuleAction defaultAction() {
return this.defaultAction;
}

/**
* Set the defaultAction value.
*
* @param defaultAction the defaultAction value to set
* @return the NetworkRuleSet object itself.
*/
public NetworkRuleSet withDefaultAction(NetworkRuleAction defaultAction) {
this.defaultAction = defaultAction;
return this;
}

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

/**
* Set the ipRules value.
*
* @param ipRules the ipRules value to set
* @return the NetworkRuleSet object itself.
*/
public NetworkRuleSet withIpRules(List<IPRule> ipRules) {
this.ipRules = ipRules;
return this;
}

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

/**
* Set the virtualNetworkRules value.
*
* @param virtualNetworkRules the virtualNetworkRules value to set
* @return the NetworkRuleSet object itself.
*/
public NetworkRuleSet withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules) {
this.virtualNetworkRules = virtualNetworkRules;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ public final class StoragePermissions extends ExpandableStringEnum<StoragePermis
/** Static value regeneratekey for StoragePermissions. */
public static final StoragePermissions REGENERATEKEY = fromString("regeneratekey");

/** Static value recover for StoragePermissions. */
public static final StoragePermissions RECOVER = fromString("recover");

/** Static value purge for StoragePermissions. */
public static final StoragePermissions PURGE = fromString("purge");

/** Static value backup for StoragePermissions. */
public static final StoragePermissions BACKUP = fromString("backup");

/** Static value restore for StoragePermissions. */
public static final StoragePermissions RESTORE = fromString("restore");

/** Static value setsas for StoragePermissions. */
public static final StoragePermissions SETSAS = fromString("setsas");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,24 @@ public class VaultPatchProperties {
@JsonProperty(value = "createMode")
private CreateMode createMode;

/**
* Property specifying whether protection against purge is enabled for this
* vault. Setting this property to true activates protection against purge
* for this vault and its content - only the Key Vault service may initiate
* a hard, irrecoverable deletion. The setting is effective only if soft
* delete is also enabled. Enabling this functionality is irreversible -
* that is, the property does not accept false as its value.
*/
@JsonProperty(value = "enablePurgeProtection")
private Boolean enablePurgeProtection;

/**
* A collection of rules governing the accessibility of the vault from
* specific network locations.
*/
@JsonProperty(value = "networkAcls")
private NetworkRuleSet networkAcls;

/**
* Get the tenantId value.
*
Expand Down Expand Up @@ -232,4 +250,44 @@ public VaultPatchProperties withCreateMode(CreateMode createMode) {
return this;
}

/**
* Get the enablePurgeProtection value.
*
* @return the enablePurgeProtection value
*/
public Boolean enablePurgeProtection() {
return this.enablePurgeProtection;
}

/**
* Set the enablePurgeProtection value.
*
* @param enablePurgeProtection the enablePurgeProtection value to set
* @return the VaultPatchProperties object itself.
*/
public VaultPatchProperties withEnablePurgeProtection(Boolean enablePurgeProtection) {
this.enablePurgeProtection = enablePurgeProtection;
return this;
}

/**
* Get the networkAcls value.
*
* @return the networkAcls value
*/
public NetworkRuleSet networkAcls() {
return this.networkAcls;
}

/**
* Set the networkAcls value.
*
* @param networkAcls the networkAcls value to set
* @return the VaultPatchProperties object itself.
*/
public VaultPatchProperties withNetworkAcls(NetworkRuleSet networkAcls) {
this.networkAcls = networkAcls;
return this;
}

}
Loading