bitbucket-api-client-lib

PropertiesApi

All URIs are relative to https://api.bitbucket.org/2.0

Method HTTP request Description
deleteCommitHostedPropertyValue DELETE /repositories/{workspace}/{repo_slug}/commit/{commit}/properties/{app_key}/{property_name}  
deletePullRequestHostedPropertyValue DELETE /repositories/{workspace}/{repo_slug}/pullrequests/{pullrequest_id}/properties/{app_key}/{property_name}  
deleteRepositoryHostedPropertyValue DELETE /repositories/{workspace}/{repo_slug}/properties/{app_key}/{property_name}  
deleteUserHostedPropertyValue DELETE /users/{selected_user}/properties/{app_key}/{property_name}  
getCommitHostedPropertyValue GET /repositories/{workspace}/{repo_slug}/commit/{commit}/properties/{app_key}/{property_name}  
getPullRequestHostedPropertyValue GET /repositories/{workspace}/{repo_slug}/pullrequests/{pullrequest_id}/properties/{app_key}/{property_name}  
getRepositoryHostedPropertyValue GET /repositories/{workspace}/{repo_slug}/properties/{app_key}/{property_name}  
retrieveUserHostedPropertyValue GET /users/{selected_user}/properties/{app_key}/{property_name}  
updateCommitHostedPropertyValue PUT /repositories/{workspace}/{repo_slug}/commit/{commit}/properties/{app_key}/{property_name}  
updatePullRequestHostedPropertyValue PUT /repositories/{workspace}/{repo_slug}/pullrequests/{pullrequest_id}/properties/{app_key}/{property_name}  
updateRepositoryHostedPropertyValue PUT /repositories/{workspace}/{repo_slug}/properties/{app_key}/{property_name}  
updateUserHostedPropertyValue PUT /users/{selected_user}/properties/{app_key}/{property_name}  

deleteCommitHostedPropertyValue

deleteCommitHostedPropertyValue(workspace, repoSlug, commit, appKey, propertyName)

Delete an application property value stored against a commit.

Example

// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.PropertiesApi;


