Skip to content

Commit e1033b6

Browse files
Releasing version 2.54.0
1 parent 3c1604e commit e1033b6

File tree

6,188 files changed

+26350
-7072
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,188 files changed

+26350
-7072
lines changed

CHANGELOG.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,27 @@ Change Log
33
All notable changes to this project will be documented in this file.
44

55
The format is based on `Keep a Changelog <http://keepachangelog.com/>`_.
6+
====================
7+
2.54.0 - 2022-01-11
8+
====================
9+
10+
Added
11+
------
12+
* Support for calling Oracle Cloud Infrastructure services in the af-johannesburg-1 region
13+
* Support for multiple protocols on the same listener in the Network Load Balancing service
14+
* IPv6 support in the Network Load Balancing service
15+
* Support for creating Enterprise Manager-based Solaris and SunOS host targets in the Operations Insights service
16+
* Support for choosing Data Guard type (Active Data Guard or regular) on databases in the Database service
17+
* Support for allowing control characters in responses as requested in https://github.com/oracle/oci-python-sdk/issues/404. Please see the github issue for more details
18+
19+
Fixed
20+
-----
21+
* The root cause of the issue causing data corruption as mentioned in https://github.com/oracle/oci-python-sdk/issues/410 has been fixed. Please see the github issue for more details
22+
23+
Breaking
24+
--------
25+
* Support for retries enabled by default on all operations in the Java Management service
26+
627
====================
728
2.53.1 - 2021-12-21
829
====================

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Contributing to the Oracle Cloud Infrastructure Python SDK
55
*This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.*
66

77
Pull requests can be made under
8-
`The Oracle Contributor Agreement <https://www.oracle.com/technetwork/community/oca-486395.html>`_ (OCA).
8+
`The Oracle Contributor Agreement <https://oca.opensource.oracle.com>`_ (OCA).
99

1010
For pull requests to be accepted, the bottom of
1111
your commit message must have the following line using your name and
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.. _sdk-allow_control_chars_response:
2+
3+
Allow control characters in response
4+
~~~~~~~~
5+
The SDK helps deserialize any response object that is coming in from an API call. The deserialization uses the json library
6+
to call json.loads(). By defaualt, the deserialization will not allow the response object to contain control characters in a string.
7+
If the user chooses to allow control characters in a response, the SDK provides 3 option of settings to allow this feature:
8+
* Request setting: Specify in the request to allow control characters
9+
* Client setting: Set a specific service client's base client to allow control character
10+
* Global setting: Set BaseClient to allow control characters on all response.
11+
12+
The request setting will take the highest precedence, follow by the client setting, and finally global setting.
13+
14+
Example
15+
-------
16+
17+
.. code-block:: python
18+
19+
# Allowing control characters at the request level.
20+
response = identity_client.list_region_subscriptions.list_region_subscriptions(compartment_id, allow_control_chars=True)
21+
22+
# Allow control characters at the client level.
23+
identity_client.base_client.allow_control_chars = True
24+
25+
# Allow control characters at the global level.
26+
BaseClient.ALLOW_CONTROL_CHARACTERS = True

docs/sdk_behaviors/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This section describes SDK-specific behaviors:
1212
* :doc:`Signing bodies </sdk_behaviors/signing_bodies>`
1313
* :doc:`Enable Selective Service Imports </sdk_behaviors/enable_selective_service_imports>`
1414
* :doc:`Circuit Breakers </sdk_behaviors/circuit_breakers>`
15+
* :doc:`Allow control characters in response </sdk_behaviors/allow_control_chars_response>`
1516

1617
.. toctree::
1718
:hidden:
@@ -24,4 +25,5 @@ This section describes SDK-specific behaviors:
2425
calculate_content_length
2526
signing_bodies
2627
enable_selective_service_imports
27-
circuit_breakers
28+
circuit_breakers
29+
allow_control_chars_response

examples/Resource_Principle_v2.2_Functions_example/func.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding: utf-8
2-
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
33
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
44

55
# This example uses functions service to get the rpv2.2 token, for how to use functions, please refer fn Tutorials: https://fnproject.io/tutorials/

examples/add_API_key.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding: utf-8
2-
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
33
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
44

55
import oci

examples/add_soc_group_policy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding: utf-8
2-
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
33
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
44

55
from os import path

examples/add_soc_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding: utf-8
2-
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
33
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
44

55
from os import path

examples/adw_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# coding: utf-8
2-
# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
33
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
44

55
import oci
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# coding: utf-8
2+
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
3+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4+
5+
import oci
6+
7+
8+
config = oci.config.from_file()
9+
compartment_id = config["tenancy"]
10+
identity = oci.identity.IdentityClient(config)
11+
12+
# list users from the compartmentId, adding allow_control_chars=True
13+
# to the request will allow the response to contain control characters
14+
users = identity.list_users(compartment_id, allow_control_chars=True)

0 commit comments

Comments
 (0)