Skip to content
Ona Docs

Configurations

ValidateRunnerConfiguration
runners.configurations.validate(ConfigurationValidateParams**kwargs) -> ConfigurationValidateResponse
POST/gitpod.v1.RunnerConfigurationService/ValidateRunnerConfiguration
ModelsExpand Collapse
class EnvironmentClassValidationResult:
configuration_errors: Optional[List[FieldValidationError]]
error: Optional[str]
key: Optional[str]
description_error: Optional[str]
display_name_error: Optional[str]
valid: Optional[bool]
class FieldValidationError:
error: Optional[str]
key: Optional[str]
class ScmIntegrationValidationResult:
host_error: Optional[str]
oauth_error: Optional[str]
pat_error: Optional[str]
scm_id_error: Optional[str]
valid: Optional[bool]
class ConfigurationValidateResponse:
environment_class: Optional[EnvironmentClassValidationResult]
configuration_errors: Optional[List[FieldValidationError]]
error: Optional[str]
key: Optional[str]
description_error: Optional[str]
display_name_error: Optional[str]
valid: Optional[bool]
scm_integration: Optional[ScmIntegrationValidationResult]
host_error: Optional[str]
oauth_error: Optional[str]
pat_error: Optional[str]
scm_id_error: Optional[str]
valid: Optional[bool]

ConfigurationsEnvironment Classes

CreateEnvironmentClass
runners.configurations.environment_classes.create(EnvironmentClassCreateParams**kwargs) -> EnvironmentClassCreateResponse
POST/gitpod.v1.RunnerConfigurationService/CreateEnvironmentClass
ListEnvironmentClasses
runners.configurations.environment_classes.list(EnvironmentClassListParams**kwargs) -> SyncEnvironmentClassesPage[EnvironmentClass]
POST/gitpod.v1.RunnerConfigurationService/ListEnvironmentClasses
GetEnvironmentClass
runners.configurations.environment_classes.retrieve(EnvironmentClassRetrieveParams**kwargs) -> EnvironmentClassRetrieveResponse
POST/gitpod.v1.RunnerConfigurationService/GetEnvironmentClass
UpdateEnvironmentClass
runners.configurations.environment_classes.update(EnvironmentClassUpdateParams**kwargs) -> object
POST/gitpod.v1.RunnerConfigurationService/UpdateEnvironmentClass
ModelsExpand Collapse
class EnvironmentClassCreateResponse:
id: Optional[str]
class EnvironmentClassRetrieveResponse:
environment_class: Optional[EnvironmentClass]
id: str

id is the unique identifier of the environment class

runner_id: str

runner_id is the unique identifier of the runner the environment class belongs to

configuration: Optional[List[FieldValue]]

configuration describes the configuration of the environment class

key: Optional[str]
value: Optional[str]
description: Optional[str]

description is a human readable description of the environment class

maxLength200
minLength3
display_name: Optional[str]

display_name is the human readable name of the environment class

maxLength127
minLength3
enabled: Optional[bool]

enabled indicates whether the environment class can be used to create new environments.

ConfigurationsHost Authentication Tokens

CreateHostAuthenticationToken
runners.configurations.host_authentication_tokens.create(HostAuthenticationTokenCreateParams**kwargs) -> HostAuthenticationTokenCreateResponse
POST/gitpod.v1.RunnerConfigurationService/CreateHostAuthenticationToken
DeleteHostAuthenticationToken
runners.configurations.host_authentication_tokens.delete(HostAuthenticationTokenDeleteParams**kwargs) -> object
POST/gitpod.v1.RunnerConfigurationService/DeleteHostAuthenticationToken
ListHostAuthenticationTokens
runners.configurations.host_authentication_tokens.list(HostAuthenticationTokenListParams**kwargs) -> SyncTokensPage[HostAuthenticationToken]
POST/gitpod.v1.RunnerConfigurationService/ListHostAuthenticationTokens
GetHostAuthenticationToken
runners.configurations.host_authentication_tokens.retrieve(HostAuthenticationTokenRetrieveParams**kwargs) -> HostAuthenticationTokenRetrieveResponse
POST/gitpod.v1.RunnerConfigurationService/GetHostAuthenticationToken
UpdateHostAuthenticationToken
runners.configurations.host_authentication_tokens.update(HostAuthenticationTokenUpdateParams**kwargs) -> object
POST/gitpod.v1.RunnerConfigurationService/UpdateHostAuthenticationToken
ModelsExpand Collapse
class HostAuthenticationToken:
id: str
expires_at: Optional[datetime]

