/// <summary> /// Update a tag Updates the tag **tagId**. /// </summary> /// <param name="tagId">The identifier of a tag.</param> /// <param name="tagBodyUpdate">The updated tag</param> /// <param name="fields">A list of field names. You can use this parameter to restrict the fields returned within a response if, for example, you want to save on overall bandwidth. The list applies to a returned individual entity or entries within a collection. If the API method also supports the **include** parameter, then the fields specified in the **include** parameter are returned in addition to those specified in the **fields** parameter. </param> /// <returns>TagEntry</returns> public TagEntry UpdateTag(string tagId, TagBody tagBodyUpdate, List <string> fields) { // verify the required parameter 'tagId' is set if (tagId == null) { throw new ApiException(400, "Missing required parameter 'tagId' when calling UpdateTag"); } // verify the required parameter 'tagBodyUpdate' is set if (tagBodyUpdate == null) { throw new ApiException(400, "Missing required parameter 'tagBodyUpdate' when calling UpdateTag"); } var path = "/tags/{tagId}"; path = path.Replace("{format}", "json"); path = path.Replace("{" + "tagId" + "}", ApiClient.ParameterToString(tagId)); var queryParams = new Dictionary <String, String>(); var headerParams = new Dictionary <String, String>(); var formParams = new Dictionary <String, String>(); var fileParams = new Dictionary <String, FileParameter>(); String postBody = null; if (fields != null) { queryParams.Add("fields", ApiClient.ParameterToString(fields)); // query parameter } postBody = ApiClient.Serialize(tagBodyUpdate); // http body (model) parameter // authentication setting, if any String[] authSettings = new String[] { "basicAuth" }; // make the HTTP request IRestResponse response = (IRestResponse)ApiClient.CallApi(path, Method.PUT, queryParams, postBody, headerParams, formParams, fileParams, authSettings); if (((int)response.StatusCode) >= 400) { throw new ApiException((int)response.StatusCode, "Error calling UpdateTag: " + response.Content, response.Content); } else if (((int)response.StatusCode) == 0) { throw new ApiException((int)response.StatusCode, "Error calling UpdateTag: " + response.ErrorMessage, response.ErrorMessage); } return((TagEntry)ApiClient.Deserialize(response.Content, typeof(TagEntry), response.Headers)); }
public static TagBody onmouseover(this TagBody tag, string value) { tag.OnMouseOver = value; return(tag); }
public static TagBody onmouseup(this TagBody tag, string value) { tag.OnMouseUp = value; return(tag); }
public static TagBody onmousedown(this TagBody tag, string value) { tag.OnMouseDown = value; return(tag); }
public static TagBody ondblclick(this TagBody tag, string value) { tag.OnDblClick = value; return(tag); }
public static TagBody dir(this TagBody tag, Dir value) { tag.Dir = value; return(tag); }
public static TagBody xmllang(this TagBody tag, string value) { tag.XmlLang = value; return(tag); }
public static TagBody lang(this TagBody tag, LangCode value) { tag.Lang = value; return(tag); }
public static TagBody title(this TagBody tag, string value) { tag.Title = value; return(tag); }
public static TagBody @class(this TagBody tag, string value) { tag.Class = value; return(tag); }
public static TagBody id(this TagBody tag, string value) { tag.Id = value; return(tag); }
public static TagBody onunload(this TagBody tag, string value) { tag.OnUnload = value; return(tag); }
public static TagBody onkeyup(this TagBody tag, string value) { tag.OnKeyUp = value; return(tag); }
public static TagBody onkeydown(this TagBody tag, string value) { tag.OnKeyDown = value; return(tag); }
public static TagBody onkeypress(this TagBody tag, string value) { tag.OnKeyPress = value; return(tag); }
public static TagBody onmousemove(this TagBody tag, string value) { tag.OnMouseMove = value; return(tag); }