deleteBranchAutomergers
/branch/automerge/{projectKey}/{repoSlug}
Usage and SDK Samples
curl -X DELETE\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:7990/bitbucket/rest/workzoneresource/latest/branch/automerge/{projectKey}/{repoSlug}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String projectKey = projectKey_example; // String |
String repoSlug = repoSlug_example; // String |
RestBranchAutoMergers body = ; // RestBranchAutoMergers |
try {
apiInstance.deleteBranchAutomergers(projectKey, repoSlug, body);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteBranchAutomergers");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String projectKey = projectKey_example; // String |
String repoSlug = repoSlug_example; // String |
RestBranchAutoMergers body = ; // RestBranchAutoMergers |
try {
apiInstance.deleteBranchAutomergers(projectKey, repoSlug, body);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#deleteBranchAutomergers");
e.printStackTrace();
}
}
}
String *projectKey = projectKey_example; //
String *repoSlug = repoSlug_example; //
RestBranchAutoMergers *body = ; // (optional)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
[apiInstance deleteBranchAutomergersWith:projectKey
repoSlug:repoSlug
body:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var WorkzoneRestApi = require('workzone___rest_api');
var api = new WorkzoneRestApi.DefaultApi()
var projectKey = projectKey_example; // {{String}}
var repoSlug = repoSlug_example; // {{String}}
var opts = {
'body': // {{RestBranchAutoMergers}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.deleteBranchAutomergers(projectKeyrepoSlug, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class deleteBranchAutomergersExample
{
public void main()
{
var apiInstance = new DefaultApi();
var projectKey = projectKey_example; // String |
var repoSlug = repoSlug_example; // String |
var body = new RestBranchAutoMergers(); // RestBranchAutoMergers | (optional)
try
{
apiInstance.deleteBranchAutomergers(projectKey, repoSlug, body);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.deleteBranchAutomergers: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiDefaultApi();
$projectKey = projectKey_example; // String |
$repoSlug = repoSlug_example; // String |
$body = ; // RestBranchAutoMergers |
try {
$api_instance->deleteBranchAutomergers($projectKey, $repoSlug, $body);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->deleteBranchAutomergers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;
my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $projectKey = projectKey_example; # String |
my $repoSlug = repoSlug_example; # String |
my $body = WWW::SwaggerClient::Object::RestBranchAutoMergers->new(); # RestBranchAutoMergers |
eval {
$api_instance->deleteBranchAutomergers(projectKey => $projectKey, repoSlug => $repoSlug, body => $body);
};
if ($@) {
warn "Exception when calling DefaultApi->deleteBranchAutomergers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
projectKey = projectKey_example # String |
repoSlug = repoSlug_example # String |
body = # RestBranchAutoMergers | (optional)
try:
api_instance.delete_branch_automergers(projectKey, repoSlug, body=body)
except ApiException as e:
print("Exception when calling DefaultApi->deleteBranchAutomergers: %s\n" % e)
Parameters
Name | Description |
---|---|
projectKey* |
String
Required
|
repoSlug* |
String
Required
|
Name | Description |
---|---|
body |