A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one.

All minutes are 60 seconds long. Leap seconds are “smeared” so that no leap second table is needed for interpretation, using a 24-hour linear smear.

The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to and from RFC 3339 date strings.

Examples

Example 1: Compute Timestamp from POSIX time().

 Timestamp timestamp;
 timestamp.set_seconds(time(NULL));
 timestamp.set_nanos(0);

Example 2: Compute Timestamp from POSIX gettimeofday().

 struct timeval tv;
 gettimeofday(&tv, NULL);

 Timestamp timestamp;
 timestamp.set_seconds(tv.tv_sec);
 timestamp.set_nanos(tv.tv_usec * 1000);

Example 3: Compute Timestamp from Win32 GetSystemTimeAsFileTime().

 FILETIME ft;
 GetSystemTimeAsFileTime(&ft);
 UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;

 // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
 // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
 Timestamp timestamp;
 timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
 timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));

Example 4: Compute Timestamp from Java System.currentTimeMillis().

 long millis = System.currentTimeMillis();

 Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
     .setNanos((int) ((millis % 1000) * 1000000)).build();

Example 5: Compute Timestamp from Java Instant.now().

 Instant now = Instant.now();

 Timestamp timestamp =
     Timestamp.newBuilder().setSeconds(now.getEpochSecond())
         .setNanos(now.getNano()).build();

Example 6: Compute Timestamp from current time in Python.

 timestamp = Timestamp()
 timestamp.GetCurrentTime()

JSON Mapping

In JSON format, the Timestamp type is encoded as a string in the RFC 3339 format. That is, the format is “{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z” where {year} is always expressed using four digits while {month}, {day}, {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), are optional. The “Z” suffix indicates the timezone (“UTC”); the timezone is required. A proto3 JSON serializer should always use UTC (as indicated by “Z”) when printing the Timestamp type and a proto3 JSON parser should be able to accept both UTC and other timezones (as indicated by an offset).

For example, “2017-01-15T01:30:15.01Z” encodes 15.01 seconds past 01:30 UTC on January 15, 2017.

In JavaScript, one can convert a Date object to this format using the standard toISOString() method. In Python, a standard datetime.datetime object can be converted to this format using strftime with the time format spec ‘%Y-%m-%dT%H:%M:%S.%fZ’. Likewise, in Java, one can use the Joda Time’s ISODateTimeFormat.dateTime() to obtain a formatter capable of generating timestamps in this format.

formatdate-time
host: Optional[str]
integration_id: Optional[str]

links to integration instance

runner_id: Optional[str]
scopes: Optional[List[str]]

token permissions

source: Optional[HostAuthenticationTokenSource]

auth_type

One of the following:
"HOST_AUTHENTICATION_TOKEN_SOURCE_UNSPECIFIED"
"HOST_AUTHENTICATION_TOKEN_SOURCE_OAUTH"
"HOST_AUTHENTICATION_TOKEN_SOURCE_PAT"
subject: Optional[Subject]

Subject identifies the principal (user or service account) for the token Note: actual token and refresh_token values are retrieved via GetHostAuthenticationTokenValue API

id: Optional[str]

id is the UUID of the subject

formatuuid
principal: Optional[Principal]

Principal is the principal of the subject

One of the following:
"PRINCIPAL_UNSPECIFIED"
"PRINCIPAL_ACCOUNT"
"PRINCIPAL_USER"
"PRINCIPAL_RUNNER"
"PRINCIPAL_ENVIRONMENT"
"PRINCIPAL_SERVICE_ACCOUNT"
"PRINCIPAL_RUNNER_MANAGER"
Deprecateduser_id: Optional[str]

Deprecated: Use principal_id and principal_type instead principal (user)

Literal["HOST_AUTHENTICATION_TOKEN_SOURCE_UNSPECIFIED", "HOST_AUTHENTICATION_TOKEN_SOURCE_OAUTH", "HOST_AUTHENTICATION_TOKEN_SOURCE_PAT"]
One of the following:
"HOST_AUTHENTICATION_TOKEN_SOURCE_UNSPECIFIED"
"HOST_AUTHENTICATION_TOKEN_SOURCE_OAUTH"
"HOST_AUTHENTICATION_TOKEN_SOURCE_PAT"
class HostAuthenticationTokenCreateResponse:
id: str
expires_at: Optional[datetime]

A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one.

All minutes are 60 seconds long. Leap seconds are “smeared” so that no leap second table is needed for interpretation, using a 24-hour linear smear.

The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to and from RFC 3339 date strings.

Examples

Example 1: Compute Timestamp from POSIX time().

 Timestamp timestamp;
 timestamp.set_seconds(time(NULL));
 timestamp.set_nanos(0);

Example 2: Compute Timestamp from POSIX gettimeofday().

 struct timeval tv;
 gettimeofday(&tv, NULL);

 Timestamp timestamp;
 timestamp.set_seconds(tv.tv_sec);
 timestamp.set_nanos(tv.tv_usec * 1000);

Example 3: Compute Timestamp from Win32 GetSystemTimeAsFileTime().

 FILETIME ft;
 GetSystemTimeAsFileTime(&ft);
 UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;

 // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
 // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
 Timestamp timestamp;
 timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
 timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));

