Skip to content

Commit 591d7f4

Browse files
authored
Merge branch 'main' into update-rm
2 parents fd4586d + 2a3ecf5 commit 591d7f4

15 files changed

+2146
-547
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.17.12
2+
current_version = 0.17.14
33
commit = True
44
message = Update version {current_version} -> {new_version}
55

.secrets.baseline

Lines changed: 44 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "package-lock.json|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2021-02-24T21:25:44Z",
6+
"generated_at": "2021-03-11T23:37:03Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -64,6 +64,16 @@
6464
}
6565
],
6666
"results": {
67+
"examples/test_iam_identity_v1_examples.py": [
68+
{
69+
"hashed_secret": "a2190c299b60e882d9fb33736d5e6ab6ffe42708",
70+
"is_secret": false,
71+
"is_verified": false,
72+
"line_number": 452,
73+
"type": "Secret Keyword",
74+
"verified_result": null
75+
}
76+
],
6777
"ibm_platform_services/iam_identity_v1.py": [
6878
{
6979
"hashed_secret": "eafd657ce70e075f0b72cdbe48232ed4fd5a47d1",
@@ -77,7 +87,17 @@
7787
"hashed_secret": "d4c3d66fd0c38547a3c7a4c6bdc29c36911bc030",
7888
"is_secret": false,
7989
"is_verified": false,
80-
"line_number": 1698,
90+
"line_number": 2082,
91+
"type": "Secret Keyword",
92+
"verified_result": null
93+
}
94+
],
95+
"ibm_platform_services/resource_controller_v2.py": [
96+
{
97+
"hashed_secret": "d506bd5213c46bd49e16c634754ad70113408252",
98+
"is_secret": false,
99+
"is_verified": false,
100+
"line_number": 3123,
81101
"type": "Secret Keyword",
82102
"verified_result": null
83103
}
@@ -92,6 +112,16 @@
92112
"verified_result": null
93113
}
94114
],
115+
"test/integration/test_iam_identity_v1.py": [
116+
{
117+
"hashed_secret": "a2190c299b60e882d9fb33736d5e6ab6ffe42708",
118+
"is_secret": false,
119+
"is_verified": false,
120+
"line_number": 507,
121+
"type": "Secret Keyword",
122+
"verified_result": null
123+
}
124+
],
95125
"test/integration/test_open_service_broker_v1.py": [
96126
{
97127
"hashed_secret": "cf65466f1394d5969a2179be065d0daa54007411",
@@ -120,16 +150,6 @@
120150
"verified_result": null
121151
}
122152
],
123-
"test/integration/test_user_management_v1.py": [
124-
{
125-
"hashed_secret": "2fd0f58e94ad6ad73205d72f2bd0daa099b62500",
126-
"is_secret": false,
127-
"is_verified": false,
128-
"line_number": 52,
129-
"type": "Hex High Entropy String",
130-
"verified_result": null
131-
}
132-
],
133153
"test/unit/test_catalog_management_v1.py": [
134154
{
135155
"hashed_secret": "d4c3d66fd0c38547a3c7a4c6bdc29c36911bc030",
@@ -243,11 +263,19 @@
243263
"type": "Secret Keyword",
244264
"verified_result": null
245265
},
266+
{
267+
"hashed_secret": "cf4d2385b84329a52ca542285b93d9c4618420df",
268+
"is_secret": false,
269+
"is_verified": false,
270+
"line_number": 1619,
271+
"type": "Secret Keyword",
272+
"verified_result": null
273+
},
246274
{
247275
"hashed_secret": "b8473b86d4c2072ca9b08bd28e373e8253e865c4",
248276
"is_secret": false,
249277
"is_verified": false,
250-
"line_number": 1738,
278+
"line_number": 2013,
251279
"type": "Secret Keyword",
252280
"verified_result": null
253281
}
@@ -257,21 +285,21 @@
257285
"hashed_secret": "d4c3d66fd0c38547a3c7a4c6bdc29c36911bc030",
258286
"is_secret": false,
259287
"is_verified": false,
260-
"line_number": 1441,
288+
"line_number": 2085,
261289
"type": "Secret Keyword",
262290
"verified_result": null
263291
},
264292
{
265293
"hashed_secret": "b8473b86d4c2072ca9b08bd28e373e8253e865c4",
266294
"is_secret": false,
267295
"is_verified": false,
268-
"line_number": 2715,
296+
"line_number": 2967,
269297
"type": "Secret Keyword",
270298
"verified_result": null
271299
}
272300
]
273301
},
274-
"version": "0.13.1+ibm.29.dss",
302+
"version": "0.13.1+ibm.31.dss",
275303
"word_list": {
276304
"file": null,
277305
"hash": null

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## [0.17.14](https://github.com/IBM/platform-services-python-sdk/compare/v0.17.13...v0.17.14) (2021-03-11)
2+
3+
4+
### Bug Fixes
5+
6+
* **IAM Identity:** update service after recent API changes ([#91](https://github.com/IBM/platform-services-python-sdk/issues/91)) ([3381cb1](https://github.com/IBM/platform-services-python-sdk/commit/3381cb1eafdd8339b46d2bfe0fa91b52be1ae6b2))
7+
8+
## [0.17.13](https://github.com/IBM/platform-services-python-sdk/compare/v0.17.12...v0.17.13) (2021-03-05)
9+
10+
11+
### Bug Fixes
12+
13+
* **Resource Controller:** update service after recent API changes ([#89](https://github.com/IBM/platform-services-python-sdk/issues/89)) ([ec3cdea](https://github.com/IBM/platform-services-python-sdk/commit/ec3cdeafc650fd21e9727a594eb54fa839c6ef28))
14+
115
## [0.17.12](https://github.com/IBM/platform-services-python-sdk/compare/v0.17.11...v0.17.12) (2021-02-25)
216

317

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[![codecov](https://codecov.io/gh/IBM/platform-services-python-sdk/branch/main/graph/badge.svg)](https://codecov.io/gh/IBM/platform-services-python-sdk)
88
[![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)
99

10-
# IBM Cloud Platform Services Python SDK Version 0.17.12
10+
# IBM Cloud Platform Services Python SDK Version 0.17.14
1111

1212
Python client library to interact with various
1313
[IBM Cloud Platform Service APIs](https://cloud.ibm.com/docs?tab=api-docs&category=platform_services).
@@ -80,13 +80,13 @@ Service Name | Imported Class Name
8080
To install, use `pip` or `easy_install`:
8181

8282
```bash
83-
pip install --upgrade "ibm-platform-services>=0.17.12"
83+
pip install --upgrade "ibm-platform-services>=0.17.14"
8484
```
8585

8686
or
8787

8888
```bash
89-
easy_install --upgrade "ibm-platform-services>=0.17.12"
89+
easy_install --upgrade "ibm-platform-services>=0.17.14"
9090
```
9191

9292
## Using the SDK

examples/test_iam_identity_v1_examples.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
apikey_etag = None
5757
svc_id = None
5858
svc_id_etag = None
59+
account_settings_etag = None
5960

6061

6162
##############################################################################
@@ -414,6 +415,53 @@ def test_delete_service_id_example(self):
414415
except ApiException as e:
415416
pytest.fail(str(e))
416417

418+
@needscredentials
419+
def test_get_account_settings_example(self):
420+
"""
421+
get_account_settings request example
422+
"""
423+
try:
424+
global account_settings_etag
425+
# begin-getAccountSettings
426+
427+
response = iam_identity_service.get_account_settings(
428+
account_id=account_id
429+
)
430+
settings = response.get_result()
431+
account_settings_etag = response.get_headers()['Etag']
432+
print(json.dumps(settings, indent=2))
433+
434+
# end-getAccountSettings
435+
436+
except ApiException as e:
437+
pytest.fail(str(e))
438+
439+
@needscredentials
440+
def test_update_account_settings_example(self):
441+
"""
442+
update_account_settings request example
443+
"""
444+
try:
445+
global account_settings_etag
446+
# begin-updateAccountSettings
447+
448+
account_settings_response = iam_identity_service.update_account_settings(
449+
account_id=account_id,
450+
if_match=account_settings_etag,
451+
restrict_create_service_id="NOT_RESTRICTED",
452+
restrict_create_platform_apikey="NOT_RESTRICTED",
453+
mfa="NONE",
454+
session_expiration_in_seconds="86400",
455+
session_invalidation_in_seconds="7200",
456+
).get_result()
457+
458+
print(json.dumps(account_settings_response, indent=2))
459+
460+
# end-updateAccountSettings
461+
462+
except ApiException as e:
463+
pytest.fail(str(e))
464+
417465
# endregion
418466
##############################################################################
419467
# End of Examples for Service: IamIdentityV1

0 commit comments

Comments
 (0)