示例#1
0
 /// <summary>
 /// Initializes a new instance of the RedisUpdateParameters class.
 /// </summary>
 /// <param name="redisConfiguration">All Redis Settings. Few possible
 /// keys:
 /// rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
 /// etc.</param>
 /// <param name="redisVersion">Redis version. Only major version will
 /// be used in PUT/PATCH request with current valid values: (4,
 /// 6)</param>
 /// <param name="enableNonSslPort">Specifies whether the non-ssl Redis
 /// server port (6379) is enabled.</param>
 /// <param name="replicasPerMaster">The number of replicas to be
 /// created per primary.</param>
 /// <param name="replicasPerPrimary">The number of replicas to be
 /// created per primary.</param>
 /// <param name="tenantSettings">A dictionary of tenant
 /// settings</param>
 /// <param name="shardCount">The number of shards to be created on a
 /// Premium Cluster Cache.</param>
 /// <param name="minimumTlsVersion">Optional: requires clients to use a
 /// specified TLS version (or higher) to connect (e,g, '1.0', '1.1',
 /// '1.2'). Possible values include: '1.0', '1.1', '1.2'</param>
 /// <param name="publicNetworkAccess">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'. Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="sku">The SKU of the Redis cache to deploy.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="identity">The identity of the resource.</param>
 public RedisUpdateParameters(RedisCommonPropertiesRedisConfiguration redisConfiguration = default(RedisCommonPropertiesRedisConfiguration), string redisVersion = default(string), bool?enableNonSslPort = default(bool?), int?replicasPerMaster = default(int?), int?replicasPerPrimary = default(int?), IDictionary <string, string> tenantSettings = default(IDictionary <string, string>), int?shardCount = default(int?), string minimumTlsVersion = default(string), string publicNetworkAccess = default(string), Sku sku = default(Sku), IDictionary <string, string> tags = default(IDictionary <string, string>), ManagedServiceIdentity identity = default(ManagedServiceIdentity))
 {
     RedisConfiguration  = redisConfiguration;
     RedisVersion        = redisVersion;
     EnableNonSslPort    = enableNonSslPort;
     ReplicasPerMaster   = replicasPerMaster;
     ReplicasPerPrimary  = replicasPerPrimary;
     TenantSettings      = tenantSettings;
     ShardCount          = shardCount;
     MinimumTlsVersion   = minimumTlsVersion;
     PublicNetworkAccess = publicNetworkAccess;
     Sku      = sku;
     Tags     = tags;
     Identity = identity;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the RedisCreateParameters class.
 /// </summary>
 /// <param name="sku">The SKU of the Redis cache to deploy.</param>
 /// <param name="location">The geo-location where the resource
 /// lives</param>
 /// <param name="redisConfiguration">All Redis Settings. Few possible
 /// keys:
 /// rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
 /// etc.</param>
 /// <param name="redisVersion">Redis version. Only major version will
 /// be used in PUT/PATCH request with current valid values: (4,
 /// 6)</param>
 /// <param name="enableNonSslPort">Specifies whether the non-ssl Redis
 /// server port (6379) is enabled.</param>
 /// <param name="replicasPerMaster">The number of replicas to be
 /// created per primary.</param>
 /// <param name="replicasPerPrimary">The number of replicas to be
 /// created per primary.</param>
 /// <param name="tenantSettings">A dictionary of tenant
 /// settings</param>
 /// <param name="shardCount">The number of shards to be created on a
 /// Premium Cluster Cache.</param>
 /// <param name="minimumTlsVersion">Optional: requires clients to use a
 /// specified TLS version (or higher) to connect (e,g, '1.0', '1.1',
 /// '1.2'). Possible values include: '1.0', '1.1', '1.2'</param>
 /// <param name="publicNetworkAccess">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'. Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="subnetId">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</param>
 /// <param name="staticIP">Static IP address. Optionally, may be
 /// specified when deploying a Redis cache inside an existing Azure
 /// Virtual Network; auto assigned by default.</param>
 /// <param name="zones">A list of availability zones denoting where the
 /// resource needs to come from.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="identity">The identity of the resource.</param>
 public RedisCreateParameters(Sku sku, string location, RedisCommonPropertiesRedisConfiguration redisConfiguration = default(RedisCommonPropertiesRedisConfiguration), string redisVersion = default(string), bool?enableNonSslPort = default(bool?), int?replicasPerMaster = default(int?), int?replicasPerPrimary = default(int?), IDictionary <string, string> tenantSettings = default(IDictionary <string, string>), int?shardCount = default(int?), string minimumTlsVersion = default(string), string publicNetworkAccess = default(string), string subnetId = default(string), string staticIP = default(string), IList <string> zones = default(IList <string>), IDictionary <string, string> tags = default(IDictionary <string, string>), ManagedServiceIdentity identity = default(ManagedServiceIdentity))
 {
     RedisConfiguration  = redisConfiguration;
     RedisVersion        = redisVersion;
     EnableNonSslPort    = enableNonSslPort;
     ReplicasPerMaster   = replicasPerMaster;
     ReplicasPerPrimary  = replicasPerPrimary;
     TenantSettings      = tenantSettings;
     ShardCount          = shardCount;
     MinimumTlsVersion   = minimumTlsVersion;
     PublicNetworkAccess = publicNetworkAccess;
     Sku      = sku;
     SubnetId = subnetId;
     StaticIP = staticIP;
     Zones    = zones;
     Location = location;
     Tags     = tags;
     Identity = identity;
     CustomInit();
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the RedisResource class.
 /// </summary>
 /// <param name="location">The geo-location where the resource
 /// lives</param>
 /// <param name="sku">The SKU of the Redis cache to deploy.</param>
 /// <param name="id">Fully qualified resource ID for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. E.g.
 /// "Microsoft.Compute/virtualMachines" or
 /// "Microsoft.Storage/storageAccounts"</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="redisConfiguration">All Redis Settings. Few possible
 /// keys:
 /// rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta,maxmemory-policy,notify-keyspace-events,maxmemory-samples,slowlog-log-slower-than,slowlog-max-len,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value
 /// etc.</param>
 /// <param name="redisVersion">Redis version. Only major version will
 /// be used in PUT/PATCH request with current valid values: (4,
 /// 6)</param>
 /// <param name="enableNonSslPort">Specifies whether the non-ssl Redis
 /// server port (6379) is enabled.</param>
 /// <param name="replicasPerMaster">The number of replicas to be
 /// created per primary.</param>
 /// <param name="replicasPerPrimary">The number of replicas to be
 /// created per primary.</param>
 /// <param name="tenantSettings">A dictionary of tenant
 /// settings</param>
 /// <param name="shardCount">The number of shards to be created on a
 /// Premium Cluster Cache.</param>
 /// <param name="minimumTlsVersion">Optional: requires clients to use a
 /// specified TLS version (or higher) to connect (e,g, '1.0', '1.1',
 /// '1.2'). Possible values include: '1.0', '1.1', '1.2'</param>
 /// <param name="publicNetworkAccess">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'. Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="subnetId">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</param>
 /// <param name="staticIP">Static IP address. Optionally, may be
 /// specified when deploying a Redis cache inside an existing Azure
 /// Virtual Network; auto assigned by default.</param>
 /// <param name="provisioningState">Redis instance provisioning status.
 /// Possible values include: 'Creating', 'Deleting', 'Disabled',
 /// 'Failed', 'Linking', 'Provisioning', 'RecoveringScaleFailure',
 /// 'Scaling', 'Succeeded', 'Unlinking', 'Unprovisioning',
 /// 'Updating'</param>
 /// <param name="hostName">Redis host name.</param>
 /// <param name="port">Redis non-SSL port.</param>
 /// <param name="sslPort">Redis SSL port.</param>
 /// <param name="accessKeys">The keys of the Redis cache - not set if
 /// this object is not the response to Create or Update redis
 /// cache</param>
 /// <param name="linkedServers">List of the linked servers associated
 /// with the cache</param>
 /// <param name="instances">List of the Redis instances associated with
 /// the cache</param>
 /// <param name="privateEndpointConnections">List of private endpoint
 /// connection associated with the specified redis cache</param>
 /// <param name="zones">A list of availability zones denoting where the
 /// resource needs to come from.</param>
 /// <param name="identity">The identity of the resource.</param>
 public RedisResource(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), RedisCommonPropertiesRedisConfiguration redisConfiguration = default(RedisCommonPropertiesRedisConfiguration), string redisVersion = default(string), bool?enableNonSslPort = default(bool?), int?replicasPerMaster = default(int?), int?replicasPerPrimary = default(int?), IDictionary <string, string> tenantSettings = default(IDictionary <string, string>), int?shardCount = default(int?), string minimumTlsVersion = default(string), string publicNetworkAccess = default(string), string subnetId = default(string), string staticIP = default(string), string provisioningState = default(string), string hostName = default(string), int?port = default(int?), int?sslPort = default(int?), RedisAccessKeys accessKeys = default(RedisAccessKeys), IList <RedisLinkedServer> linkedServers = default(IList <RedisLinkedServer>), IList <RedisInstanceDetails> instances = default(IList <RedisInstanceDetails>), IList <PrivateEndpointConnection> privateEndpointConnections = default(IList <PrivateEndpointConnection>), IList <string> zones = default(IList <string>), ManagedServiceIdentity identity = default(ManagedServiceIdentity))
     : base(location, id, name, type, tags)
 {
     RedisConfiguration  = redisConfiguration;
     RedisVersion        = redisVersion;
     EnableNonSslPort    = enableNonSslPort;
     ReplicasPerMaster   = replicasPerMaster;
     ReplicasPerPrimary  = replicasPerPrimary;
     TenantSettings      = tenantSettings;
     ShardCount          = shardCount;
     MinimumTlsVersion   = minimumTlsVersion;
     PublicNetworkAccess = publicNetworkAccess;
     Sku                        = sku;
     SubnetId                   = subnetId;
     StaticIP                   = staticIP;
     ProvisioningState          = provisioningState;
     HostName                   = hostName;
     Port                       = port;
     SslPort                    = sslPort;
     AccessKeys                 = accessKeys;
     LinkedServers              = linkedServers;
     Instances                  = instances;
     PrivateEndpointConnections = privateEndpointConnections;
     Zones                      = zones;
     Identity                   = identity;
     CustomInit();
 }