|
1 | 1 | /**
|
2 |
| - * (C) Copyright IBM Corp. 2023. |
| 2 | + * (C) Copyright IBM Corp. 2024. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
15 | 15 | */
|
16 | 16 |
|
17 | 17 | /*
|
18 |
| - * IBM OpenAPI SDK Code Generator Version: 3.80.0-29334a73-20230925-151553 |
| 18 | + * IBM OpenAPI SDK Code Generator Version: 3.84.1-55f6d880-20240110-194020 |
19 | 19 | */
|
20 | 20 |
|
21 | 21 | // Package codeenginev2 : Operations and models for the CodeEngineV2 service
|
@@ -1592,6 +1592,9 @@ func (codeEngine *CodeEngineV2) CreateJobRunWithContext(ctx context.Context, cre
|
1592 | 1592 | if createJobRunOptions.RunVolumeMounts != nil {
|
1593 | 1593 | body["run_volume_mounts"] = createJobRunOptions.RunVolumeMounts
|
1594 | 1594 | }
|
| 1595 | + if createJobRunOptions.ScaleArraySizeVariableOverride != nil { |
| 1596 | + body["scale_array_size_variable_override"] = createJobRunOptions.ScaleArraySizeVariableOverride |
| 1597 | + } |
1595 | 1598 | if createJobRunOptions.ScaleArraySpec != nil {
|
1596 | 1599 | body["scale_array_spec"] = createJobRunOptions.ScaleArraySpec
|
1597 | 1600 | }
|
@@ -3681,6 +3684,10 @@ type App struct {
|
3681 | 3684 | // The ID of the project the resource is located in.
|
3682 | 3685 | ProjectID *string `json:"project_id,omitempty"`
|
3683 | 3686 |
|
| 3687 | + // The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', |
| 3688 | + // 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'. |
| 3689 | + Region *string `json:"region,omitempty"` |
| 3690 | + |
3684 | 3691 | // The type of the app.
|
3685 | 3692 | ResourceType *string `json:"resource_type,omitempty"`
|
3686 | 3693 |
|
@@ -3857,6 +3864,10 @@ func UnmarshalApp(m map[string]json.RawMessage, result interface{}) (err error)
|
3857 | 3864 | if err != nil {
|
3858 | 3865 | return
|
3859 | 3866 | }
|
| 3867 | + err = core.UnmarshalPrimitive(m, "region", &obj.Region) |
| 3868 | + if err != nil { |
| 3869 | + return |
| 3870 | + } |
3860 | 3871 | err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
|
3861 | 3872 | if err != nil {
|
3862 | 3873 | return
|
@@ -4237,6 +4248,10 @@ type AppRevision struct {
|
4237 | 4248 | // The ID of the project the resource is located in.
|
4238 | 4249 | ProjectID *string `json:"project_id,omitempty"`
|
4239 | 4250 |
|
| 4251 | + // The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', |
| 4252 | + // 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'. |
| 4253 | + Region *string `json:"region,omitempty"` |
| 4254 | + |
4240 | 4255 | // The type of the app revision.
|
4241 | 4256 | ResourceType *string `json:"resource_type,omitempty"`
|
4242 | 4257 |
|
@@ -4375,6 +4390,10 @@ func UnmarshalAppRevision(m map[string]json.RawMessage, result interface{}) (err
|
4375 | 4390 | if err != nil {
|
4376 | 4391 | return
|
4377 | 4392 | }
|
| 4393 | + err = core.UnmarshalPrimitive(m, "region", &obj.Region) |
| 4394 | + if err != nil { |
| 4395 | + return |
| 4396 | + } |
4378 | 4397 | err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
|
4379 | 4398 | if err != nil {
|
4380 | 4399 | return
|
@@ -4733,6 +4752,10 @@ type Build struct {
|
4733 | 4752 | // The ID of the project the resource is located in.
|
4734 | 4753 | ProjectID *string `json:"project_id,omitempty"`
|
4735 | 4754 |
|
| 4755 | + // The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', |
| 4756 | + // 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'. |
| 4757 | + Region *string `json:"region,omitempty"` |
| 4758 | + |
4736 | 4759 | // The type of the build.
|
4737 | 4760 | ResourceType *string `json:"resource_type,omitempty"`
|
4738 | 4761 |
|
@@ -4767,7 +4790,7 @@ type Build struct {
|
4767 | 4790 | StatusDetails *BuildStatus `json:"status_details,omitempty"`
|
4768 | 4791 |
|
4769 | 4792 | // Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`,
|
4770 |
| - // `large`, `xlarge`. |
| 4793 | + // `large`, `xlarge`, `xxlarge`. |
4771 | 4794 | StrategySize *string `json:"strategy_size" validate:"required"`
|
4772 | 4795 |
|
4773 | 4796 | // Optional path to the specification file that is used for build strategies for building an image.
|
@@ -4837,6 +4860,10 @@ func UnmarshalBuild(m map[string]json.RawMessage, result interface{}) (err error
|
4837 | 4860 | if err != nil {
|
4838 | 4861 | return
|
4839 | 4862 | }
|
| 4863 | + err = core.UnmarshalPrimitive(m, "region", &obj.Region) |
| 4864 | + if err != nil { |
| 4865 | + return |
| 4866 | + } |
4840 | 4867 | err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
|
4841 | 4868 | if err != nil {
|
4842 | 4869 | return
|
@@ -4969,7 +4996,7 @@ type BuildPatch struct {
|
4969 | 4996 | SourceURL *string `json:"source_url,omitempty"`
|
4970 | 4997 |
|
4971 | 4998 | // Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`,
|
4972 |
| - // `large`, `xlarge`. |
| 4999 | + // `large`, `xlarge`, `xxlarge`. |
4973 | 5000 | StrategySize *string `json:"strategy_size,omitempty"`
|
4974 | 5001 |
|
4975 | 5002 | // Optional path to the specification file that is used for build strategies for building an image.
|
@@ -5081,6 +5108,10 @@ type BuildRun struct {
|
5081 | 5108 | // The ID of the project the resource is located in.
|
5082 | 5109 | ProjectID *string `json:"project_id,omitempty"`
|
5083 | 5110 |
|
| 5111 | + // The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', |
| 5112 | + // 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'. |
| 5113 | + Region *string `json:"region,omitempty"` |
| 5114 | + |
5084 | 5115 | // The type of the build run.
|
5085 | 5116 | ResourceType *string `json:"resource_type,omitempty"`
|
5086 | 5117 |
|
@@ -5118,7 +5149,7 @@ type BuildRun struct {
|
5118 | 5149 | StatusDetails *BuildRunStatus `json:"status_details,omitempty"`
|
5119 | 5150 |
|
5120 | 5151 | // Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`,
|
5121 |
| - // `large`, `xlarge`. |
| 5152 | + // `large`, `xlarge`, `xxlarge`. |
5122 | 5153 | StrategySize *string `json:"strategy_size,omitempty"`
|
5123 | 5154 |
|
5124 | 5155 | // Optional path to the specification file that is used for build strategies for building an image.
|
@@ -5200,6 +5231,10 @@ func UnmarshalBuildRun(m map[string]json.RawMessage, result interface{}) (err er
|
5200 | 5231 | if err != nil {
|
5201 | 5232 | return
|
5202 | 5233 | }
|
| 5234 | + err = core.UnmarshalPrimitive(m, "region", &obj.Region) |
| 5235 | + if err != nil { |
| 5236 | + return |
| 5237 | + } |
5203 | 5238 | err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
|
5204 | 5239 | if err != nil {
|
5205 | 5240 | return
|
@@ -5452,6 +5487,10 @@ type ConfigMap struct {
|
5452 | 5487 | // The ID of the project the resource is located in.
|
5453 | 5488 | ProjectID *string `json:"project_id,omitempty"`
|
5454 | 5489 |
|
| 5490 | + // The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', |
| 5491 | + // 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'. |
| 5492 | + Region *string `json:"region,omitempty"` |
| 5493 | + |
5455 | 5494 | // The type of the config map.
|
5456 | 5495 | ResourceType *string `json:"resource_type,omitempty"`
|
5457 | 5496 | }
|
@@ -5493,6 +5532,10 @@ func UnmarshalConfigMap(m map[string]json.RawMessage, result interface{}) (err e
|
5493 | 5532 | if err != nil {
|
5494 | 5533 | return
|
5495 | 5534 | }
|
| 5535 | + err = core.UnmarshalPrimitive(m, "region", &obj.Region) |
| 5536 | + if err != nil { |
| 5537 | + return |
| 5538 | + } |
5496 | 5539 | err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
|
5497 | 5540 | if err != nil {
|
5498 | 5541 | return
|
@@ -5930,7 +5973,7 @@ type CreateBuildOptions struct {
|
5930 | 5973 | SourceURL *string `json:"source_url,omitempty"`
|
5931 | 5974 |
|
5932 | 5975 | // Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`,
|
5933 |
| - // `large`, `xlarge`. |
| 5976 | + // `large`, `xlarge`, `xxlarge`. |
5934 | 5977 | StrategySize *string `json:"strategy_size,omitempty"`
|
5935 | 5978 |
|
5936 | 5979 | // Optional path to the specification file that is used for build strategies for building an image.
|
@@ -6096,7 +6139,7 @@ type CreateBuildRunOptions struct {
|
6096 | 6139 | SourceURL *string `json:"source_url,omitempty"`
|
6097 | 6140 |
|
6098 | 6141 | // Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`,
|
6099 |
| - // `large`, `xlarge`. |
| 6142 | + // `large`, `xlarge`, `xxlarge`. |
6100 | 6143 | StrategySize *string `json:"strategy_size,omitempty"`
|
6101 | 6144 |
|
6102 | 6145 | // Optional path to the specification file that is used for build strategies for building an image.
|
@@ -6607,6 +6650,9 @@ type CreateJobRunOptions struct {
|
6607 | 6650 | // Optional mounts of config maps or a secrets.
|
6608 | 6651 | RunVolumeMounts []VolumeMountPrototype `json:"run_volume_mounts,omitempty"`
|
6609 | 6652 |
|
| 6653 | + // Optional value to override the JOB_ARRAY_SIZE environment variable for a job run. |
| 6654 | + ScaleArraySizeVariableOverride *int64 `json:"scale_array_size_variable_override,omitempty"` |
| 6655 | + |
6610 | 6656 | // Define a custom set of array indices as comma-separated list containing single values and hyphen-separated ranges
|
6611 | 6657 | // like `5,12-14,23,27`. Each instance can pick up its array index via environment variable `JOB_INDEX`. The number of
|
6612 | 6658 | // unique array indices specified here determines the number of job instances to run.
|
@@ -6739,6 +6785,12 @@ func (_options *CreateJobRunOptions) SetRunVolumeMounts(runVolumeMounts []Volume
|
6739 | 6785 | return _options
|
6740 | 6786 | }
|
6741 | 6787 |
|
| 6788 | +// SetScaleArraySizeVariableOverride : Allow user to set ScaleArraySizeVariableOverride |
| 6789 | +func (_options *CreateJobRunOptions) SetScaleArraySizeVariableOverride(scaleArraySizeVariableOverride int64) *CreateJobRunOptions { |
| 6790 | + _options.ScaleArraySizeVariableOverride = core.Int64Ptr(scaleArraySizeVariableOverride) |
| 6791 | + return _options |
| 6792 | +} |
| 6793 | + |
6742 | 6794 | // SetScaleArraySpec : Allow user to set ScaleArraySpec
|
6743 | 6795 | func (_options *CreateJobRunOptions) SetScaleArraySpec(scaleArraySpec string) *CreateJobRunOptions {
|
6744 | 6796 | _options.ScaleArraySpec = core.StringPtr(scaleArraySpec)
|
@@ -7365,6 +7417,10 @@ type DomainMapping struct {
|
7365 | 7417 | // The ID of the project the resource is located in.
|
7366 | 7418 | ProjectID *string `json:"project_id,omitempty"`
|
7367 | 7419 |
|
| 7420 | + // The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', |
| 7421 | + // 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'. |
| 7422 | + Region *string `json:"region,omitempty"` |
| 7423 | + |
7368 | 7424 | // The type of the CE Resource.
|
7369 | 7425 | ResourceType *string `json:"resource_type,omitempty"`
|
7370 | 7426 |
|
@@ -7444,6 +7500,10 @@ func UnmarshalDomainMapping(m map[string]json.RawMessage, result interface{}) (e
|
7444 | 7500 | if err != nil {
|
7445 | 7501 | return
|
7446 | 7502 | }
|
| 7503 | + err = core.UnmarshalPrimitive(m, "region", &obj.Region) |
| 7504 | + if err != nil { |
| 7505 | + return |
| 7506 | + } |
7447 | 7507 | err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
|
7448 | 7508 | if err != nil {
|
7449 | 7509 | return
|
@@ -8180,6 +8240,12 @@ func (options *GetSecretOptions) SetHeaders(param map[string]string) *GetSecretO
|
8180 | 8240 |
|
8181 | 8241 | // Job : Job is the response model for job resources.
|
8182 | 8242 | type Job struct {
|
| 8243 | + // Reference to a build that is associated with the job. |
| 8244 | + Build *string `json:"build,omitempty"` |
| 8245 | + |
| 8246 | + // Reference to a buildrun that is associated with the job. |
| 8247 | + BuildRun *string `json:"build_run,omitempty"` |
| 8248 | + |
8183 | 8249 | // The timestamp when the resource was created.
|
8184 | 8250 | CreatedAt *string `json:"created_at,omitempty"`
|
8185 | 8251 |
|
@@ -8210,6 +8276,10 @@ type Job struct {
|
8210 | 8276 | // The ID of the project the resource is located in.
|
8211 | 8277 | ProjectID *string `json:"project_id,omitempty"`
|
8212 | 8278 |
|
| 8279 | + // The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', |
| 8280 | + // 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'. |
| 8281 | + Region *string `json:"region,omitempty"` |
| 8282 | + |
8213 | 8283 | // The type of the job.
|
8214 | 8284 | ResourceType *string `json:"resource_type,omitempty"`
|
8215 | 8285 |
|
@@ -8298,6 +8368,14 @@ const (
|
8298 | 8368 | // UnmarshalJob unmarshals an instance of Job from the specified map of raw messages.
|
8299 | 8369 | func UnmarshalJob(m map[string]json.RawMessage, result interface{}) (err error) {
|
8300 | 8370 | obj := new(Job)
|
| 8371 | + err = core.UnmarshalPrimitive(m, "build", &obj.Build) |
| 8372 | + if err != nil { |
| 8373 | + return |
| 8374 | + } |
| 8375 | + err = core.UnmarshalPrimitive(m, "build_run", &obj.BuildRun) |
| 8376 | + if err != nil { |
| 8377 | + return |
| 8378 | + } |
8301 | 8379 | err = core.UnmarshalPrimitive(m, "created_at", &obj.CreatedAt)
|
8302 | 8380 | if err != nil {
|
8303 | 8381 | return
|
@@ -8330,6 +8408,10 @@ func UnmarshalJob(m map[string]json.RawMessage, result interface{}) (err error)
|
8330 | 8408 | if err != nil {
|
8331 | 8409 | return
|
8332 | 8410 | }
|
| 8411 | + err = core.UnmarshalPrimitive(m, "region", &obj.Region) |
| 8412 | + if err != nil { |
| 8413 | + return |
| 8414 | + } |
8333 | 8415 | err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
|
8334 | 8416 | if err != nil {
|
8335 | 8417 | return
|
@@ -8637,6 +8719,10 @@ type JobRun struct {
|
8637 | 8719 | // The ID of the project the resource is located in.
|
8638 | 8720 | ProjectID *string `json:"project_id,omitempty"`
|
8639 | 8721 |
|
| 8722 | + // The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', |
| 8723 | + // 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'. |
| 8724 | + Region *string `json:"region,omitempty"` |
| 8725 | + |
8640 | 8726 | // The type of the job run.
|
8641 | 8727 | ResourceType *string `json:"resource_type,omitempty"`
|
8642 | 8728 |
|
@@ -8666,6 +8752,9 @@ type JobRun struct {
|
8666 | 8752 | // Optional mounts of config maps or a secrets.
|
8667 | 8753 | RunVolumeMounts []VolumeMount `json:"run_volume_mounts" validate:"required"`
|
8668 | 8754 |
|
| 8755 | + // Optional value to override the JOB_ARRAY_SIZE environment variable for a job run. |
| 8756 | + ScaleArraySizeVariableOverride *int64 `json:"scale_array_size_variable_override,omitempty"` |
| 8757 | + |
8669 | 8758 | // Define a custom set of array indices as comma-separated list containing single values and hyphen-separated ranges
|
8670 | 8759 | // like `5,12-14,23,27`. Each instance can pick up its array index via environment variable `JOB_INDEX`. The number of
|
8671 | 8760 | // unique array indices specified here determines the number of job instances to run.
|
@@ -8733,6 +8822,7 @@ const (
|
8733 | 8822 | const (
|
8734 | 8823 | JobRun_Status_Completed = "completed"
|
8735 | 8824 | JobRun_Status_Failed = "failed"
|
| 8825 | + JobRun_Status_Pending = "pending" |
8736 | 8826 | JobRun_Status_Running = "running"
|
8737 | 8827 | )
|
8738 | 8828 |
|
@@ -8771,6 +8861,10 @@ func UnmarshalJobRun(m map[string]json.RawMessage, result interface{}) (err erro
|
8771 | 8861 | if err != nil {
|
8772 | 8862 | return
|
8773 | 8863 | }
|
| 8864 | + err = core.UnmarshalPrimitive(m, "region", &obj.Region) |
| 8865 | + if err != nil { |
| 8866 | + return |
| 8867 | + } |
8774 | 8868 | err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
|
8775 | 8869 | if err != nil {
|
8776 | 8870 | return
|
@@ -8803,6 +8897,10 @@ func UnmarshalJobRun(m map[string]json.RawMessage, result interface{}) (err erro
|
8803 | 8897 | if err != nil {
|
8804 | 8898 | return
|
8805 | 8899 | }
|
| 8900 | + err = core.UnmarshalPrimitive(m, "scale_array_size_variable_override", &obj.ScaleArraySizeVariableOverride) |
| 8901 | + if err != nil { |
| 8902 | + return |
| 8903 | + } |
8806 | 8904 | err = core.UnmarshalPrimitive(m, "scale_array_spec", &obj.ScaleArraySpec)
|
8807 | 8905 | if err != nil {
|
8808 | 8906 | return
|
@@ -10198,6 +10296,10 @@ type Secret struct {
|
10198 | 10296 | // The ID of the project the resource is located in.
|
10199 | 10297 | ProjectID *string `json:"project_id,omitempty"`
|
10200 | 10298 |
|
| 10299 | + // The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', |
| 10300 | + // 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'. |
| 10301 | + Region *string `json:"region,omitempty"` |
| 10302 | + |
10201 | 10303 | // The type of the secret.
|
10202 | 10304 | ResourceType *string `json:"resource_type,omitempty"`
|
10203 | 10305 |
|
@@ -10256,6 +10358,10 @@ func UnmarshalSecret(m map[string]json.RawMessage, result interface{}) (err erro
|
10256 | 10358 | if err != nil {
|
10257 | 10359 | return
|
10258 | 10360 | }
|
| 10361 | + err = core.UnmarshalPrimitive(m, "region", &obj.Region) |
| 10362 | + if err != nil { |
| 10363 | + return |
| 10364 | + } |
10259 | 10365 | err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
|
10260 | 10366 | if err != nil {
|
10261 | 10367 | return
|
|
0 commit comments