Add credit to your project

REST: POST /cloud/project/{serviceName}/credit
@param code [required] Voucher code
@param serviceName [required] The project id
491774
public void project_serviceName_credit_POST(String serviceName, String code) throws IOException {
		String qPath = "/cloud/project/{serviceName}/credit";
		StringBuilder sb = path(qPath, serviceName);
		HashMap<String, Object>o = new HashMap<String, Object>();
		addBody(o, "code", code);
		exec(qPath, "POST", sb.toString(), o);
	}
225944
public void putService(K serviceName, V service){
        if(cache.containsKey(serviceName)){
            cache.remove(serviceName);
        }
        cache.put(serviceName, service);
    }
77589
public void serviceName_PUT(String serviceName, net.minidev.ovh.api.timeseries.OvhProject body) throws IOException {
		String qPath = "/paas/timeseries/{serviceName}";
		StringBuilder sb = path(qPath, serviceName);
		exec(qPath, "PUT", sb.toString(), body);
	}
1166778
def create_project(self, key, name, description=""):
        
        url = 'rest/api/1.0/projects'
        data = {"key": key,
                "name": name,
                "description": description
                }
        return self.post(url, data=data)
590637
public OvhInstanceVnc project_serviceName_instance_instanceId_vnc_POST(String serviceName, String instanceId) throws IOException {
		String qPath = "/cloud/project/{serviceName}/instance/{instanceId}/vnc";
		StringBuilder sb = path(qPath, serviceName, instanceId);
		String resp = exec(qPath, "POST", sb.toString(), null);
		return convertTo(resp, OvhInstanceVnc.class);
	}
603900
public void project_serviceName_storage_containerId_PUT(String serviceName, String containerId, OvhTypeEnum containerType) throws IOException {
		String qPath = "/cloud/project/{serviceName}/storage/{containerId}";
		StringBuilder sb = path(qPath, serviceName, containerId);
		HashMap<String, Object>o = new HashMap<String, Object>();
		addBody(o, "containerType", containerType);
		exec(qPath, "PUT", sb.toString(), o);
	}
141721
public void billingAccount_easyPabx_serviceName_PUT(String billingAccount, String serviceName, OvhEasyPabx body) throws IOException {
		String qPath = "/telephony/{billingAccount}/easyPabx/{serviceName}";
		StringBuilder sb = path(qPath, billingAccount, serviceName);
		exec(qPath, "PUT", sb.toString(), body);
	}
113067
def add(self, name, path=None, **kwargs):
        
        path = path or kwargs.pop('default_path', None)

        if not self._path_is_valid(path):
            return

        if not self._is_unique(name, path):
            p = Project.select().where(
                (Project.name == name) |
                (Project.path == path)
            )[0]
            self._print(self._ERROR_PROJECT_EXISTS.format(name, p.path), 'red')
            return

        Project.create(name=name, path=path)
        self._print(self._SUCCESS_PROJECT_ADDED.format(name), 'green')
415406
@Post("/metadata/{projectName}/tokens")
    public CompletableFuture<Revision> addToken(@Param("projectName") String projectName,
                                                IdentifierWithRole request,
                                                Author author) {
        final ProjectRole role = toProjectRole(request.role());
        return mds.findTokenByAppId(request.id())
                  .thenCompose(token -> mds.addToken(author, projectName, token.appId(), role));
    }
678872
public OvhVolume project_serviceName_volume_volumeId_PUT(String serviceName, String volumeId, String description, String name) throws IOException {
		String qPath = "/cloud/project/{serviceName}/volume/{volumeId}";
		StringBuilder sb = path(qPath, serviceName, volumeId);
		HashMap<String, Object>o = new HashMap<String, Object>();
		addBody(o, "description", description);
		addBody(o, "name", name);
		String resp = exec(qPath, "PUT", sb.toString(), o);
		return convertTo(resp, OvhVolume.class);
	}
308822
public OvhApplicationAccess project_serviceName_instance_instanceId_applicationAccess_POST(String serviceName, String instanceId) throws IOException {
		String qPath = "/cloud/project/{serviceName}/instance/{instanceId}/applicationAccess";
		StringBuilder sb = path(qPath, serviceName, instanceId);
		String resp = exec(qPath, "POST", sb.toString(), null);
		return convertTo(resp, OvhApplicationAccess.class);
	}
649443
def add_accounts_to_project(accounts_query, project):
    

    query = accounts_query.filter(date_deleted__isnull=True)

    for account in query:
        add_account_to_project(account, project)
680688
def create_project(self, name, description):
        
        return self._create_item_response(
            self.data_service.create_project(name, description),
            Project)
346309
public void billingAccount_service_serviceName_offerChange_POST(String billingAccount, String serviceName, String offer) throws IOException {
		String qPath = "/telephony/{billingAccount}/service/{serviceName}/offerChange";
		StringBuilder sb = path(qPath, billingAccount, serviceName);
		HashMap<String, Object>o = new HashMap<String, Object>();
		addBody(o, "offer", offer);
		exec(qPath, "POST", sb.toString(), o);
	}
777298
public void addProjectResource(String resourceName) {

        if ((m_throwable != null) || (m_projectName == null)) {
            return;
        }
        if (m_projectResources == null) {
            m_projectResources = new ArrayList<String>();
        }
        m_projectResources.add(resourceName);
    }
718330
public OvhIPLoadbalancing project_serviceName_ipLoadbalancing_id_GET(String serviceName, String id) throws IOException {
		String qPath = "/cloud/project/{serviceName}/ipLoadbalancing/{id}";
		StringBuilder sb = path(qPath, serviceName, id);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhIPLoadbalancing.class);
	}
207287
public function addBalance($code, $balance)
    {
        $payload = (object)[];
        $payload->amount = $balance;

        return $this->client->post("/vouchers/" . rawurlencode($code) . "/balance", $payload, null);
    }