Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ASRVault" /> class.
 /// </summary>
 /// <param name="vault">vault object</param>
 public ASRVault(VaultCreateResponse vault)
 {
     this.ID = vault.Id;
     this.Name = vault.Name;
     this.Type = vault.Type;
     this.Location = vault.Location;
     this.ResouceGroupName = PSRecoveryServicesClient.GetResourceGroup(vault.Id);
     this.SubscriptionId = PSRecoveryServicesClient.GetSubscriptionId(vault.Id);
     this.Properties = new ASRVaultProperties();
     this.Properties.ProvisioningState = vault.Properties.ProvisioningState;
 }