Skip to content
Open
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
Expand Up @@ -519,7 +519,7 @@ private void Initialize()
this.FleetspaceAccount = new FleetspaceAccountOperations(this);
this.MongoMiResources = new MongoMiResourcesOperations(this);
this.BaseUri = new System.Uri("https://management.azure.com");
this.ApiVersion = "2025-05-01-preview";
this.ApiVersion = "2025-11-01-preview";
this.AcceptLanguage = "en-US";
this.LongRunningOperationRetryTimeout = 30;
this.GenerateClientRequestId = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
// 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.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.CosmosDB.Models
{
using System.Linq;

/// <summary>
/// Data masking policy for the container.
/// </summary>
public partial class DataMaskingPolicy
{
/// <summary>
/// Initializes a new instance of the DataMaskingPolicy class.
/// </summary>
public DataMaskingPolicy()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the DataMaskingPolicy class.
/// </summary>

/// <param name="includedPaths">List of JSON paths to include in the masking policy.
/// </param>

/// <param name="excludedPaths">List of JSON paths to exclude from masking.
/// </param>

/// <param name="isPolicyEnabled">Flag indicating whether the data masking policy is enabled.
/// </param>
public DataMaskingPolicy(System.Collections.Generic.IList<DataMaskingPolicyIncludedPathsItem> includedPaths = default(System.Collections.Generic.IList<DataMaskingPolicyIncludedPathsItem>), System.Collections.Generic.IList<DataMaskingPolicyExcludedPathsItem> excludedPaths = default(System.Collections.Generic.IList<DataMaskingPolicyExcludedPathsItem>), bool? isPolicyEnabled = default(bool?))

{
this.IncludedPaths = includedPaths;
this.ExcludedPaths = excludedPaths;
this.IsPolicyEnabled = isPolicyEnabled;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();


/// <summary>
/// Gets or sets list of JSON paths to include in the masking policy.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "includedPaths")]
public System.Collections.Generic.IList<DataMaskingPolicyIncludedPathsItem> IncludedPaths {get; set; }

/// <summary>
/// Gets or sets list of JSON paths to exclude from masking.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "excludedPaths")]
public System.Collections.Generic.IList<DataMaskingPolicyExcludedPathsItem> ExcludedPaths {get; set; }

/// <summary>
/// Gets or sets flag indicating whether the data masking policy is enabled.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "isPolicyEnabled")]
public bool? IsPolicyEnabled {get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// 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.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.CosmosDB.Models
{
using System.Linq;

public partial class DataMaskingPolicyExcludedPathsItem
{
/// <summary>
/// Initializes a new instance of the DataMaskingPolicyExcludedPathsItem class.
/// </summary>
public DataMaskingPolicyExcludedPathsItem()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the DataMaskingPolicyExcludedPathsItem class.
/// </summary>

/// <param name="path">The JSON path to exclude from masking (e.g. &#34;/id&#34;).
/// </param>
public DataMaskingPolicyExcludedPathsItem(string path)

{
this.Path = path;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();


/// <summary>
/// Gets or sets the JSON path to exclude from masking (e.g. &#34;/id&#34;).
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "path")]
public string Path {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (this.Path == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Path");
}

}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
// 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.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.CosmosDB.Models
{
using System.Linq;

public partial class DataMaskingPolicyIncludedPathsItem
{
/// <summary>
/// Initializes a new instance of the DataMaskingPolicyIncludedPathsItem class.
/// </summary>
public DataMaskingPolicyIncludedPathsItem()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the DataMaskingPolicyIncludedPathsItem class.
/// </summary>

/// <param name="path">The JSON path to apply masking (e.g. &#34;/contact/phones&#34;).
/// </param>

/// <param name="strategy">Masking strategy to apply (e.g. &#34;MaskSubstring&#34;).
/// </param>

/// <param name="startPosition">Start position for substring masking (when applicable).
/// </param>

/// <param name="length">Length of substring to mask (when applicable).
/// </param>
public DataMaskingPolicyIncludedPathsItem(string path, string strategy = default(string), int? startPosition = default(int?), int? length = default(int?))

{
this.Path = path;
this.Strategy = strategy;
this.StartPosition = startPosition;
this.Length = length;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();


/// <summary>
/// Gets or sets the JSON path to apply masking (e.g. &#34;/contact/phones&#34;).
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "path")]
public string Path {get; set; }

/// <summary>
/// Gets or sets masking strategy to apply (e.g. &#34;MaskSubstring&#34;).
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "strategy")]
public string Strategy {get; set; }

/// <summary>
/// Gets or sets start position for substring masking (when applicable).
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "startPosition")]
public int? StartPosition {get; set; }

/// <summary>
/// Gets or sets length of substring to mask (when applicable).
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "length")]
public int? Length {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (this.Path == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Path");
}


}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ public DatabaseAccountGetProperties()
/// case there are errors, the property provides troubleshooting guidance.
/// </param>

