ArmRedisModelFactory.RedisData Method

Definition

Initializes a new instance of RedisData.

public static Azure.ResourceManager.Redis.RedisData RedisData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, System.Collections.Generic.IEnumerable<string> zones = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, Azure.ResourceManager.Redis.Models.RedisCommonConfiguration redisConfiguration = default, string redisVersion = default, bool? enableNonSslPort = default, int? replicasPerMaster = default, int? replicasPerPrimary = default, System.Collections.Generic.IDictionary<string,string> tenantSettings = default, int? shardCount = default, Azure.ResourceManager.Redis.Models.RedisTlsVersion? minimumTlsVersion = default, Azure.ResourceManager.Redis.Models.RedisPublicNetworkAccess? publicNetworkAccess = default, Azure.ResourceManager.Redis.Models.UpdateChannel? updateChannel = default, bool? isAccessKeyAuthenticationDisabled = default, Azure.ResourceManager.Redis.Models.RedisSku sku = default, Azure.Core.ResourceIdentifier subnetId = default, System.Net.IPAddress staticIP = default, Azure.ResourceManager.Redis.Models.RedisProvisioningState? provisioningState = default, string hostName = default, int? port = default, int? sslPort = default, Azure.ResourceManager.Redis.Models.RedisAccessKeys accessKeys = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.SubResource> linkedServers = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Redis.Models.RedisInstanceDetails> instances = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Redis.RedisPrivateEndpointConnectionData> privateEndpointConnections = default);
static member RedisData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * seq<string> * Azure.ResourceManager.Models.ManagedServiceIdentity * Azure.ResourceManager.Redis.Models.RedisCommonConfiguration * string * Nullable<bool> * Nullable<int> * Nullable<int> * System.Collections.Generic.IDictionary<string, string> * Nullable<int> * Nullable<Azure.ResourceManager.Redis.Models.RedisTlsVersion> * Nullable<Azure.ResourceManager.Redis.Models.RedisPublicNetworkAccess> * Nullable<Azure.ResourceManager.Redis.Models.UpdateChannel> * Nullable<bool> * Azure.ResourceManager.Redis.Models.RedisSku * Azure.Core.ResourceIdentifier * System.Net.IPAddress * Nullable<Azure.ResourceManager.Redis.Models.RedisProvisioningState> * string * Nullable<int> * Nullable<int> * Azure.ResourceManager.Redis.Models.RedisAccessKeys * seq<Azure.ResourceManager.Resources.Models.SubResource> * seq<Azure.ResourceManager.Redis.Models.RedisInstanceDetails> * seq<Azure.ResourceManager.Redis.RedisPrivateEndpointConnectionData> -> Azure.ResourceManager.Redis.RedisData
Public Shared Function RedisData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional zones As IEnumerable(Of String) = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional redisConfiguration As RedisCommonConfiguration = Nothing, Optional redisVersion As String = Nothing, Optional enableNonSslPort As Nullable(Of Boolean) = Nothing, Optional replicasPerMaster As Nullable(Of Integer) = Nothing, Optional replicasPerPrimary As Nullable(Of Integer) = Nothing, Optional tenantSettings As IDictionary(Of String, String) = Nothing, Optional shardCount As Nullable(Of Integer) = Nothing, Optional minimumTlsVersion As Nullable(Of RedisTlsVersion) = Nothing, Optional publicNetworkAccess As Nullable(Of RedisPublicNetworkAccess) = Nothing, Optional updateChannel As Nullable(Of UpdateChannel) = Nothing, Optional isAccessKeyAuthenticationDisabled As Nullable(Of Boolean) = Nothing, Optional sku As RedisSku = Nothing, Optional subnetId As ResourceIdentifier = Nothing, Optional staticIP As IPAddress = Nothing, Optional provisioningState As Nullable(Of RedisProvisioningState) = Nothing, Optional hostName As String = Nothing, Optional port As Nullable(Of Integer) = Nothing, Optional sslPort As Nullable(Of Integer) = Nothing, Optional accessKeys As RedisAccessKeys = Nothing, Optional linkedServers As IEnumerable(Of SubResource) = Nothing, Optional instances As IEnumerable(Of RedisInstanceDetails) = Nothing, Optional privateEndpointConnections As IEnumerable(Of RedisPrivateEndpointConnectionData) = Nothing) As RedisData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

zones
IEnumerable<String>

A list of availability zones denoting where the resource needs to come from.

identity
ManagedServiceIdentity

The identity of the resource.

redisConfiguration
RedisCommonConfiguration

All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.

redisVersion
String

Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.

enableNonSslPort
Nullable<Boolean>

Specifies whether the non-ssl Redis server port (6379) is enabled.

replicasPerMaster
Nullable<Int32>

The number of replicas to be created per primary.

replicasPerPrimary
Nullable<Int32>

The number of replicas to be created per primary.

tenantSettings
IDictionary<String,String>

A dictionary of tenant settings.

shardCount
Nullable<Int32>

The number of shards to be created on a Premium Cluster Cache.

minimumTlsVersion
Nullable<RedisTlsVersion>

Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2').

publicNetworkAccess
Nullable<RedisPublicNetworkAccess>

Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'.

updateChannel
Nullable<UpdateChannel>

Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'.

isAccessKeyAuthenticationDisabled
Nullable<Boolean>

Authentication to Redis through access keys is disabled when set as true. Default value is false.

sku
RedisSku

The SKU of the Redis cache to deploy.

subnetId
ResourceIdentifier

The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1.

staticIP
IPAddress

Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.

provisioningState
Nullable<RedisProvisioningState>

Redis instance provisioning status.

hostName
String

Redis host name.

port
Nullable<Int32>

Redis non-SSL port.

sslPort
Nullable<Int32>

Redis SSL port.

accessKeys
RedisAccessKeys

The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache.

linkedServers
IEnumerable<SubResource>

List of the linked servers associated with the cache.

instances
IEnumerable<RedisInstanceDetails>

List of the Redis instances associated with the cache.

privateEndpointConnections
IEnumerable<RedisPrivateEndpointConnectionData>

List of private endpoint connection associated with the specified redis cache.

Returns

A new RedisData instance for mocking.

Applies to