Skip to content

Commit a4cbeb7

Browse files
anup-21HamadaGabrIbrahimharshkumar-devKanvipasrichalealex262
committed
Releasing version 3.37.9
Co-authored-by: Hamada Ibrahim <[email protected]> Co-authored-by: Harsh Kumar <[email protected]> Co-authored-by: Kanvi Pasricha <[email protected]> Co-authored-by: Alex Le <[email protected]> Co-authored-by: Nupur Gupta <[email protected]> Co-authored-by: Karthik Kamath <[email protected]> Co-authored-by: Mandy Tsai <[email protected]> Co-authored-by: Pankaj Joshi <[email protected]> Co-authored-by: Anup Singh <[email protected]>
1 parent db611f1 commit a4cbeb7

File tree

12 files changed

+316
-41
lines changed

12 files changed

+316
-41
lines changed

CHANGELOG.rst

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,60 @@ 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.37.9 - 2024-02-13
10+
-------------------
11+
Added
12+
~~~~~
13+
14+
* Support for new optional parameter isReplicateAutomaticBackups in the Database Service
15+
16+
* ``oci db autonomous-database change-disaster-recovery-configuration --is-replicate-automatic-backups``
17+
* ``oci db autonomous-database create-autonomous-database-create-cross-region-disaster-recovery-details --is-replicate-automatic-backups``
18+
19+
Changed
20+
~~~~~~~
21+
* Loganalytics service
22+
23+
* Support for additional attributes in entity and topology
24+
25+
* ``oci log-analytics entity create --metadata, --time-last-discovered``
26+
* ``oci log-analytics entity list --metadata-equals``
27+
* ``oci log-analytics entity update --metadata, --time-last-discovered``
28+
* ``oci log-analytics entity upload-discovery-data --log-group-id``
29+
* ``oci log-analytics entity-topology list --metadata-equals``
30+
31+
* Support for historic collection and log type while creating object collection rule
32+
33+
* ``oci log-analytics object-collection-rule create --is-force-historic-collection, --log-type``
34+
35+
* Support for position aware parsers
36+
37+
* ``oci log-analytics parser extract-structured-log-field-paths --is-position-aware``
38+
* ``oci log-analytics parser extract-structured-log-header-paths --is-position-aware``
39+
* ``oci log-analytics parser test-parser --is-position-aware``
40+
* ``oci log-analytics parser upsert-parser --is-position-aware``
41+
42+
* Support for filtering detection rules based on target service
43+
44+
* ``oci log-analytics rule list --target-service``
45+
46+
* Support for filtering scheduled tasks based on target service
47+
48+
* ``oci log-analytics scheduled-task list --target-service``
49+
50+
* Support for filtering log sources based on their type
51+
52+
* ``oci log-analytics source list-sources --source-type``
53+
54+
* Support for additional recall and release attributes
55+
56+
* ``oci log-analytics storage recall-archived-data --is-use-recommended-data-set``
57+
* ``oci log-analytics storage release-recalled-data --collection-id``
58+
59+
* Support for opc-meta-properties header while uploading log events
60+
61+
* ``oci log-analytics upload upload-log-events-file --opc-meta-properties``
62+
963
3.37.8 - 2024-02-06
1064
--------------------
1165
Added

requirements.txt

Lines changed: 1 addition & 1 deletion
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.121.0
17+
oci==2.121.1
1818
packaging==20.2
1919
pluggy==0.13.0
2020
py==1.11.0

services/ai_language/src/oci_cli_ai_service_language/aiservicelanguage_cli_extended.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def language_group():
9393
aiservicelanguage_cli.model_group.commands.pop(aiservicelanguage_cli.create_model_pre_trained_named_entity_recognition_model_details.name)
9494
aiservicelanguage_cli.model_group.commands.pop(aiservicelanguage_cli.create_model_pre_trained_language_detection_model_details.name)
9595
aiservicelanguage_cli.model_group.commands.pop(aiservicelanguage_cli.create_model_pre_trained_sentiment_analysis_model_details.name)
96-
aiservicelanguage_cli.model_group.commands.pop(aiservicelanguage_cli.create_model_pre_trained_phi_model_details.name)
9796
aiservicelanguage_cli.model_group.commands.pop(aiservicelanguage_cli.create_model_pre_trained_text_classification_model_details.name)
9897
aiservicelanguage_cli.model_group.commands.pop(aiservicelanguage_cli.create_model_pre_trained_summarization.name)
9998
aiservicelanguage_cli.model_group.commands.pop(aiservicelanguage_cli.create_model_pre_trained_pii_model_details.name)