PropertiesApi apiInstance = new PropertiesApi();
String workspace = "workspace_example"; // String | The repository container; either the workspace slug or the UUID in curly braces.
String repoSlug = "repoSlug_example"; // String | The repository.
String commit = "commit_example"; // String | The commit.
String appKey = "appKey_example"; // String | The key of the Connect app.
String propertyName = "propertyName_example"; // String | The name of the property.
try {
    apiInstance.deleteCommitHostedPropertyValue(workspace, repoSlug, commit, appKey, propertyName);
} catch (ApiException e) {
    System.err.println("Exception when calling PropertiesApi#deleteCommitHostedPropertyValue");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
workspace String The repository container; either the workspace slug or the UUID in curly braces.  
repoSlug String The repository.  
commit String The commit.  
appKey String The key of the Connect app.  
propertyName String The name of the property.  

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

deletePullRequestHostedPropertyValue

deletePullRequestHostedPropertyValue(workspace, repoSlug, pullrequestId, appKey, propertyName)

Delete an application property value stored against a pull request.

Example

// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.PropertiesApi;


PropertiesApi apiInstance = new PropertiesApi();
String workspace = "workspace_example"; // String | The repository container; either the workspace slug or the UUID in curly braces.
String repoSlug = "repoSlug_example"; // String | The repository.
String pullrequestId = "pullrequestId_example"; // String | The pull request ID.
String appKey = "appKey_example"; // String | The key of the Connect app.
String propertyName = "propertyName_example"; // String | The name of the property.
try {
    apiInstance.deletePullRequestHostedPropertyValue(workspace, repoSlug, pullrequestId, appKey, propertyName);
} catch (ApiException e) {
    System.err.println("Exception when calling PropertiesApi#deletePullRequestHostedPropertyValue");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
workspace String The repository container; either the workspace slug or the UUID in curly braces.  
repoSlug String The repository.  
pullrequestId String The pull request ID.  
appKey String The key of the Connect app.  
propertyName String The name of the property.  

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

deleteRepositoryHostedPropertyValue

deleteRepositoryHostedPropertyValue(workspace, repoSlug, appKey, propertyName)

Delete an application property value stored against a repository.

Example

// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.PropertiesApi;


PropertiesApi apiInstance = new PropertiesApi();
String workspace = "workspace_example"; // String | The repository container; either the workspace slug or the UUID in curly braces.
String repoSlug = "repoSlug_example"; // String | The repository.
String appKey = "appKey_example"; // String | The key of the Connect app.
String propertyName = "propertyName_example"; // String | The name of the property.
try {
    apiInstance.deleteRepositoryHostedPropertyValue(workspace, repoSlug, appKey, propertyName);
} catch (ApiException e) {
    System.err.println("Exception when calling PropertiesApi#deleteRepositoryHostedPropertyValue");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
workspace String The repository container; either the workspace slug or the UUID in curly braces.  
repoSlug String The repository.  
appKey String The key of the Connect app.  
propertyName String The name of the property.  

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

deleteUserHostedPropertyValue

deleteUserHostedPropertyValue(selectedUser, appKey, propertyName)

Delete an application property value stored against a user.

Example

// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.PropertiesApi;


PropertiesApi apiInstance = new PropertiesApi();
String selectedUser = "selectedUser_example"; // String | Either the UUID of the account surrounded by curly-braces, for example `{account UUID}`, OR an Atlassian Account ID.
String appKey = "appKey_example"; // String | The key of the Connect app.
String propertyName = "propertyName_example"; // String | The name of the property.
try {
    apiInstance.deleteUserHostedPropertyValue(selectedUser, appKey, propertyName);
} catch (ApiException e) {
    System.err.println("Exception when calling PropertiesApi#deleteUserHostedPropertyValue");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
selectedUser String Either the UUID of the account surrounded by curly-braces, for example `{account UUID}`, OR an Atlassian Account ID.  
appKey String The key of the Connect app.  
propertyName String The name of the property.  

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

getCommitHostedPropertyValue

getCommitHostedPropertyValue(workspace, repoSlug, commit, appKey, propertyName)

Retrieve an application property value stored against a commit.

Example

// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.PropertiesApi;


PropertiesApi apiInstance = new PropertiesApi();
String workspace = "workspace_example"; // String | The repository container; either the workspace slug or the UUID in curly braces.
String repoSlug = "repoSlug_example"; // String | The repository.
String commit = "commit_example"; // String | The commit.
String appKey = "appKey_example"; // String | The key of the Connect app.
String propertyName = "propertyName_example"; // String | The name of the property.
try {
    apiInstance.getCommitHostedPropertyValue(workspace, repoSlug, commit, appKey, propertyName);
} catch (ApiException e) {
    System.err.println("Exception when calling PropertiesApi#getCommitHostedPropertyValue");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
workspace String The repository container; either the workspace slug or the UUID in curly braces.  
repoSlug String The repository.  
commit String The commit.  
appKey String The key of the Connect app.  
propertyName String The name of the property.  

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

getPullRequestHostedPropertyValue

getPullRequestHostedPropertyValue(workspace, repoSlug, pullrequestId, appKey, propertyName)

Retrieve an application property value stored against a pull request.

Example

// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.PropertiesApi;


PropertiesApi apiInstance = new PropertiesApi();
String workspace = "workspace_example"; // String | The repository container; either the workspace slug or the UUID in curly braces.
String repoSlug = "repoSlug_example"; // String | The repository.
String pullrequestId = "pullrequestId_example"; // String | The pull request ID.
String appKey = "appKey_example"; // String | The key of the Connect app.
String propertyName = "propertyName_example"; // String | The name of the property.
try {
    apiInstance.getPullRequestHostedPropertyValue(workspace, repoSlug, pullrequestId, appKey, propertyName);
} catch (ApiException e) {
    System.err.println("Exception when calling PropertiesApi#getPullRequestHostedPropertyValue");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
workspace String The repository container; either the workspace slug or the UUID in curly braces.  
repoSlug String The repository.  
pullrequestId String The pull request ID.  
appKey String The key of the Connect app.  
propertyName String The name of the property.  

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

getRepositoryHostedPropertyValue

getRepositoryHostedPropertyValue(workspace, repoSlug, appKey, propertyName)

Retrieve an application property value stored against a repository.

Example

// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.PropertiesApi;


PropertiesApi apiInstance = new PropertiesApi();
String workspace = "workspace_example"; // String | The repository container; either the workspace slug or the UUID in curly braces.
String repoSlug = "repoSlug_example"; // String | The repository.
String appKey = "appKey_example"; // String | The key of the Connect app.
String propertyName = "propertyName_example"; // String | The name of the property.
try {
    apiInstance.getRepositoryHostedPropertyValue(workspace, repoSlug, appKey, propertyName);
} catch (ApiException e) {
    System.err.println("Exception when calling PropertiesApi#getRepositoryHostedPropertyValue");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
workspace String The repository container; either the workspace slug or the UUID in curly braces.  
repoSlug String The repository.  
appKey String The key of the Connect app.  
propertyName String The name of the property.  

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

retrieveUserHostedPropertyValue

retrieveUserHostedPropertyValue(selectedUser, appKey, propertyName)

Retrieve an application property value stored against a user.

Example

// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.PropertiesApi;


PropertiesApi apiInstance = new PropertiesApi();
String selectedUser = "selectedUser_example"; // String | Either the UUID of the account surrounded by curly-braces, for example `{account UUID}`, OR an Atlassian Account ID.
String appKey = "appKey_example"; // String | The key of the Connect app.
String propertyName = "propertyName_example"; // String | The name of the property.
try {
    apiInstance.retrieveUserHostedPropertyValue(selectedUser, appKey, propertyName);
} catch (ApiException e) {
    System.err.println("Exception when calling PropertiesApi#retrieveUserHostedPropertyValue");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
selectedUser String Either the UUID of the account surrounded by curly-braces, for example `{account UUID}`, OR an Atlassian Account ID.  
appKey String The key of the Connect app.  
propertyName String The name of the property.  

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

updateCommitHostedPropertyValue

updateCommitHostedPropertyValue(workspace, repoSlug, commit, appKey, propertyName)

Update an application property value stored against a commit.

Example

// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.PropertiesApi;


PropertiesApi apiInstance = new PropertiesApi();
String workspace = "workspace_example"; // String | The repository container; either the workspace slug or the UUID in curly braces.
String repoSlug = "repoSlug_example"; // String | The repository.
String commit = "commit_example"; // String | The commit.
String appKey = "appKey_example"; // String | The key of the Connect app.
String propertyName = "propertyName_example"; // String | The name of the property.
try {
    apiInstance.updateCommitHostedPropertyValue(workspace, repoSlug, commit, appKey, propertyName);
} catch (ApiException e) {
    System.err.println("Exception when calling PropertiesApi#updateCommitHostedPropertyValue");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
workspace String The repository container; either the workspace slug or the UUID in curly braces.  
repoSlug String The repository.  
commit String The commit.  
appKey String The key of the Connect app.  
propertyName String The name of the property.  

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

updatePullRequestHostedPropertyValue

updatePullRequestHostedPropertyValue(workspace, repoSlug, pullrequestId, appKey, propertyName)

Update an application property value stored against a pull request.

Example

// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.PropertiesApi;


PropertiesApi apiInstance = new PropertiesApi();
String workspace = "workspace_example"; // String | The repository container; either the workspace slug or the UUID in curly braces.
String repoSlug = "repoSlug_example"; // String | The repository.
String pullrequestId = "pullrequestId_example"; // String | The pull request ID.
String appKey = "appKey_example"; // String | The key of the Connect app.
String propertyName = "propertyName_example"; // String | The name of the property.
try {
    apiInstance.updatePullRequestHostedPropertyValue(workspace, repoSlug, pullrequestId, appKey, propertyName);
} catch (ApiException e) {
    System.err.println("Exception when calling PropertiesApi#updatePullRequestHostedPropertyValue");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
workspace String The repository container; either the workspace slug or the UUID in curly braces.  
repoSlug String The repository.  
pullrequestId String The pull request ID.  
appKey String The key of the Connect app.  
propertyName String The name of the property.  

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

updateRepositoryHostedPropertyValue

updateRepositoryHostedPropertyValue(workspace, repoSlug, appKey, propertyName)

Update an application property value stored against a repository.

Example

// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.PropertiesApi;


PropertiesApi apiInstance = new PropertiesApi();
String workspace = "workspace_example"; // String | The repository container; either the workspace slug or the UUID in curly braces.
String repoSlug = "repoSlug_example"; // String | The repository.
String appKey = "appKey_example"; // String | The key of the Connect app.
String propertyName = "propertyName_example"; // String | The name of the property.
try {
    apiInstance.updateRepositoryHostedPropertyValue(workspace, repoSlug, appKey, propertyName);
} catch (ApiException e) {
    System.err.println("Exception when calling PropertiesApi#updateRepositoryHostedPropertyValue");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
workspace String The repository container; either the workspace slug or the UUID in curly braces.  
repoSlug String The repository.  
appKey String The key of the Connect app.  
propertyName String The name of the property.  

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

updateUserHostedPropertyValue

updateUserHostedPropertyValue(selectedUser, appKey, propertyName)

Update an application property value stored against a user.

Example

// Import classes:
//import com.rappi.bitbucket.client.invoker.ApiException;
//import com.rappi.bitbucket.client.api.PropertiesApi;


PropertiesApi apiInstance = new PropertiesApi();
String selectedUser = "selectedUser_example"; // String | Either the UUID of the account surrounded by curly-braces, for example `{account UUID}`, OR an Atlassian Account ID.
String appKey = "appKey_example"; // String | The key of the Connect app.
String propertyName = "propertyName_example"; // String | The name of the property.
try {
    apiInstance.updateUserHostedPropertyValue(selectedUser, appKey, propertyName);
} catch (ApiException e) {
    System.err.println("Exception when calling PropertiesApi#updateUserHostedPropertyValue");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
selectedUser String Either the UUID of the account surrounded by curly-braces, for example `{account UUID}`, OR an Atlassian Account ID.  
appKey String The key of the Connect app.  
propertyName String The name of the property.  

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers