CustomBuildRunnerShapeConfig¶
- class oci.devops.models.CustomBuildRunnerShapeConfig(**kwargs)¶
Bases:
BuildRunnerShapeConfigSpecifies the custom build runner shape config.
Attributes:
A constant which can be used with the build_runner_type property of a BuildRunnerShapeConfig.
A constant which can be used with the build_runner_type property of a BuildRunnerShapeConfig.
[Required] Gets the build_runner_type of this BuildRunnerShapeConfig.
[Required] Gets the memory_in_gbs of this CustomBuildRunnerShapeConfig.
[Required] Gets the ocpus of this CustomBuildRunnerShapeConfig.
Methods:
__init__(**kwargs)Initializes a new CustomBuildRunnerShapeConfig object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- BUILD_RUNNER_TYPE_CUSTOM = 'CUSTOM'¶
A constant which can be used with the build_runner_type property of a BuildRunnerShapeConfig. This constant has a value of “CUSTOM”
- BUILD_RUNNER_TYPE_DEFAULT = 'DEFAULT'¶
A constant which can be used with the build_runner_type property of a BuildRunnerShapeConfig. This constant has a value of “DEFAULT”
- __init__(**kwargs)¶
Initializes a new CustomBuildRunnerShapeConfig object with values from keyword arguments. The default value of the
build_runner_typeattribute of this class isCUSTOMand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
build_runner_type (str) – The value to assign to the build_runner_type property of this CustomBuildRunnerShapeConfig. Allowed values for this property are: “CUSTOM”, “DEFAULT”
ocpus (int) – The value to assign to the ocpus property of this CustomBuildRunnerShapeConfig.
memory_in_gbs (int) – The value to assign to the memory_in_gbs property of this CustomBuildRunnerShapeConfig.
- property build_runner_type¶
[Required] Gets the build_runner_type of this BuildRunnerShapeConfig. Name of the build runner shape in which the execution occurs. If not specified, the default shape is chosen.
Allowed values for this property are: “CUSTOM”, “DEFAULT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The build_runner_type of this BuildRunnerShapeConfig.
- Return type
str
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property memory_in_gbs¶
[Required] Gets the memory_in_gbs of this CustomBuildRunnerShapeConfig. The total amount of memory set for the instance in gigabytes.
- Returns
The memory_in_gbs of this CustomBuildRunnerShapeConfig.
- Return type
int
- property ocpus¶
[Required] Gets the ocpus of this CustomBuildRunnerShapeConfig. The total number of OCPUs set for the instance.
- Returns
The ocpus of this CustomBuildRunnerShapeConfig.
- Return type
int