services/database/src/oci_cli_database/generated/database_cli.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,6 +1637,7 @@ def change_db_system_compartment(ctx, from_json, wait_for_state, max_wait_second
16371637
@cli_util.option('--disaster-recovery-type', type=custom_types.CliCaseInsensitiveChoice(["ADG", "BACKUP_BASED"]), help=u"""Indicates the disaster recovery (DR) type of the Autonomous Database Serverless instance. Autonomous Data Guard (ADG) DR type provides business critical DR with a faster recovery time objective (RTO) during failover or switchover. Backup-based DR type provides lower cost DR with a slower RTO during failover or switchover.""")
16381638
@cli_util.option('--time-snapshot-standby-enabled-till', type=custom_types.CLI_DATETIME, help=u"""Time and date stored as an RFC 3339 formatted timestamp string. For example, 2022-01-01T12:00:00.000Z would set a limit for the snapshot standby to be converted back to a cross-region standby database.""" + custom_types.CLI_DATETIME.VALID_DATETIME_CLI_HELP_MESSAGE)
16391639
@cli_util.option('--is-snapshot-standby', type=click.BOOL, help=u"""Indicates if user wants to convert to a snapshot standby. For example, true would set a standby database to snapshot standby database. False would set a snapshot standby database back to regular standby database.""")
1640+
@cli_util.option('--is-replicate-automatic-backups', type=click.BOOL, help=u"""If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database.""")
16401641
@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.""")
16411642
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["PROVISIONING", "AVAILABLE", "STOPPING", "STOPPED", "STARTING", "TERMINATING", "TERMINATED", "UNAVAILABLE", "RESTORE_IN_PROGRESS", "RESTORE_FAILED", "BACKUP_IN_PROGRESS", "SCALE_IN_PROGRESS", "AVAILABLE_NEEDS_ATTENTION", "UPDATING", "MAINTENANCE_IN_PROGRESS", "RESTARTING", "RECREATING", "ROLE_CHANGE_IN_PROGRESS", "UPGRADING", "INACCESSIBLE", "STANDBY"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
16421643
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
@@ -1646,7 +1647,7 @@ def change_db_system_compartment(ctx, from_json, wait_for_state, max_wait_second
16461647
@click.pass_context
16471648
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'database', 'class': 'AutonomousDatabase'})
16481649
@cli_util.wrap_exceptions
1649-
def change_disaster_recovery_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, disaster_recovery_type, time_snapshot_standby_enabled_till, is_snapshot_standby, if_match):
1650+
def change_disaster_recovery_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, autonomous_database_id, disaster_recovery_type, time_snapshot_standby_enabled_till, is_snapshot_standby, is_replicate_automatic_backups, if_match):
16501651

16511652
if isinstance(autonomous_database_id, six.string_types) and len(autonomous_database_id.strip()) == 0:
16521653
raise click.UsageError('Parameter --autonomous-database-id cannot be whitespace or empty string')
@@ -1667,6 +1668,9 @@ def change_disaster_recovery_configuration(ctx, from_json, wait_for_state, max_w
16671668
if is_snapshot_standby is not None:
16681669
_details['isSnapshotStandby'] = is_snapshot_standby
16691670

1671+
if is_replicate_automatic_backups is not None:
1672+
_details['isReplicateAutomaticBackups'] = is_replicate_automatic_backups
1673+
16701674
client = cli_util.build_client('database', 'database', ctx)
16711675
result = client.change_disaster_recovery_configuration(
16721676
autonomous_database_id=autonomous_database_id,
@@ -4389,6 +4393,7 @@ def create_autonomous_database_create_autonomous_database_from_backup_details(ct
43894393

43904394
This cannot be used in conjunction with adminPassword.""")
43914395
@cli_util.option('--secret-version-number', type=click.INT, help=u"""The version of the vault secret. If no version is specified, the latest version will be used.""")
4396+
@cli_util.option('--is-replicate-automatic-backups', type=click.BOOL, help=u"""If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database.""")
43924397
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["PROVISIONING", "AVAILABLE", "STOPPING", "STOPPED", "STARTING", "TERMINATING", "TERMINATED", "UNAVAILABLE", "RESTORE_IN_PROGRESS", "RESTORE_FAILED", "BACKUP_IN_PROGRESS", "SCALE_IN_PROGRESS", "AVAILABLE_NEEDS_ATTENTION", "UPDATING", "MAINTENANCE_IN_PROGRESS", "RESTARTING", "RECREATING", "ROLE_CHANGE_IN_PROGRESS", "UPGRADING", "INACCESSIBLE", "STANDBY"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
43934398
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
43944399
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
@@ -4397,7 +4402,7 @@ def create_autonomous_database_create_autonomous_database_from_backup_details(ct
43974402
@click.pass_context
43984403
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'whitelisted-ips': {'module': 'database', 'class': 'list[string]'}, 'standby-whitelisted-ips': {'module': 'database', 'class': 'list[string]'}, 'nsg-ids': {'module': 'database', 'class': 'list[string]'}, 'freeform-tags': {'module': 'database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'database', 'class': 'dict(str, dict(str, object))'}, 'customer-contacts': {'module': 'database', 'class': 'list[CustomerContact]'}, 'resource-pool-summary': {'module': 'database', 'class': 'ResourcePoolSummary'}, 'scheduled-operations': {'module': 'database', 'class': 'list[ScheduledOperationDetails]'}, 'db-tools-details': {'module': 'database', 'class': 'list[DatabaseTool]'}}, output_type={'module': 'database', 'class': 'AutonomousDatabase'})
43994404
@cli_util.wrap_exceptions
4400-
def create_autonomous_database_create_cross_region_disaster_recovery_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, source_id, remote_disaster_recovery_type, character_set, ncharacter_set, db_name, cpu_core_count, backup_retention_period_in_days, compute_model, compute_count, ocpu_count, db_workload, data_storage_size_in_tbs, data_storage_size_in_gbs, is_free_tier, kms_key_id, vault_id, admin_password, display_name, license_model, is_preview_version_with_service_terms_accepted, is_auto_scaling_enabled, is_dedicated, autonomous_container_database_id, in_memory_percentage, is_access_control_enabled, whitelisted_ips, are_primary_whitelisted_ips_used, standby_whitelisted_ips, is_data_guard_enabled, is_local_data_guard_enabled, subnet_id, nsg_ids, private_endpoint_label, freeform_tags, defined_tags, private_endpoint_ip, db_version, customer_contacts, is_mtls_connection_required, resource_pool_leader_id, resource_pool_summary, autonomous_maintenance_schedule_type, scheduled_operations, is_auto_scaling_for_storage_enabled, max_cpu_core_count, database_edition, db_tools_details, secret_id, secret_version_number):
4405+
def create_autonomous_database_create_cross_region_disaster_recovery_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, source_id, remote_disaster_recovery_type, character_set, ncharacter_set, db_name, cpu_core_count, backup_retention_period_in_days, compute_model, compute_count, ocpu_count, db_workload, data_storage_size_in_tbs, data_storage_size_in_gbs, is_free_tier, kms_key_id, vault_id, admin_password, display_name, license_model, is_preview_version_with_service_terms_accepted, is_auto_scaling_enabled, is_dedicated, autonomous_container_database_id, in_memory_percentage, is_access_control_enabled, whitelisted_ips, are_primary_whitelisted_ips_used, standby_whitelisted_ips, is_data_guard_enabled, is_local_data_guard_enabled, subnet_id, nsg_ids, private_endpoint_label, freeform_tags, defined_tags, private_endpoint_ip, db_version, customer_contacts, is_mtls_connection_required, resource_pool_leader_id, resource_pool_summary, autonomous_maintenance_schedule_type, scheduled_operations, is_auto_scaling_for_storage_enabled, max_cpu_core_count, database_edition, db_tools_details, secret_id, secret_version_number, is_replicate_automatic_backups):
44014406

44024407
kwargs = {}
44034408
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
@@ -4548,6 +4553,9 @@ def create_autonomous_database_create_cross_region_disaster_recovery_details(ctx
45484553
if secret_version_number is not None:
45494554
_details['secretVersionNumber'] = secret_version_number
45504555

4556+
if is_replicate_automatic_backups is not None:
4557+
_details['isReplicateAutomaticBackups'] = is_replicate_automatic_backups
4558+
45514559
_details['source'] = 'CROSS_REGION_DISASTER_RECOVERY'
45524560

45534561
client = cli_util.build_client('database', 'database', ctx)

services/generative_ai_inference/src/oci_cli_generative_ai_inference/generative_ai_inference_cli_extended.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# Copyright (c) 2016, 2021, 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

5+
import click # noqa: F401
6+
import json # noqa: F401
7+
from oci_cli import cli_util # noqa: F401
8+
from oci_cli import custom_types # noqa: F401
9+
from oci_cli import json_skeleton_utils # noqa: F401
510
from services.generative_ai_inference.src.oci_cli_generative_ai_inference.generated import generativeaiinference_cli
611

712
# Remove oci generative-ai-inference deprecated commands:
@@ -15,3 +20,27 @@
1520
# EmbedText API: embed_text_on_demand_serving_mode, embed_text_dedicated_serving_mode
1621
generativeaiinference_cli.embed_text_result_group.commands.pop(generativeaiinference_cli.embed_text_on_demand_serving_mode.name)
1722
generativeaiinference_cli.embed_text_result_group.commands.pop(generativeaiinference_cli.embed_text_dedicated_serving_mode.name)
23+
24+
25+
@cli_util.copy_params_from_generated_command(generativeaiinference_cli.generate_text_cohere_llm_inference_request, params_to_exclude=['inference_request_is_stream'])
26+
@generativeaiinference_cli.generate_text_result_group.command(name='generate-text-cohere-llm-inference-request', help=generativeaiinference_cli.generate_text_cohere_llm_inference_request.help)
27+
@click.pass_context
28+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'serving-mode': {'module': 'generative_ai_inference', 'class': 'ServingMode'}, 'inference-request-stop-sequences': {'module': 'generative_ai_inference', 'class': 'list[string]'}}, output_type={'module': 'generative_ai_inference', 'class': 'GenerateTextResult'})
29+
@cli_util.wrap_exceptions
30+
def generate_text_cohere_llm_inference_request_extended(ctx, **kwargs):
31+
32+
kwargs['inference_request_is_stream'] = False
33+
34+
ctx.invoke(generativeaiinference_cli.generate_text_cohere_llm_inference_request, **kwargs)
35+
36+
37+
@cli_util.copy_params_from_generated_command(generativeaiinference_cli.generate_text_llama_llm_inference_request, params_to_exclude=['inference_request_is_stream'])
38+
@generativeaiinference_cli.generate_text_result_group.command(name='generate-text-llama-llm-inference-request', help=generativeaiinference_cli.generate_text_llama_llm_inference_request.help)
39+
@click.pass_context
40+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'serving-mode': {'module': 'generative_ai_inference', 'class': 'ServingMode'}, 'inference-request-stop': {'module': 'generative_ai_inference', 'class': 'list[string]'}}, output_type={'module': 'generative_ai_inference', 'class': 'GenerateTextResult'})
41+
@cli_util.wrap_exceptions
42+
def generate_text_llama_llm_inference_request_extended(ctx, **kwargs):
43+
44+
kwargs['inference_request_is_stream'] = False
45+
46+
ctx.invoke(generativeaiinference_cli.generate_text_llama_llm_inference_request, **kwargs)

0 commit comments

Comments
 (0)