Example 4: Compute Timestamp from Java System.currentTimeMillis().

 long millis = System.currentTimeMillis();

 Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
     .setNanos((int) ((millis % 1000) * 1000000)).build();

Example 5: Compute Timestamp from Java Instant.now().

 Instant now = Instant.now();

 Timestamp timestamp =
     Timestamp.newBuilder().setSeconds(now.getEpochSecond())
         .setNanos(now.getNano()).build();

Example 6: Compute Timestamp from current time in Python.

 timestamp = Timestamp()
 timestamp.GetCurrentTime()

JSON Mapping

In JSON format, the Timestamp type is encoded as a string in the RFC 3339 format. That is, the format is “{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z” where {year} is always expressed using four digits while {month}, {day}, {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), are optional. The “Z” suffix indicates the timezone (“UTC”); the timezone is required. A proto3 JSON serializer should always use UTC (as indicated by “Z”) when printing the Timestamp type and a proto3 JSON parser should be able to accept both UTC and other timezones (as indicated by an offset).

For example, “2017-01-15T01:30:15.01Z” encodes 15.01 seconds past 01:30 UTC on January 15, 2017.

In JavaScript, one can convert a Date object to this format using the standard toISOString() method. In Python, a standard datetime.datetime object can be converted to this format using strftime with the time format spec ‘%Y-%m-%dT%H:%M:%S.%fZ’. Likewise, in Java, one can use the Joda Time’s ISODateTimeFormat.dateTime() to obtain a formatter capable of generating timestamps in this format.

formatdate-time
host: Optional[str]
integration_id: Optional[str]

links to integration instance

runner_id: Optional[str]
scopes: Optional[List[str]]

token permissions

source: Optional[HostAuthenticationTokenSource]

auth_type

One of the following:
"HOST_AUTHENTICATION_TOKEN_SOURCE_UNSPECIFIED"
"HOST_AUTHENTICATION_TOKEN_SOURCE_OAUTH"
"HOST_AUTHENTICATION_TOKEN_SOURCE_PAT"
subject: Optional[Subject]

Subject identifies the principal (user or service account) for the token Note: actual token and refresh_token values are retrieved via GetHostAuthenticationTokenValue API

id: Optional[str]

id is the UUID of the subject

formatuuid
principal: Optional[Principal]

Principal is the principal of the subject

One of the following:
"PRINCIPAL_UNSPECIFIED"
"PRINCIPAL_ACCOUNT"
"PRINCIPAL_USER"
"PRINCIPAL_RUNNER"
"PRINCIPAL_ENVIRONMENT"
"PRINCIPAL_SERVICE_ACCOUNT"
"PRINCIPAL_RUNNER_MANAGER"
Deprecateduser_id: Optional[str]

Deprecated: Use principal_id and principal_type instead principal (user)

class HostAuthenticationTokenRetrieveResponse:
id: str
expires_at: Optional[datetime]

A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one.

All minutes are 60 seconds long. Leap seconds are “smeared” so that no leap second table is needed for interpretation, using a 24-hour linear smear.

The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to and from RFC 3339 date strings.

Examples

Example 1: Compute Timestamp from POSIX time().

 Timestamp timestamp;
 timestamp.set_seconds(time(NULL));
 timestamp.set_nanos(0);

Example 2: Compute Timestamp from POSIX gettimeofday().

 struct timeval tv;
 gettimeofday(&tv, NULL);

 Timestamp timestamp;
 timestamp.set_seconds(tv.tv_sec);
 timestamp.set_nanos(tv.tv_usec * 1000);

Example 3: Compute Timestamp from Win32 GetSystemTimeAsFileTime().

 FILETIME ft;
 GetSystemTimeAsFileTime(&ft);
 UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;

 // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
 // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
 Timestamp timestamp;
 timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
 timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));

