Skip to content

Commit

Permalink
Releasing version 3.43.1
Browse files Browse the repository at this point in the history
Releasing version 3.43.1
  • Loading branch information
Swarn10 committed Jun 11, 2024
2 parents fa91e83 + 2b20d2f commit 1c04e5e
Show file tree
Hide file tree
Showing 15 changed files with 368 additions and 50 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,43 @@ All notable changes to this project will be documented in this file.

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

3.43.1 - 2024-06-11
--------------------
Added
~~~~~
* Globally Distributed Database Service

* Support for new command

* ``oci gdd private-endpoint reinstate-proxy-instance``

* Support for new optional parameter

* ``oci gdd private-endpoint get --if-none-match``
* ``oci gdd sharded-database create-sharded-database-create-dedicated-sharded-database --replication-factor, --replication-method, --replication-unit``
* ``oci gdd sharded-database generate-gsm-certificate-signing-request --ca-bundle-id``
* ``oci gdd sharded-database get --if-none-match``

* Fusion Applications Environment Management Service

* Support for data dump initiation and extract in the Fusion Application Service

* ``oci fusion-apps fusion-environment initiate-extract``
* ``oci fusion-apps fusion-environment generate-extract-details``

* Support for new Action end point in the Application Performance Monitoring Configuration Service

* ``oci apm-config test span-enrichment-group``

* Support for new optional parameters in the Create/Update Alarms API in OCI Monitoring Service.

* ``oci monitoring alarm create --alarm-summary, --evaluation-slack-duration, --notification-title``
* ``oci monitoring alarm update --alarm-summary, --evaluation-slack-duration, --notification-title``

* Support for addition of create date timestamp in Oracle Queue Service

* ``oci queue messages get-messages``

3.43.0 - 2024-06-04
--------------------
Changed
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Jinja2==3.0.3
jmespath==0.10.0
ndg-httpsclient==0.4.2
mock==2.0.0
oci==2.128.0
oci==2.128.1
packaging==20.2
pluggy==0.13.0
py==1.11.0
Expand Down
12 changes: 12 additions & 0 deletions services/apm_config/src/oci_cli_config/config_cli_extended.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,15 @@

# oci apm-config span-filter validate-span-filter-pattern -> oci apm-config span-filter validate-pattern
cli_util.rename_command(config_cli, config_cli.span_filter_group, config_cli.validate_span_filter_pattern, "validate-pattern")


# oci apm-config test-output test -> oci apm-config test-output test
cli_util.rename_command(config_cli, config_cli.test_output_group, config_cli.test, "test")


# oci apm-config test-output test-test-span-enrichment-details -> oci apm-config test-output span-enrichment-group
cli_util.rename_command(config_cli, config_cli.test_output_group, config_cli.test_test_span_enrichment_details, "span-enrichment-group")


# oci apm-config test-output -> oci apm-config test
cli_util.rename_command(config_cli, config_cli.apm_config_root_group, config_cli.test_output_group, "test")
67 changes: 67 additions & 0 deletions services/apm_config/src/oci_cli_config/generated/config_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,17 @@ def config_group():
pass


@click.command(cli_util.override('apm_config.test_output_group.command_name', 'test-output'), cls=CommandGroupWithAlias, help="""The result of running a test.""")
@cli_util.help_option_group
def test_output_group():
pass


apm_config_root_group.add_command(metric_group_group)
apm_config_root_group.add_command(span_filter_group)
apm_config_root_group.add_command(config_collection_group)
apm_config_root_group.add_command(config_group)
apm_config_root_group.add_command(test_output_group)


@config_group.command(name=cli_util.override('apm_config.create_config.command_name', 'create'), help=u"""Creates a new configuration item. \n[Command Reference](createConfig)""")
Expand Down Expand Up @@ -448,6 +455,66 @@ def retrieve_namespaces(ctx, from_json, apm_domain_id):
cli_util.render_response(result, ctx)


@test_output_group.command(name=cli_util.override('apm_config.test.command_name', 'test'), help=u"""Tests a data processing operation on the provided input, returning the potentially modified input as output. Returns 200 on success, 422 when the input can not be processed. \n[Command Reference](test)""")
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
@cli_util.option('--test-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["SPAN_ENRICHMENT"]), help=u"""The kind of test to run.""")
@json_skeleton_utils.get_cli_json_input_option({})
@cli_util.help_option
@click.pass_context
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'apm_config', 'class': 'TestOutput'})
@cli_util.wrap_exceptions
def test(ctx, from_json, apm_domain_id, test_type):

kwargs = {}
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])

_details = {}
_details['testType'] = test_type

client = cli_util.build_client('apm_config', 'config', ctx)
result = client.test(
apm_domain_id=apm_domain_id,
test_details=_details,
**kwargs
)
cli_util.render_response(result, ctx)


@test_output_group.command(name=cli_util.override('apm_config.test_test_span_enrichment_details.command_name', 'test-test-span-enrichment-details'), help=u"""Tests a data processing operation on the provided input, returning the potentially modified input as output. Returns 200 on success, 422 when the input can not be processed. \n[Command Reference](test)""")
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
@cli_util.option('--options', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""The span enrichment rules to test in the format of an Options resource.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@cli_util.option('--span', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""The span to test the rules on. This should be a valid JSON object that follows one of the formats used by distributed tracing frameworks, such as OpenTelemetry, Zipkin, or Oracle Application Performance Monitoring.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@cli_util.option('--filters', type=custom_types.CLI_COMPLEX_TYPE, help=u"""A list of filters to try against the given span.
This option is a JSON list with items of type FilterTextOrId. For documentation on FilterTextOrId please see our API reference: https://docs.cloud.oracle.com/api/#/en/config/20210201/datatypes/FilterTextOrId.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@json_skeleton_utils.get_cli_json_input_option({'options': {'module': 'apm_config', 'class': 'object'}, 'filters': {'module': 'apm_config', 'class': 'list[FilterTextOrId]'}, 'span': {'module': 'apm_config', 'class': 'object'}})
@cli_util.help_option
@click.pass_context
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'options': {'module': 'apm_config', 'class': 'object'}, 'filters': {'module': 'apm_config', 'class': 'list[FilterTextOrId]'}, 'span': {'module': 'apm_config', 'class': 'object'}}, output_type={'module': 'apm_config', 'class': 'TestOutput'})
@cli_util.wrap_exceptions
def test_test_span_enrichment_details(ctx, from_json, apm_domain_id, options, span, filters):

kwargs = {}
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])

_details = {}
_details['options'] = cli_util.parse_json_parameter("options", options)
_details['span'] = cli_util.parse_json_parameter("span", span)

if filters is not None:
_details['filters'] = cli_util.parse_json_parameter("filters", filters)

_details['testType'] = 'SPAN_ENRICHMENT'

client = cli_util.build_client('apm_config', 'config', ctx)
result = client.test(
apm_domain_id=apm_domain_id,
test_details=_details,
**kwargs
)
cli_util.render_response(result, ctx)


@config_group.command(name=cli_util.override('apm_config.update_config.command_name', 'update'), help=u"""Updates the details of the configuration item identified by the OCID. \n[Command Reference](updateConfig)""")
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
@cli_util.option('--config-id', required=True, help=u"""The [OCID] of the configuration item.""")
Expand Down
Loading

0 comments on commit 1c04e5e

Please sign in to comment.