/// <summary> /// Sends a POST to '/api/externalsystemlinks' /// </summary> /// <param name="model">a body parameter (no description)</param> /// <param name="expand">a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.)</param> /// <returns></returns> public static RestOperation CreateExternalSystemLink(CreateExternalSystemLink model, string expand = null) { return new RestOperation("POST", "api/externalsystemlinks") { Content = model, QueryParams = { {"$expand", expand}, } }; }
public CreateExternalSystemLink Clone(bool includeLocalProperties) { var c = new CreateExternalSystemLink { Destination = Destination, Enabled = Enabled, Name = Name, Source = Source, }; CopyExtraPropertiesToClone(c, includeLocalProperties); return c; }
partial void CopyExtraPropertiesToClone(CreateExternalSystemLink clone, bool includeLocalProperties);
/// <summary> /// Sends a POST to '/api/externalsystemlinks' (asynchronous) /// </summary> /// <param name="model">a body parameter (no description)</param> /// <param name="expand">a query parameter (Allows the specifying of eager-loading of related data which is returned in-line within the results of the request.)</param> /// <returns></returns> public virtual async Task<ExternalSystemLink> CreateExternalSystemLinkAsync(CreateExternalSystemLink model, string expand = null) { var operation = Operations.CreateExternalSystemLink(model, expand); var response = await _client.SendAsync(operation.BuildRequest(_client)); EnsureSuccess(response); var result = await response.Content.ReadAsAsync<ExternalSystemLink>(); return result; }