Example 4: Compute Timestamp from Java System.currentTimeMillis().

 long millis = System.currentTimeMillis();

 Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
     .setNanos((int) ((millis % 1000) * 1000000)).build();

Example 5: Compute Timestamp from Java Instant.now().

 Instant now = Instant.now();

 Timestamp timestamp =
     Timestamp.newBuilder().setSeconds(now.getEpochSecond())
         .setNanos(now.getNano()).build();

Example 6: Compute Timestamp from current time in Python.

 timestamp = Timestamp()
 timestamp.GetCurrentTime()

JSON Mapping

In JSON format, the Timestamp type is encoded as a string in the RFC 3339 format. That is, the format is “{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z” where {year} is always expressed using four digits while {month}, {day}, {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), are optional. The “Z” suffix indicates the timezone (“UTC”); the timezone is required. A proto3 JSON serializer should always use UTC (as indicated by “Z”) when printing the Timestamp type and a proto3 JSON parser should be able to accept both UTC and other timezones (as indicated by an offset).

For example, “2017-01-15T01:30:15.01Z” encodes 15.01 seconds past 01:30 UTC on January 15, 2017.

In JavaScript, one can convert a Date object to this format using the standard toISOString() method. In Python, a standard datetime.datetime object can be converted to this format using strftime with the time format spec ‘%Y-%m-%dT%H:%M:%S.%fZ’. Likewise, in Java, one can use the Joda Time’s ISODateTimeFormat.dateTime() to obtain a formatter capable of generating timestamps in this format.

formatdate-time
host: Optional[str]
integration_id: Optional[str]

links to integration instance

runner_id: Optional[str]
scopes: Optional[List[str]]

token permissions

source: Optional[HostAuthenticationTokenSource]

auth_type

One of the following:
"HOST_AUTHENTICATION_TOKEN_SOURCE_UNSPECIFIED"
"HOST_AUTHENTICATION_TOKEN_SOURCE_OAUTH"
"HOST_AUTHENTICATION_TOKEN_SOURCE_PAT"
subject: Optional[Subject]

Subject identifies the principal (user or service account) for the token Note: actual token and refresh_token values are retrieved via GetHostAuthenticationTokenValue API

id: Optional[str]

id is the UUID of the subject

formatuuid
principal: Optional[Principal]

Principal is the principal of the subject

One of the following:
"PRINCIPAL_UNSPECIFIED"
"PRINCIPAL_ACCOUNT"
"PRINCIPAL_USER"
"PRINCIPAL_RUNNER"
"PRINCIPAL_ENVIRONMENT"
"PRINCIPAL_SERVICE_ACCOUNT"
"PRINCIPAL_RUNNER_MANAGER"
Deprecateduser_id: Optional[str]

Deprecated: Use principal_id and principal_type instead principal (user)

ConfigurationsSchema

GetRunnerConfigurationSchema
runners.configurations.schema.retrieve(SchemaRetrieveParams**kwargs) -> SchemaRetrieveResponse
POST/gitpod.v1.RunnerConfigurationService/GetRunnerConfigurationSchema
ModelsExpand Collapse
class RunnerConfigurationSchema:
environment_classes: Optional[List[EnvironmentClass]]
id: Optional[str]
bool: Optional[EnvironmentClassBool]
default: Optional[bool]
description: Optional[str]
display: Optional[EnvironmentClassDisplay]
default: Optional[str]
enum: Optional[EnvironmentClassEnum]
Deprecateddefault: Optional[str]

deprecated, will be removed, use default_value instead

default_value: Optional[EnvironmentClassEnumDefaultValue]
detail: Optional[str]
subtitle: Optional[str]
title: Optional[str]
possible_values: Optional[List[EnvironmentClassEnumPossibleValue]]
detail: Optional[str]
subtitle: Optional[str]
title: Optional[str]
Deprecatedvalues: Optional[List[str]]

deprecated, will be removed, use possible_values instead

int: Optional[EnvironmentClassInt]
default: Optional[int]
formatint32
max: Optional[int]
formatint32
min: Optional[int]
formatint32
name: Optional[str]
required: Optional[bool]
secret: Optional[bool]
string: Optional[EnvironmentClassString]
default: Optional[str]
pattern: Optional[str]
runner_config: Optional[List[RunnerConfig]]
id: Optional[str]
bool: Optional[RunnerConfigBool]
default: Optional[bool]
description: Optional[str]
display: Optional[RunnerConfigDisplay]
default: Optional[str]
enum: Optional[RunnerConfigEnum]
Deprecateddefault: Optional[str]

deprecated, will be removed, use default_value instead

default_value: Optional[RunnerConfigEnumDefaultValue]
detail: Optional[str]
subtitle: Optional[str]
title: Optional[str]
possible_values: Optional[List[RunnerConfigEnumPossibleValue]]
detail: Optional[str]
subtitle: Optional[str]
title: Optional[str]
Deprecatedvalues: Optional[List[str]]

deprecated, will be removed, use possible_values instead

int: Optional[RunnerConfigInt]
default: Optional[int]
formatint32
max: Optional[int]
formatint32
min: Optional[int]
formatint32
name: Optional[str]
required: Optional[bool]
secret: Optional[bool]
string: Optional[RunnerConfigString]
default: Optional[str]
pattern: Optional[str]
scm: Optional[List[Scm]]
default_hosts: Optional[List[str]]
name: Optional[str]
oauth: Optional[ScmOAuth]
callback_url: Optional[str]

callback_url is the URL the OAuth app will redirect to after the user has authenticated.

pat: Optional[ScmPat]
description: Optional[str]

description is a human-readable description of the PAT.

scm_id: Optional[str]
version: Optional[str]

The schema version

class SchemaRetrieveResponse:
schema: Optional[RunnerConfigurationSchema]
environment_classes: Optional[List[EnvironmentClass]]
id: Optional[str]
bool: Optional[EnvironmentClassBool]
default: Optional[bool]
description: Optional[str]
display: Optional[EnvironmentClassDisplay]
default: Optional[str]
enum: Optional[EnvironmentClassEnum]
Deprecateddefault: Optional[str]

deprecated, will be removed, use default_value instead

default_value: Optional[EnvironmentClassEnumDefaultValue]
detail: Optional[str]
subtitle: Optional[str]
title: Optional[str]
possible_values: Optional[List[EnvironmentClassEnumPossibleValue]]
detail: Optional[str]
subtitle: Optional[str]
title: Optional[str]
Deprecatedvalues: Optional[List[str]]

deprecated, will be removed, use possible_values instead

int: Optional[EnvironmentClassInt]
default: Optional[int]
formatint32
max: Optional[int]
formatint32
min: Optional[int]
formatint32
name: Optional[str]
required: Optional[bool]
secret: Optional[bool]
string: Optional[EnvironmentClassString]
default: Optional[str]
pattern: Optional[str]
runner_config: Optional[List[RunnerConfig]]
id: Optional[str]
bool: Optional[RunnerConfigBool]
default: Optional[bool]
description: Optional[str]
display: Optional[RunnerConfigDisplay]
default: Optional[str]
enum: Optional[RunnerConfigEnum]
Deprecateddefault: Optional[str]

deprecated, will be removed, use default_value instead

default_value: Optional[RunnerConfigEnumDefaultValue]
detail: Optional[str]
subtitle: Optional[str]
title: Optional[str]
possible_values: Optional[List[RunnerConfigEnumPossibleValue]]
detail: Optional[str]
subtitle: Optional[str]
title: Optional[str]
Deprecatedvalues: Optional[List[str]]

deprecated, will be removed, use possible_values instead

int: Optional[RunnerConfigInt]
default: Optional[int]
formatint32
max: Optional[int]
formatint32
min: Optional[int]
formatint32
name: Optional[str]
required: Optional[bool]
secret: Optional[bool]
string: Optional[RunnerConfigString]
default: Optional[str]
pattern: Optional[str]
scm: Optional[List[Scm]]
default_hosts: Optional[List[str]]
name: Optional[str]
oauth: Optional[ScmOAuth]
callback_url: Optional[str]

callback_url is the URL the OAuth app will redirect to after the user has authenticated.

pat: Optional[ScmPat]
description: Optional[str]

description is a human-readable description of the PAT.

scm_id: Optional[str]
version: Optional[str]

The schema version

ConfigurationsScm Integrations

CreateSCMIntegration
runners.configurations.scm_integrations.create(ScmIntegrationCreateParams**kwargs) -> ScmIntegrationCreateResponse
POST/gitpod.v1.RunnerConfigurationService/CreateSCMIntegration
DeleteSCMIntegration
runners.configurations.scm_integrations.delete(ScmIntegrationDeleteParams**kwargs) -> object
POST/gitpod.v1.RunnerConfigurationService/DeleteSCMIntegration
ListSCMIntegrations
runners.configurations.scm_integrations.list(ScmIntegrationListParams**kwargs) -> SyncIntegrationsPage[ScmIntegration]
POST/gitpod.v1.RunnerConfigurationService/ListSCMIntegrations
GetSCMIntegration
runners.configurations.scm_integrations.retrieve(ScmIntegrationRetrieveParams**kwargs) -> ScmIntegrationRetrieveResponse
POST/gitpod.v1.RunnerConfigurationService/GetSCMIntegration
UpdateSCMIntegration
runners.configurations.scm_integrations.update(ScmIntegrationUpdateParams**kwargs) -> object
POST/gitpod.v1.RunnerConfigurationService/UpdateSCMIntegration
ModelsExpand Collapse
class ScmIntegration:
id: Optional[str]

id is the unique identifier of the SCM integration

host: Optional[str]
oauth: Optional[ScmIntegrationOAuthConfig]
client_id: Optional[str]

client_id is the OAuth app’s client ID in clear text.

encrypted_client_secret: Optional[str]

encrypted_client_secret is the OAuth app’s secret encrypted with the runner’s public key.

formatbyte
issuer_url: Optional[str]

issuer_url is used to override the authentication provider URL, if it doesn’t match the SCM host.

+optional if not set, this account is owned by the installation.

pat: Optional[bool]
runner_id: Optional[str]
scm_id: Optional[str]

scm_id references the scm_id in the runner’s configuration schema that this integration is for

virtual_directory: Optional[str]

virtual_directory is the virtual directory path for Azure DevOps Server (e.g., “/tfs”). This field is only used for Azure DevOps Server SCM integrations and should be empty for other SCM types. Azure DevOps Server APIs work without collection when PAT scope is ‘All accessible organizations’.

class ScmIntegrationOAuthConfig:
client_id: Optional[str]

client_id is the OAuth app’s client ID in clear text.

encrypted_client_secret: Optional[str]

encrypted_client_secret is the OAuth app’s secret encrypted with the runner’s public key.

formatbyte
issuer_url: Optional[str]

issuer_url is used to override the authentication provider URL, if it doesn’t match the SCM host.

+optional if not set, this account is owned by the installation.

class ScmIntegrationCreateResponse:
id: Optional[str]

id is a uniquely generated identifier for the SCM integration

formatuuid
class ScmIntegrationRetrieveResponse:
integration: Optional[ScmIntegration]
id: Optional[str]

id is the unique identifier of the SCM integration

host: Optional[str]
oauth: Optional[ScmIntegrationOAuthConfig]
client_id: Optional[str]

client_id is the OAuth app’s client ID in clear text.

encrypted_client_secret: Optional[str]

encrypted_client_secret is the OAuth app’s secret encrypted with the runner’s public key.

formatbyte
issuer_url: Optional[str]

issuer_url is used to override the authentication provider URL, if it doesn’t match the SCM host.

+optional if not set, this account is owned by the installation.

pat: Optional[bool]
runner_id: Optional[str]
scm_id: Optional[str]

scm_id references the scm_id in the runner’s configuration schema that this integration is for

virtual_directory: Optional[str]

virtual_directory is the virtual directory path for Azure DevOps Server (e.g., “/tfs”). This field is only used for Azure DevOps Server SCM integrations and should be empty for other SCM types. Azure DevOps Server APIs work without collection when PAT scope is ‘All accessible organizations’.