ibm-code-engine-sdk 4.4.1__tar.gz → 4.9.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ibm_code_engine_sdk-4.4.1/ibm_code_engine_sdk.egg-info → ibm_code_engine_sdk-4.9.0}/PKG-INFO +19 -9
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/README.md +5 -5
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk/code_engine_v2.py +199 -9
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk/version.py +1 -1
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0/ibm_code_engine_sdk.egg-info}/PKG-INFO +19 -9
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk.egg-info/requires.txt +2 -2
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/requirements.txt +2 -2
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/setup.py +1 -1
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/LICENSE +0 -0
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/MANIFEST.in +0 -0
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk/__init__.py +0 -0
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk/common.py +0 -0
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk/ibm_cloud_code_engine_v1.py +0 -0
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk.egg-info/SOURCES.txt +0 -0
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk.egg-info/dependency_links.txt +0 -0
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk.egg-info/top_level.txt +0 -0
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk.egg-info/zip-safe +0 -0
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/pyproject.toml +0 -0
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/requirements-dev.txt +0 -0
- {ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/setup.cfg +0 -0
{ibm_code_engine_sdk-4.4.1/ibm_code_engine_sdk.egg-info → ibm_code_engine_sdk-4.9.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: ibm-code-engine-sdk
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.9.0
|
|
4
4
|
Summary: Python SDK for IBM Cloud Code Engine
|
|
5
5
|
Home-page: https://github.com/IBM/code-engine-python-sdk
|
|
6
6
|
Author: IBM
|
|
@@ -21,16 +21,26 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
21
21
|
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
|
24
|
-
Requires-Dist: requests<3.0.0,>=2.
|
|
25
|
-
Requires-Dist: urllib3<2.3.0,>=2.2.
|
|
24
|
+
Requires-Dist: requests<3.0.0,>=2.32.0
|
|
25
|
+
Requires-Dist: urllib3<2.3.0,>=2.2.2
|
|
26
26
|
Requires-Dist: python_dateutil<3.0.0,>=2.5.3
|
|
27
27
|
Requires-Dist: ibm_cloud_sdk_core<4.0.0,>=3.16.0
|
|
28
|
+
Dynamic: author
|
|
29
|
+
Dynamic: author-email
|
|
30
|
+
Dynamic: classifier
|
|
31
|
+
Dynamic: description
|
|
32
|
+
Dynamic: description-content-type
|
|
33
|
+
Dynamic: home-page
|
|
34
|
+
Dynamic: keywords
|
|
35
|
+
Dynamic: license
|
|
36
|
+
Dynamic: requires-dist
|
|
37
|
+
Dynamic: summary
|
|
28
38
|
|
|
29
39
|
[](https://travis-ci.com/IBM/code-engine-python-sdk)
|
|
30
40
|
<!--
|
|
31
41
|
[](https://github.com/semantic-release/semantic-release)
|
|
32
42
|
-->
|
|
33
|
-
# Python SDK for IBM Cloud Code Engine 4.
|
|
43
|
+
# Python SDK for IBM Cloud Code Engine 4.9.0
|
|
34
44
|
|
|
35
45
|
Python client library to interact with the [IBM Cloud Code Engine API](https://cloud.ibm.com/apidocs/codeengine).
|
|
36
46
|
|
|
@@ -67,8 +77,8 @@ IBM Cloud services:
|
|
|
67
77
|
|
|
68
78
|
Service Name | Imported Class Name
|
|
69
79
|
--- | ---
|
|
70
|
-
[IBM Cloud Code Engine V2](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.
|
|
71
|
-
[IBM Cloud Code Engine V1](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.
|
|
80
|
+
[IBM Cloud Code Engine V2](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.9.0) | CodeEngineV2
|
|
81
|
+
[IBM Cloud Code Engine V1](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.9.0) | IbmCloudCodeEngineV1
|
|
72
82
|
|
|
73
83
|
## Prerequisites
|
|
74
84
|
|
|
@@ -83,13 +93,13 @@ Service Name | Imported Class Name
|
|
|
83
93
|
To install, use `pip` or `easy_install`:
|
|
84
94
|
|
|
85
95
|
```bash
|
|
86
|
-
pip install --upgrade "ibm_code_engine_sdk>=4.
|
|
96
|
+
pip install --upgrade "ibm_code_engine_sdk>=4.9.0"
|
|
87
97
|
```
|
|
88
98
|
|
|
89
99
|
or
|
|
90
100
|
|
|
91
101
|
```bash
|
|
92
|
-
easy_install --upgrade "ibm_code_engine_sdk>=4.
|
|
102
|
+
easy_install --upgrade "ibm_code_engine_sdk>=4.9.0"
|
|
93
103
|
```
|
|
94
104
|
|
|
95
105
|
## Using the SDK
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<!--
|
|
3
3
|
[](https://github.com/semantic-release/semantic-release)
|
|
4
4
|
-->
|
|
5
|
-
# Python SDK for IBM Cloud Code Engine 4.
|
|
5
|
+
# Python SDK for IBM Cloud Code Engine 4.9.0
|
|
6
6
|
|
|
7
7
|
Python client library to interact with the [IBM Cloud Code Engine API](https://cloud.ibm.com/apidocs/codeengine).
|
|
8
8
|
|
|
@@ -39,8 +39,8 @@ IBM Cloud services:
|
|
|
39
39
|
|
|
40
40
|
Service Name | Imported Class Name
|
|
41
41
|
--- | ---
|
|
42
|
-
[IBM Cloud Code Engine V2](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.
|
|
43
|
-
[IBM Cloud Code Engine V1](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.
|
|
42
|
+
[IBM Cloud Code Engine V2](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.9.0) | CodeEngineV2
|
|
43
|
+
[IBM Cloud Code Engine V1](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.9.0) | IbmCloudCodeEngineV1
|
|
44
44
|
|
|
45
45
|
## Prerequisites
|
|
46
46
|
|
|
@@ -55,13 +55,13 @@ Service Name | Imported Class Name
|
|
|
55
55
|
To install, use `pip` or `easy_install`:
|
|
56
56
|
|
|
57
57
|
```bash
|
|
58
|
-
pip install --upgrade "ibm_code_engine_sdk>=4.
|
|
58
|
+
pip install --upgrade "ibm_code_engine_sdk>=4.9.0"
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
or
|
|
62
62
|
|
|
63
63
|
```bash
|
|
64
|
-
easy_install --upgrade "ibm_code_engine_sdk>=4.
|
|
64
|
+
easy_install --upgrade "ibm_code_engine_sdk>=4.9.0"
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
## Using the SDK
|
{ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk/code_engine_v2.py
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
2
|
|
|
3
|
-
# (C) Copyright IBM Corp.
|
|
3
|
+
# (C) Copyright IBM Corp. 2025.
|
|
4
4
|
#
|
|
5
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
6
|
# you may not use this file except in compliance with the License.
|
|
@@ -56,7 +56,7 @@ class CodeEngineV2(BaseService):
|
|
|
56
56
|
|
|
57
57
|
:param str version: (optional) The API version, in format `YYYY-MM-DD`. For
|
|
58
58
|
the API behavior documented here, specify any date between `2021-03-31` and
|
|
59
|
-
`
|
|
59
|
+
`2025-01-10`.
|
|
60
60
|
"""
|
|
61
61
|
authenticator = get_authenticator_from_environment(service_name)
|
|
62
62
|
service = cls(
|
|
@@ -80,7 +80,7 @@ class CodeEngineV2(BaseService):
|
|
|
80
80
|
|
|
81
81
|
:param str version: (optional) The API version, in format `YYYY-MM-DD`. For
|
|
82
82
|
the API behavior documented here, specify any date between `2021-03-31` and
|
|
83
|
-
`
|
|
83
|
+
`2025-01-10`.
|
|
84
84
|
"""
|
|
85
85
|
BaseService.__init__(self, service_url=self.DEFAULT_SERVICE_URL, authenticator=authenticator)
|
|
86
86
|
self.version = version
|
|
@@ -7154,6 +7154,26 @@ class Build:
|
|
|
7154
7154
|
READY = 'ready'
|
|
7155
7155
|
FAILED = 'failed'
|
|
7156
7156
|
|
|
7157
|
+
class StrategySizeEnum(str, Enum):
|
|
7158
|
+
"""
|
|
7159
|
+
Optional size for the build, which determines the amount of resources used. Build
|
|
7160
|
+
sizes are `small`, `medium`, `large`, `xlarge`, `xxlarge`.
|
|
7161
|
+
"""
|
|
7162
|
+
|
|
7163
|
+
SMALL = 'small'
|
|
7164
|
+
MEDIUM = 'medium'
|
|
7165
|
+
LARGE = 'large'
|
|
7166
|
+
XLARGE = 'xlarge'
|
|
7167
|
+
XXLARGE = 'xxlarge'
|
|
7168
|
+
|
|
7169
|
+
class StrategyTypeEnum(str, Enum):
|
|
7170
|
+
"""
|
|
7171
|
+
The strategy to use for building the image.
|
|
7172
|
+
"""
|
|
7173
|
+
|
|
7174
|
+
DOCKERFILE = 'dockerfile'
|
|
7175
|
+
BUILDPACKS = 'buildpacks'
|
|
7176
|
+
|
|
7157
7177
|
|
|
7158
7178
|
class BuildList:
|
|
7159
7179
|
"""
|
|
@@ -7456,6 +7476,26 @@ class BuildPatch:
|
|
|
7456
7476
|
LOCAL = 'local'
|
|
7457
7477
|
GIT = 'git'
|
|
7458
7478
|
|
|
7479
|
+
class StrategySizeEnum(str, Enum):
|
|
7480
|
+
"""
|
|
7481
|
+
Optional size for the build, which determines the amount of resources used. Build
|
|
7482
|
+
sizes are `small`, `medium`, `large`, `xlarge`, `xxlarge`.
|
|
7483
|
+
"""
|
|
7484
|
+
|
|
7485
|
+
SMALL = 'small'
|
|
7486
|
+
MEDIUM = 'medium'
|
|
7487
|
+
LARGE = 'large'
|
|
7488
|
+
XLARGE = 'xlarge'
|
|
7489
|
+
XXLARGE = 'xxlarge'
|
|
7490
|
+
|
|
7491
|
+
class StrategyTypeEnum(str, Enum):
|
|
7492
|
+
"""
|
|
7493
|
+
The strategy to use for building the image.
|
|
7494
|
+
"""
|
|
7495
|
+
|
|
7496
|
+
DOCKERFILE = 'dockerfile'
|
|
7497
|
+
BUILDPACKS = 'buildpacks'
|
|
7498
|
+
|
|
7459
7499
|
|
|
7460
7500
|
class BuildRun:
|
|
7461
7501
|
"""
|
|
@@ -7791,6 +7831,26 @@ class BuildRun:
|
|
|
7791
7831
|
PENDING = 'pending'
|
|
7792
7832
|
FAILED = 'failed'
|
|
7793
7833
|
|
|
7834
|
+
class StrategySizeEnum(str, Enum):
|
|
7835
|
+
"""
|
|
7836
|
+
Optional size for the build, which determines the amount of resources used. Build
|
|
7837
|
+
sizes are `small`, `medium`, `large`, `xlarge`, `xxlarge`.
|
|
7838
|
+
"""
|
|
7839
|
+
|
|
7840
|
+
SMALL = 'small'
|
|
7841
|
+
MEDIUM = 'medium'
|
|
7842
|
+
LARGE = 'large'
|
|
7843
|
+
XLARGE = 'xlarge'
|
|
7844
|
+
XXLARGE = 'xxlarge'
|
|
7845
|
+
|
|
7846
|
+
class StrategyTypeEnum(str, Enum):
|
|
7847
|
+
"""
|
|
7848
|
+
The strategy to use for building the image.
|
|
7849
|
+
"""
|
|
7850
|
+
|
|
7851
|
+
DOCKERFILE = 'dockerfile'
|
|
7852
|
+
BUILDPACKS = 'buildpacks'
|
|
7853
|
+
|
|
7794
7854
|
|
|
7795
7855
|
class BuildRunList:
|
|
7796
7856
|
"""
|
|
@@ -10198,6 +10258,106 @@ class FunctionStatus:
|
|
|
10198
10258
|
NO_CODE_BUNDLE = 'no_code_bundle'
|
|
10199
10259
|
|
|
10200
10260
|
|
|
10261
|
+
class IndexDetails:
|
|
10262
|
+
"""
|
|
10263
|
+
IndexDetails.
|
|
10264
|
+
|
|
10265
|
+
:param str finished_at: (optional) The timestamp when the job run index finished
|
|
10266
|
+
processing.
|
|
10267
|
+
:param str last_failure_reason: (optional) Reason why latest retry of the job
|
|
10268
|
+
run index failed. Possible values include but are not limited to `OOMKilled`,
|
|
10269
|
+
`ContainerExitedCode1` or `ExceededEphemeralStorage`.
|
|
10270
|
+
:param int retries: (optional) Number of retries of this job run index.
|
|
10271
|
+
:param str started_at: (optional) The timestamp when the job run index started
|
|
10272
|
+
processing.
|
|
10273
|
+
:param str status: (optional) Current status of the job run index.
|
|
10274
|
+
"""
|
|
10275
|
+
|
|
10276
|
+
def __init__(
|
|
10277
|
+
self,
|
|
10278
|
+
*,
|
|
10279
|
+
finished_at: Optional[str] = None,
|
|
10280
|
+
last_failure_reason: Optional[str] = None,
|
|
10281
|
+
retries: Optional[int] = None,
|
|
10282
|
+
started_at: Optional[str] = None,
|
|
10283
|
+
status: Optional[str] = None,
|
|
10284
|
+
) -> None:
|
|
10285
|
+
"""
|
|
10286
|
+
Initialize a IndexDetails object.
|
|
10287
|
+
|
|
10288
|
+
"""
|
|
10289
|
+
self.finished_at = finished_at
|
|
10290
|
+
self.last_failure_reason = last_failure_reason
|
|
10291
|
+
self.retries = retries
|
|
10292
|
+
self.started_at = started_at
|
|
10293
|
+
self.status = status
|
|
10294
|
+
|
|
10295
|
+
@classmethod
|
|
10296
|
+
def from_dict(cls, _dict: Dict) -> 'IndexDetails':
|
|
10297
|
+
"""Initialize a IndexDetails object from a json dictionary."""
|
|
10298
|
+
args = {}
|
|
10299
|
+
if (finished_at := _dict.get('finished_at')) is not None:
|
|
10300
|
+
args['finished_at'] = finished_at
|
|
10301
|
+
if (last_failure_reason := _dict.get('last_failure_reason')) is not None:
|
|
10302
|
+
args['last_failure_reason'] = last_failure_reason
|
|
10303
|
+
if (retries := _dict.get('retries')) is not None:
|
|
10304
|
+
args['retries'] = retries
|
|
10305
|
+
if (started_at := _dict.get('started_at')) is not None:
|
|
10306
|
+
args['started_at'] = started_at
|
|
10307
|
+
if (status := _dict.get('status')) is not None:
|
|
10308
|
+
args['status'] = status
|
|
10309
|
+
return cls(**args)
|
|
10310
|
+
|
|
10311
|
+
@classmethod
|
|
10312
|
+
def _from_dict(cls, _dict):
|
|
10313
|
+
"""Initialize a IndexDetails object from a json dictionary."""
|
|
10314
|
+
return cls.from_dict(_dict)
|
|
10315
|
+
|
|
10316
|
+
def to_dict(self) -> Dict:
|
|
10317
|
+
"""Return a json dictionary representing this model."""
|
|
10318
|
+
_dict = {}
|
|
10319
|
+
if hasattr(self, 'finished_at') and getattr(self, 'finished_at') is not None:
|
|
10320
|
+
_dict['finished_at'] = getattr(self, 'finished_at')
|
|
10321
|
+
if hasattr(self, 'last_failure_reason') and getattr(self, 'last_failure_reason') is not None:
|
|
10322
|
+
_dict['last_failure_reason'] = getattr(self, 'last_failure_reason')
|
|
10323
|
+
if hasattr(self, 'retries') and getattr(self, 'retries') is not None:
|
|
10324
|
+
_dict['retries'] = getattr(self, 'retries')
|
|
10325
|
+
if hasattr(self, 'started_at') and getattr(self, 'started_at') is not None:
|
|
10326
|
+
_dict['started_at'] = getattr(self, 'started_at')
|
|
10327
|
+
if hasattr(self, 'status') and getattr(self, 'status') is not None:
|
|
10328
|
+
_dict['status'] = getattr(self, 'status')
|
|
10329
|
+
return _dict
|
|
10330
|
+
|
|
10331
|
+
def _to_dict(self):
|
|
10332
|
+
"""Return a json dictionary representing this model."""
|
|
10333
|
+
return self.to_dict()
|
|
10334
|
+
|
|
10335
|
+
def __str__(self) -> str:
|
|
10336
|
+
"""Return a `str` version of this IndexDetails object."""
|
|
10337
|
+
return json.dumps(self.to_dict(), indent=2)
|
|
10338
|
+
|
|
10339
|
+
def __eq__(self, other: 'IndexDetails') -> bool:
|
|
10340
|
+
"""Return `true` when self and other are equal, false otherwise."""
|
|
10341
|
+
if not isinstance(other, self.__class__):
|
|
10342
|
+
return False
|
|
10343
|
+
return self.__dict__ == other.__dict__
|
|
10344
|
+
|
|
10345
|
+
def __ne__(self, other: 'IndexDetails') -> bool:
|
|
10346
|
+
"""Return `true` when self and other are not equal, false otherwise."""
|
|
10347
|
+
return not self == other
|
|
10348
|
+
|
|
10349
|
+
class StatusEnum(str, Enum):
|
|
10350
|
+
"""
|
|
10351
|
+
Current status of the job run index.
|
|
10352
|
+
"""
|
|
10353
|
+
|
|
10354
|
+
PENDING = 'pending'
|
|
10355
|
+
RUNNING = 'running'
|
|
10356
|
+
SUCCEEDED = 'succeeded'
|
|
10357
|
+
FAILED = 'failed'
|
|
10358
|
+
UNKNOWN = 'unknown'
|
|
10359
|
+
|
|
10360
|
+
|
|
10201
10361
|
class Job:
|
|
10202
10362
|
"""
|
|
10203
10363
|
Job is the response model for job resources.
|
|
@@ -11587,6 +11747,7 @@ class JobRunStatus:
|
|
|
11587
11747
|
:param str completion_time: (optional) Time the job run completed.
|
|
11588
11748
|
:param int failed: (optional) Number of failed job run instances.
|
|
11589
11749
|
:param str failed_indices: (optional) List of job run indices that failed.
|
|
11750
|
+
:param dict indices_details: (optional) Detailed process information per index.
|
|
11590
11751
|
:param int pending: (optional) Number of pending job run instances.
|
|
11591
11752
|
:param str pending_indices: (optional) List of job run indices that are pending.
|
|
11592
11753
|
:param int requested: (optional) Number of requested job run instances.
|
|
@@ -11604,6 +11765,7 @@ class JobRunStatus:
|
|
|
11604
11765
|
completion_time: Optional[str] = None,
|
|
11605
11766
|
failed: Optional[int] = None,
|
|
11606
11767
|
failed_indices: Optional[str] = None,
|
|
11768
|
+
indices_details: Optional[dict] = None,
|
|
11607
11769
|
pending: Optional[int] = None,
|
|
11608
11770
|
pending_indices: Optional[str] = None,
|
|
11609
11771
|
requested: Optional[int] = None,
|
|
@@ -11617,10 +11779,13 @@ class JobRunStatus:
|
|
|
11617
11779
|
"""
|
|
11618
11780
|
Initialize a JobRunStatus object.
|
|
11619
11781
|
|
|
11782
|
+
:param dict indices_details: (optional) Detailed process information per
|
|
11783
|
+
index.
|
|
11620
11784
|
"""
|
|
11621
11785
|
self.completion_time = completion_time
|
|
11622
11786
|
self.failed = failed
|
|
11623
11787
|
self.failed_indices = failed_indices
|
|
11788
|
+
self.indices_details = indices_details
|
|
11624
11789
|
self.pending = pending
|
|
11625
11790
|
self.pending_indices = pending_indices
|
|
11626
11791
|
self.requested = requested
|
|
@@ -11641,6 +11806,8 @@ class JobRunStatus:
|
|
|
11641
11806
|
args['failed'] = failed
|
|
11642
11807
|
if (failed_indices := _dict.get('failed_indices')) is not None:
|
|
11643
11808
|
args['failed_indices'] = failed_indices
|
|
11809
|
+
if (indices_details := _dict.get('indices_details')) is not None:
|
|
11810
|
+
args['indices_details'] = {k: IndexDetails.from_dict(v) for k, v in indices_details.items()}
|
|
11644
11811
|
if (pending := _dict.get('pending')) is not None:
|
|
11645
11812
|
args['pending'] = pending
|
|
11646
11813
|
if (pending_indices := _dict.get('pending_indices')) is not None:
|
|
@@ -11675,6 +11842,14 @@ class JobRunStatus:
|
|
|
11675
11842
|
_dict['failed'] = getattr(self, 'failed')
|
|
11676
11843
|
if hasattr(self, 'failed_indices') and getattr(self, 'failed_indices') is not None:
|
|
11677
11844
|
_dict['failed_indices'] = getattr(self, 'failed_indices')
|
|
11845
|
+
if hasattr(self, 'indices_details') and self.indices_details is not None:
|
|
11846
|
+
indices_details_map = {}
|
|
11847
|
+
for k, v in self.indices_details.items():
|
|
11848
|
+
if isinstance(v, dict):
|
|
11849
|
+
indices_details_map[k] = v
|
|
11850
|
+
else:
|
|
11851
|
+
indices_details_map[k] = v.to_dict()
|
|
11852
|
+
_dict['indices_details'] = indices_details_map
|
|
11678
11853
|
if hasattr(self, 'pending') and getattr(self, 'pending') is not None:
|
|
11679
11854
|
_dict['pending'] = getattr(self, 'pending')
|
|
11680
11855
|
if hasattr(self, 'pending_indices') and getattr(self, 'pending_indices') is not None:
|
|
@@ -13121,6 +13296,21 @@ class Secret:
|
|
|
13121
13296
|
SERVICE_OPERATOR = 'service_operator'
|
|
13122
13297
|
OTHER = 'other'
|
|
13123
13298
|
|
|
13299
|
+
class ResourceTypeEnum(str, Enum):
|
|
13300
|
+
"""
|
|
13301
|
+
The type of the secret.
|
|
13302
|
+
"""
|
|
13303
|
+
|
|
13304
|
+
SECRET_V2 = 'secret_v2'
|
|
13305
|
+
SECRET_AUTH_SSH_V2 = 'secret_auth_ssh_v2'
|
|
13306
|
+
SECRET_BASIC_AUTH_V2 = 'secret_basic_auth_v2'
|
|
13307
|
+
SECRET_GENERIC_V2 = 'secret_generic_v2'
|
|
13308
|
+
SECRET_OPERATOR_V2 = 'secret_operator_v2'
|
|
13309
|
+
SECRET_OTHER_V2 = 'secret_other_v2'
|
|
13310
|
+
SECRET_REGISTRY_V2 = 'secret_registry_v2'
|
|
13311
|
+
SECRET_SERVICE_ACCESS_V2 = 'secret_service_access_v2'
|
|
13312
|
+
SECRET_TLS_V2 = 'secret_tls_v2'
|
|
13313
|
+
|
|
13124
13314
|
|
|
13125
13315
|
class SecretData:
|
|
13126
13316
|
"""
|
|
@@ -13929,7 +14119,7 @@ class AllowedOutboundDestinationPatchCidrBlockDataPatch(AllowedOutboundDestinati
|
|
|
13929
14119
|
|
|
13930
14120
|
:param str type: (optional) Specify the type of the allowed outbound
|
|
13931
14121
|
destination. Allowed types are: 'cidr_block'.
|
|
13932
|
-
:param str cidr_block: (optional) The
|
|
14122
|
+
:param str cidr_block: (optional) The IPv4 address range.
|
|
13933
14123
|
"""
|
|
13934
14124
|
|
|
13935
14125
|
def __init__(
|
|
@@ -13943,7 +14133,7 @@ class AllowedOutboundDestinationPatchCidrBlockDataPatch(AllowedOutboundDestinati
|
|
|
13943
14133
|
|
|
13944
14134
|
:param str type: (optional) Specify the type of the allowed outbound
|
|
13945
14135
|
destination. Allowed types are: 'cidr_block'.
|
|
13946
|
-
:param str cidr_block: (optional) The
|
|
14136
|
+
:param str cidr_block: (optional) The IPv4 address range.
|
|
13947
14137
|
"""
|
|
13948
14138
|
# pylint: disable=super-init-not-called
|
|
13949
14139
|
self.type = type
|
|
@@ -14006,7 +14196,7 @@ class AllowedOutboundDestinationPrototypeCidrBlockDataPrototype(AllowedOutboundD
|
|
|
14006
14196
|
|
|
14007
14197
|
:param str type: Specify the type of the allowed outbound destination. Allowed
|
|
14008
14198
|
types are: 'cidr_block'.
|
|
14009
|
-
:param str cidr_block: The
|
|
14199
|
+
:param str cidr_block: The IPv4 address range.
|
|
14010
14200
|
:param str name: The name of the CIDR block.
|
|
14011
14201
|
"""
|
|
14012
14202
|
|
|
@@ -14021,7 +14211,7 @@ class AllowedOutboundDestinationPrototypeCidrBlockDataPrototype(AllowedOutboundD
|
|
|
14021
14211
|
|
|
14022
14212
|
:param str type: Specify the type of the allowed outbound destination.
|
|
14023
14213
|
Allowed types are: 'cidr_block'.
|
|
14024
|
-
:param str cidr_block: The
|
|
14214
|
+
:param str cidr_block: The IPv4 address range.
|
|
14025
14215
|
:param str name: The name of the CIDR block.
|
|
14026
14216
|
"""
|
|
14027
14217
|
# pylint: disable=super-init-not-called
|
|
@@ -14104,7 +14294,7 @@ class AllowedOutboundDestinationCidrBlockData(AllowedOutboundDestination):
|
|
|
14104
14294
|
used to achieve optimistic locking.
|
|
14105
14295
|
:param str type: Specify the type of the allowed outbound destination. Allowed
|
|
14106
14296
|
types are: 'cidr_block'.
|
|
14107
|
-
:param str cidr_block: The
|
|
14297
|
+
:param str cidr_block: The IPv4 address range.
|
|
14108
14298
|
:param str name: The name of the CIDR block.
|
|
14109
14299
|
"""
|
|
14110
14300
|
|
|
@@ -14122,7 +14312,7 @@ class AllowedOutboundDestinationCidrBlockData(AllowedOutboundDestination):
|
|
|
14122
14312
|
which is used to achieve optimistic locking.
|
|
14123
14313
|
:param str type: Specify the type of the allowed outbound destination.
|
|
14124
14314
|
Allowed types are: 'cidr_block'.
|
|
14125
|
-
:param str cidr_block: The
|
|
14315
|
+
:param str cidr_block: The IPv4 address range.
|
|
14126
14316
|
:param str name: The name of the CIDR block.
|
|
14127
14317
|
"""
|
|
14128
14318
|
# pylint: disable=super-init-not-called
|
{ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0/ibm_code_engine_sdk.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: ibm-code-engine-sdk
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.9.0
|
|
4
4
|
Summary: Python SDK for IBM Cloud Code Engine
|
|
5
5
|
Home-page: https://github.com/IBM/code-engine-python-sdk
|
|
6
6
|
Author: IBM
|
|
@@ -21,16 +21,26 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
21
21
|
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
|
24
|
-
Requires-Dist: requests<3.0.0,>=2.
|
|
25
|
-
Requires-Dist: urllib3<2.3.0,>=2.2.
|
|
24
|
+
Requires-Dist: requests<3.0.0,>=2.32.0
|
|
25
|
+
Requires-Dist: urllib3<2.3.0,>=2.2.2
|
|
26
26
|
Requires-Dist: python_dateutil<3.0.0,>=2.5.3
|
|
27
27
|
Requires-Dist: ibm_cloud_sdk_core<4.0.0,>=3.16.0
|
|
28
|
+
Dynamic: author
|
|
29
|
+
Dynamic: author-email
|
|
30
|
+
Dynamic: classifier
|
|
31
|
+
Dynamic: description
|
|
32
|
+
Dynamic: description-content-type
|
|
33
|
+
Dynamic: home-page
|
|
34
|
+
Dynamic: keywords
|
|
35
|
+
Dynamic: license
|
|
36
|
+
Dynamic: requires-dist
|
|
37
|
+
Dynamic: summary
|
|
28
38
|
|
|
29
39
|
[](https://travis-ci.com/IBM/code-engine-python-sdk)
|
|
30
40
|
<!--
|
|
31
41
|
[](https://github.com/semantic-release/semantic-release)
|
|
32
42
|
-->
|
|
33
|
-
# Python SDK for IBM Cloud Code Engine 4.
|
|
43
|
+
# Python SDK for IBM Cloud Code Engine 4.9.0
|
|
34
44
|
|
|
35
45
|
Python client library to interact with the [IBM Cloud Code Engine API](https://cloud.ibm.com/apidocs/codeengine).
|
|
36
46
|
|
|
@@ -67,8 +77,8 @@ IBM Cloud services:
|
|
|
67
77
|
|
|
68
78
|
Service Name | Imported Class Name
|
|
69
79
|
--- | ---
|
|
70
|
-
[IBM Cloud Code Engine V2](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.
|
|
71
|
-
[IBM Cloud Code Engine V1](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.
|
|
80
|
+
[IBM Cloud Code Engine V2](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.9.0) | CodeEngineV2
|
|
81
|
+
[IBM Cloud Code Engine V1](https://cloud.ibm.com/apidocs/codeengine/codeengine-v4.9.0) | IbmCloudCodeEngineV1
|
|
72
82
|
|
|
73
83
|
## Prerequisites
|
|
74
84
|
|
|
@@ -83,13 +93,13 @@ Service Name | Imported Class Name
|
|
|
83
93
|
To install, use `pip` or `easy_install`:
|
|
84
94
|
|
|
85
95
|
```bash
|
|
86
|
-
pip install --upgrade "ibm_code_engine_sdk>=4.
|
|
96
|
+
pip install --upgrade "ibm_code_engine_sdk>=4.9.0"
|
|
87
97
|
```
|
|
88
98
|
|
|
89
99
|
or
|
|
90
100
|
|
|
91
101
|
```bash
|
|
92
|
-
easy_install --upgrade "ibm_code_engine_sdk>=4.
|
|
102
|
+
easy_install --upgrade "ibm_code_engine_sdk>=4.9.0"
|
|
93
103
|
```
|
|
94
104
|
|
|
95
105
|
## Using the SDK
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk.egg-info/top_level.txt
RENAMED
|
File without changes
|
{ibm_code_engine_sdk-4.4.1 → ibm_code_engine_sdk-4.9.0}/ibm_code_engine_sdk.egg-info/zip-safe
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|