示例#1
0
 public PSShare(StorageModels.FileShare share)
 {
     this.ResourceGroupName  = ParseResourceGroupFromId(share.Id);
     this.StorageAccountName = ParseStorageAccountNameFromId(share.Id);
     this.Id                     = share.Id;
     this.Name                   = share.Name;
     this.Type                   = share.Type;
     this.Metadata               = share.Metadata;
     this.Etag                   = share.Etag;
     this.LastModifiedTime       = share.LastModifiedTime;
     this.QuotaGiB               = share.ShareQuota;
     this.EnabledProtocols       = share.EnabledProtocols;
     this.RootSquash             = share.RootSquash;
     this.Version                = share.Version;
     this.Deleted                = share.Deleted;
     this.DeletedTime            = share.DeletedTime;
     this.RemainingRetentionDays = share.RemainingRetentionDays;
     this.EnabledProtocols       = share.EnabledProtocols;
     this.RootSquash             = share.RootSquash;
     this.ShareUsageBytes        = share.ShareUsageBytes;
     this.AccessTier             = share.AccessTier;
     this.AccessTierChangeTime   = share.AccessTierChangeTime;
     this.AccessTierStatus       = share.AccessTierStatus;
     this.SnapshotTime           = share.SnapshotTime;
 }
示例#2
0
 public PSShare(StorageModels.FileShare share)
 {
     this.ResourceGroupName  = ParseResourceGroupFromId(share.Id);
     this.StorageAccountName = ParseStorageAccountNameFromId(share.Id);
     this.Id               = share.Id;
     this.Name             = share.Name;
     this.Type             = share.Type;
     this.Metadata         = share.Metadata;
     this.Etag             = share.Etag;
     this.LastModifiedTime = share.LastModifiedTime;
     this.QuotaGiB         = share.ShareQuota;
 }