15
15
*/
16
16
17
17
/**
18
- * IBM OpenAPI SDK Code Generator Version: 3.94.1-71478489-20240820-161623
18
+ * IBM OpenAPI SDK Code Generator Version: 3.99.0-d27cee72-20250129-204831
19
19
*/
20
20
21
21
/* eslint-disable max-classes-per-file */
@@ -75,7 +75,7 @@ class CodeEngineV2 extends BaseService {
75
75
}
76
76
77
77
/** The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between
78
- * `2021-03-31` and `2025-01-10 `.
78
+ * `2021-03-31` and `2025-02-20 `.
79
79
*/
80
80
version ?: string ;
81
81
@@ -84,7 +84,7 @@ class CodeEngineV2 extends BaseService {
84
84
*
85
85
* @param {Object } options - Options for the service.
86
86
* @param {string } [options.version] - The API version, in format `YYYY-MM-DD`. For the API behavior documented here,
87
- * specify any date between `2021-03-31` and `2025-01-10 `.
87
+ * specify any date between `2021-03-31` and `2025-02-20 `.
88
88
* @param {string } [options.serviceUrl] - The base URL for the service
89
89
* @param {OutgoingHttpHeaders } [options.headers] - Default headers that shall be included with every request to the service.
90
90
* @param {Authenticator } options.authenticator - The Authenticator object used to authenticate requests to the service
@@ -2938,6 +2938,8 @@ class CodeEngineV2 extends BaseService {
2938
2938
* @param {string } params.outputSecret - The secret that is required to access the image registry. Make sure that the
2939
2939
* secret is granted with push permissions towards the specified container registry namespace.
2940
2940
* @param {string } params.strategyType - The strategy to use for building the image.
2941
+ * @param {BuildParamPrototype[] } [params.runBuildParams] - Optional references to config maps and secret keys, or
2942
+ * literal values that are exposed as build arguments within the Docker file.
2941
2943
* @param {string } [params.sourceContextDir] - Optional directory in the repository that contains the buildpacks file
2942
2944
* or the Dockerfile.
2943
2945
* @param {string } [params.sourceRevision] - Commit, tag, or branch in the source repository to pull. This field is
@@ -2976,6 +2978,7 @@ class CodeEngineV2 extends BaseService {
2976
2978
'outputImage' ,
2977
2979
'outputSecret' ,
2978
2980
'strategyType' ,
2981
+ 'runBuildParams' ,
2979
2982
'sourceContextDir' ,
2980
2983
'sourceRevision' ,
2981
2984
'sourceSecret' ,
@@ -2996,6 +2999,7 @@ class CodeEngineV2 extends BaseService {
2996
2999
'output_image' : _params . outputImage ,
2997
3000
'output_secret' : _params . outputSecret ,
2998
3001
'strategy_type' : _params . strategyType ,
3002
+ 'run_build_params' : _params . runBuildParams ,
2999
3003
'source_context_dir' : _params . sourceContextDir ,
3000
3004
'source_revision' : _params . sourceRevision ,
3001
3005
'source_secret' : _params . sourceSecret ,
@@ -3142,6 +3146,8 @@ class CodeEngineV2 extends BaseService {
3142
3146
* @param {string } [params.outputImage] - The name of the image.
3143
3147
* @param {string } [params.outputSecret] - The secret that is required to access the image registry. Make sure that
3144
3148
* the secret is granted with push permissions towards the specified container registry namespace.
3149
+ * @param {BuildParamPrototype[] } [params.runBuildParams] - Optional references to config maps and secret keys, or
3150
+ * literal values that are exposed as build arguments within the Docker file.
3145
3151
* @param {string } [params.sourceContextDir] - Optional directory in the repository that contains the buildpacks file
3146
3152
* or the Dockerfile.
3147
3153
* @param {string } [params.sourceRevision] - Commit, tag, or branch in the source repository to pull. This field is
@@ -3181,6 +3187,7 @@ class CodeEngineV2 extends BaseService {
3181
3187
'ifMatch' ,
3182
3188
'outputImage' ,
3183
3189
'outputSecret' ,
3190
+ 'runBuildParams' ,
3184
3191
'sourceContextDir' ,
3185
3192
'sourceRevision' ,
3186
3193
'sourceSecret' ,
@@ -3200,6 +3207,7 @@ class CodeEngineV2 extends BaseService {
3200
3207
const body = {
3201
3208
'output_image' : _params . outputImage ,
3202
3209
'output_secret' : _params . outputSecret ,
3210
+ 'run_build_params' : _params . runBuildParams ,
3203
3211
'source_context_dir' : _params . sourceContextDir ,
3204
3212
'source_revision' : _params . sourceRevision ,
3205
3213
'source_secret' : _params . sourceSecret ,
@@ -3318,6 +3326,8 @@ class CodeEngineV2 extends BaseService {
3318
3326
* @param {string } [params.outputImage] - The name of the image.
3319
3327
* @param {string } [params.outputSecret] - The secret that is required to access the image registry. Make sure that
3320
3328
* the secret is granted with push permissions towards the specified container registry namespace.
3329
+ * @param {BuildParamPrototype[] } [params.runBuildParams] - Optional references to config maps and secret keys, or
3330
+ * literal values that are exposed as build arguments within the Docker file.
3321
3331
* @param {string } [params.serviceAccount] - Optional service account, which is used for resource control.” or
3322
3332
* “Optional service account that is used for resource control.
3323
3333
* @param {string } [params.sourceContextDir] - Optional directory in the repository that contains the buildpacks file
@@ -3359,6 +3369,7 @@ class CodeEngineV2 extends BaseService {
3359
3369
'name' ,
3360
3370
'outputImage' ,
3361
3371
'outputSecret' ,
3372
+ 'runBuildParams' ,
3362
3373
'serviceAccount' ,
3363
3374
'sourceContextDir' ,
3364
3375
'sourceRevision' ,
@@ -3381,6 +3392,7 @@ class CodeEngineV2 extends BaseService {
3381
3392
'name' : _params . name ,
3382
3393
'output_image' : _params . outputImage ,
3383
3394
'output_secret' : _params . outputSecret ,
3395
+ 'run_build_params' : _params . runBuildParams ,
3384
3396
'service_account' : _params . serviceAccount ,
3385
3397
'source_context_dir' : _params . sourceContextDir ,
3386
3398
'source_revision' : _params . sourceRevision ,
@@ -4090,6 +4102,7 @@ class CodeEngineV2 extends BaseService {
4090
4102
*
4091
4103
* @param {Object } params - The parameters to send to the service.
4092
4104
* @param {string } params.projectId - The ID of the project.
4105
+ * @param {string } [params.format] - Secret format to filter results by.
4093
4106
* @param {number } [params.limit] - Optional maximum number of secrets per page.
4094
4107
* @param {string } [params.start] - An optional token that indicates the beginning of the page of results to be
4095
4108
* returned. If omitted, the first page of results is returned. This value is obtained from the 'start' query
@@ -4102,13 +4115,14 @@ class CodeEngineV2 extends BaseService {
4102
4115
) : Promise < CodeEngineV2 . Response < CodeEngineV2 . SecretList > > {
4103
4116
const _params = { ...params } ;
4104
4117
const _requiredParams = [ 'projectId' ] ;
4105
- const _validParams = [ 'projectId' , 'limit' , 'start' , 'headers' ] ;
4118
+ const _validParams = [ 'projectId' , 'format' , ' limit', 'start' , 'headers' ] ;
4106
4119
const _validationErrors = validateParams ( _params , _requiredParams , _validParams ) ;
4107
4120
if ( _validationErrors ) {
4108
4121
return Promise . reject ( _validationErrors ) ;
4109
4122
}
4110
4123
4111
4124
const query = {
4125
+ 'format' : _params . format ,
4112
4126
'limit' : _params . limit ,
4113
4127
'start' : _params . start ,
4114
4128
} ;
@@ -4385,7 +4399,7 @@ namespace CodeEngineV2 {
4385
4399
/** Options for the `CodeEngineV2` constructor. */
4386
4400
export interface Options extends UserOptions {
4387
4401
/** The API version, in format `YYYY-MM-DD`. For the API behavior documented here, specify any date between
4388
- * `2021-03-31` and `2025-01-10 `.
4402
+ * `2021-03-31` and `2025-02-20 `.
4389
4403
*/
4390
4404
version ?: string ;
4391
4405
}
@@ -5434,6 +5448,10 @@ namespace CodeEngineV2 {
5434
5448
outputSecret : string ;
5435
5449
/** The strategy to use for building the image. */
5436
5450
strategyType : CreateBuildConstants . StrategyType | string ;
5451
+ /** Optional references to config maps and secret keys, or literal values that are exposed as build arguments
5452
+ * within the Docker file.
5453
+ */
5454
+ runBuildParams ?: BuildParamPrototype [ ] ;
5437
5455
/** Optional directory in the repository that contains the buildpacks file or the Dockerfile. */
5438
5456
sourceContextDir ?: string ;
5439
5457
/** Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is
@@ -5528,6 +5546,10 @@ namespace CodeEngineV2 {
5528
5546
* permissions towards the specified container registry namespace.
5529
5547
*/
5530
5548
outputSecret ?: string ;
5549
+ /** Optional references to config maps and secret keys, or literal values that are exposed as build arguments
5550
+ * within the Docker file.
5551
+ */
5552
+ runBuildParams ?: BuildParamPrototype [ ] ;
5531
5553
/** Optional directory in the repository that contains the buildpacks file or the Dockerfile. */
5532
5554
sourceContextDir ?: string ;
5533
5555
/** Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is
@@ -5624,6 +5646,10 @@ namespace CodeEngineV2 {
5624
5646
* permissions towards the specified container registry namespace.
5625
5647
*/
5626
5648
outputSecret ?: string ;
5649
+ /** Optional references to config maps and secret keys, or literal values that are exposed as build arguments
5650
+ * within the Docker file.
5651
+ */
5652
+ runBuildParams ?: BuildParamPrototype [ ] ;
5627
5653
/** Optional service account, which is used for resource control.” or “Optional service account that is used for
5628
5654
* resource control.
5629
5655
*/
@@ -5847,6 +5873,8 @@ namespace CodeEngineV2 {
5847
5873
export interface ListSecretsParams {
5848
5874
/** The ID of the project. */
5849
5875
projectId : string ;
5876
+ /** Secret format to filter results by. */
5877
+ format ?: ListSecretsConstants . Format | string ;
5850
5878
/** Optional maximum number of secrets per page. */
5851
5879
limit ?: number ;
5852
5880
/** An optional token that indicates the beginning of the page of results to be returned. If omitted, the first
@@ -5857,6 +5885,20 @@ namespace CodeEngineV2 {
5857
5885
headers ?: OutgoingHttpHeaders ;
5858
5886
}
5859
5887
5888
+ /** Constants for the `listSecrets` operation. */
5889
+ export namespace ListSecretsConstants {
5890
+ /** Secret format to filter results by. */
5891
+ export enum Format {
5892
+ GENERIC = 'generic' ,
5893
+ SSH_AUTH = 'ssh_auth' ,
5894
+ REGISTRY = 'registry' ,
5895
+ BASIC_AUTH = 'basic_auth' ,
5896
+ TLS = 'tls' ,
5897
+ SERVICE_ACCESS = 'service_access' ,
5898
+ SERVICE_OPERATOR = 'service_operator' ,
5899
+ }
5900
+ }
5901
+
5860
5902
/** Parameters for the `createSecret` operation. */
5861
5903
export interface CreateSecretParams {
5862
5904
/** The ID of the project. */
@@ -6192,8 +6234,6 @@ namespace CodeEngineV2 {
6192
6234
region ?: string ;
6193
6235
/** The type of the app instance. */
6194
6236
resource_type ?: AppInstance . Constants . ResourceType | string ;
6195
- /** The number of restarts of the app instance. */
6196
- restarts ?: number ;
6197
6237
/** The name of the revision that is associated with this instance. */
6198
6238
revision_name : string ;
6199
6239
/** The number of CPU set for the instance. For valid values see [Supported memory and CPU
@@ -6215,10 +6255,8 @@ namespace CodeEngineV2 {
6215
6255
scale_memory_limit : string ;
6216
6256
/** The current status of the instance. */
6217
6257
status ?: AppInstance . Constants . Status | string ;
6218
- /** The status of a container. */
6219
- system_container ?: ContainerStatus ;
6220
- /** The status of a container. */
6221
- user_container ?: ContainerStatus ;
6258
+ /** The status of the pod and it's containers. */
6259
+ status_details ?: AppInstanceStatusDetails ;
6222
6260
}
6223
6261
export namespace AppInstance {
6224
6262
export namespace Constants {
@@ -6250,6 +6288,18 @@ namespace CodeEngineV2 {
6250
6288
next ?: ListNextMetadata ;
6251
6289
}
6252
6290
6291
+ /**
6292
+ * The status of the pod and it's containers.
6293
+ */
6294
+ export interface AppInstanceStatusDetails {
6295
+ /** The number of restarts of the app instance. */
6296
+ restarts ?: number ;
6297
+ /** The status of a container. */
6298
+ system_container ?: ContainerStatus ;
6299
+ /** The status of a container. */
6300
+ user_container ?: ContainerStatus ;
6301
+ }
6302
+
6253
6303
/**
6254
6304
* Contains a list of apps and pagination information.
6255
6305
*/
@@ -6543,6 +6593,10 @@ namespace CodeEngineV2 {
6543
6593
region ?: string ;
6544
6594
/** The type of the build. */
6545
6595
resource_type ?: Build . Constants . ResourceType | string ;
6596
+ /** References to config maps and secret keys, or literal values, which are defined by the build owner and are
6597
+ * exposed as build arguments in Docker files.
6598
+ */
6599
+ run_build_params ?: BuildParam [ ] ;
6546
6600
/** Optional directory in the repository that contains the buildpacks file or the Dockerfile. */
6547
6601
source_context_dir ?: string ;
6548
6602
/** Commit, tag, or branch in the source repository to pull. This field is optional if the `source_type` is
@@ -6630,6 +6684,58 @@ namespace CodeEngineV2 {
6630
6684
next ?: ListNextMetadata ;
6631
6685
}
6632
6686
6687
+ /**
6688
+ * Response model for build params.
6689
+ */
6690
+ export interface BuildParam {
6691
+ /** The key to reference as build param. */
6692
+ key ?: string ;
6693
+ /** The name of the build param. */
6694
+ name ?: string ;
6695
+ /** The name of the secret or config map. */
6696
+ reference ?: string ;
6697
+ /** Specify the type of the build param. */
6698
+ type : BuildParam . Constants . Type | string ;
6699
+ /** The literal value of the build param. */
6700
+ value ?: string ;
6701
+ }
6702
+ export namespace BuildParam {
6703
+ export namespace Constants {
6704
+ /** Specify the type of the build param. */
6705
+ export enum Type {
6706
+ LITERAL = 'literal' ,
6707
+ CONFIG_MAP_KEY_REFERENCE = 'config_map_key_reference' ,
6708
+ SECRET_KEY_REFERENCE = 'secret_key_reference' ,
6709
+ }
6710
+ }
6711
+ }
6712
+
6713
+ /**
6714
+ * Prototype model for build params.
6715
+ */
6716
+ export interface BuildParamPrototype {
6717
+ /** The key to reference as build param. */
6718
+ key ?: string ;
6719
+ /** The name of the build param. */
6720
+ name ?: string ;
6721
+ /** The name of the secret or config map. */
6722
+ reference ?: string ;
6723
+ /** Specify the type of the build param. */
6724
+ type : BuildParamPrototype . Constants . Type | string ;
6725
+ /** The literal value of the build param. */
6726
+ value ?: string ;
6727
+ }
6728
+ export namespace BuildParamPrototype {
6729
+ export namespace Constants {
6730
+ /** Specify the type of the build param. */
6731
+ export enum Type {
6732
+ LITERAL = 'literal' ,
6733
+ CONFIG_MAP_KEY_REFERENCE = 'config_map_key_reference' ,
6734
+ SECRET_KEY_REFERENCE = 'secret_key_reference' ,
6735
+ }
6736
+ }
6737
+ }
6738
+
6633
6739
/**
6634
6740
* Response model for build run objects.
6635
6741
*/
@@ -6661,6 +6767,10 @@ namespace CodeEngineV2 {
6661
6767
region ?: string ;
6662
6768
/** The type of the build run. */
6663
6769
resource_type ?: BuildRun . Constants . ResourceType | string ;
6770
+ /** References to config maps and secret keys, or literal values, which are defined by the build owner and are
6771
+ * exposed as build arguments in Docker files.
6772
+ */
6773
+ run_build_params ?: BuildParam [ ] ;
6664
6774
/** Optional service account, which is used for resource control.” or “Optional service account that is used for
6665
6775
* resource control.
6666
6776
*/
@@ -6909,35 +7019,21 @@ namespace CodeEngineV2 {
6909
7019
/** The time the container terminated. Only populated in an observed failure state. */
6910
7020
completed_at ?: string ;
6911
7021
/** The status of the container. */
6912
- container_status ?: string ;
7022
+ container_status ?: ContainerStatusDetails . Constants . ContainerStatus | string ;
6913
7023
/** The exit code of the last termination of the container. Only populated in an observed failure state. */
6914
7024
exit_code ?: number ;
6915
7025
/** The reason the container is not yet running or has failed. Only populated in non-running states. */
6916
- reason ?: ContainerStatusDetails . Constants . Reason | string ;
7026
+ reason ?: string ;
6917
7027
/** The time the container started. */
6918
7028
started_at ?: string ;
6919
7029
}
6920
7030
export namespace ContainerStatusDetails {
6921
7031
export namespace Constants {
6922
- /** The reason the container is not yet running or has failed. Only populated in non-running states. */
6923
- export enum Reason {
6924
- READY = 'ready' ,
6925
- WAITING = 'waiting' ,
6926
- DEPLOYING = 'deploying' ,
6927
- DEPLOYING_WAITING_FOR_RESOURCES = 'deploying_waiting_for_resources' ,
6928
- INITIAL_SCALE_NEVER_ACHIEVED = 'initial_scale_never_achieved' ,
6929
- FETCH_IMAGE_FAILED_UNKNOWN_MANIFEST = 'fetch_image_failed_unknown_manifest' ,
6930
- FETCH_IMAGE_FAILED_UNKNOWN_REPOSITORY = 'fetch_image_failed_unknown_repository' ,
6931
- FETCH_IMAGE_FAILED_REGISTRY_NOT_FOUND = 'fetch_image_failed_registry_not_found' ,
6932
- FETCH_IMAGE_FAILED_MISSING_PULL_SECRET = 'fetch_image_failed_missing_pull_secret' ,
6933
- FETCH_IMAGE_FAILED_WRONG_PULL_CREDENTIALS = 'fetch_image_failed_wrong_pull_credentials' ,
6934
- FETCH_IMAGE_FAILED_MISSING_PULL_CREDENTIALS = 'fetch_image_failed_missing_pull_credentials' ,
6935
- CONTAINER_FAILED_EXIT_CODE_0 = 'container_failed_exit_code_0' ,
6936
- CONTAINER_FAILED_EXIT_CODE_1 = 'container_failed_exit_code_1' ,
6937
- CONTAINER_FAILED_EXIT_CODE_139 = 'container_failed_exit_code_139' ,
6938
- CONTAINER_FAILED_EXIT_CODE_24 = 'container_failed_exit_code_24' ,
6939
- IMAGE_PULL_BACK_OFF = 'image_pull_back_off' ,
6940
- INVALID_TAR_HEADER_IMAGE_PULL_ERR = 'invalid_tar_header_image_pull_err' ,
7032
+ /** The status of the container. */
7033
+ export enum ContainerStatus {
7034
+ RUNNING = 'running' ,
7035
+ PENDING = 'pending' ,
7036
+ TERMINATED = 'terminated' ,
6941
7037
}
6942
7038
}
6943
7039
}
0 commit comments