You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.rst
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,30 @@ All notable changes to this project will be documented in this file.
4
4
5
5
The format is based on `Keep a Changelog <http://keepachangelog.com/>`_.
6
6
7
+
====================
8
+
1.3.12 - 2018-01-11
9
+
====================
10
+
11
+
Added
12
+
-----
13
+
* Support for tagging:
14
+
15
+
* Support for creating, updating, retrieving and listing tags and tag namespaces (these operations can be found in Identity Service)
16
+
* Support for adding freeform and defined tags to resources in Core Services (Networking, Compute, and Block Volume) and Identity Service
17
+
* An example on using tagging can be found on `GitHub <https://github.com/oracle/oci-python-sdk/blob/master/examples/tagging.py>`_.
18
+
19
+
* Support for bringing your own custom image for emulation mode virtual machines in Compute Service
20
+
* Added the ``oci.pagination`` module, which contains convenience functions so that you don't have to manually deal with page tokens when using list operations. See the `documentation <https://oracle-cloud-infrastructure-python-sdk.readthedocs.io/en/latest/pagination.html>`_ for more information
21
+
22
+
Changed
23
+
-------
24
+
* Upgraded cryptography dependency to 2.1.3
25
+
26
+
* Added dependency on pyOpenSSL <= 17.4.0 as the minimum cryptography version for pyOpenSSL 17.5.0 is 2.1.4
Copy file name to clipboardExpand all lines: LICENSE.txt
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
-
Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
1
+
Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2
2
3
3
This software is dual-licensed to you under the Universal Permissive License (UPL) and Apache License 2.0. See below for license terms. You may choose either license, or both.
4
4
____________________________
5
5
The Universal Permissive License (UPL), Version 1.0
6
-
Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
6
+
Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
7
7
8
8
Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this software, associated documentation and/or data (collectively the "Software"), free of charge and under any and all copyright rights in the Software, and any and all patent rights owned or freely licensable by each licensor hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, or (ii) the Larger Works (as defined below), to deal in both
9
9
@@ -19,7 +19,7 @@ The above copyright notice and either this complete permission notice or at a mi
19
19
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
21
21
The Apache Software License, Version 2.0
22
-
Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
22
+
Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
23
23
24
24
Licensed under the Apache License, Version 2.0 (the "License"); You may not use this product except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. A copy of the license is also reproduced below. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
When you call a list operation (for example :py:func:`~oci.core.compute_client.ComputeClient.list_instances`) will retrieve a page of results. In order
13
+
to retrieve more data, you have to continue to make calls to the list operation, passing in the value of the most recent response's ``next_page`` attribute
14
+
as a parameter to the next list operation call.
15
+
16
+
As a convenience over manually writing pagination code, you can make use of the functions in the :py:mod:`~oci.pagination` module to:
17
+
18
+
* Eagerly load all possible results from a list call
19
+
* Eagerly load all results from a list call up to a given limit
20
+
* Lazily load results (either all results, or up to a given limit) from a list call via a generator. These generators can yield either values/models or the raw response from calling the list operation
21
+
22
+
For an example on how to use these functions, please check `GitHub <https://github.com/oracle/oci-python-sdk/blob/master/examples/pagination.py>`_.
Instead of waiting for a single attribute to equal a given value, you can also provide a function reference (either a lambda or a reference to an already defined function) that
38
+
can be used to evaluate the response received from the service call. This function should return a truthy value if the waiter should stop waiting, and a falsey value if the waiter
39
+
should continue waiting.
40
+
41
+
For example, to wait until a volume backup reaches either the "AVAILABLE" or "FAULTY" state :
42
+
43
+
.. code-block:: python
44
+
45
+
oci.wait_until(client, client.get_volume_backup(vol_backup_id), evaluate_response=lambdar: r.data.lifecycle_state in ['AVAILABLE', 'FAULTY'])
46
+
47
+
Instead of using a lambda, an already defined function can be used:
48
+
49
+
.. code-block:: python
50
+
51
+
defshould_stop_waiting_volume_backup(response):
52
+
return response.data.lifecycle_state in ['AVAILABLE', 'FAULTY']
In addition to the base parameters shown above, the function can accept optional attributes to control the maximum amount of time it will wait for and the time between calls to the service. For more information on the optional parameters, see the documentation on the :py:func:`~oci.wait_until` function.
0 commit comments