Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PSHpcCacheSku"/> class.
 /// </summary>
 /// <param name="sku"> cache sku object.</param>
 public PSHpcCacheSku(StorageCacheModels.CacheSku sku)
 {
     if (sku != null)
     {
         this.Name = sku.Name;
     }
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the Cache class.
 /// </summary>
 /// <param name="tags">ARM tags as name/value pairs.</param>
 /// <param name="id">Resource ID of the Cache.</param>
 /// <param name="location">Region name string.</param>
 /// <param name="name">Name of Cache.</param>
 /// <param name="type">Type of the Cache;
 /// Microsoft.StorageCache/Cache</param>
 /// <param name="cacheSizeGB">The size of this Cache, in GB.</param>
 /// <param name="health">Health of the Cache.</param>
 /// <param name="mountAddresses">Array of IP addresses that can be used
 /// by clients mounting this Cache.</param>
 /// <param name="provisioningState">ARM provisioning state, see
 /// https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property.
 /// Possible values include: 'Succeeded', 'Failed', 'Cancelled',
 /// 'Creating', 'Deleting', 'Updating'</param>
 /// <param name="subnet">Subnet used for the Cache.</param>
 /// <param name="upgradeStatus">Upgrade status of the Cache.</param>
 /// <param name="sku">SKU for the Cache.</param>
 public Cache(object tags = default(object), string id = default(string), string location = default(string), string name = default(string), string type = default(string), int?cacheSizeGB = default(int?), CacheHealth health = default(CacheHealth), IList <string> mountAddresses = default(IList <string>), string provisioningState = default(string), string subnet = default(string), CacheUpgradeStatus upgradeStatus = default(CacheUpgradeStatus), CacheSku sku = default(CacheSku))
 {
     Tags              = tags;
     Id                = id;
     Location          = location;
     Name              = name;
     Type              = type;
     CacheSizeGB       = cacheSizeGB;
     Health            = health;
     MountAddresses    = mountAddresses;
     ProvisioningState = provisioningState;
     Subnet            = subnet;
     UpgradeStatus     = upgradeStatus;
     Sku               = sku;
     CustomInit();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the Cache class.
 /// </summary>
 /// <param name="tags">ARM tags as name/value pairs.</param>
 /// <param name="id">Resource ID of the Cache.</param>
 /// <param name="location">Region name string.</param>
 /// <param name="name">Name of Cache.</param>
 /// <param name="type">Type of the Cache;
 /// Microsoft.StorageCache/Cache</param>
 /// <param name="identity">The identity of the cache, if
 /// configured.</param>
 /// <param name="cacheSizeGB">The size of this Cache, in GB.</param>
 /// <param name="health">Health of the Cache.</param>
 /// <param name="mountAddresses">Array of IP addresses that can be used
 /// by clients mounting this Cache.</param>
 /// <param name="provisioningState">ARM provisioning state, see
 /// https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property.
 /// Possible values include: 'Succeeded', 'Failed', 'Cancelled',
 /// 'Creating', 'Deleting', 'Updating'</param>
 /// <param name="subnet">Subnet used for the Cache.</param>
 /// <param name="upgradeStatus">Upgrade status of the Cache.</param>
 /// <param name="networkSettings">Specifies network settings of the
 /// cache.</param>
 /// <param name="encryptionSettings">Specifies encryption settings of
 /// the cache.</param>
 /// <param name="securitySettings">Specifies security settings of the
 /// cache.</param>
 /// <param name="sku">SKU for the Cache.</param>
 public Cache(object tags = default(object), string id = default(string), string location = default(string), string name = default(string), string type = default(string), CacheIdentity identity = default(CacheIdentity), int?cacheSizeGB = default(int?), CacheHealth health = default(CacheHealth), IList <string> mountAddresses = default(IList <string>), string provisioningState = default(string), string subnet = default(string), CacheUpgradeStatus upgradeStatus = default(CacheUpgradeStatus), CacheNetworkSettings networkSettings = default(CacheNetworkSettings), CacheEncryptionSettings encryptionSettings = default(CacheEncryptionSettings), CacheSecuritySettings securitySettings = default(CacheSecuritySettings), CacheSku sku = default(CacheSku))
 {
     Tags               = tags;
     Id                 = id;
     Location           = location;
     Name               = name;
     Type               = type;
     Identity           = identity;
     CacheSizeGB        = cacheSizeGB;
     Health             = health;
     MountAddresses     = mountAddresses;
     ProvisioningState  = provisioningState;
     Subnet             = subnet;
     UpgradeStatus      = upgradeStatus;
     NetworkSettings    = networkSettings;
     EncryptionSettings = encryptionSettings;
     SecuritySettings   = securitySettings;
     Sku                = sku;
     CustomInit();
 }