/// <param name="keyVaultKeyUriVersion">The version of the Customer Managed Key currently being used by the account
/// </param>

/// <param name="enablePriorityBasedExecution">Flag to indicate enabling/disabling of Priority Based Execution Preview
/// feature on the account
/// </param>
Expand All @@ -194,7 +197,19 @@ public DatabaseAccountGetProperties()
/// <param name="enableAllVersionsAndDeletesChangeFeed">Flag to indicate if All Versions and Deletes Change feed feature is enabled
/// on the account
/// </param>
public DatabaseAccountGetProperties(string provisioningState = default(string), string documentEndpoint = default(string), DatabaseAccountOfferType? databaseAccountOfferType = default(DatabaseAccountOfferType?), System.Collections.Generic.IList<IpAddressOrRange> ipRules = default(System.Collections.Generic.IList<IpAddressOrRange>), bool? isVirtualNetworkFilterEnabled = default(bool?), bool? enableAutomaticFailover = default(bool?), ConsistencyPolicy consistencyPolicy = default(ConsistencyPolicy), System.Collections.Generic.IList<Capability> capabilities = default(System.Collections.Generic.IList<Capability>), System.Collections.Generic.IList<Location> writeLocations = default(System.Collections.Generic.IList<Location>), System.Collections.Generic.IList<Location> readLocations = default(System.Collections.Generic.IList<Location>), System.Collections.Generic.IList<Location> locations = default(System.Collections.Generic.IList<Location>), System.Collections.Generic.IList<FailoverPolicy> failoverPolicies = default(System.Collections.Generic.IList<FailoverPolicy>), System.Collections.Generic.IList<VirtualNetworkRule> virtualNetworkRules = default(System.Collections.Generic.IList<VirtualNetworkRule>), System.Collections.Generic.IList<PrivateEndpointConnection> privateEndpointConnections = default(System.Collections.Generic.IList<PrivateEndpointConnection>), bool? enableMultipleWriteLocations = default(bool?), bool? enableCassandraConnector = default(bool?), string connectorOffer = default(string), bool? disableKeyBasedMetadataWriteAccess = default(bool?), string keyVaultKeyUri = default(string), string defaultIdentity = default(string), string publicNetworkAccess = default(string), bool? enableFreeTier = default(bool?), ApiProperties apiProperties = default(ApiProperties), bool? enableAnalyticalStorage = default(bool?), AnalyticalStorageConfiguration analyticalStorageConfiguration = default(AnalyticalStorageConfiguration), string instanceId = default(string), string createMode = default(string), RestoreParameters restoreParameters = default(RestoreParameters), BackupPolicy backupPolicy = default(BackupPolicy), System.Collections.Generic.IList<CorsPolicy> cors = default(System.Collections.Generic.IList<CorsPolicy>), NetworkAclBypass? networkAclBypass = default(NetworkAclBypass?), System.Collections.Generic.IList<string> networkAclBypassResourceIds = default(System.Collections.Generic.IList<string>), DiagnosticLogSettings diagnosticLogSettings = default(DiagnosticLogSettings), bool? disableLocalAuth = default(bool?), Capacity capacity = default(Capacity), string capacityMode = default(string), CapacityModeChangeTransitionState capacityModeChangeTransitionState = default(CapacityModeChangeTransitionState), bool? enableMaterializedViews = default(bool?), DatabaseAccountKeysMetadata keysMetadata = default(DatabaseAccountKeysMetadata), bool? enablePartitionMerge = default(bool?), bool? enableBurstCapacity = default(bool?), string minimalTlsVersion = default(string), string customerManagedKeyStatus = default(string), bool? enablePriorityBasedExecution = default(bool?), string defaultPriorityLevel = default(string), bool? enablePerRegionPerPartitionAutoscale = default(bool?), bool? enableAllVersionsAndDeletesChangeFeed = default(bool?))

