Skip to content

Sdk update 20240126 134305 #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 141 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
ef57658
Add .whitesource configuration file
Apr 6, 2022
f4305dc
Align internal sdk version
michael-magrian Jul 29, 2022
1eec7cb
Merge pull request #6 from coligo/align-with-public-sdk
reggeenr Jul 29, 2022
d3964c6
adjusted configuration items
reggeenr Jul 29, 2022
104a7c4
Merge pull request #5 from coligo/whitesource/configure
reggeenr Jul 29, 2022
fd1d174
adjusted travis settings
reggeenr Jul 29, 2022
b9711b2
Merge pull request #7 from coligo/fixed-e2e-tests
reggeenr Jul 29, 2022
792fcd3
Initialize v2 sdk version
michael-magrian Jul 29, 2022
f16de77
Merge pull request #8 from coligo/feature/init_v2_sdk_version
reggeenr Jul 29, 2022
ccaaa2b
Push reduced version
michael-magrian Aug 3, 2022
bdbbc92
Attempt fixing proj list specification
michael-magrian Aug 3, 2022
61f617c
added v2 integration tests
reggeenr Aug 3, 2022
bf33a68
Merge pull request #9 from coligo/added-v2-tests
reggeenr Aug 3, 2022
998cf52
updated v2 sdk
reggeenr Aug 9, 2022
ebc92a4
v2 updates
reggeenr Aug 11, 2022
56d05a7
Merge pull request #10 from coligo/v2-update
michael-magrian Aug 11, 2022
5688c6f
Build new sdk version
michael-magrian Sep 20, 2022
ea42310
Upgrade sdk
michael-magrian Sep 22, 2022
03f7ea3
Merge pull request #11 from coligo/update-sdk
michael-magrian Oct 5, 2022
c4c9b70
updated for v2 secrets
Oct 12, 2022
5f02db7
Merge pull request #13 from coligo/v2.1-secrets
michael-magrian Oct 13, 2022
59bd2f5
Push new SDK version
michael-magrian Oct 13, 2022
e18e235
Push change
michael-magrian Oct 20, 2022
ac08263
Push change
michael-magrian Oct 21, 2022
e3bee6f
latest v2 updates
reggeenr Oct 24, 2022
1441ebc
swagger updates
reggeenr Oct 27, 2022
d935b43
go-sdk-update
reggeenr Nov 1, 2022
ef61d21
Merge pull request #14 from coligo/swagger-updates
Nov 1, 2022
44d2c01
v2 updates
reggeenr Nov 26, 2022
95c3edf
v2 updates
reggeenr Nov 28, 2022
bd80189
Replace project guid with project id
michael-magrian Nov 28, 2022
2a7c88d
Push update coligo/api#1255
michael-magrian Nov 30, 2022
08c4570
jobrun update
reggeenr Dec 2, 2022
4148ea2
Merge pull request #15 from coligo/jobrun-model-update
reggeenr Dec 2, 2022
de3c40c
project updates
reggeenr Dec 3, 2022
95ba618
fixed broken integration tests
reggeenr Dec 3, 2022
997aa04
adjusted v1 sdk e2e test
reggeenr Dec 3, 2022
7a3a853
Go SDK preparations
reggeenr Dec 3, 2022
d27443c
minor travis adjustments
reggeenr Dec 3, 2022
ea507eb
adjusted make file
reggeenr Dec 5, 2022
1e8ab93
removed go19 from travis test set
reggeenr Dec 5, 2022
edb5deb
fixed gosec and gocli-lint
reggeenr Dec 5, 2022
1493947
fixed go-sec scan
reggeenr Dec 5, 2022
ba8e321
fixed v1 integration test
reggeenr Dec 5, 2022
f6c42c2
fixed v1 and v2 test cases
reggeenr Dec 5, 2022
069e0bc
build(ci): enabled go-sec and integration tests in travis
reggeenr Dec 5, 2022
91c38b1
Merge pull request #16 from coligo/proj-updates
michael-magrian Dec 6, 2022
3e5c6b6
fix(core): re-enabled automatic CI checks
reggeenr Dec 6, 2022
44576b9
Merge branch 'main' into semantic-release-test
reggeenr Dec 6, 2022
8840520
Merge pull request #18 from coligo/semantic-release-test
michael-magrian Dec 6, 2022
3f97c20
fix(core): slightly adjusted the project model
reggeenr Dec 6, 2022
3652652
Merge branch 'main' of github.ibm.com:coligo/go-sdk into semantic-rel…
reggeenr Dec 6, 2022
c7272bf
updated to latest travis ubuntu version
reggeenr Dec 6, 2022
2e4bd9d
Merge pull request #19 from coligo/semantic-release-test
michael-magrian Dec 6, 2022
3198255
fix(core): fixed build issue
reggeenr Dec 6, 2022
4286124
Merge pull request #20 from coligo/enabled-semantic-release
michael-magrian Dec 6, 2022
6244645
fix(core): travis distribution update
reggeenr Dec 6, 2022
a0286ee
fix(core): fixed travis setup
reggeenr Dec 6, 2022
1bb7e14
changed to focal beta
reggeenr Dec 6, 2022
2e4f0cc
proofed that michael really reviews
reggeenr Dec 6, 2022
f087a9c
fix(core): adjusted travis config
reggeenr Dec 6, 2022
3d91203
Merge pull request #22 from coligo/travis-config-update
michael-magrian Dec 6, 2022
2f600f9
last final change on this
reggeenr Dec 6, 2022
564f8ec
fix(core): adjusted semantic release config
reggeenr Dec 6, 2022
5cd14dc
Merge pull request #24 from coligo/adjusted-semantic-release-config
michael-magrian Dec 6, 2022
b376539
fix(ci): fixed semantic-release configuration
reggeenr Dec 6, 2022
f5e3d45
Update version 0.1.0 -> 1.0.0 [skip ci]
reggeenr Dec 6, 2022
bf616de
fix(core): set latest version in semantic-release related files
reggeenr Dec 6, 2022
ab62a91
Merge pull request #25 from coligo/version-2.0.0
michael-magrian Dec 6, 2022
5ee886d
fix(build): added a travis.yml that should be used for public github
reggeenr Dec 9, 2022
0d04b4d
Update version 2.0.0 -> 2.0.1 [skip ci]
semantic-release-bot Dec 9, 2022
a299cae
chore(release): 2.0.1 release notes [skip ci]
semantic-release-bot Dec 9, 2022
f7d29f4
fix(build): remove package.json from git. added changelog entry for v…
reggeenr Dec 9, 2022
37f444f
Update version 2.0.1 -> 2.0.2 [skip ci]
semantic-release-bot Dec 9, 2022
3b91e19
chore(release): 2.0.2 release notes [skip ci]
semantic-release-bot Dec 9, 2022
be0d31d
fix(documentation): slightly adjusted the readme
reggeenr Dec 9, 2022
656df50
Update version 2.0.2 -> 2.0.3 [skip ci]
semantic-release-bot Dec 9, 2022
5fcc5f0
chore(release): 2.0.3 release notes [skip ci]
semantic-release-bot Dec 9, 2022
629189b
fix(build): regenerated with most recent generator
reggeenr Jan 15, 2023
e630bcd
fix(examples): added secret create example
Mar 8, 2023
25a0249
Update version 2.0.3 -> 2.0.4 [skip ci]
semantic-release-bot Mar 8, 2023
c5f1db9
chore(release): 2.0.4 release notes [skip ci]
semantic-release-bot Mar 8, 2023
38796d2
fix(model): pulled in latest v2 endpoint updates
reggeenr Mar 9, 2023
ec4b823
Update version 2.0.4 -> 2.0.5 [skip ci]
semantic-release-bot Mar 9, 2023
63a90aa
chore(release): 2.0.5 release notes [skip ci]
semantic-release-bot Mar 9, 2023
e4fca58
added oneOf and examples (#29)
Mar 23, 2023
4f0d815
feat(oneOf): oneOf added for v3 release (#30)
Mar 24, 2023
538d944
Update version 2.0.5 -> 3.0.0 [skip ci]
semantic-release-bot Mar 24, 2023
034d9cf
chore(release): 3.0.0 release notes [skip ci]
semantic-release-bot Mar 24, 2023
d4e9bbb
sdk-update-20230324-173258 (#33)
reggeenr Mar 24, 2023
e9688bc
feat(api): added support to retrieve egress ips
reggeenr Mar 24, 2023
06943d4
fix(tests): hardened integration tests (#34)
reggeenr Mar 24, 2023
92e3463
Update version 3.0.0 -> 3.1.0 [skip ci]
semantic-release-bot Mar 24, 2023
c38d9bd
chore(release): 3.1.0 release notes [skip ci]
semantic-release-bot Mar 24, 2023
1ac8578
feat(ci) travis migration (#35)
reggeenr May 24, 2023
a231e21
feat(api): SDK update 20230605-120554 (#38)
Jun 5, 2023
0668155
Update version 3.1.0 -> 3.2.0 [skip ci]
semantic-release-bot Jun 5, 2023
8c4587e
chore(release): 3.2.0 release notes [skip ci]
semantic-release-bot Jun 5, 2023
c689cb7
Revert "sdk-update-20230605-120554" (#39)
Jun 6, 2023
438d269
feat(api): Added support for service bindings and service access secr…
Jun 6, 2023
c473be2
Update version 3.1.0 -> 4.0.0 [skip ci]
semantic-release-bot Jun 6, 2023
e218249
chore(release): 4.0.0 release notes [skip ci]
semantic-release-bot Jun 6, 2023
053101d
feat(api): SDK update 20230606-124943 (#43)
Jun 6, 2023
462b48f
Update version 4.0.0 -> 4.1.0 [skip ci]
semantic-release-bot Jun 6, 2023
d72069f
chore(release): 4.1.0 release notes [skip ci]
semantic-release-bot Jun 6, 2023
905306e
fix(tests): fixed tests after regen (#44)
Jun 22, 2023
dd8379c
Update version 4.1.0 -> 4.1.1 [skip ci]
semantic-release-bot Jun 22, 2023
c0782f7
chore(release): 4.1.1 release notes [skip ci]
semantic-release-bot Jun 22, 2023
c9246e1
fix(test): adjusted test for tls secrets (#47)
Jul 14, 2023
a8089d3
Update version 4.1.1 -> 4.1.2 [skip ci]
semantic-release-bot Jul 14, 2023
3ce70cb
chore(release): 4.1.2 release notes [skip ci]
semantic-release-bot Jul 14, 2023
46b8905
fix(test): updated k8s.io/client-go library in example v1 tests (#78)
Sep 21, 2023
3299b8a
feat(api): Adding Domain Mapping support to SDK (#91)
Nov 6, 2023
614ab77
feat(api): Adding Domain Mapping support to SDK (#92)
Nov 6, 2023
d867227
Update version 4.1.2 -> 4.2.0 [skip ci]
semantic-release-bot Nov 6, 2023
d09b8ea
chore(release): 4.2.0 release notes [skip ci]
semantic-release-bot Nov 6, 2023
1863f82
Update .whitesource (#99)
reggeenr Nov 21, 2023
e3a2bc6
updates to integration test for domain mapping (#100)
Nov 29, 2023
f9c3406
update .gitignore to add cloned repo (#101)
Dec 1, 2023
ed4c76d
ci(mend): :wrench: Enable mend renovate (#103)
michael-magrian Jan 17, 2024
e78b087
update tls files location (#112)
Jan 18, 2024
c6509ce
fix(deps): :lock: upgrade crypto package (#107)
michael-magrian Jan 18, 2024
b64a371
fix(deps): update kubernetes packages to v0.29.1 (#110)
Jan 18, 2024
d643728
fix(deps): update module github.com/ibm/platform-services-go-sdk to v…
Jan 18, 2024
3b2b91b
fix(deps): update module github.com/ibm/go-sdk-core/v5 to v5.15.0 (#105)
Jan 18, 2024
fd79e28
fix(deps): update module github.com/onsi/ginkgo to v2 (#114)
Jan 18, 2024
6cdcafa
fix(deps): update module github.com/onsi/ginkgo to v2 (#115)
Jan 18, 2024
8ea0055
fix(deps): update module github.com/onsi/gomega to v1.31.0 (#109)
Jan 18, 2024
2862675
fix(deps): update module github.com/onsi/ginkgo to v2 (#116)
Jan 18, 2024
18a495b
fix(deps): update module github.com/go-openapi/strfmt to v0.22.0 (#104)
Jan 18, 2024
174d0dc
fix(deps): update module github.com/onsi/gomega to v1.31.1 (#118)
Jan 19, 2024
da397b9
fix(readme): add readme for example_v2 (#120)
Jan 22, 2024
bf1d6eb
chore(deps): update module golang.org/x/net to v0.20.0 (#121)
Jan 22, 2024
11cec7b
fix(documentation): fix the example link (#122)
Jan 23, 2024
6ed24cd
fix(deps): update module github.com/ibm/platform-services-go-sdk to v…
Jan 24, 2024
c2e6d52
feat(api): SDK update 20240124-161556 (#125)
Jan 24, 2024
0e54472
node version 20 is necessary for latest semantic-release (#126)
Jan 26, 2024
f18121a
Update version 4.2.0 -> 4.3.0 [skip ci]
semantic-release-bot Jan 26, 2024
70c760d
chore(release): 4.3.0 release notes [skip ci]
semantic-release-bot Jan 26, 2024
a9e4a98
SDK update 20240126-134305
Jan 26, 2024
a44d0b1
Merge branch 'main' into sdk-update-20240126-134305
Jan 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Build Status](https://travis-ci.com/IBM/code-engine-go-sdk.svg?branch=main)](https://travis-ci.com/IBM/code-engine-go-sdk)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

# IBM Cloud Code Engine Go SDK 4.2.0
# IBM Cloud Code Engine Go SDK 4.3.0
Go client library to interact with the [Code Engine API](https://cloud.ibm.com/apidocs/codeengine).

## Table of Contents
Expand All @@ -17,7 +17,7 @@ Go client library to interact with the [Code Engine API](https://cloud.ibm.com/a

<!-- toc -->

- [IBM Cloud Code Engine Go SDK 4.2.0](#ibm-cloud-code-engine-go-sdk-310)
- [IBM Cloud Code Engine Go SDK 4.3.0](#ibm-cloud-code-engine-go-sdk-310)
- [Table of Contents](#table-of-contents)
- [Overview](#overview)
- [Prerequisites](#prerequisites)
Expand Down Expand Up @@ -52,7 +52,7 @@ Service Name | Package name
* Go version 1.18 or above.

## Installation
The current version of this SDK: 4.2.0
The current version of this SDK: 4.3.0

There are a few different ways to download and install the Code Engine Go SDK project for use by your
Go application:
Expand Down Expand Up @@ -85,7 +85,7 @@ to your `Gopkg.toml` file. Here is an example:
```
[[constraint]]
name = "github.com/IBM/code-engine-go-sdk"
version = "4.2.0"
version = "4.3.0"

```

Expand Down
120 changes: 113 additions & 7 deletions codeenginev2/code_engine_v2.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,7 +15,7 @@
*/

/*
* IBM OpenAPI SDK Code Generator Version: 3.80.0-29334a73-20230925-151553
* IBM OpenAPI SDK Code Generator Version: 3.84.1-55f6d880-20240110-194020
*/

// Package codeenginev2 : Operations and models for the CodeEngineV2 service
Expand Down Expand Up @@ -1592,6 +1592,9 @@ func (codeEngine *CodeEngineV2) CreateJobRunWithContext(ctx context.Context, cre
if createJobRunOptions.RunVolumeMounts != nil {
body["run_volume_mounts"] = createJobRunOptions.RunVolumeMounts
}
if createJobRunOptions.ScaleArraySizeVariableOverride != nil {
body["scale_array_size_variable_override"] = createJobRunOptions.ScaleArraySizeVariableOverride
}
if createJobRunOptions.ScaleArraySpec != nil {
body["scale_array_spec"] = createJobRunOptions.ScaleArraySpec
}
Expand Down Expand Up @@ -3681,6 +3684,10 @@ type App struct {
// The ID of the project the resource is located in.
ProjectID *string `json:"project_id,omitempty"`

// The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de',
// 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
Region *string `json:"region,omitempty"`

// The type of the app.
ResourceType *string `json:"resource_type,omitempty"`

Expand Down Expand Up @@ -3857,6 +3864,10 @@ func UnmarshalApp(m map[string]json.RawMessage, result interface{}) (err error)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "region", &obj.Region)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
if err != nil {
return
Expand Down Expand Up @@ -4237,6 +4248,10 @@ type AppRevision struct {
// The ID of the project the resource is located in.
ProjectID *string `json:"project_id,omitempty"`

// The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de',
// 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
Region *string `json:"region,omitempty"`

// The type of the app revision.
ResourceType *string `json:"resource_type,omitempty"`

Expand Down Expand Up @@ -4375,6 +4390,10 @@ func UnmarshalAppRevision(m map[string]json.RawMessage, result interface{}) (err
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "region", &obj.Region)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
if err != nil {
return
Expand Down Expand Up @@ -4733,6 +4752,10 @@ type Build struct {
// The ID of the project the resource is located in.
ProjectID *string `json:"project_id,omitempty"`

// The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de',
// 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
Region *string `json:"region,omitempty"`

// The type of the build.
ResourceType *string `json:"resource_type,omitempty"`

Expand Down Expand Up @@ -4767,7 +4790,7 @@ type Build struct {
StatusDetails *BuildStatus `json:"status_details,omitempty"`

// Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`,
// `large`, `xlarge`.
// `large`, `xlarge`, `xxlarge`.
StrategySize *string `json:"strategy_size" validate:"required"`

// Optional path to the specification file that is used for build strategies for building an image.
Expand Down Expand Up @@ -4837,6 +4860,10 @@ func UnmarshalBuild(m map[string]json.RawMessage, result interface{}) (err error
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "region", &obj.Region)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
if err != nil {
return
Expand Down Expand Up @@ -4969,7 +4996,7 @@ type BuildPatch struct {
SourceURL *string `json:"source_url,omitempty"`

// Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`,
// `large`, `xlarge`.
// `large`, `xlarge`, `xxlarge`.
StrategySize *string `json:"strategy_size,omitempty"`

// Optional path to the specification file that is used for build strategies for building an image.
Expand Down Expand Up @@ -5081,6 +5108,10 @@ type BuildRun struct {
// The ID of the project the resource is located in.
ProjectID *string `json:"project_id,omitempty"`

// The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de',
// 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
Region *string `json:"region,omitempty"`

// The type of the build run.
ResourceType *string `json:"resource_type,omitempty"`

Expand Down Expand Up @@ -5118,7 +5149,7 @@ type BuildRun struct {
StatusDetails *BuildRunStatus `json:"status_details,omitempty"`

// Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`,
// `large`, `xlarge`.
// `large`, `xlarge`, `xxlarge`.
StrategySize *string `json:"strategy_size,omitempty"`

// Optional path to the specification file that is used for build strategies for building an image.
Expand Down Expand Up @@ -5200,6 +5231,10 @@ func UnmarshalBuildRun(m map[string]json.RawMessage, result interface{}) (err er
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "region", &obj.Region)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
if err != nil {
return
Expand Down Expand Up @@ -5452,6 +5487,10 @@ type ConfigMap struct {
// The ID of the project the resource is located in.
ProjectID *string `json:"project_id,omitempty"`

// The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de',
// 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
Region *string `json:"region,omitempty"`

// The type of the config map.
ResourceType *string `json:"resource_type,omitempty"`
}
Expand Down Expand Up @@ -5493,6 +5532,10 @@ func UnmarshalConfigMap(m map[string]json.RawMessage, result interface{}) (err e
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "region", &obj.Region)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
if err != nil {
return
Expand Down Expand Up @@ -5930,7 +5973,7 @@ type CreateBuildOptions struct {
SourceURL *string `json:"source_url,omitempty"`

// Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`,
// `large`, `xlarge`.
// `large`, `xlarge`, `xxlarge`.
StrategySize *string `json:"strategy_size,omitempty"`

// Optional path to the specification file that is used for build strategies for building an image.
Expand Down Expand Up @@ -6096,7 +6139,7 @@ type CreateBuildRunOptions struct {
SourceURL *string `json:"source_url,omitempty"`

// Optional size for the build, which determines the amount of resources used. Build sizes are `small`, `medium`,
// `large`, `xlarge`.
// `large`, `xlarge`, `xxlarge`.
StrategySize *string `json:"strategy_size,omitempty"`

// Optional path to the specification file that is used for build strategies for building an image.
Expand Down Expand Up @@ -6607,6 +6650,9 @@ type CreateJobRunOptions struct {
// Optional mounts of config maps or a secrets.
RunVolumeMounts []VolumeMountPrototype `json:"run_volume_mounts,omitempty"`

// Optional value to override the JOB_ARRAY_SIZE environment variable for a job run.
ScaleArraySizeVariableOverride *int64 `json:"scale_array_size_variable_override,omitempty"`

// Define a custom set of array indices as comma-separated list containing single values and hyphen-separated ranges
// like `5,12-14,23,27`. Each instance can pick up its array index via environment variable `JOB_INDEX`. The number of
// unique array indices specified here determines the number of job instances to run.
Expand Down Expand Up @@ -6739,6 +6785,12 @@ func (_options *CreateJobRunOptions) SetRunVolumeMounts(runVolumeMounts []Volume
return _options
}

// SetScaleArraySizeVariableOverride : Allow user to set ScaleArraySizeVariableOverride
func (_options *CreateJobRunOptions) SetScaleArraySizeVariableOverride(scaleArraySizeVariableOverride int64) *CreateJobRunOptions {
_options.ScaleArraySizeVariableOverride = core.Int64Ptr(scaleArraySizeVariableOverride)
return _options
}

// SetScaleArraySpec : Allow user to set ScaleArraySpec
func (_options *CreateJobRunOptions) SetScaleArraySpec(scaleArraySpec string) *CreateJobRunOptions {
_options.ScaleArraySpec = core.StringPtr(scaleArraySpec)
Expand Down Expand Up @@ -7365,6 +7417,10 @@ type DomainMapping struct {
// The ID of the project the resource is located in.
ProjectID *string `json:"project_id,omitempty"`

// The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de',
// 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
Region *string `json:"region,omitempty"`

// The type of the CE Resource.
ResourceType *string `json:"resource_type,omitempty"`

Expand Down Expand Up @@ -7444,6 +7500,10 @@ func UnmarshalDomainMapping(m map[string]json.RawMessage, result interface{}) (e
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "region", &obj.Region)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
if err != nil {
return
Expand Down Expand Up @@ -8180,6 +8240,12 @@ func (options *GetSecretOptions) SetHeaders(param map[string]string) *GetSecretO

// Job : Job is the response model for job resources.
type Job struct {
// Reference to a build that is associated with the job.
Build *string `json:"build,omitempty"`

// Reference to a buildrun that is associated with the job.
BuildRun *string `json:"build_run,omitempty"`

// The timestamp when the resource was created.
CreatedAt *string `json:"created_at,omitempty"`

Expand Down Expand Up @@ -8210,6 +8276,10 @@ type Job struct {
// The ID of the project the resource is located in.
ProjectID *string `json:"project_id,omitempty"`

// The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de',
// 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
Region *string `json:"region,omitempty"`

// The type of the job.
ResourceType *string `json:"resource_type,omitempty"`

Expand Down Expand Up @@ -8298,6 +8368,14 @@ const (
// UnmarshalJob unmarshals an instance of Job from the specified map of raw messages.
func UnmarshalJob(m map[string]json.RawMessage, result interface{}) (err error) {
obj := new(Job)
err = core.UnmarshalPrimitive(m, "build", &obj.Build)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "build_run", &obj.BuildRun)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "created_at", &obj.CreatedAt)
if err != nil {
return
Expand Down Expand Up @@ -8330,6 +8408,10 @@ func UnmarshalJob(m map[string]json.RawMessage, result interface{}) (err error)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "region", &obj.Region)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
if err != nil {
return
Expand Down Expand Up @@ -8637,6 +8719,10 @@ type JobRun struct {
// The ID of the project the resource is located in.
ProjectID *string `json:"project_id,omitempty"`

// The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de',
// 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
Region *string `json:"region,omitempty"`

// The type of the job run.
ResourceType *string `json:"resource_type,omitempty"`

Expand Down Expand Up @@ -8666,6 +8752,9 @@ type JobRun struct {
// Optional mounts of config maps or a secrets.
RunVolumeMounts []VolumeMount `json:"run_volume_mounts" validate:"required"`

// Optional value to override the JOB_ARRAY_SIZE environment variable for a job run.
ScaleArraySizeVariableOverride *int64 `json:"scale_array_size_variable_override,omitempty"`

// Define a custom set of array indices as comma-separated list containing single values and hyphen-separated ranges
// like `5,12-14,23,27`. Each instance can pick up its array index via environment variable `JOB_INDEX`. The number of
// unique array indices specified here determines the number of job instances to run.
Expand Down Expand Up @@ -8733,6 +8822,7 @@ const (
const (
JobRun_Status_Completed = "completed"
JobRun_Status_Failed = "failed"
JobRun_Status_Pending = "pending"
JobRun_Status_Running = "running"
)

Expand Down Expand Up @@ -8771,6 +8861,10 @@ func UnmarshalJobRun(m map[string]json.RawMessage, result interface{}) (err erro
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "region", &obj.Region)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
if err != nil {
return
Expand Down Expand Up @@ -8803,6 +8897,10 @@ func UnmarshalJobRun(m map[string]json.RawMessage, result interface{}) (err erro
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "scale_array_size_variable_override", &obj.ScaleArraySizeVariableOverride)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "scale_array_spec", &obj.ScaleArraySpec)
if err != nil {
return
Expand Down Expand Up @@ -10198,6 +10296,10 @@ type Secret struct {
// The ID of the project the resource is located in.
ProjectID *string `json:"project_id,omitempty"`

// The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de',
// 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
Region *string `json:"region,omitempty"`

// The type of the secret.
ResourceType *string `json:"resource_type,omitempty"`

Expand Down Expand Up @@ -10256,6 +10358,10 @@ func UnmarshalSecret(m map[string]json.RawMessage, result interface{}) (err erro
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "region", &obj.Region)
if err != nil {
return
}
err = core.UnmarshalPrimitive(m, "resource_type", &obj.ResourceType)
if err != nil {
return
Expand Down
Loading