Skip to content

Commit 6c782b4

Browse files
Releasing version 3.50.2
Releasing version 3.50.2
2 parents 4a7deb9 + 7ee9110 commit 6c782b4

File tree

20 files changed

+356
-103
lines changed

20 files changed

+356
-103
lines changed

CHANGELOG.rst

+52
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,58 @@ 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.50.2 - 2024-11-19
10+
--------------------
11+
Added
12+
~~~~~
13+
* Database Service
14+
15+
* Command to list Oracle Grid Infrastructure minor versions for the given major version. If --is-gi-version-for-provisioning argument is provided, then the command lists the versions that can be used for provisioning a cluster.
16+
17+
* ``oci db database gi-minor-version-summary list``
18+
19+
* Support to create and list exascale db vault
20+
21+
* ``oci db exascale-db-storage-vault create --exadata-infrastructure-id``
22+
* ``oci db exascale-db-storage-vault list --exadata-infrastructure-id``
23+
24+
* Support to create vm cluster with db vault
25+
26+
* ``oci db vm-cluster create --exascale-db-storage-vault-id``
27+
28+
* Support to configure exascale
29+
30+
* ``oci db exadata-infrastructure configure-exascale --exadata-infrastructure-id, --total-storage-in-gbs``
31+
32+
* Support for new optional parameter for Unified Auditing in the Database service
33+
34+
* ``oci db system launch --is-unified-auditing-enabled``
35+
* ``oci db system launch-from-backup --is-unified-auditing-enabled``
36+
37+
* Oracle Database PostgreSQL service
38+
39+
* Support Single Read Only (RO) endpoint for the Read Replica
40+
41+
* ``oci psql db-system create``
42+
43+
* Customer Incident Management Service
44+
45+
* Introduced UserGroupId for creating Tech SR
46+
47+
* ``oci support incident create --user-group-id``
48+
49+
* Object Storage Service
50+
51+
* Support for additional checksum parameters in the Object Storage service.
52+
* opc-checksum-algorithm`` - Specifies the checksum algorithm to be used (options: SHA256, SHA384, CRC32C).
53+
* opc-content-sha256`` - Specifies the SHA256 checksum value.
54+
* opc-content-sha384`` - Specifies the SHA384 checksum value.
55+
* opc-content-crc32c`` - Specifies the CRC32C checksum value.
56+
57+
* ``oci os object put``
58+
59+
* Support for python 3.12
60+
961
3.50.1 - 2024-11-12
1062
--------------------
1163
Added

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ coverage==4.5.2
1111
cryptography>=3.2.1,<46.0.0
1212
httpsig-cffi==15.0.0
1313
Jinja2==3.0.3; python_version == '3.6'
14-
Jinja2>=3.1.4; python_version >= '3.7'
14+
Jinja2<3.1; python_version >= '3.7'
1515
jmespath==0.10.0
1616
ndg-httpsclient==0.4.2
1717
mock==2.0.0
18-
oci==2.138.1
18+
oci==2.139.0
1919
packaging==20.2
2020
pluggy==0.13.0
2121
py==1.11.0

