Skip to content

Commit 3640bea

Browse files
Releasing version 3.54.2
Releasing version 3.54.2
2 parents 7a1a6f2 + 012dd93 commit 3640bea

File tree

14 files changed

+490
-28
lines changed

14 files changed

+490
-28
lines changed

CHANGELOG.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,39 @@ 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.54.2 - 2025-04-08
10+
--------------------
11+
Added
12+
~~~~~
13+
* GoldenGate Service
14+
15+
* Support for new optional parameters to create and update deployment operation
16+
17+
* ``oci goldengate deployment create --availability-domain, --fault-domain, --placements, --source-deployment-id``
18+
* ``oci goldengate deployment update --placements``
19+
20+
* Support for new operations to goldengate deployment operation
21+
22+
* ``oci goldengate deployment add-deployment-local-peer``
23+
* ``oci goldengate deployment remove-deployment-local-peer``
24+
* ``oci goldengate deployment switchover-deployment-peer``
25+
26+
* Support for deploymentPeerSummary operation
27+
28+
* ``oci goldengate deployment-peer-summary list-deployment-peers``
29+
30+
* Support for collecting diagnostics for ZeroETL pipelines
31+
32+
* ``oci goldengate pipeline collect-diagnostic``
33+
34+
* Support for new optional parameters for below command in the Key Management Service
35+
36+
* ``oci kms management vault create-vault-replica --replica-vault-metadata``
37+
38+
* Support for Dry Run of Function Invocation in the Functions service
39+
40+
* ``oci fn function invoke --is-dry-run``
41+
942
3.54.1 - 2025-04-01
1043
--------------------
1144
Added

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Jinja2>=3.1.5; python_version >= '3.7'
1515
jmespath==0.10.0
1616
ndg-httpsclient==0.4.2
1717
mock==2.0.0
18-
oci==2.149.2
18+
oci==2.150.0
1919
packaging==20.2
2020
pluggy==0.13.0
2121
py==1.11.0

