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;
 }