Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PredefinedTag"/> class.
 /// </summary>
 /// <param name="operations"> The operations object to copy the client parameters from. </param>
 /// <param name="data"> The data model representing the generic azure resource. </param>
 internal PredefinedTag(ArmResource operations, PredefinedTagData data)
     : base(operations, data.Id)
 {
     _data              = data;
     HasData            = true;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new TagRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PredefinedTag"/> class.
 /// </summary>
 /// <param name="operations"> The operations object to copy the client parameters from. </param>
 /// <param name="data"> The data model representing the generic azure resource. </param>
 internal PredefinedTag(OperationsBase operations, PredefinedTagData data)
     : base(new ClientContext(operations.ClientOptions, operations.Credential, operations.BaseUri, operations.Pipeline), operations.Id)
 {
     Data = data;
 }