services/functions/src/oci_cli_functions_invoke/generated/functionsinvoke_cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ def function_group():
3838
@cli_util.option('--invoke-function-body', help=u"""The body of the function invocation. Note: The maximum size of the request is limited. This limit is currently 6MB and the endpoint will not accept requests that are bigger than this limit.""")
3939
@cli_util.option('--fn-intent', type=custom_types.CliCaseInsensitiveChoice(["httprequest", "cloudevent"]), help=u"""An optional intent header that indicates to the FDK the way the event should be interpreted. E.g. 'httprequest', 'cloudevent'.""")
4040
@cli_util.option('--fn-invoke-type', type=custom_types.CliCaseInsensitiveChoice(["detached", "sync"]), help=u"""Indicates whether Oracle Functions should execute the request and return the result ('sync') of the execution, or whether Oracle Functions should return as soon as processing has begun ('detached') and leave result handling to the function.""")
41+
@cli_util.option('--is-dry-run', type=click.BOOL, help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not execute the function.""")
4142
@json_skeleton_utils.get_cli_json_input_option({})
4243
@cli_util.help_option
4344
@click.pass_context
4445
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
4546
@cli_util.wrap_exceptions
46-
def invoke_function(ctx, from_json, file, function_id, invoke_function_body, fn_intent, fn_invoke_type):
47+
def invoke_function(ctx, from_json, file, function_id, invoke_function_body, fn_intent, fn_invoke_type, is_dry_run):
4748

4849
if isinstance(function_id, six.string_types) and len(function_id.strip()) == 0:
4950
raise click.UsageError('Parameter --function-id cannot be whitespace or empty string')
@@ -55,6 +56,8 @@ def invoke_function(ctx, from_json, file, function_id, invoke_function_body, fn_
5556
kwargs['fn_intent'] = fn_intent
5657
if fn_invoke_type is not None:
5758
kwargs['fn_invoke_type'] = fn_invoke_type
59+
if is_dry_run is not None:
60+
kwargs['is_dry_run'] = is_dry_run
5861
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
5962

6063
# do not automatically retry operations with binary inputs

services/golden_gate/src/oci_cli_golden_gate/generated/goldengate_cli.py

Lines changed: 379 additions & 17 deletions
Large diffs are not rendered by default.

services/golden_gate/src/oci_cli_golden_gate/golden_gate_cli_extended.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,14 @@ def update_connection_update_oracle_nosql_connection_details_extended(ctx, **kwa
653653
cli_util.rename_command(goldengate_cli, goldengate_cli.deployment_backup_group, goldengate_cli.remove_deployment_backup_lock, "remove-lock")
654654

655655

656+
# oci goldengate deployment add -> oci goldengate deployment add-deployment-local-peer
657+
cli_util.rename_command(goldengate_cli, goldengate_cli.deployment_group, goldengate_cli.add_deployment_local_peer, "add-deployment-local-peer")
658+
659+
660+
# oci goldengate deployment remove -> oci goldengate deployment remove-deployment-local-peer
661+
cli_util.rename_command(goldengate_cli, goldengate_cli.deployment_group, goldengate_cli.remove_deployment_local_peer, "remove-deployment-local-peer")
662+
663+
656664
# oci goldengate connection create-connection-create-db2-connection-details -> oci goldengate connection create-db2-connection
657665
cli_util.rename_command(goldengate_cli, goldengate_cli.connection_group, goldengate_cli.create_connection_create_db2_connection_details, "create-db2-connection")
658666

@@ -803,3 +811,7 @@ def update_connection_update_microsoft_fabric_connection_details_extended(ctx, *
803811
kwargs.pop('connection_endpoint')
804812

805813
ctx.invoke(goldengate_cli.update_connection_update_microsoft_fabric_connection_details, **kwargs)
814+
815+
816+
# oci goldengate pipeline collect-pipeline-diagnostic -> oci goldengate pipeline collect-diagnostic
817+
cli_util.rename_command(goldengate_cli, goldengate_cli.pipeline_group, goldengate_cli.collect_pipeline_diagnostic, "collect-diagnostic")

services/golden_gate/tests/unit/test_goldengate_cli_extended.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ def test_deployment_create_req_params(self):
3636
assert 'display-name' in result.output
3737
assert 'compartment-id' in result.output
3838
assert 'subnet-id' in result.output
39-
assert 'cpu-core-count' in result.output
40-
assert 'is-auto-scaling-enabled' in result.output
41-
assert 'deployment-type' in result.output
4239

4340
def test_deployment_create_req_params1(self):
4441
result = util.invoke_command(['goldengate', 'deployment', 'create', '--deployment-name'])

services/golden_gate/tests/util/generated/command_to_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
SDK_client_map = {
55
"goldengate.add_connection_lock": "oci.golden_gate.GoldenGateClient.add_connection_lock",
66
"goldengate.add_deployment_backup_lock": "oci.golden_gate.GoldenGateClient.add_deployment_backup_lock",
7+
"goldengate.add_deployment_local_peer": "oci.golden_gate.GoldenGateClient.add_deployment_local_peer",
78
"goldengate.add_deployment_lock": "oci.golden_gate.GoldenGateClient.add_deployment_lock",
89
"goldengate.cancel_deployment_backup": "oci.golden_gate.GoldenGateClient.cancel_deployment_backup",
910
"goldengate.cancel_deployment_upgrade": "oci.golden_gate.GoldenGateClient.cancel_deployment_upgrade",
@@ -14,6 +15,7 @@
1415
"goldengate.change_deployment_compartment": "oci.golden_gate.GoldenGateClient.change_deployment_compartment",
1516
"goldengate.change_pipeline_compartment": "oci.golden_gate.GoldenGateClient.change_pipeline_compartment",
1617
"goldengate.collect_deployment_diagnostic": "oci.golden_gate.GoldenGateClient.collect_deployment_diagnostic",
18+
"goldengate.collect_pipeline_diagnostic": "oci.golden_gate.GoldenGateClient.collect_pipeline_diagnostic",
1719
"goldengate.copy_deployment_backup": "oci.golden_gate.GoldenGateClient.copy_deployment_backup",
1820
"goldengate.create_certificate": "oci.golden_gate.GoldenGateClient.create_certificate",
1921
"goldengate.create_connection": "oci.golden_gate.GoldenGateClient.create_connection",
@@ -48,6 +50,7 @@
4850
"goldengate.list_database_registrations": "oci.golden_gate.GoldenGateClient.list_database_registrations",
4951
"goldengate.list_deployment_backups": "oci.golden_gate.GoldenGateClient.list_deployment_backups",
5052
"goldengate.list_deployment_environments": "oci.golden_gate.GoldenGateClient.list_deployment_environments",
53+
"goldengate.list_deployment_peers": "oci.golden_gate.GoldenGateClient.list_deployment_peers",
5154
"goldengate.list_deployment_types": "oci.golden_gate.GoldenGateClient.list_deployment_types",
5255
"goldengate.list_deployment_upgrades": "oci.golden_gate.GoldenGateClient.list_deployment_upgrades",
5356
"goldengate.list_deployment_versions": "oci.golden_gate.GoldenGateClient.list_deployment_versions",
@@ -68,6 +71,7 @@
6871
"goldengate.refresh_connection": "oci.golden_gate.GoldenGateClient.refresh_connection",
6972
"goldengate.remove_connection_lock": "oci.golden_gate.GoldenGateClient.remove_connection_lock",
7073
"goldengate.remove_deployment_backup_lock": "oci.golden_gate.GoldenGateClient.remove_deployment_backup_lock",
74+
"goldengate.remove_deployment_local_peer": "oci.golden_gate.GoldenGateClient.remove_deployment_local_peer",
7175
"goldengate.remove_deployment_lock": "oci.golden_gate.GoldenGateClient.remove_deployment_lock",
7276
"goldengate.reschedule_deployment_upgrade": "oci.golden_gate.GoldenGateClient.reschedule_deployment_upgrade",
7377
"goldengate.restore_deployment": "oci.golden_gate.GoldenGateClient.restore_deployment",
@@ -77,6 +81,7 @@
7781
"goldengate.start_pipeline": "oci.golden_gate.GoldenGateClient.start_pipeline",
7882
"goldengate.stop_deployment": "oci.golden_gate.GoldenGateClient.stop_deployment",
7983
"goldengate.stop_pipeline": "oci.golden_gate.GoldenGateClient.stop_pipeline",
84+
"goldengate.switchover_deployment_peer": "oci.golden_gate.GoldenGateClient.switchover_deployment_peer",
8085
"goldengate.test_connection_assignment": "oci.golden_gate.GoldenGateClient.test_connection_assignment",
8186
"goldengate.test_pipeline_connection": "oci.golden_gate.GoldenGateClient.test_pipeline_connection",
8287
"goldengate.update_connection": "oci.golden_gate.GoldenGateClient.update_connection",

services/key_management/src/oci_cli_kms_vault/generated/kmsvault_cli.py

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,13 +396,54 @@ def create_vault(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval
396396
As a provisioning operation, this call is subject to a Key Management limit that applies to the total number of requests across all provisioning write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of provisioning write operations exceeds 10 requests per second for a given tenancy. \n[Command Reference](createVaultReplica)""")
397397
@cli_util.option('--vault-id', required=True, help=u"""The OCID of the vault.""")
398398
@cli_util.option('--replica-region', required=True, help=u"""The region in the realm to which the vault need to be replicated to""")
399+
@cli_util.option('--replica-vault-metadata', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
400+
@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.""")
401+
@json_skeleton_utils.get_cli_json_input_option({'replica-vault-metadata': {'module': 'key_management', 'class': 'ReplicaVaultMetadata'}})
402+
@cli_util.help_option
403+
@click.pass_context
404+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'replica-vault-metadata': {'module': 'key_management', 'class': 'ReplicaVaultMetadata'}})
405+
@cli_util.wrap_exceptions
406+
def create_vault_replica(ctx, from_json, vault_id, replica_region, replica_vault_metadata, if_match):
407+
408+
if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0:
409+
raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string')
410+
411+
kwargs = {}
412+
if if_match is not None:
413+
kwargs['if_match'] = if_match
414+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
415+
416+
_details = {}
417+
_details['replicaRegion'] = replica_region
418+
419+
if replica_vault_metadata is not None:
420+
_details['replicaVaultMetadata'] = cli_util.parse_json_parameter("replica_vault_metadata", replica_vault_metadata)
421+
422+
client = cli_util.build_client('key_management', 'kms_vault', ctx)
423+
result = client.create_vault_replica(
424+
vault_id=vault_id,
425+
create_vault_replica_details=_details,
426+
**kwargs
427+
)
428+
cli_util.render_response(result, ctx)
429+
430+
431+
@vault_group.command(name=cli_util.override('kms_vault.create_vault_replica_replica_external_vault_metadata.command_name', 'create-vault-replica-replica-external-vault-metadata'), help=u"""Creates a replica for the vault in another region in the same realm
432+
433+
The API is a no-op if called for same region that a vault is already replicated to. 409 if called on a vault that is already replicated to a different region. Users need to delete existing replica first before calling it with a different region.
434+
435+
As a provisioning operation, this call is subject to a Key Management limit that applies to the total number of requests across all provisioning write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of provisioning write operations exceeds 10 requests per second for a given tenancy. \n[Command Reference](createVaultReplica)""")
436+
@cli_util.option('--vault-id', required=True, help=u"""The OCID of the vault.""")
437+
@cli_util.option('--replica-region', required=True, help=u"""The region in the realm to which the vault need to be replicated to""")
438+
@cli_util.option('--replica-vault-metadata-private-endpoint-id', required=True, help=u"""OCID of the EKMS private endpoint in the replica region and must be in ACTIVE state""")
439+
@cli_util.option('--replica-vault-metadata-idcs-account-name-url', required=True, help=u"""Replica region URL of the IDCS domain""")
399440
@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.""")
400441
@json_skeleton_utils.get_cli_json_input_option({})
401442
@cli_util.help_option
402443
@click.pass_context
403444
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
404445
@cli_util.wrap_exceptions
405-
def create_vault_replica(ctx, from_json, vault_id, replica_region, if_match):
446+
def create_vault_replica_replica_external_vault_metadata(ctx, from_json, vault_id, replica_region, replica_vault_metadata_private_endpoint_id, replica_vault_metadata_idcs_account_name_url, if_match):
406447

