code: public static base_response rename(nitro_service client, servicegroup resource, String new_servicegroupname) throws Exception {
  		servicegroup renameresource = new servicegroup();
  		renameresource.servicegroupname = resource.servicegroupname;
  		return renameresource.rename_resource(client,new_servicegroupname);
  	}
docs: Use this API to rename a servicegroup resource.