Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Tenant"/> class.
 /// </summary>
 /// <param name="operations"> The operations object to copy the client parameters from. </param>
 /// <param name="tenantData"> The data model representing the generic azure resource. </param>
 internal Tenant(ArmResource operations, TenantData tenantData)
     : base(operations, ResourceIdentifier.Root)
 {
     _data                   = tenantData;
     HasData                 = true;
     _clientDiagnostics      = new ClientDiagnostics(ClientOptions);
     _providerRestOperations = new ProviderRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Guid.Empty.ToString(), BaseUri);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Tenant"/> class.
 /// </summary>
 /// <param name="operations"> The operations object to copy the client parameters from. </param>
 /// <param name="tenantData"> The data model representing the generic azure resource. </param>
 internal Tenant(OperationsBase operations, TenantData tenantData)
     : base(operations.ClientOptions, operations.Credential, operations.BaseUri, operations.Pipeline)
 {
     Data = tenantData;
 }
Ejemplo n.º 3
0
 /// <summary> Initializes a new instance of the <see cref = "Tenant"/> class. </summary>
 /// <param name="armClient"> The client parameters to use in these operations. </param>
 /// <param name="data"> The resource that is the target of operations. </param>
 internal Tenant(ArmClient armClient, TenantData data) : this(armClient, ResourceIdentifier.Root)
 {
     HasData = true;
     _data   = data;
 }