Exemple #1
0
 public FileServiceProperties ParseBlobServiceProperties()
 {
     return(new FileServiceProperties
     {
         Cors = this.Cors is null ? null : this.Cors.ParseCorsRules(),
         ShareDeleteRetentionPolicy = this.ShareDeleteRetentionPolicy is null ? null : this.ShareDeleteRetentionPolicy.ParseDeleteRetentionPolicy(),
     });
Exemple #2
0
 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(),
     });
Exemple #3
0
 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);
 }