public async override Task <ArmResponse <NetworkInterface> > GetAsync(CancellationToken cancellationToken = default)
 {
     return(new PhArmResponse <NetworkInterface, Azure.ResourceManager.Network.Models.NetworkInterface>(
                await Operations.GetAsync(Id.ResourceGroup, Id.Name, null, cancellationToken),
                n =>
     {
         Resource = new NetworkInterfaceData(n);
         return new NetworkInterface(ClientOptions, Resource as NetworkInterfaceData);
     }));
 }
 public override ArmResponse <NetworkInterface> Get()
 {
     return(new PhArmResponse <NetworkInterface, Azure.ResourceManager.Network.Models.NetworkInterface>(
                Operations.Get(Id.ResourceGroup, Id.Name),
                n =>
     {
         Resource = new NetworkInterfaceData(n);
         return new NetworkInterface(ClientOptions, Resource as NetworkInterfaceData);
     }));
 }
        public ArmOperation <NetworkInterface> StartAddTag(string key, string value)
        {
            var patchable = new TagsObject();

            patchable.Tags[key] = value;
            return(new PhArmOperation <NetworkInterface, Azure.ResourceManager.Network.Models.NetworkInterface>(Operations.UpdateTags(Id.ResourceGroup, Id.Name, patchable),
                                                                                                                n =>
            {
                Resource = new NetworkInterfaceData(n);
                return new NetworkInterface(ClientOptions, Resource as NetworkInterfaceData);
            }));
        }
        public async Task <ArmOperation <NetworkInterface> > StartAddTagAsync(string key, string value, CancellationToken cancellationToken = default)
        {
            var patchable = new TagsObject();

            patchable.Tags[key] = value;
            return(new PhArmOperation <NetworkInterface, Azure.ResourceManager.Network.Models.NetworkInterface>(
                       await Operations.UpdateTagsAsync(Id.ResourceGroup, Id.Name, patchable, cancellationToken),
                       n =>
            {
                Resource = new NetworkInterfaceData(n);
                return new NetworkInterface(ClientOptions, Resource as NetworkInterfaceData);
            }));
        }
 internal NetworkInterface(AzureResourceManagerClientOptions options, NetworkInterfaceData resource)
     : base(options, resource.Id)
 {
     Data = resource;
 }
 internal NetworkInterface(ResourceOperationsBase options, NetworkInterfaceData resource)
     : base(options, resource.Id)
 {
     Data = resource;
 }
 public static NetworkInterface NetworkInterface(this ResourceGroupOperations resourceGroup, NetworkInterfaceData networkInterface)
 {
     return(new NetworkInterface(resourceGroup.ClientOptions, networkInterface));
 }