/// <summary>
 /// Sends a PUT to '/api/organisation/{organisationId}/relationshiptype/{key}/relationship/{id}'
 /// </summary>
 /// <param name="organisationId">a path parameter (no description)</param>
 /// <param name="key">a path parameter (no description)</param>
 /// <param name="id">a path parameter (no description)</param>
 /// <param name="model">a body parameter (no description)</param>
 /// <returns></returns>
 public static RestOperation UpdateRelationship(string organisationId, string key, string id, UpdateRelationship model)
 {
     return new RestOperation("PUT", "api/organisation/" + organisationId + "/relationshiptype/" + key + "/relationship/" + id + "")
         {
             Content = model
         };
 }
 public UpdateRelationship Clone(bool includeLocalProperties)
 {
     var c = new UpdateRelationship
             {
                 RelationshipDirection = RelationshipDirection,
             };
     CopyExtraPropertiesToClone(c, includeLocalProperties);
     return c;
 }
partial         void CopyExtraPropertiesToClone(UpdateRelationship clone, bool includeLocalProperties);
		/// <summary>
        /// Sends a PUT to '/api/organisation/{organisationId}/relationshiptype/{key}/relationship/{id}'  (asynchronous)
        /// </summary>
        /// <param name="organisationId">a path parameter (no description)</param>
        /// <param name="key">a path parameter (no description)</param>
        /// <param name="id">a path parameter (no description)</param>
        /// <param name="model">a body parameter (no description)</param>
        /// <returns></returns>
        public virtual async Task<Relationship> UpdateRelationshipAsync(string organisationId, string key, string id, UpdateRelationship model)
        {
            var operation = Operations.UpdateRelationship(organisationId, key, id, model);
			var response = await _client.SendAsync(operation.BuildRequest(_client));
			EnsureSuccess(response);
			var result = await response.Content.ReadAsAsync<Relationship>();
			return result;
						
		}