From 15734062dda534044226d4c96cb2e0a51112aa75 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 12 Apr 2018 13:41:18 -0700 Subject: [PATCH] Generated from f4de45b64671c46afe8ce792c163c2dcc92f9988 (#57) Undo Test --- .../cosmosdb/VirtualNetworkRule.java | 44 +++++++++++++++ ...aseAccountCreateUpdateParametersInner.java | 53 +++++++++++++++++++ .../implementation/DatabaseAccountInner.java | 53 +++++++++++++++++++ 3 files changed, 150 insertions(+) create mode 100644 azure-mgmt-cosmosdb/src/main/java/com/microsoft/azure/management/cosmosdb/VirtualNetworkRule.java diff --git a/azure-mgmt-cosmosdb/src/main/java/com/microsoft/azure/management/cosmosdb/VirtualNetworkRule.java b/azure-mgmt-cosmosdb/src/main/java/com/microsoft/azure/management/cosmosdb/VirtualNetworkRule.java new file mode 100644 index 00000000000..32b3192bf00 --- /dev/null +++ b/azure-mgmt-cosmosdb/src/main/java/com/microsoft/azure/management/cosmosdb/VirtualNetworkRule.java @@ -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.cosmosdb; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Virtual Network ACL Rule object. + */ +public class VirtualNetworkRule { + /** + * Resource ID of a subnet, for example: + * /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Get the id value. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Set the id value. + * + * @param id the id value to set + * @return the VirtualNetworkRule object itself. + */ + public VirtualNetworkRule withId(String id) { + this.id = id; + return this; + } + +} diff --git a/azure-mgmt-cosmosdb/src/main/java/com/microsoft/azure/management/cosmosdb/implementation/DatabaseAccountCreateUpdateParametersInner.java b/azure-mgmt-cosmosdb/src/main/java/com/microsoft/azure/management/cosmosdb/implementation/DatabaseAccountCreateUpdateParametersInner.java index cf1d90753a4..6001a488f3d 100755 --- a/azure-mgmt-cosmosdb/src/main/java/com/microsoft/azure/management/cosmosdb/implementation/DatabaseAccountCreateUpdateParametersInner.java +++ b/azure-mgmt-cosmosdb/src/main/java/com/microsoft/azure/management/cosmosdb/implementation/DatabaseAccountCreateUpdateParametersInner.java @@ -13,6 +13,7 @@ import java.util.List; import com.microsoft.azure.management.cosmosdb.Location; import com.microsoft.azure.management.cosmosdb.Capability; +import com.microsoft.azure.management.cosmosdb.VirtualNetworkRule; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.Resource; @@ -58,6 +59,12 @@ public class DatabaseAccountCreateUpdateParametersInner extends Resource { @JsonProperty(value = "properties.ipRangeFilter") private String ipRangeFilter; + /** + * Flag to indicate whether to enable/disable Virtual Network ACL rules. + */ + @JsonProperty(value = "properties.isVirtualNetworkFilterEnabled") + private Boolean isVirtualNetworkFilterEnabled; + /** * Enables automatic failover of the write region in the rare event that * the region is unavailable due to an outage. Automatic failover will @@ -73,6 +80,12 @@ public class DatabaseAccountCreateUpdateParametersInner extends Resource { @JsonProperty(value = "properties.capabilities") private List capabilities; + /** + * List of Virtual Network ACL rules configured for the Cosmos DB account. + */ + @JsonProperty(value = "properties.virtualNetworkRules") + private List virtualNetworkRules; + /** * Creates an instance of DatabaseAccountCreateUpdateParametersInner class. */ @@ -180,6 +193,26 @@ public DatabaseAccountCreateUpdateParametersInner withIpRangeFilter(String ipRan return this; } + /** + * Get the isVirtualNetworkFilterEnabled value. + * + * @return the isVirtualNetworkFilterEnabled value + */ + public Boolean isVirtualNetworkFilterEnabled() { + return this.isVirtualNetworkFilterEnabled; + } + + /** + * Set the isVirtualNetworkFilterEnabled value. + * + * @param isVirtualNetworkFilterEnabled the isVirtualNetworkFilterEnabled value to set + * @return the DatabaseAccountCreateUpdateParametersInner object itself. + */ + public DatabaseAccountCreateUpdateParametersInner withIsVirtualNetworkFilterEnabled(Boolean isVirtualNetworkFilterEnabled) { + this.isVirtualNetworkFilterEnabled = isVirtualNetworkFilterEnabled; + return this; + } + /** * Get the enableAutomaticFailover value. * @@ -220,4 +253,24 @@ public DatabaseAccountCreateUpdateParametersInner withCapabilities(List virtualNetworkRules() { + return this.virtualNetworkRules; + } + + /** + * Set the virtualNetworkRules value. + * + * @param virtualNetworkRules the virtualNetworkRules value to set + * @return the DatabaseAccountCreateUpdateParametersInner object itself. + */ + public DatabaseAccountCreateUpdateParametersInner withVirtualNetworkRules(List virtualNetworkRules) { + this.virtualNetworkRules = virtualNetworkRules; + return this; + } + } diff --git a/azure-mgmt-cosmosdb/src/main/java/com/microsoft/azure/management/cosmosdb/implementation/DatabaseAccountInner.java b/azure-mgmt-cosmosdb/src/main/java/com/microsoft/azure/management/cosmosdb/implementation/DatabaseAccountInner.java index 7e4f9ba4871..54e4c508b31 100755 --- a/azure-mgmt-cosmosdb/src/main/java/com/microsoft/azure/management/cosmosdb/implementation/DatabaseAccountInner.java +++ b/azure-mgmt-cosmosdb/src/main/java/com/microsoft/azure/management/cosmosdb/implementation/DatabaseAccountInner.java @@ -14,6 +14,7 @@ import java.util.List; import com.microsoft.azure.management.cosmosdb.Capability; import com.microsoft.azure.management.cosmosdb.Location; +import com.microsoft.azure.management.cosmosdb.VirtualNetworkRule; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.Resource; @@ -59,6 +60,12 @@ public class DatabaseAccountInner extends Resource { @JsonProperty(value = "properties.ipRangeFilter") private String ipRangeFilter; + /** + * Flag to indicate whether to enable/disable Virtual Network ACL rules. + */ + @JsonProperty(value = "properties.isVirtualNetworkFilterEnabled") + private Boolean isVirtualNetworkFilterEnabled; + /** * Enables automatic failover of the write region in the rare event that * the region is unavailable due to an outage. Automatic failover will @@ -99,6 +106,12 @@ public class DatabaseAccountInner extends Resource { @JsonProperty(value = "properties.failoverPolicies", access = JsonProperty.Access.WRITE_ONLY) private List failoverPolicies; + /** + * List of Virtual Network ACL rules configured for the Cosmos DB account. + */ + @JsonProperty(value = "properties.virtualNetworkRules") + private List virtualNetworkRules; + /** * Get the kind value. * @@ -177,6 +190,26 @@ public DatabaseAccountInner withIpRangeFilter(String ipRangeFilter) { return this; } + /** + * Get the isVirtualNetworkFilterEnabled value. + * + * @return the isVirtualNetworkFilterEnabled value + */ + public Boolean isVirtualNetworkFilterEnabled() { + return this.isVirtualNetworkFilterEnabled; + } + + /** + * Set the isVirtualNetworkFilterEnabled value. + * + * @param isVirtualNetworkFilterEnabled the isVirtualNetworkFilterEnabled value to set + * @return the DatabaseAccountInner object itself. + */ + public DatabaseAccountInner withIsVirtualNetworkFilterEnabled(Boolean isVirtualNetworkFilterEnabled) { + this.isVirtualNetworkFilterEnabled = isVirtualNetworkFilterEnabled; + return this; + } + /** * Get the enableAutomaticFailover value. * @@ -264,4 +297,24 @@ public List failoverPolicies() { return this.failoverPolicies; } + /** + * Get the virtualNetworkRules value. + * + * @return the virtualNetworkRules value + */ + public List virtualNetworkRules() { + return this.virtualNetworkRules; + } + + /** + * Set the virtualNetworkRules value. + * + * @param virtualNetworkRules the virtualNetworkRules value to set + * @return the DatabaseAccountInner object itself. + */ + public DatabaseAccountInner withVirtualNetworkRules(List virtualNetworkRules) { + this.virtualNetworkRules = virtualNetworkRules; + return this; + } + }