/// <param name="throughputPoolDedicatedRUs">Total dedicated throughput (RU/s) for database account. Represents the sum
/// of all manual provisioned throughput and all autoscale max RU/s across all
/// shared throughput databases and dedicated throughput containers in the
/// account for 1 region. READ ONLY.
/// </param>

/// <param name="throughputPoolMaxConsumableRUs">When this account is part of a fleetspace with throughput pooling enabled,
/// this is the maximum additional throughput (RU/s) that can be consumed from
/// the pool, summed across all shared throughput databases and dedicated
/// throughput containers in the account for 1 region. READ ONLY.
/// </param>
public DatabaseAccountGetProperties(string provisioningState = default(string), string documentEndpoint = default(string), DatabaseAccountOfferType? databaseAccountOfferType = default(DatabaseAccountOfferType?), System.Collections.Generic.IList<IpAddressOrRange> ipRules = default(System.Collections.Generic.IList<IpAddressOrRange>), bool? isVirtualNetworkFilterEnabled = default(bool?), bool? enableAutomaticFailover = default(bool?), ConsistencyPolicy consistencyPolicy = default(ConsistencyPolicy), System.Collections.Generic.IList<Capability> capabilities = default(System.Collections.Generic.IList<Capability>), System.Collections.Generic.IList<Location> writeLocations = default(System.Collections.Generic.IList<Location>), System.Collections.Generic.IList<Location> readLocations = default(System.Collections.Generic.IList<Location>), System.Collections.Generic.IList<Location> locations = default(System.Collections.Generic.IList<Location>), System.Collections.Generic.IList<FailoverPolicy> failoverPolicies = default(System.Collections.Generic.IList<FailoverPolicy>), System.Collections.Generic.IList<VirtualNetworkRule> virtualNetworkRules = default(System.Collections.Generic.IList<VirtualNetworkRule>), System.Collections.Generic.IList<PrivateEndpointConnection> privateEndpointConnections = default(System.Collections.Generic.IList<PrivateEndpointConnection>), bool? enableMultipleWriteLocations = default(bool?), bool? enableCassandraConnector = default(bool?), string connectorOffer = default(string), bool? disableKeyBasedMetadataWriteAccess = default(bool?), string keyVaultKeyUri = default(string), string defaultIdentity = default(string), string publicNetworkAccess = default(string), bool? enableFreeTier = default(bool?), ApiProperties apiProperties = default(ApiProperties), bool? enableAnalyticalStorage = default(bool?), AnalyticalStorageConfiguration analyticalStorageConfiguration = default(AnalyticalStorageConfiguration), string instanceId = default(string), string createMode = default(string), RestoreParameters restoreParameters = default(RestoreParameters), BackupPolicy backupPolicy = default(BackupPolicy), System.Collections.Generic.IList<CorsPolicy> cors = default(System.Collections.Generic.IList<CorsPolicy>), NetworkAclBypass? networkAclBypass = default(NetworkAclBypass?), System.Collections.Generic.IList<string> networkAclBypassResourceIds = default(System.Collections.Generic.IList<string>), DiagnosticLogSettings diagnosticLogSettings = default(DiagnosticLogSettings), bool? disableLocalAuth = default(bool?), Capacity capacity = default(Capacity), string capacityMode = default(string), CapacityModeChangeTransitionState capacityModeChangeTransitionState = default(CapacityModeChangeTransitionState), bool? enableMaterializedViews = default(bool?), DatabaseAccountKeysMetadata keysMetadata = default(DatabaseAccountKeysMetadata), bool? enablePartitionMerge = default(bool?), bool? enableBurstCapacity = default(bool?), string minimalTlsVersion = default(string), string customerManagedKeyStatus = default(string), string keyVaultKeyUriVersion = default(string), bool? enablePriorityBasedExecution = default(bool?), string defaultPriorityLevel = default(string), bool? enablePerRegionPerPartitionAutoscale = default(bool?), bool? enableAllVersionsAndDeletesChangeFeed = default(bool?), long? throughputPoolDedicatedRUs = default(long?), long? throughputPoolMaxConsumableRUs = default(long?))