services/audit/tests/integ/test_audit.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_event_list(self):
8383
assert result.exit_code == 0
8484
response = json.loads(result.output)
8585
events = response["data"]
86-
self.assertEquals(len(events), event_count)
86+
self.assertEqual(len(events), event_count)
8787
for event in events:
8888
parsed_date = parse(event["event-time"])
8989
event_type = event["event-type"]
@@ -100,7 +100,7 @@ def test_event_list(self):
100100
assert result.exit_code == 0
101101
response = json.loads(result.output)
102102
events = response["data"]
103-
self.assertEquals(len(events), event_count)
103+
self.assertEqual(len(events), event_count)
104104
for event in events:
105105
parsed_date = parse(event["eventTime"])
106106
event_type = event["eventType"]
@@ -117,7 +117,7 @@ def test_event_list(self):
117117
assert result.exit_code == 0
118118
response = json.loads(result.output)
119119
events = response["data"]
120-
self.assertEquals(len(events), event_count)
120+
self.assertEqual(len(events), event_count)
121121
for event in events:
122122
parsed_date = parse(event["eventTime"])
123123
event_type = event["eventType"]
@@ -192,7 +192,7 @@ def test_event_list_query(self):
192192
"data[?contains(\"event-type\",'com.oraclecloud.Audit.ListEvents')].{\"event-type\":\"event-type\",\"source\":\"source\",LoginDate:\"event-time\",\"user\":\"data\".\"identity\".\"credentials\"}"])
193193
assert result.exit_code == 0
194194
events = json.loads(result.output)
195-
self.assertEquals(len(events), event_count)
195+
self.assertEqual(len(events), event_count)
196196
for event in events:
197197
parsed_date = parse(event["LoginDate"])
198198
event_type = event["event-type"]
@@ -211,7 +211,7 @@ def test_event_list_query(self):
211211
"data[?contains(\"eventType\",'com.oraclecloud.Audit.ListEvents')].{\"event-type\":\"eventTtype\",\"source\":\"source\",LoginDate:\"eventTime\",\"user\":\"data\".\"identity\".\"credentials\"}"])
212212
assert result.exit_code == 0
213213
events = json.loads(result.output)
214-
self.assertEquals(len(events), event_count)
214+
self.assertEqual(len(events), event_count)
215215
for event in events:
216216
parsed_date = parse(event["LoginDate"])
217217
event_type = event["event-type"]
@@ -230,7 +230,7 @@ def test_event_list_query(self):
230230
"data[?contains(\"eventType\",'com.oraclecloud.Audit.ListEvents')].{\"event-type\":\"eventType\",\"source\":\"source\",LoginDate:\"eventTime\",\"user\":\"data\".\"identity\".\"credentials\"}"])
231231
assert result.exit_code == 0
232232
events = json.loads(result.output)
233-
self.assertEquals(len(events), event_count)
233+
self.assertEqual(len(events), event_count)
234234
for event in events:
235235
parsed_date = parse(event["LoginDate"])
236236
event_type = event["event-type"]

services/cims/src/oci_cli_incident/generated/incident_cli.py

+13-10
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818

