All URIs are relative to /api/v1
Method | HTTP request | Description |
---|---|---|
batch_delete_build_artifacts | POST /orgs/{orgid}/projects/{projectid}/artifacts/delete | Delete artifacts for a batch of builds |
cancel_all_builds | DELETE /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds | Cancel all builds |
cancel_build | DELETE /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds/{number} | Cancel build |
cancel_builds_for_org | DELETE /orgs/{orgid}/builds | Cancel builds for org |
create_share | POST /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds/{number}/share | Create a new link to share a project |
delete_all_build_artifacts | DELETE /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds/artifacts | Delete all artifacts associated with all non-favorited builds for a specified buildtargetid (_all is allowed). |
delete_build_artifacts | DELETE /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds/{number}/artifacts | Delete all artifacts associated with a specific build |
get_audit_log | GET /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds/{number}/auditlog | Get audit log |
get_audit_log_for_build_target | GET /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/auditlog | Get audit log |
get_build | GET /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds/{number} | Build Status |
get_build_log | GET /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds/{number}/log | Get build log |
get_build_steps | GET /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds/{number}/steps | Get the build steps for a given build |
get_builds | GET /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds | List all builds |
get_builds_for_org | GET /orgs/{orgid}/builds | List all builds for org |
get_share | GET /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds/{number}/share | Get the share link |
modify_share | PUT /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds/{number}/share | Modify existing share link |
resign_build_artifact | POST /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds/{number}/resign | Re-sign a build artifact |
revoke_share | DELETE /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds/{number}/share | Revoke a shared link |
start_builds | POST /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds | Create new build |
update_build | PUT /orgs/{orgid}/projects/{projectid}/buildtargets/{buildtargetid}/builds/{number} | Update build information |
str batch_delete_build_artifacts(body, orgid, projectid)
Delete artifacts for a batch of builds
Delete all artifacts associated with the builds identified by the provided build target ids and build numbers. Builds marked as do not delete or that are currently building will be ignored.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
body = unity_cloud_build_api.ArtifactsDeleteBody() # ArtifactsDeleteBody | Options to specify what builds to delete
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
try:
# Delete artifacts for a batch of builds
api_response = api_instance.batch_delete_build_artifacts(body, orgid, projectid)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->batch_delete_build_artifacts: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | ArtifactsDeleteBody | Options to specify what builds to delete | |
orgid | str | Organization identifier | |
projectid | str | Project identifier |
str
- Content-Type: application/json
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str cancel_all_builds(orgid, projectid, buildtargetid)
Cancel all builds
Cancel all builds in progress for this build target (or all targets, if '_all' is specified as the buildtargetid). Canceling an already finished build will do nothing and respond successfully.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
try:
# Cancel all builds
api_response = api_instance.cancel_all_builds(orgid, projectid, buildtargetid)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->cancel_all_builds: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name |
str
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str cancel_build(orgid, projectid, buildtargetid, number)
Cancel build
Cancel a build in progress. Canceling an already finished build will do nothing and respond successfully.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
number = 'number_example' # str | Build number or in some cases _all
try:
# Cancel build
api_response = api_instance.cancel_build(orgid, projectid, buildtargetid, number)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->cancel_build: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
number | str | Build number or in some cases _all |
str
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str cancel_builds_for_org(orgid)
Cancel builds for org
Cancel all in progress builds for an organization. Canceling an already finished build will do nothing and respond successfully.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
try:
# Cancel builds for org
api_response = api_instance.cancel_builds_for_org(orgid)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->cancel_builds_for_org: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier |
str
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object create_share(orgid, projectid, buildtargetid, number, share_expiry=share_expiry)
Create a new link to share a project
Create a new short link to share a project. If this is called when a share already exists, that share will be revoked and a new one created.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
number = 'number_example' # str | Build number or in some cases _all
share_expiry = 'share_expiry_example' # str | (optional)
try:
# Create a new link to share a project
api_response = api_instance.create_share(orgid, projectid, buildtargetid, number, share_expiry=share_expiry)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->create_share: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
number | str | Build number or in some cases _all | |
share_expiry | str | [optional] |
object
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str delete_all_build_artifacts(orgid, projectid, buildtargetid)
Delete all artifacts associated with all non-favorited builds for a specified buildtargetid (_all is allowed).
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
try:
# Delete all artifacts associated with all non-favorited builds for a specified buildtargetid (_all is allowed).
api_response = api_instance.delete_all_build_artifacts(orgid, projectid, buildtargetid)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->delete_all_build_artifacts: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name |
str
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str delete_build_artifacts(orgid, projectid, buildtargetid, number)
Delete all artifacts associated with a specific build
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
number = 'number_example' # str | Build number or in some cases _all
try:
# Delete all artifacts associated with a specific build
api_response = api_instance.delete_build_artifacts(orgid, projectid, buildtargetid, number)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->delete_build_artifacts: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
number | str | Build number or in some cases _all |
str
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[InlineResponse2006] get_audit_log(orgid, projectid, buildtargetid, number, per_page=per_page, page=page)
Get audit log
Retrieve a list of settings changes between the last and current build.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
number = 'number_example' # str | Build number or in some cases _all
per_page = 25.0 # float | Number of audit log records to retrieve (optional) (default to 25.0)
page = 1.0 # float | Skip to page number, based on per_page value (optional) (default to 1.0)
try:
# Get audit log
api_response = api_instance.get_audit_log(orgid, projectid, buildtargetid, number, per_page=per_page, page=page)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->get_audit_log: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
number | str | Build number or in some cases _all | |
per_page | float | Number of audit log records to retrieve | [optional] [default to 25.0] |
page | float | Skip to page number, based on per_page value | [optional] [default to 1.0] |
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[InlineResponse2006] get_audit_log_for_build_target(orgid, projectid, buildtargetid, per_page=per_page, page=page)
Get audit log
Retrieve a list of historical settings changes for this build target.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
per_page = 25.0 # float | Number of audit log records to retrieve (optional) (default to 25.0)
page = 1.0 # float | Skip to page number, based on per_page value (optional) (default to 1.0)
try:
# Get audit log
api_response = api_instance.get_audit_log_for_build_target(orgid, projectid, buildtargetid, per_page=per_page, page=page)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->get_audit_log_for_build_target: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
per_page | float | Number of audit log records to retrieve | [optional] [default to 25.0] |
page | float | Skip to page number, based on per_page value | [optional] [default to 1.0] |
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object get_build(orgid, projectid, buildtargetid, number, include=include)
Build Status
Retrieve information for a specific build. A Build resource contains information related to a build attempt for a build target, including the build number, changeset, build times, and other pertinent data.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'# Configure HTTP basic authorization: filetoken
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
number = 'number_example' # str | Build number or in some cases _all
include = 'include_example' # str | Extra fields to include in the response (optional)
try:
# Build Status
api_response = api_instance.get_build(orgid, projectid, buildtargetid, number, include=include)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->get_build: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
number | str | Build number or in some cases _all | |
include | str | Extra fields to include in the response | [optional] |
object
apikey, filetoken, permissions
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv, application/json-accepted
[Back to top] [Back to API list] [Back to Model list] [Back to README]
get_build_log(orgid, projectid, buildtargetid, number, offsetlines=offsetlines, linenumbers=linenumbers, last_line_number=last_line_number, compact=compact, with_html=with_html)
Get build log
Retrieve the plain text log for a specifc build.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
number = 'number_example' # str | Build number or in some cases _all
offsetlines = 1.0 # float | Stream log from the given line number (optional) (default to 1.0)
linenumbers = false # bool | Include log line numbers in the text output (optional) (default to false)
last_line_number = 0.0 # float | The last line number seen, numbering will continue from here (optional) (default to 0.0)
compact = false # bool | Return the compact log, showing only errors and warnings (optional) (default to false)
with_html = false # bool | Surround important lines (errors, warnings) with SPAN and CSS markup (optional) (default to false)
try:
# Get build log
api_instance.get_build_log(orgid, projectid, buildtargetid, number, offsetlines=offsetlines, linenumbers=linenumbers, last_line_number=last_line_number, compact=compact, with_html=with_html)
except ApiException as e:
print("Exception when calling BuildsApi->get_build_log: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
number | str | Build number or in some cases _all | |
offsetlines | float | Stream log from the given line number | [optional] [default to 1.0] |
linenumbers | bool | Include log line numbers in the text output | [optional] [default to false] |
last_line_number | float | The last line number seen, numbering will continue from here | [optional] [default to 0.0] |
compact | bool | Return the compact log, showing only errors and warnings | [optional] [default to false] |
with_html | bool | Surround important lines (errors, warnings) with SPAN and CSS markup | [optional] [default to false] |
void (empty response body)
- Content-Type: Not defined
- Accept: text/plain-full, text/plain-compact, text/html-compact, application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[InlineResponse20012] get_build_steps(orgid, projectid, buildtargetid, number)
Get the build steps for a given build
Retrieves all build steps for a build, this replaces the old method where we would manually download the build report artifacts and allows us to add more functionality into build steps.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
number = 'number_example' # str | Build number or in some cases _all
try:
# Get the build steps for a given build
api_response = api_instance.get_build_steps(orgid, projectid, buildtargetid, number)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->get_build_steps: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
number | str | Build number or in some cases _all |
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[InlineResponse20011] get_builds(orgid, projectid, buildtargetid, include=include, per_page=per_page, page=page, build_status=build_status, platform=platform, show_deleted=show_deleted, only_favorites=only_favorites, clean_build=clean_build)
List all builds
List all running and finished builds, sorted by build number (optionally paginating the results). Use '_all' as the buildtargetid to get all configured build targets. The response includes a Content-Range header that identifies the range of results returned and the total number of results matching the given query parameters.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
include = 'include_example' # str | Extra fields to include in the response (optional)
per_page = 25.0 # float | Number of audit log records to retrieve (optional) (default to 25.0)
page = 1.0 # float | Skip to page number, based on per_page value (optional) (default to 1.0)
build_status = 'build_status_example' # str | Query for only builds of a specific status (optional)
platform = 'platform_example' # str | Query for only builds of a specific platform (optional)
show_deleted = false # bool | Query for builds that have been deleted (optional) (default to false)
only_favorites = false # bool | Query for builds that have been favorited (optional) (default to false)
clean_build = true # bool | Query for builds that have either been built clean or using caches (optional)
try:
# List all builds
api_response = api_instance.get_builds(orgid, projectid, buildtargetid, include=include, per_page=per_page, page=page, build_status=build_status, platform=platform, show_deleted=show_deleted, only_favorites=only_favorites, clean_build=clean_build)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->get_builds: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
include | str | Extra fields to include in the response | [optional] |
per_page | float | Number of audit log records to retrieve | [optional] [default to 25.0] |
page | float | Skip to page number, based on per_page value | [optional] [default to 1.0] |
build_status | str | Query for only builds of a specific status | [optional] |
platform | str | Query for only builds of a specific platform | [optional] |
show_deleted | bool | Query for builds that have been deleted | [optional] [default to false] |
only_favorites | bool | Query for builds that have been favorited | [optional] [default to false] |
clean_build | bool | Query for builds that have either been built clean or using caches | [optional] |
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[InlineResponse20011] get_builds_for_org(orgid, include=include, per_page=per_page, page=page, build_status=build_status, platform=platform, show_deleted=show_deleted, only_favorites=only_favorites, clean_build=clean_build)
List all builds for org
List all running and finished builds, sorted by build number (optionally paginating the results). The response includes a Content-Range header that identifies the range of results returned and the total number of results matching the given query parameters.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
include = 'include_example' # str | Extra fields to include in the response (optional)
per_page = 25.0 # float | Number of audit log records to retrieve (optional) (default to 25.0)
page = 1.0 # float | Skip to page number, based on per_page value (optional) (default to 1.0)
build_status = 'build_status_example' # str | Query for only builds of a specific status (optional)
platform = 'platform_example' # str | Query for only builds of a specific platform (optional)
show_deleted = false # bool | Query for builds that have been deleted (optional) (default to false)
only_favorites = false # bool | Query for builds that have been favorited (optional) (default to false)
clean_build = true # bool | Query for builds that have either been built clean or using caches (optional)
try:
# List all builds for org
api_response = api_instance.get_builds_for_org(orgid, include=include, per_page=per_page, page=page, build_status=build_status, platform=platform, show_deleted=show_deleted, only_favorites=only_favorites, clean_build=clean_build)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->get_builds_for_org: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
include | str | Extra fields to include in the response | [optional] |
per_page | float | Number of audit log records to retrieve | [optional] [default to 25.0] |
page | float | Skip to page number, based on per_page value | [optional] [default to 1.0] |
build_status | str | Query for only builds of a specific status | [optional] |
platform | str | Query for only builds of a specific platform | [optional] |
show_deleted | bool | Query for builds that have been deleted | [optional] [default to false] |
only_favorites | bool | Query for builds that have been favorited | [optional] [default to false] |
clean_build | bool | Query for builds that have either been built clean or using caches | [optional] |
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object get_share(orgid, projectid, buildtargetid, number)
Get the share link
Gets a share link if it exists
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
number = 'number_example' # str | Build number or in some cases _all
try:
# Get the share link
api_response = api_instance.get_share(orgid, projectid, buildtargetid, number)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->get_share: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
number | str | Build number or in some cases _all |
object
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object modify_share(orgid, projectid, buildtargetid, number, share_expiry=share_expiry)
Modify existing share link
Modify an existing share link. Only intended for updating the Expiry without revoking the link.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
number = 'number_example' # str | Build number or in some cases _all
share_expiry = 'share_expiry_example' # str | (optional)
try:
# Modify existing share link
api_response = api_instance.modify_share(orgid, projectid, buildtargetid, number, share_expiry=share_expiry)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->modify_share: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
number | str | Build number or in some cases _all | |
share_expiry | str | [optional] |
object
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[InlineResponse20011] resign_build_artifact(orgid, projectid, buildtargetid, number)
Re-sign a build artifact
Re-sign a build artifact using the most recent credentials associated with the buildtarget.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
number = 'number_example' # str | Build number or in some cases _all
try:
# Re-sign a build artifact
api_response = api_instance.resign_build_artifact(orgid, projectid, buildtargetid, number)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->resign_build_artifact: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
number | str | Build number or in some cases _all |
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv, application/json-accepted, application/json-already-building
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str revoke_share(orgid, projectid, buildtargetid, number)
Revoke a shared link
Revoke a shared link, both {buildtargetid} and {number} may use _all to revoke all share links for a given buildtarget or entire project.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
number = 'number_example' # str | Build number or in some cases _all
try:
# Revoke a shared link
api_response = api_instance.revoke_share(orgid, projectid, buildtargetid, number)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->revoke_share: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
number | str | Build number or in some cases _all |
str
- Content-Type: Not defined
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[InlineResponse20011] start_builds(orgid, projectid, buildtargetid, body=body)
Create new build
Start the build process for this build target (or all targets, if '_all' is specified as the buildtargetid), if there is not one currently in process. If a build is currently in process that information will be related in the 'error' field.
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
body = unity_cloud_build_api.BuildtargetidBuildsBody() # BuildtargetidBuildsBody | Options for starting the builds. You can specify a platform and label only when
starting a local (_local) build. A local build will return immediately and be
marked as successful.
(optional)
try:
# Create new build
api_response = api_instance.start_builds(orgid, projectid, buildtargetid, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->start_builds: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
body | BuildtargetidBuildsBody | Options for starting the builds. You can specify a platform and label only when | |
starting a local (_local) build. A local build will return immediately and be | |||
marked as successful. | |||
[optional] |
- Content-Type: application/json
- Accept: application/json, text/plain, text/html, text/csv, application/json-accepted, application/json-already-building
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object update_build(body, orgid, projectid, buildtargetid, number)
Update build information
from __future__ import print_function
import time
import unity_cloud_build_api
from unity_cloud_build_api.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = unity_cloud_build_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure OAuth2 access token for authorization: permissions
configuration = unity_cloud_build_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = unity_cloud_build_api.BuildsApi(unity_cloud_build_api.ApiClient(configuration))
body = unity_cloud_build_api.BuildsNumberBody() # BuildsNumberBody | Options for build update
orgid = 'orgid_example' # str | Organization identifier
projectid = 'projectid_example' # str | Project identifier
buildtargetid = 'buildtargetid_example' # str | unique id auto-generated from the build target name
number = 'number_example' # str | Build number or in some cases _all
try:
# Update build information
api_response = api_instance.update_build(body, orgid, projectid, buildtargetid, number)
pprint(api_response)
except ApiException as e:
print("Exception when calling BuildsApi->update_build: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | BuildsNumberBody | Options for build update | |
orgid | str | Organization identifier | |
projectid | str | Project identifier | |
buildtargetid | str | unique id auto-generated from the build target name | |
number | str | Build number or in some cases _all |
object
- Content-Type: application/json
- Accept: application/json, text/plain, text/html, text/csv, application/json-accepted
[Back to top] [Back to API list] [Back to Model list] [Back to README]