/// <summary>
 /// Sends a PUT to '/api/group/{id}'
 /// </summary>
 /// <param name="id">a path parameter (no description)</param>
 /// <param name="model">a body parameter (no description)</param>
 /// <returns></returns>
 public static RestOperation UpdateGroup(string id, CreateOrUpdateGroup model)
 {
     return new RestOperation("PUT", "api/group/" + id + "")
         {
             Content = model
         };
 }
 /// <summary>
 /// Sends a POST to '/api/groups'
 /// </summary>
 /// <param name="model">a body parameter (no description)</param>
 /// <returns></returns>
 public static RestOperation CreateGroup(CreateOrUpdateGroup model)
 {
     return new RestOperation("POST", "api/groups")
         {
             Content = model
         };
 }
partial         void CopyExtraPropertiesToClone(CreateOrUpdateGroup clone, bool includeLocalProperties);
 public CreateOrUpdateGroup Clone(bool includeLocalProperties)
 {
     var c = new CreateOrUpdateGroup
             {
                 Description = Description,
                 Id = Id,
                 Name = Name,
             };
     CopyExtraPropertiesToClone(c, includeLocalProperties);
     return c;
 }
		/// <summary>
        /// Sends a POST to '/api/groups'  (asynchronous)
        /// </summary>
        /// <param name="model">a body parameter (no description)</param>
        /// <returns></returns>
        public virtual async Task<Group> CreateGroupAsync(CreateOrUpdateGroup model)
        {
            var operation = Operations.CreateGroup(model);
			var response = await _client.SendAsync(operation.BuildRequest(_client));
			EnsureSuccess(response);
			var result = await response.Content.ReadAsAsync<Group>();
			return result;
						
		}
        /// <summary>
        /// Sends a POST to '/api/groups'
        /// </summary>
        /// <param name="model">a body parameter (no description)</param>
        /// <returns></returns>
        public virtual Group CreateGroup(CreateOrUpdateGroup model)
        {
            var operation = Operations.CreateGroup(model);
			var response = _client.SendAsync(operation.BuildRequest(_client)).Result;
			EnsureSuccess(response);
			var result = response.Content.ReadAsAsync<Group>().Result;
			return result;
			
		}