CustomBuildRunnerShapeConfig¶
-
class
oci.devops.models.CustomBuildRunnerShapeConfig(**kwargs)¶ Bases:
oci.devops.models.build_runner_shape_config.BuildRunnerShapeConfigSpecifies the custom build runner shape config.
Attributes
BUILD_RUNNER_TYPE_CUSTOMstr(object=’’) -> str BUILD_RUNNER_TYPE_DEFAULTstr(object=’’) -> str build_runner_type[Required] Gets the build_runner_type of this BuildRunnerShapeConfig. memory_in_gbs[Required] Gets the memory_in_gbs of this CustomBuildRunnerShapeConfig. ocpus[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'¶
-
BUILD_RUNNER_TYPE_DEFAULT= '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.
-
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.
-
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
-
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
-