Skip to content

Commit 8dd921e

Browse files
authored
Sdk update 20240927 164941 (#13)
1 parent 6ec839d commit 8dd921e

File tree

8 files changed

+55
-25
lines changed

8 files changed

+55
-25
lines changed

README.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!--
33
[![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)
44
-->
5-
# Python SDK for IBM Cloud Code Engine 4.0.0
5+
# Python SDK for IBM Cloud Code Engine 4.1.1
66

77
Python client library to interact with the [IBM Cloud Code Engine API](https://cloud.ibm.com/apidocs/codeengine).
88

@@ -20,17 +20,15 @@ Python client library to interact with the [IBM Cloud Code Engine API](https://c
2020

2121
<!-- toc -->
2222

23-
- [Python SDK for IBM Cloud Code Engine 3.1.0](#python-sdk-for-ibm-cloud-code-engine-310)
24-
- [Table of Contents](#table-of-contents)
25-
- [Overview](#overview)
26-
- [Prerequisites](#prerequisites)
27-
- [Installation](#installation)
28-
- [Using the SDK](#using-the-sdk)
29-
- [Questions](#questions)
30-
- [Issues](#issues)
31-
- [Open source @ IBM](#open-source--ibm)
32-
- [Contributing](#contributing)
33-
- [License](#license)
23+
- [Overview](#overview)
24+
- [Prerequisites](#prerequisites)
25+
- [Installation](#installation)
26+
- [Using the SDK](#using-the-sdk)
27+
- [Questions](#questions)
28+
- [Issues](#issues)
29+
- [Open source @ IBM](#open-source--ibm)
30+
- [Contributing](#contributing)
31+
- [License](#license)
3432

3533
<!-- tocstop -->
3634

@@ -41,8 +39,8 @@ IBM Cloud services:
4139

4240
Service Name | Imported Class Name
4341
--- | ---
44-
[IBM Cloud Code Engine V2](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.0.0) | CodeEngineV2
45-
[IBM Cloud Code Engine V1](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.0.0) | IbmCloudCodeEngineV1
42+
[IBM Cloud Code Engine V2](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.1.1) | CodeEngineV2
43+
[IBM Cloud Code Engine V1](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.1.1) | IbmCloudCodeEngineV1
4644

4745
## Prerequisites
4846

@@ -57,13 +55,13 @@ Service Name | Imported Class Name
5755
To install, use `pip` or `easy_install`:
5856

5957
```bash
60-
pip install --upgrade "ibm_code_engine_sdk>=4.0.0"
58+
pip install --upgrade "ibm_code_engine_sdk>=4.1.1"
6159
```
6260

6361
or
6462

6563
```bash
66-
easy_install --upgrade "ibm_code_engine_sdk>=4.0.0"
64+
easy_install --upgrade "ibm_code_engine_sdk>=4.1.1"
6765
```
6866

6967
## Using the SDK

examples/test_code_engine_v2_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import pytest
2323
from ibm_code_engine_sdk.code_engine_v2 import *
2424

25-
version = '2024-09-24'
25+
version = '2024-09-27'
2626

2727
#
2828
# This file provides an example of how to use the Code Engine service.

ibm_code_engine_sdk/code_engine_v2.py

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def new_instance(
5656

5757
:param str version: (optional) The API version, in format `YYYY-MM-DD`. For
5858
the API behavior documented here, specify any date between `2021-03-31` and
59-
`2024-09-24`.
59+
`2024-09-27`.
6060
"""
6161
authenticator = get_authenticator_from_environment(service_name)
6262
service = cls(
@@ -80,7 +80,7 @@ def __init__(
8080

8181
:param str version: (optional) The API version, in format `YYYY-MM-DD`. For
8282
the API behavior documented here, specify any date between `2021-03-31` and
83-
`2024-09-24`.
83+
`2024-09-27`.
8484
"""
8585
BaseService.__init__(self, service_url=self.DEFAULT_SERVICE_URL, authenticator=authenticator)
8686
self.version = version
@@ -7391,27 +7391,40 @@ class BuildRunStatus:
73917391
Current status condition of a build run.
73927392

73937393
:param str completion_time: (optional) Time the build run completed.
7394+
:param str git_branch_name: (optional) The default branch name of the git
7395+
source.
7396+
:param str git_commit_author: (optional) The commit author of a git source.
7397+
:param str git_commit_sha: (optional) The commit sha of the git source.
73947398
:param str output_digest: (optional) Describes the time the build run completed.
73957399
:param str reason: (optional) Optional information to provide more context in
73967400
case of a 'failed' or 'warning' status.
7401+
:param str source_timestamp: (optional) The timestamp of the source.
73977402
:param str start_time: (optional) Time the build run started.
73987403
"""
73997404

74007405
def __init__(
74017406
self,
74027407
*,
74037408
completion_time: Optional[str] = None,
7409+
git_branch_name: Optional[str] = None,
7410+
git_commit_author: Optional[str] = None,
7411+
git_commit_sha: Optional[str] = None,
74047412
output_digest: Optional[str] = None,
74057413
reason: Optional[str] = None,
7414+
source_timestamp: Optional[str] = None,
74067415
start_time: Optional[str] = None,
74077416
) -> None:
74087417
"""
74097418
Initialize a BuildRunStatus object.
74107419

74117420
"""
74127421
self.completion_time = completion_time
7422+
self.git_branch_name = git_branch_name
7423+
self.git_commit_author = git_commit_author
7424+
self.git_commit_sha = git_commit_sha
74137425
self.output_digest = output_digest
74147426
self.reason = reason
7427+
self.source_timestamp = source_timestamp
74157428
self.start_time = start_time
74167429

74177430
@classmethod
@@ -7420,10 +7433,18 @@ def from_dict(cls, _dict: Dict) -> 'BuildRunStatus':
74207433
args = {}
74217434
if (completion_time := _dict.get('completion_time')) is not None:
74227435
args['completion_time'] = completion_time
7436+
if (git_branch_name := _dict.get('git_branch_name')) is not None:
7437+
args['git_branch_name'] = git_branch_name
7438+
if (git_commit_author := _dict.get('git_commit_author')) is not None:
7439+
args['git_commit_author'] = git_commit_author
7440+
if (git_commit_sha := _dict.get('git_commit_sha')) is not None:
7441+
args['git_commit_sha'] = git_commit_sha
74237442
if (output_digest := _dict.get('output_digest')) is not None:
74247443
args['output_digest'] = output_digest
74257444
if (reason := _dict.get('reason')) is not None:
74267445
args['reason'] = reason
7446+
if (source_timestamp := _dict.get('source_timestamp')) is not None:
7447+
args['source_timestamp'] = source_timestamp
74277448
if (start_time := _dict.get('start_time')) is not None:
74287449
args['start_time'] = start_time
74297450
return cls(**args)
@@ -7438,10 +7459,18 @@ def to_dict(self) -> Dict:
74387459
_dict = {}
74397460
if hasattr(self, 'completion_time') and getattr(self, 'completion_time') is not None:
74407461
_dict['completion_time'] = getattr(self, 'completion_time')
7462+
if hasattr(self, 'git_branch_name') and getattr(self, 'git_branch_name') is not None:
7463+
_dict['git_branch_name'] = getattr(self, 'git_branch_name')
7464+
if hasattr(self, 'git_commit_author') and getattr(self, 'git_commit_author') is not None:
7465+
_dict['git_commit_author'] = getattr(self, 'git_commit_author')
7466+
if hasattr(self, 'git_commit_sha') and getattr(self, 'git_commit_sha') is not None:
7467+
_dict['git_commit_sha'] = getattr(self, 'git_commit_sha')
74417468
if hasattr(self, 'output_digest') and getattr(self, 'output_digest') is not None:
74427469
_dict['output_digest'] = getattr(self, 'output_digest')
74437470
if hasattr(self, 'reason') and getattr(self, 'reason') is not None:
74447471
_dict['reason'] = getattr(self, 'reason')
7472+
if hasattr(self, 'source_timestamp') and getattr(self, 'source_timestamp') is not None:
7473+
_dict['source_timestamp'] = getattr(self, 'source_timestamp')
74457474
if hasattr(self, 'start_time') and getattr(self, 'start_time') is not None:
74467475
_dict['start_time'] = getattr(self, 'start_time')
74477476
return _dict

ibm_code_engine_sdk/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
"""
1818
Version of ibm_code_engine_sdk
1919
"""
20-
__version__ = '4.0.0'
20+
__version__ = '4.1.1'

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[build-system]
2+
requires = ["setuptools >= 61.0"]
3+
build-backend = "setuptools.build_meta"
4+
15
[tool.black]
26
line-length = 120
37
skip-string-normalization = true

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# test dependencies
22
coverage>=4.5.4
3-
pylint>=3.3.1,<3.4.0
3+
pylint>=3.2.1,<3.3.0
44
pytest>=8.3.2,<8.4.0
55
pytest-cov>=5.0.0,<5.1.0
66
pytest-rerunfailures>=3.1

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
requests>=2.26.0,<3.0.0
1+
requests>=2.31.0,<3.0.0
22
urllib3>=2.2.1,<2.3.0
33
python_dateutil>=2.5.3,<3.0.0
44
ibm_cloud_sdk_core>=3.16.0,<4.0.0

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import sys
2020
import pkg_resources
2121

22-
__version__ = '4.0.0'
22+
__version__ = '4.1.1'
2323
PACKAGE_NAME = 'ibm_code_engine_sdk'
2424
PACKAGE_DESC = 'Python SDK for IBM Cloud Code Engine'
2525

@@ -59,11 +59,10 @@
5959
classifiers=[
6060
'Programming Language :: Python',
6161
'Programming Language :: Python :: 3',
62-
'Programming Language :: Python :: 3.7',
63-
'Programming Language :: Python :: 3.8',
6462
'Programming Language :: Python :: 3.9',
6563
'Programming Language :: Python :: 3.10',
6664
'Programming Language :: Python :: 3.11',
65+
'Programming Language :: Python :: 3.12',
6766
'Development Status :: 5 - Production/Stable',
6867
'Intended Audience :: Developers',
6968
'License :: OSI Approved :: Apache Software License',

0 commit comments

Comments
 (0)