407448
if isinstance(vault_id, six.string_types) and len(vault_id.strip()) == 0:
408449
raise click.UsageError('Parameter --vault-id cannot be whitespace or empty string')
@@ -413,7 +454,12 @@ def create_vault_replica(ctx, from_json, vault_id, replica_region, if_match):
413454
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
414455

415456
_details = {}
457+
_details['replicaVaultMetadata'] = {}
416458
_details['replicaRegion'] = replica_region
459+
_details['replicaVaultMetadata']['privateEndpointId'] = replica_vault_metadata_private_endpoint_id
460+
_details['replicaVaultMetadata']['idcsAccountNameUrl'] = replica_vault_metadata_idcs_account_name_url
461+
462+
_details['replicaVaultMetadata']['vaultType'] = 'EXTERNAL'
417463

418464
client = cli_util.build_client('key_management', 'kms_vault', ctx)
419465
result = client.create_vault_replica(

services/key_management/src/oci_cli_kms_vault/kms_vault_cli_extended.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,7 @@ def restore_from_file(ctx, **kwargs):
141141
ctx.invoke(kmsvault_cli.restore_vault_from_file, **kwargs)
142142
except Exception:
143143
click.echo("Can't open the file")
144+
145+
146+
# Remove create-vault-replica-replica-external-vault-metadata from oci kms management vault
147+
kmsvault_cli.vault_group.commands.pop(kmsvault_cli.create_vault_replica_replica_external_vault_metadata.name)

services/sch/src/oci_cli_connector_plugins/generated/connectorplugins_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def get_connector_plugin(ctx, from_json, connector_plugin_name):
6565

6666

6767
@connector_plugin_summary_group.command(name=cli_util.override('connector_plugins.list_connector_plugins.command_name', 'list-connector-plugins'), help=u"""Lists connector plugins according to the specified filter. \n[Command Reference](listConnectorPlugins)""")
68-
@cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "DELETING", "DELETED", "FAILED"]), help=u"""A filter to return only resources that match the given lifecycle state.
68+
@cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "NEEDS_ATTENTION", "DELETING", "DELETED", "FAILED"]), help=u"""A filter to return only resources that match the given lifecycle state.
6969
7070
Example: `ACTIVE`""")
7171
@cli_util.option('--display-name', help=u"""A filter to return only resources that match the given display name exactly.

0 commit comments

Comments
 (0)