Skip to content

Commit e5b866b

Browse files
authored
Merge pull request #676 from oracle/release_2023-05-09
Releasing version 3.27.0
2 parents 0e39d37 + 59636e7 commit e5b866b

File tree

34 files changed

+1180
-7494
lines changed

34 files changed

+1180
-7494
lines changed

CHANGELOG.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,50 @@ All notable changes to this project will be documented in this file.
66

77
The format is based on `Keep a Changelog <http://keepachangelog.com/>`__.
88

9+
3.27.0 - 2023-05-09
10+
--------------------
11+
Added
12+
~~~~~
13+
* Support for the Access Governance cloud service
14+
15+
* ``oci access-governance-cp``
16+
17+
* Database Service
18+
19+
* Support for One-Off Patches resource to create, download database patches for customers that lost access to MOS.
20+
21+
* ``oci db oneoff-patch create``
22+
* ``oci db oneoff-patch get``
23+
* ``oci db oneoff-patch list``
24+
* ``oci db oneoff-patch delete``
25+
* ``oci db oneoff-patch update``
26+
* ``oci db oneoff-patch download``
27+
28+
* Support for changing Disaster Recovery configuration of a remote Autonomous Database in remote region of whether it's a snapshot standby
29+
30+
* ``oci db autonomous-database change-disaster-recovery-configuration --is-snapshot-standby``
31+
32+
* Support for Schedule automatic backup for exacs and dbcs
33+
34+
* ``oci db database create --auto-backup-enabled --auto-backup-window --auto-full-backup-day --auto-full-backup-window --run-immediate-full-backup``
35+
* ``oci db database update --database-id --auto-backup-enabled --auto-backup-window --auto-full-backup-day --auto-full-backup-window --run-immediate-full-backup``
36+
* ``oci db system launch --auto-backup-enabled --auto-backup-window --auto-full-backup-day --auto-full-backup-window --run-immediate-full-backup``
37+
38+
39+
* Support for provisioning Software Defined Data Center (SDDCs) using standard bare metal shapes with Block Storage as the datastore in the Oracle Cloud Vmware Solution
40+
41+
* ``oci ocvs sddc create --datastores``
42+
43+
* Support for the Instance Configuration Parity feature in the Core Services
44+
45+
* ``oci compute-management instance-configuration``
46+
47+
Changed
48+
~~~~~~~
49+
* [BREAKING] The Data Connectivity service is now removed
50+
51+
* ``oci data-connectivity``
52+
953
3.26.0 - 2023-05-02
1054
--------------------
1155

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Jinja2==3.0.3
1414
jmespath==0.10.0
1515
ndg-httpsclient==0.4.2
1616
mock==2.0.0
17-
oci==2.100.0
17+
oci==2.101.0
1818
packaging==20.2
1919
pluggy==0.13.0
2020
py==1.10.0
@@ -38,7 +38,7 @@ vcrpy==4.2.1; python_version >= '3.10'
3838
virtualenv==20.13.0
3939
pytest-xdist==1.22.2
4040
pytest-forked==1.0.2
41-
PyYAML>=5.4,<6
41+
PyYAML>=5.4,<=6
4242
docutils==0.15.2
4343
prompt-toolkit==3.0.29
4444
setuptools>65.5.1; python_version > '3.6'

scripts/examples/project_o/o

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ if (sys.platform != "win32"):
2121
import fcntl
2222
import errno
2323
import datetime
24-
VERSION = "1.6"
25-
UPDATED = "2023-04-05"
24+
VERSION = "1.7"
25+
UPDATED = "2023-05-02"
2626

2727
# ==============================================================================
2828
# Global variables
@@ -884,6 +884,8 @@ def get_matching_ocid(option, value):
884884
opt_type = 'remotepeeringconnection'
885885
elif opt_type == 'organization':
886886
opt_type = 'organizationsentity'
887+
elif opt_type == 'routedistribution':
888+
opt_type = 'drgroutedistribution'
887889
# Add new idtypes to the above when the --whatever-id does not match ocid1.whatevs...
888890

889891
matches = [item for k, item in ocid.items() if
@@ -1742,7 +1744,7 @@ def get_oci_commands(argv):
17421744
stderr=subprocess.PIPE)
17431745
out = sp.stdout.decode('utf-8')
17441746
part1 = re.sub(r'.*Options:\n|Commands:\n.*', '', out, flags=re.S)
1745-
globals = sorted(list(dict.fromkeys(re.findall(r'--[A-Za-z-]*', part1))))
1747+
globals = sorted(list(dict.fromkeys(re.findall(r'(--[A-Za-z-]*[a-z])[, \n]', part1))))
17461748
if not os.path.exists(oci_dir):
17471749
os.mkdir(oci_dir, mode=0o755)
17481750
print("Creating", bold(oci_commands_file))
@@ -1751,10 +1753,7 @@ def get_oci_commands(argv):
17511753
f.close()
17521754

17531755
part2 = re.sub(r'.*Commands:\n', '', out, flags=re.S)
1754-
r = re.compile(" [a-z]")
1755-
services = [re.sub('^ | .*$', '', s)
1756-
for s in list(set(filter(r.match, part2.splitlines())))]
1757-
services.sort()
1756+
services = sorted(list(dict.fromkeys(re.findall(r'^ {2,4}([a-z-]+)', part2, flags=re.MULTILINE))))
17581757
for n, service in enumerate(services, start=1):
17591758
print('\033[2K\r({}/{}) Getting {} commands...'.format(
17601759
n, len(services), service) + 30 * ' ')
@@ -1969,8 +1968,10 @@ priority_services = ('compute ', 'bv ', 'os ', 'network ', 'iam ')
19691968

19701969
# Find matching commands. Sort by priority, then by command length.
19711970
matches = sorted([c for c in command if args_match_command(c, CLI_params)],
1972-
key=lambda c: (not c['action'].startswith(priority_services),
1973-
len(c['action'])), reverse=True)
1971+
key=lambda c: (len(c['action']) if len(c['action']) < 25 else int(round(len(c['action']) / 10.) * 10.))
1972+
if c['action'].startswith(priority_services)
1973+
else (1.5 * len(c['action']) if len(c['action']) < 25 else 1.5 * int(round(len(c['action']) / 10.) * 10.)),
1974+
reverse=True)
19741975
best_match = len(matches) - 1
19751976

19761977
# ==============================================================================
@@ -1981,7 +1982,8 @@ if len(matches) == 0:
19811982
+ '\n\nTry: o .')
19821983

19831984
# If many matches, list matches and exit
1984-
elif len(matches) > 16 and ('db' not in CLI_params):
1985+
elif not (len(matches) <= 16 or ('db' in CLI_params and len(matches) <= 50)
1986+
or matches[best_match]['action'].split(' ')[0] + ' ' in priority_services):
19851987
print(bold('Possible commands:'))
19861988
for c in matches:
19871989
show_command(c, prefix=' ')

0 commit comments

Comments
 (0)