public FileServiceProperties ParseBlobServiceProperties() { return(new FileServiceProperties { Cors = this.Cors is null ? null : this.Cors.ParseCorsRules(), ShareDeleteRetentionPolicy = this.ShareDeleteRetentionPolicy is null ? null : this.ShareDeleteRetentionPolicy.ParseDeleteRetentionPolicy(), });
public BlobServiceProperties ParseBlobServiceProperties() { return(new BlobServiceProperties { Cors = this.Cors is null ? null : this.Cors.ParseCorsRules(), DefaultServiceVersion = this.DefaultServiceVersion, DeleteRetentionPolicy = this.DeleteRetentionPolicy is null ? null : this.DeleteRetentionPolicy.ParseDeleteRetentionPolicy(), });
public PSFileServiceProperties(FileServiceProperties policy) { this.ResourceGroupName = (new ResourceIdentifier(policy.Id)).ResourceGroupName; this.StorageAccountName = PSBlobServiceProperties.GetStorageAccountNameFromResourceId(policy.Id); this.Id = policy.Id; this.Name = policy.Name; this.Type = policy.Type; this.Cors = policy.Cors is null ? null : new PSCorsRules(policy.Cors); this.ShareDeleteRetentionPolicy = policy.ShareDeleteRetentionPolicy is null ? null : new PSDeleteRetentionPolicy(policy.ShareDeleteRetentionPolicy); }