1919
@cli.command(cli_util.override('support.support_root_group.command_name', 'support'), cls=CommandGroupWithAlias, help=cli_util.override('support.support_root_group.help', """Use the Support Management API to manage support requests.
2020
For more information, see [Getting Help and Contacting Support].
21-
2221
**Note**: Before you can create service requests with this API,
23-
you need to have an Oracle Single Sign On (SSO) account,
24-
and you need to register your Customer Support Identifier (CSI) with My Oracle Support."""), short_help=cli_util.override('support.support_root_group.short_help', """Support Management API"""))
22+
complete user registration at My Oracle Cloud Support
23+
and then ask your tenancy administrator to provide you authorization for the related user groups."""), short_help=cli_util.override('support.support_root_group.short_help', """Support Management API"""))
2524
@cli_util.help_option_group
2625
def support_root_group():
2726
pass
@@ -61,7 +60,8 @@ def incident_group():
6160
@cli_util.option('--compartment-id', required=True, help=u"""The OCID of the tenancy.""")
6261
@cli_util.option('--ticket', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
6362
@cli_util.option('--problem-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["LIMIT", "LEGACY_LIMIT", "TECH", "ACCOUNT", "TAXONOMY"]), help=u"""The kind of support ticket (type of support request). For information about `ACCOUNT` support tickets, see [Creating a Billing Support Request]. For information about `LIMIT` support tickets, see [Creating a Service Limit Increase Request]. For information about `TECH` support tickets, see [Creating a Technical Support Request].""")
64-
@cli_util.option('--csi', help=u"""The Customer Support Identifier (CSI) number associated with the support account. The CSI is required for technical support tickets and optional for limits and billing tickets.""")
63+
@cli_util.option('--csi', help=u"""The Customer Support Identifier (CSI) number associated with the support account. The CSI is optional for all support request types.""")
64+
@cli_util.option('--user-group-id', help=u"""Technical support type (`TECH`) only: The identifier of the support request's user group in My Oracle Cloud Support portal.""")
6565
@cli_util.option('--contacts', type=custom_types.CLI_COMPLEX_TYPE, help=u"""The list of contacts.
6666
6767
This option is a JSON list with items of type Contact. For documentation on Contact please see our API reference: https://docs.cloud.oracle.com/api/#/en/incident/20181231/datatypes/Contact.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@@ -77,7 +77,7 @@ def incident_group():
7777
@click.pass_context
7878
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'ticket': {'module': 'cims', 'class': 'CreateTicketDetails'}, 'contacts': {'module': 'cims', 'class': 'list[Contact]'}}, output_type={'module': 'cims', 'class': 'Incident'})
7979
@cli_util.wrap_exceptions
80-
def create_incident(ctx, from_json, compartment_id, ticket, problem_type, csi, contacts, referrer, ocid, homeregion, bearertokentype, bearertoken, idtoken, domainid):
80+
def create_incident(ctx, from_json, compartment_id, ticket, problem_type, csi, user_group_id, contacts, referrer, ocid, homeregion, bearertokentype, bearertoken, idtoken, domainid):
8181

8282
kwargs = {}
8383
if ocid is not None:
@@ -102,6 +102,9 @@ def create_incident(ctx, from_json, compartment_id, ticket, problem_type, csi, c
102102
if csi is not None:
103103
_details['csi'] = csi
104104

105+
if user_group_id is not None:
106+
_details['userGroupId'] = user_group_id
107+
105108
if contacts is not None:
106109
_details['contacts'] = cli_util.parse_json_parameter("contacts", contacts)
107110

@@ -119,7 +122,7 @@ def create_incident(ctx, from_json, compartment_id, ticket, problem_type, csi, c
119122
@incident_group.command(name=cli_util.override('support.get_incident.command_name', 'get'), help=u"""Gets the specified support ticket. For more information, see [Getting Details for a Support Request]. \n[Command Reference](getIncident)""")
120123
@cli_util.option('--incident-key', required=True, help=u"""Unique identifier for the support ticket.""")
121124
@cli_util.option('--compartment-id', required=True, help=u"""The OCID of the tenancy.""")
122-
@cli_util.option('--csi', help=u"""The Customer Support Identifier (CSI) number associated with the support account. The CSI is required for technical support tickets and optional for limits and billing tickets.""")
125+
@cli_util.option('--csi', help=u"""The Customer Support Identifier (CSI) number associated with the support account. The CSI is optional for all support request types.""")
123126
@cli_util.option('--ocid', help=u"""User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. User OCID is mandatory for OCI Users and optional for Multicloud users.""")
124127
@cli_util.option('--homeregion', help=u"""The region of the tenancy.""")
125128
@cli_util.option('--problemtype', help=u"""The kind of support request.""")
@@ -172,7 +175,7 @@ def get_incident(ctx, from_json, incident_key, compartment_id, csi, ocid, homere
172175
@cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["dateUpdated", "severity"]), help=u"""The key to use to sort the returned items.""")
173176
@cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The order to sort the results in.""")
174177
@cli_util.option('--name', help=u"""The user-friendly name of the support ticket type.""")
175-
@cli_util.option('--csi', help=u"""The Customer Support Identifier (CSI) number associated with the support account. The CSI is required for technical support tickets and optional for limits and billing tickets.""")
178+
@cli_util.option('--csi', help=u"""The Customer Support Identifier (CSI) number associated with the support account. The CSI is optional for all support request types.""")
176179
@cli_util.option('--ocid', help=u"""User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. User OCID is mandatory for OCI Users and optional for Multicloud users.""")
177180
@cli_util.option('--homeregion', help=u"""The region of the tenancy.""")
178181
@cli_util.option('--domainid', help=u"""The OCID of identity domain. DomainID is mandatory if the user is part of Non Default Identity domain.""")
@@ -239,7 +242,7 @@ def list_incident_resource_types(ctx, from_json, all_pages, page_size, problem_t
239242

240243
@incident_group.command(name=cli_util.override('support.list_incidents.command_name', 'list'), help=u"""Lists support tickets for the specified tenancy. For more information, see [Listing Support Requests]. \n[Command Reference](listIncidents)""")
241244
@cli_util.option('--compartment-id', required=True, help=u"""The OCID of the tenancy.""")
242-
@cli_util.option('--csi', help=u"""The Customer Support Identifier (CSI) number associated with the support account. The CSI is required for technical support tickets and optional for limits and billing tickets.""")
245+
@cli_util.option('--csi', help=u"""The Customer Support Identifier (CSI) number associated with the support account. The CSI is optional for all support request types.""")
243246
@cli_util.option('--limit', type=click.INT, help=u"""For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. For important details about how pagination works, see [List Pagination].""")
244247
@cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["dateUpdated", "severity"]), help=u"""The key to use to sort the returned items.""")
245248
@cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The order to sort the results in.""")
@@ -323,7 +326,7 @@ def list_incidents(ctx, from_json, all_pages, page_size, compartment_id, csi, li
323326
@cli_util.option('--ticket', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
324327
@cli_util.option('--compartment-id', required=True, help=u"""The OCID of the tenancy.""")
325328
@cli_util.option('--problem-type', type=custom_types.CliCaseInsensitiveChoice(["LIMIT", "LEGACY_LIMIT", "TECH", "ACCOUNT", "TAXONOMY"]), help=u"""The kind of support ticket (type of support request). For information about `ACCOUNT` support tickets, see [Creating a Billing Support Request]. For information about `LIMIT` support tickets, see [Creating a Service Limit Increase Request]. For information about `TECH` support tickets, see [Creating a Technical Support Request].""")
326-
@cli_util.option('--csi', help=u"""The Customer Support Identifier (CSI) number associated with the support account. The CSI is required for technical support tickets and optional for limits and billing tickets.""")
329+
@cli_util.option('--csi', help=u"""The Customer Support Identifier (CSI) number associated with the support account. The CSI is optional for all support request types.""")
327330
@cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""")
328331
@cli_util.option('--ocid', help=u"""User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. User OCID is mandatory for OCI Users and optional for Multicloud users.""")
329332
@cli_util.option('--homeregion', help=u"""The region of the tenancy.""")
@@ -382,7 +385,7 @@ def update_incident(ctx, from_json, force, incident_key, ticket, compartment_id,
382385

383386

384387
@validation_response_group.command(name=cli_util.override('support.validate_user.command_name', 'validate-user'), help=u"""Checks whether the requested user is valid. For more information, see [Validating a User]. \n[Command Reference](validateUser)""")
385-
@cli_util.option('--csi', help=u"""The Customer Support Identifier (CSI) number associated with the support account. The CSI is required for technical support tickets and optional for limits and billing tickets.""")
388+
@cli_util.option('--csi', help=u"""The Customer Support Identifier (CSI) number associated with the support account. The CSI is optional for all support request types.""")
386389
@cli_util.option('--problem-type', type=custom_types.CliCaseInsensitiveChoice(["LIMIT", "LEGACY_LIMIT", "TECH", "ACCOUNT", "TAXONOMY"]), help=u"""The kind of support request.""")
387390
@cli_util.option('--ocid', help=u"""User OCID for Oracle Identity Cloud Service (IDCS) users who also have a federated Oracle Cloud Infrastructure account. User OCID is mandatory for OCI Users and optional for Multicloud users.""")
388391
@cli_util.option('--homeregion', help=u"""The region of the tenancy.""")

services/core/tests/integ/test_blockstorage.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def subtest_volume_backup_operations(self):
196196
result = self.invoke(
197197
['backup', 'list', '--compartment-id', util.COMPARTMENT_ID, '--volume-id', self.volume_id])
198198
util.validate_response(result)
199-
self.assertEquals(1, len(json.loads(result.output)['data']))
199+
self.assertEqual(1, len(json.loads(result.output)['data']))
200200

201201
retrieve_list_and_ensure_sorted(
202202
['bv', 'backup', 'list', '-c', util.COMPARTMENT_ID, '--sort-by', 'DISPLAYNAME', '--sort-order', 'asc'],
@@ -280,7 +280,7 @@ def subtest_volume_group_backup_operations(self):
280280
['volume-group-backup', 'list', '--compartment-id', util.COMPARTMENT_ID, '--volume-group-id',
281281
self.volume_group])
282282
util.validate_response(result)
283-
self.assertEquals(1, len(json.loads(result.output)['data']))
283+
self.assertEqual(1, len(json.loads(result.output)['data']))
284284

285285
backup_name = backup_name + "_UPDATED"
286286
result = self.invoke(
@@ -431,7 +431,7 @@ def subtest_delete(self):
431431
util.print_latest_exception(error)
432432
error_count = error_count + 1
433433

434-
self.assertEquals(0, error_count)
434+
self.assertEqual(0, error_count)
435435

436436
def invoke(self, params, debug=False, **args):
437437
commands = ['bv'] + params

0 commit comments

Comments
 (0)