示例#1
0
 /// <summary> Initializes a new instance of the <see cref = "TagResource"/> class. </summary>
 /// <param name="options"> The client parameters to use in these operations. </param>
 /// <param name="resource"> The resource that is the target of operations. </param>
 internal TagResource(ArmResource options, TagResourceData resource)
     : base(options, resource.Id)
 {
     _data              = resource;
     HasData            = true;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new TagRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
 /// <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);
 }
示例#3
0
 internal TagResource(ArmResource options, ResourceIdentifier id)
     : base(options, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new TagRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PredefinedTagContainer"/> class.
 /// </summary>
 /// <param name="clientContext">Current client context. </param>
 /// <param name="parentId"> The parent subscription id. </param>
 internal PredefinedTagContainer(ClientContext clientContext, ResourceIdentifier parentId)
     : base(clientContext, parentId)
 {
     RestClient = new TagRestOperations(Diagnostics, Pipeline, parentId.SubscriptionId, BaseUri);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PredefinedTag"/> class.
 /// </summary>
 /// <param name="clientContext"></param>
 /// <param name="id"> The id of the subscription. </param>
 internal PredefinedTag(ClientContext clientContext, ResourceIdentifier id)
     : base(clientContext, id)
 {
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _restClient        = new TagRestOperations(_clientDiagnostics, Pipeline, ClientOptions, Id.SubscriptionId, BaseUri);
 }