GetResourceGroup() публичный статический Метод

public static GetResourceGroup ( string resourceId ) : string
resourceId string
Результат string
Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ARSVault" /> class.
 /// </summary>
 /// <param name="vault">vault object</param>
 public ARSVault(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;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ARSVault" /> class.
 /// </summary>
 /// <param name="vault">vault object</param>
 public ARSVault(Vault vault)
 {
     this.ID                                             = vault.Id;
     this.Name                                           = vault.Name;
     this.Type                                           = vault.Type;
     this.Location                                       = vault.Location;
     this.ResourceGroupName                              = PSRecoveryServicesClient.GetResourceGroup(vault.Id);
     this.SubscriptionId                                 = PSRecoveryServicesClient.GetSubscriptionId(vault.Id);
     this.Properties                                     = new ARSVaultProperties();
     this.Properties.ProvisioningState                   = vault.Properties.ProvisioningState;
     this.Properties.PrivateEndpointStateForBackup       = vault.Properties.PrivateEndpointStateForBackup;
     this.Properties.PrivateEndpointStateForSiteRecovery = vault.Properties.PrivateEndpointStateForSiteRecovery;
 }