{
this.ProvisioningState = provisioningState;
Expand Down Expand Up @@ -240,10 +255,13 @@ public DatabaseAccountGetProperties()
this.EnableBurstCapacity = enableBurstCapacity;
this.MinimalTlsVersion = minimalTlsVersion;
this.CustomerManagedKeyStatus = customerManagedKeyStatus;
this.KeyVaultKeyUriVersion = keyVaultKeyUriVersion;
this.EnablePriorityBasedExecution = enablePriorityBasedExecution;
this.DefaultPriorityLevel = defaultPriorityLevel;
this.EnablePerRegionPerPartitionAutoscale = enablePerRegionPerPartitionAutoscale;
this.EnableAllVersionsAndDeletesChangeFeed = enableAllVersionsAndDeletesChangeFeed;
this.ThroughputPoolDedicatedRUs = throughputPoolDedicatedRUs;
this.ThroughputPoolMaxConsumableRUs = throughputPoolMaxConsumableRUs;
CustomInit();
}

Expand Down Expand Up @@ -546,6 +564,13 @@ public DatabaseAccountGetProperties()
[Newtonsoft.Json.JsonProperty(PropertyName = "customerManagedKeyStatus")]
public string CustomerManagedKeyStatus {get; set; }

/// <summary>
/// Gets the version of the Customer Managed Key currently being used by the
/// account
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "keyVaultKeyUriVersion")]
public string KeyVaultKeyUriVersion {get; private set; }

/// <summary>
/// Gets or sets flag to indicate enabling/disabling of Priority Based
/// Execution Preview feature on the account
Expand Down Expand Up @@ -573,6 +598,25 @@ public DatabaseAccountGetProperties()
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "enableAllVersionsAndDeletesChangeFeed")]
public bool? EnableAllVersionsAndDeletesChangeFeed {get; set; }

/// <summary>
/// Gets or sets total dedicated throughput (RU/s) for database account.
/// Represents the sum of all manual provisioned throughput and all autoscale
/// max RU/s across all shared throughput databases and dedicated throughput
/// containers in the account for 1 region. READ ONLY.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "throughputPoolDedicatedRUs")]
public long? ThroughputPoolDedicatedRUs {get; set; }

/// <summary>
/// Gets or sets when this account is part of a fleetspace with throughput
/// pooling enabled, this is the maximum additional throughput (RU/s) that can
/// be consumed from the pool, summed across all shared throughput databases
/// and dedicated throughput containers in the account for 1 region. READ
/// ONLY.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "throughputPoolMaxConsumableRUs")]
public long? ThroughputPoolMaxConsumableRUs {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
Expand Down Expand Up @@ -665,6 +709,7 @@ public virtual void Validate()




}
}
}
Loading
Loading