public RedisCacheAttributes(RedisGetResponse cache, string resourceGroupName) { Id = cache.Id; Location = cache.Location; Name = cache.Name; Type = cache.Type; HostName = cache.Properties.HostName; Port = cache.Properties.Port; ProvisioningState = cache.Properties.ProvisioningState; SslPort = cache.Properties.SslPort; MaxMemoryPolicy = cache.Properties.MaxMemoryPolicy; RedisVersion = cache.Properties.RedisVersion; Size = SizeConverter.GetSizeInUserSpecificFormat(cache.Properties.Sku.Family, cache.Properties.Sku.Capacity); Sku = cache.Properties.Sku.Name; ResourceGroupName = resourceGroupName; }
public RedisCacheAttributes(RedisGetResponse cache, string resourceGroupName) : this(cache.Resource, resourceGroupName) {}