|
18 | 18 |
|
19 | 19 | class BastionClient(object):
|
20 | 20 | """
|
21 |
| - Oracle Cloud Infrastructure Bastion provides restricted and time-limited access to target resources that don't have public endpoints. Through the configuration of a bastion, you can let authorized users connect from specific IP addresses to target resources by way of Secure Shell (SSH) sessions hosted on the bastion. |
| 21 | + Use the Bastion API to provide restricted and time-limited access to target resources that don't have public endpoints. Bastions let authorized users connect from specific IP addresses to target resources using Secure Shell (SSH) sessions. For more information, see [the Bastion documentation](/iaas/Content/Bastion/home.htm). |
22 | 22 | """
|
23 | 23 |
|
24 | 24 | def __init__(self, config, **kwargs):
|
@@ -604,7 +604,7 @@ def get_bastion(self, bastion_id, **kwargs):
|
604 | 604 | :param obj retry_strategy: (optional)
|
605 | 605 | A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
606 | 606 |
|
607 |
| - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. |
| 607 | + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. |
608 | 608 | The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
609 | 609 |
|
610 | 610 | To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -656,6 +656,8 @@ def get_bastion(self, bastion_id, **kwargs):
|
656 | 656 | operation_retry_strategy=kwargs.get('retry_strategy'),
|
657 | 657 | client_retry_strategy=self.retry_strategy
|
658 | 658 | )
|
| 659 | + if retry_strategy is None: |
| 660 | + retry_strategy = retry.DEFAULT_RETRY_STRATEGY |
659 | 661 |
|
660 | 662 | if retry_strategy:
|
661 | 663 | if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -696,7 +698,7 @@ def get_session(self, session_id, **kwargs):
|
696 | 698 | :param obj retry_strategy: (optional)
|
697 | 699 | A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
698 | 700 |
|
699 |
| - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. |
| 701 | + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. |
700 | 702 | The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
701 | 703 |
|
702 | 704 | To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -748,6 +750,8 @@ def get_session(self, session_id, **kwargs):
|
748 | 750 | operation_retry_strategy=kwargs.get('retry_strategy'),
|
749 | 751 | client_retry_strategy=self.retry_strategy
|
750 | 752 | )
|
| 753 | + if retry_strategy is None: |
| 754 | + retry_strategy = retry.DEFAULT_RETRY_STRATEGY |
751 | 755 |
|
752 | 756 | if retry_strategy:
|
753 | 757 | if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -1501,7 +1505,7 @@ def update_bastion(self, bastion_id, update_bastion_details, **kwargs):
|
1501 | 1505 | :param obj retry_strategy: (optional)
|
1502 | 1506 | A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1503 | 1507 |
|
1504 |
| - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. |
| 1508 | + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. |
1505 | 1509 | The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1506 | 1510 |
|
1507 | 1511 | To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -1555,6 +1559,8 @@ def update_bastion(self, bastion_id, update_bastion_details, **kwargs):
|
1555 | 1559 | operation_retry_strategy=kwargs.get('retry_strategy'),
|
1556 | 1560 | client_retry_strategy=self.retry_strategy
|
1557 | 1561 | )
|
| 1562 | + if retry_strategy is None: |
| 1563 | + retry_strategy = retry.DEFAULT_RETRY_STRATEGY |
1558 | 1564 |
|
1559 | 1565 | if retry_strategy:
|
1560 | 1566 | if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
@@ -1605,7 +1611,7 @@ def update_session(self, session_id, update_session_details, **kwargs):
|
1605 | 1611 | :param obj retry_strategy: (optional)
|
1606 | 1612 | A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1607 | 1613 |
|
1608 |
| - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. |
| 1614 | + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. |
1609 | 1615 | The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1610 | 1616 |
|
1611 | 1617 | To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
@@ -1659,6 +1665,8 @@ def update_session(self, session_id, update_session_details, **kwargs):
|
1659 | 1665 | operation_retry_strategy=kwargs.get('retry_strategy'),
|
1660 | 1666 | client_retry_strategy=self.retry_strategy
|
1661 | 1667 | )
|
| 1668 | + if retry_strategy is None: |
| 1669 | + retry_strategy = retry.DEFAULT_RETRY_STRATEGY |
1662 | 1670 |
|
1663 | 1671 | if retry_strategy:
|
1664 | 1672 | if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
|
0 commit comments