oci-cli 3.63.0__py3-none-any.whl → 3.63.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci_cli/bin/devops.psm1 +5 -4
- oci_cli/bin/psql.psm1 +4 -4
- oci_cli/bin/vault.psm1 +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api/add-lock.txt +141 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api/change-compartment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api/create.txt +17 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api/remove-lock.txt +136 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api/update.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/api.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate/add-lock.txt +143 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate/change-compartment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate/create.txt +17 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate/remove-lock.txt +138 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate/update.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/certificate.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment/add-lock.txt +150 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment/change-compartment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment/create.txt +17 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment/remove-lock.txt +145 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment/update.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/deployment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway/add-lock.txt +142 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway/change-compartment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway/create.txt +18 -1
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway/remove-lock.txt +137 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway/update.txt +5 -1
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/gateway.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk/add-lock.txt +144 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk/create.txt +17 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk/list.txt +4 -2
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk/remove-lock.txt +139 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk/update.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/sdk.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber/add-lock.txt +147 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber/change-compartment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber/create.txt +17 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber/remove-lock.txt +142 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber/update.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/subscriber.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan/add-lock.txt +146 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan/change-compartment.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan/create.txt +17 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan/delete.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan/remove-lock.txt +141 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan/update.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway/usage-plan.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-gateway.txt +28 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance/change-compartment.txt +108 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance/create.txt +153 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance/delete.txt +132 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance/get.txt +94 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance/update.txt +162 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance-collection/list-api-platform-instances.txt +141 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance-collection.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/api-platform-instance.txt +23 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request/get.txt +91 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request/list.txt +140 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request-error/list.txt +131 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request-error.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request-log-entry/list-work-request-logs.txt +131 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request-log-entry.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform/work-request.txt +21 -0
- oci_cli/help_text_producer/data_files/text/cmdref/api-platform.txt +42 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/config/create-agent.txt +153 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/config/create-macs-extension.txt +171 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/config/update-agent.txt +162 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/config/update-macs-extension.txt +174 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/config-collection/list.txt +2 -1
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/config.txt +8 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/match-agents-with-attribute-key/get.txt +91 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/match-agents-with-attribute-key/update.txt +107 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config/match-agents-with-attribute-key.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/apm-config.txt +14 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-deployment/create-model-deployment-model-group-deployment-configuration-details.txt +215 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-deployment/update-model-deployment-update-model-group-deployment-configuration-details.txt +235 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-deployment-model-state/list.txt +167 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-deployment-model-state.txt +14 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-deployment.txt +5 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/activate.txt +130 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/change-compartment.txt +108 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/create-model-group-artifact.txt +123 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/create-model-group-clone-model-group-details.txt +139 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/create-model-group-create-model-group-details.txt +197 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/create.txt +132 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/deactivate.txt +130 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/delete.txt +134 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/get-model-group-artifact-content.txt +107 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/get.txt +97 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/head-model-group-artifact.txt +96 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/list-model-group-models.txt +171 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/list.txt +169 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group/update.txt +180 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history/change-compartment.txt +108 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history/create.txt +166 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history/delete.txt +133 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history/get.txt +95 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history/list.txt +165 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history/update.txt +172 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group-version-history.txt +25 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/model-group.txt +41 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-science/work-request/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/data-science.txt +54 -0
- oci_cli/help_text_producer/data_files/text/cmdref/devops/{protected-branch → protected-branch-collection}/list-protected-branches.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/devops/protected-branch-collection.txt +14 -0
- oci_cli/help_text_producer/data_files/text/cmdref/devops/protected-branch.txt +0 -2
- oci_cli/help_text_producer/data_files/text/cmdref/devops.txt +2 -0
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/create-amazon-s3-connection.txt +9 -9
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/{create-connection-create-iceberg-connection-details.txt → create-iceberg-connection.txt} +9 -9
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/update-amazon-s3-connection.txt +9 -9
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/{update-connection-update-iceberg-connection-details.txt → update-iceberg-connection.txt} +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/lustre-file-system.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/lfs.txt +1 -2
- oci_cli/help_text_producer/data_files/text/cmdref/management-dashboard/dashboard/get-oob.txt +3 -2
- oci_cli/help_text_producer/data_files/text/cmdref/management-dashboard/dashboard/import.txt +24 -0
- oci_cli/help_text_producer/data_files/text/cmdref/management-dashboard/dashboard/list-oob.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/management-dashboard/saved-search/get-oob.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/management-dashboard/saved-search/list-oob.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error/{list.txt → list-errors.txt} +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/ocvs.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error/{list.txt → list-errors.txt} +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/organizations/{work-request-log-entry → work-request-log}/list.txt +19 -1
- oci_cli/help_text_producer/data_files/text/cmdref/organizations/{work-request-log-entry.txt → work-request-log.txt} +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/organizations.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/psql/configuration/change-compartment.txt +1 -2
- oci_cli/help_text_producer/data_files/text/cmdref/psql/configuration/create.txt +21 -7
- oci_cli/help_text_producer/data_files/text/cmdref/psql/configuration/delete.txt +1 -2
- oci_cli/help_text_producer/data_files/text/cmdref/psql/configuration/get.txt +1 -2
- oci_cli/help_text_producer/data_files/text/cmdref/psql/configuration/update.txt +13 -2
- oci_cli/help_text_producer/data_files/text/cmdref/psql/configuration-collection/list-configurations.txt +9 -2
- oci_cli/help_text_producer/data_files/text/cmdref/psql/default-configuration-collection/list-default-configurations.txt +9 -2
- oci_cli/help_text_producer/data_files/text/cmdref/session/authenticate.txt +8 -8
- oci_cli/help_text_producer/data_files/text/cmdref/speech/voice/list.txt +6 -1
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/create.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/get.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/update.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident-resource-type/list.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/support/validation-response/validate-user.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/vault/secret/create-base64.txt +11 -0
- oci_cli/help_text_producer/data_files/text/cmdref/vault/secret/update-base64.txt +11 -0
- oci_cli/help_text_producer/data_files/text/cmdref/vault/secret/update.txt +11 -0
- oci_cli/help_text_producer/data_files/text/index.txt +2 -0
- oci_cli/service_mapping.py +5 -0
- oci_cli/version.py +1 -1
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/METADATA +2 -2
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/RECORD +187 -116
- services/ai_speech/src/oci_cli_ai_service_speech/generated/aiservicespeech_cli.py +5 -2
- services/api_platform/__init__.py +4 -0
- services/api_platform/src/__init__.py +4 -0
- services/api_platform/src/oci_cli_api_platform/__init__.py +4 -0
- services/api_platform/src/oci_cli_api_platform/generated/__init__.py +4 -0
- services/api_platform/src/oci_cli_api_platform/generated/apiplatform_cli.py +567 -0
- services/api_platform/src/oci_cli_api_platform/generated/client_mappings.py +14 -0
- services/api_platform/tests/__init__.py +4 -0
- services/apigateway/src/oci_cli_api_gateway/api_gateway_cli_extended.py +24 -0
- services/apigateway/src/oci_cli_api_gateway/generated/apigateway_cli.py +415 -19
- services/apigateway/src/oci_cli_deployment/apigateway_deployment_extended.py +8 -0
- services/apigateway/src/oci_cli_deployment/generated/deployment_cli.py +139 -6
- services/apigateway/src/oci_cli_gateway/apigateway_gateway_extended.py +9 -1
- services/apigateway/src/oci_cli_gateway/generated/gateway_cli.py +171 -20
- services/apigateway/src/oci_cli_subscribers/generated/subscribers_cli.py +139 -6
- services/apigateway/src/oci_cli_subscribers/subscribers_cli_extended.py +9 -0
- services/apigateway/src/oci_cli_usage_plans/generated/usageplans_cli.py +139 -6
- services/apigateway/src/oci_cli_usage_plans/usageplans_cli_extended.py +9 -0
- services/apm_config/src/oci_cli_config/config_cli_extended.py +16 -0
- services/apm_config/src/oci_cli_config/generated/config_cli.py +289 -3
- services/data_science/src/oci_cli_data_science/generated/datascience_cli.py +1477 -98
- services/devops/src/oci_cli_devops/devops_cli_extended.py +11 -11
- services/golden_gate/src/oci_cli_golden_gate/golden_gate_cli_extended.py +44 -0
- services/management_dashboard/src/oci_cli_dashx_apis/generated/dashxapis_cli.py +18 -6
- services/psql/src/oci_cli_postgresql/generated/postgresql_cli.py +38 -14
- services/vault/src/oci_cli_vaults/generated/vaults_cli.py +80 -40
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/LICENSE.txt +0 -0
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/WHEEL +0 -0
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/entry_points.txt +0 -0
- {oci_cli-3.63.0.dist-info → oci_cli-3.63.2.dist-info}/top_level.txt +0 -0
|
@@ -59,6 +59,12 @@ def config_group():
|
|
|
59
59
|
pass
|
|
60
60
|
|
|
61
61
|
|
|
62
|
+
@click.command(cli_util.override('apm_config.match_agents_with_attribute_key_group.command_name', 'match-agents-with-attribute-key'), cls=CommandGroupWithAlias, help="""The object representing the agent matching attribute keys.""")
|
|
63
|
+
@cli_util.help_option_group
|
|
64
|
+
def match_agents_with_attribute_key_group():
|
|
65
|
+
pass
|
|
66
|
+
|
|
67
|
+
|
|
62
68
|
@click.command(cli_util.override('apm_config.test_output_group.command_name', 'test-output'), cls=CommandGroupWithAlias, help="""The result of running a test.""")
|
|
63
69
|
@cli_util.help_option_group
|
|
64
70
|
def test_output_group():
|
|
@@ -71,6 +77,7 @@ apm_config_root_group.add_command(span_filter_group)
|
|
|
71
77
|
apm_config_root_group.add_command(config_collection_group)
|
|
72
78
|
apm_config_root_group.add_command(export_configuration_details_group)
|
|
73
79
|
apm_config_root_group.add_command(config_group)
|
|
80
|
+
apm_config_root_group.add_command(match_agents_with_attribute_key_group)
|
|
74
81
|
apm_config_root_group.add_command(test_output_group)
|
|
75
82
|
|
|
76
83
|
|
|
@@ -103,7 +110,7 @@ def copy_configuration(ctx, from_json, configuration_map, apm_domain_id, apm_tar
|
|
|
103
110
|
|
|
104
111
|
@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)""")
|
|
105
112
|
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
|
|
106
|
-
@cli_util.option('--config-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["SPAN_FILTER", "METRIC_GROUP", "APDEX", "OPTIONS"]), help=u"""The type of configuration item.""")
|
|
113
|
+
@cli_util.option('--config-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["SPAN_FILTER", "METRIC_GROUP", "APDEX", "OPTIONS", "AGENT", "MACS_APM_EXTENSION"]), help=u"""The type of configuration item.""")
|
|
107
114
|
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
108
115
|
@cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
109
116
|
@cli_util.option('--opc-dry-run', help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.""")
|
|
@@ -233,6 +240,52 @@ def create_config_create_metric_group_details(ctx, from_json, apm_domain_id, dis
|
|
|
233
240
|
cli_util.render_response(result, ctx)
|
|
234
241
|
|
|
235
242
|
|
|
243
|
+
@config_group.command(name=cli_util.override('apm_config.create_config_create_agent_config_details.command_name', 'create-config-create-agent-config-details'), help=u"""Creates a new configuration item. \n[Command Reference](createConfig)""")
|
|
244
|
+
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
|
|
245
|
+
@cli_util.option('--match-agents-with-attribute-value', required=True, help=u"""The agent attribute VALUE by which an agent configuration is matched to an agent. Each agent configuration object must specify a different value. The attribute KEY corresponding to this VALUE is in the matchAgentsWithAttributeKey field.""")
|
|
246
|
+
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
247
|
+
@cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
248
|
+
@cli_util.option('--config', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
249
|
+
@cli_util.option('--overrides', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
250
|
+
@cli_util.option('--opc-dry-run', help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.""")
|
|
251
|
+
@json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'apm_config', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apm_config', 'class': 'dict(str, dict(str, object))'}, 'config': {'module': 'apm_config', 'class': 'AgentConfigMap'}, 'overrides': {'module': 'apm_config', 'class': 'AgentConfigOverrides'}})
|
|
252
|
+
@cli_util.help_option
|
|
253
|
+
@click.pass_context
|
|
254
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'apm_config', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apm_config', 'class': 'dict(str, dict(str, object))'}, 'config': {'module': 'apm_config', 'class': 'AgentConfigMap'}, 'overrides': {'module': 'apm_config', 'class': 'AgentConfigOverrides'}}, output_type={'module': 'apm_config', 'class': 'Config'})
|
|
255
|
+
@cli_util.wrap_exceptions
|
|
256
|
+
def create_config_create_agent_config_details(ctx, from_json, apm_domain_id, match_agents_with_attribute_value, freeform_tags, defined_tags, config, overrides, opc_dry_run):
|
|
257
|
+
|
|
258
|
+
kwargs = {}
|
|
259
|
+
if opc_dry_run is not None:
|
|
260
|
+
kwargs['opc_dry_run'] = opc_dry_run
|
|
261
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
262
|
+
|
|
263
|
+
_details = {}
|
|
264
|
+
_details['matchAgentsWithAttributeValue'] = match_agents_with_attribute_value
|
|
265
|
+
|
|
266
|
+
if freeform_tags is not None:
|
|
267
|
+
_details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
|
|
268
|
+
|
|
269
|
+
if defined_tags is not None:
|
|
270
|
+
_details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
|
|
271
|
+
|
|
272
|
+
if config is not None:
|
|
273
|
+
_details['config'] = cli_util.parse_json_parameter("config", config)
|
|
274
|
+
|
|
275
|
+
if overrides is not None:
|
|
276
|
+
_details['overrides'] = cli_util.parse_json_parameter("overrides", overrides)
|
|
277
|
+
|
|
278
|
+
_details['configType'] = 'AGENT'
|
|
279
|
+
|
|
280
|
+
client = cli_util.build_client('apm_config', 'config', ctx)
|
|
281
|
+
result = client.create_config(
|
|
282
|
+
apm_domain_id=apm_domain_id,
|
|
283
|
+
create_config_details=_details,
|
|
284
|
+
**kwargs
|
|
285
|
+
)
|
|
286
|
+
cli_util.render_response(result, ctx)
|
|
287
|
+
|
|
288
|
+
|
|
236
289
|
@config_group.command(name=cli_util.override('apm_config.create_config_create_options_details.command_name', 'create-config-create-options-details'), help=u"""Creates a new configuration item. \n[Command Reference](createConfig)""")
|
|
237
290
|
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
|
|
238
291
|
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
@@ -285,6 +338,58 @@ def create_config_create_options_details(ctx, from_json, apm_domain_id, freeform
|
|
|
285
338
|
cli_util.render_response(result, ctx)
|
|
286
339
|
|
|
287
340
|
|
|
341
|
+
@config_group.command(name=cli_util.override('apm_config.create_config_create_macs_apm_extension_details.command_name', 'create-config-create-macs-apm-extension-details'), help=u"""Creates a new configuration item. \n[Command Reference](createConfig)""")
|
|
342
|
+
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
|
|
343
|
+
@cli_util.option('--management-agent-id', required=True, help=u"""The [OCID] of the Management Agent that will provision the APM Agent.""")
|
|
344
|
+
@cli_util.option('--process-filter', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""Filter patterns used to discover active Java processes for provisioning the APM Agent.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
345
|
+
@cli_util.option('--run-as-user', required=True, help=u"""The OS user that should be used to discover Java processes.""")
|
|
346
|
+
@cli_util.option('--service-name', required=True, help=u"""The name of the service being monitored. This argument enables you to filter by service and view traces and other signals in the APM Explorer user interface.""")
|
|
347
|
+
@cli_util.option('--agent-version', required=True, help=u"""The version of the referenced agent bundle.""")
|
|
348
|
+
@cli_util.option('--attach-install-dir', required=True, help=u"""The directory owned by runAsUser.""")
|
|
349
|
+
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
350
|
+
@cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
351
|
+
@cli_util.option('--display-name', help=u"""The name by which a configuration entity is displayed to the end user.""")
|
|
352
|
+
@cli_util.option('--opc-dry-run', help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.""")
|
|
353
|
+
@json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'apm_config', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apm_config', 'class': 'dict(str, dict(str, object))'}, 'process-filter': {'module': 'apm_config', 'class': 'list[string]'}})
|
|
354
|
+
@cli_util.help_option
|
|
355
|
+
@click.pass_context
|
|
356
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'apm_config', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apm_config', 'class': 'dict(str, dict(str, object))'}, 'process-filter': {'module': 'apm_config', 'class': 'list[string]'}}, output_type={'module': 'apm_config', 'class': 'Config'})
|
|
357
|
+
@cli_util.wrap_exceptions
|
|
358
|
+
def create_config_create_macs_apm_extension_details(ctx, from_json, apm_domain_id, management_agent_id, process_filter, run_as_user, service_name, agent_version, attach_install_dir, freeform_tags, defined_tags, display_name, opc_dry_run):
|
|
359
|
+
|
|
360
|
+
kwargs = {}
|
|
361
|
+
if opc_dry_run is not None:
|
|
362
|
+
kwargs['opc_dry_run'] = opc_dry_run
|
|
363
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
364
|
+
|
|
365
|
+
_details = {}
|
|
366
|
+
_details['managementAgentId'] = management_agent_id
|
|
367
|
+
_details['processFilter'] = cli_util.parse_json_parameter("process_filter", process_filter)
|
|
368
|
+
_details['runAsUser'] = run_as_user
|
|
369
|
+
_details['serviceName'] = service_name
|
|
370
|
+
_details['agentVersion'] = agent_version
|
|
371
|
+
_details['attachInstallDir'] = attach_install_dir
|
|
372
|
+
|
|
373
|
+
if freeform_tags is not None:
|
|
374
|
+
_details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
|
|
375
|
+
|
|
376
|
+
if defined_tags is not None:
|
|
377
|
+
_details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
|
|
378
|
+
|
|
379
|
+
if display_name is not None:
|
|
380
|
+
_details['displayName'] = display_name
|
|
381
|
+
|
|
382
|
+
_details['configType'] = 'MACS_APM_EXTENSION'
|
|
383
|
+
|
|
384
|
+
client = cli_util.build_client('apm_config', 'config', ctx)
|
|
385
|
+
result = client.create_config(
|
|
386
|
+
apm_domain_id=apm_domain_id,
|
|
387
|
+
create_config_details=_details,
|
|
388
|
+
**kwargs
|
|
389
|
+
)
|
|
390
|
+
cli_util.render_response(result, ctx)
|
|
391
|
+
|
|
392
|
+
|
|
288
393
|
@config_group.command(name=cli_util.override('apm_config.create_config_create_apdex_rules_details.command_name', 'create-config-create-apdex-rules-details'), help=u"""Creates a new configuration item. \n[Command Reference](createConfig)""")
|
|
289
394
|
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
|
|
290
395
|
@cli_util.option('--rules', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
@@ -402,6 +507,25 @@ def get_config(ctx, from_json, apm_domain_id, config_id):
|
|
|
402
507
|
cli_util.render_response(result, ctx)
|
|
403
508
|
|
|
404
509
|
|
|
510
|
+
@match_agents_with_attribute_key_group.command(name=cli_util.override('apm_config.get_match_agents_with_attribute_key.command_name', 'get'), help=u"""The domain-wide agents matching attribute key. \n[Command Reference](getMatchAgentsWithAttributeKey)""")
|
|
511
|
+
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
|
|
512
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
513
|
+
@cli_util.help_option
|
|
514
|
+
@click.pass_context
|
|
515
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'apm_config', 'class': 'MatchAgentsWithAttributeKey'})
|
|
516
|
+
@cli_util.wrap_exceptions
|
|
517
|
+
def get_match_agents_with_attribute_key(ctx, from_json, apm_domain_id):
|
|
518
|
+
|
|
519
|
+
kwargs = {}
|
|
520
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
521
|
+
client = cli_util.build_client('apm_config', 'config', ctx)
|
|
522
|
+
result = client.get_match_agents_with_attribute_key(
|
|
523
|
+
apm_domain_id=apm_domain_id,
|
|
524
|
+
**kwargs
|
|
525
|
+
)
|
|
526
|
+
cli_util.render_response(result, ctx)
|
|
527
|
+
|
|
528
|
+
|
|
405
529
|
@import_configuration_details_group.command(name=cli_util.override('apm_config.import_configuration.command_name', 'import-configuration'), help=u"""Import configurations Item(s) with its dependencies into a destination domain. \n[Command Reference](importConfiguration)""")
|
|
406
530
|
@cli_util.option('--configuration-items', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""A list of Configurations Details .""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
407
531
|
@cli_util.option('--configuration-map', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that has parameters related to the import process (EnableOcidSubstitution, Skip, \u2026) and more. Example: `{\"parameter-key\": \"parameter-value\"}` Supported parameters: \u2014 Enable the OCIDs in instructions to be replaced, if set to \"true\" The Config Service replace any OCIDs it finds in the instructions, if set to true the Config Service will replace. \u2014 Compartment Id we want to import the configuration Items, if the compartment Id is not provided it will be the default destination domain compartmentId.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
@@ -431,7 +555,7 @@ def import_configuration(ctx, from_json, configuration_items, configuration_map,
|
|
|
431
555
|
|
|
432
556
|
@config_collection_group.command(name=cli_util.override('apm_config.list_configs.command_name', 'list-configs'), help=u"""Returns all configuration items, which can optionally be filtered by configuration type. \n[Command Reference](listConfigs)""")
|
|
433
557
|
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
|
|
434
|
-
@cli_util.option('--config-type', help=u"""A filter to match configuration items of a given type. Supported values are SPAN_FILTER, METRIC_GROUP, and
|
|
558
|
+
@cli_util.option('--config-type', help=u"""A filter to match configuration items of a given type. Supported values are SPAN_FILTER, METRIC_GROUP, APDEX, AGENT and MACS_APM_EXTENSION.""")
|
|
435
559
|
@cli_util.option('--display-name', help=u"""A filter to return resources that match the given display name.""")
|
|
436
560
|
@cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
|
|
437
561
|
@cli_util.option('--page', help=u"""The maximum number of results per page, or items to return in a paginated \"List\" call. For information on how pagination works, see [List Pagination]. Example: `50`""")
|
|
@@ -611,7 +735,7 @@ def test_test_span_enrichment_details(ctx, from_json, apm_domain_id, options, sp
|
|
|
611
735
|
@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)""")
|
|
612
736
|
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
|
|
613
737
|
@cli_util.option('--config-id', required=True, help=u"""The [OCID] of the configuration item.""")
|
|
614
|
-
@cli_util.option('--config-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["SPAN_FILTER", "METRIC_GROUP", "APDEX", "OPTIONS"]), help=u"""The type of configuration item.""")
|
|
738
|
+
@cli_util.option('--config-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["SPAN_FILTER", "METRIC_GROUP", "APDEX", "OPTIONS", "AGENT", "MACS_APM_EXTENSION"]), help=u"""The type of configuration item.""")
|
|
615
739
|
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
616
740
|
@cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
617
741
|
@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.""")
|
|
@@ -730,6 +854,136 @@ def update_config_update_metric_group_details(ctx, from_json, force, apm_domain_
|
|
|
730
854
|
cli_util.render_response(result, ctx)
|
|
731
855
|
|
|
732
856
|
|
|
857
|
+
@config_group.command(name=cli_util.override('apm_config.update_config_update_agent_config_details.command_name', 'update-config-update-agent-config-details'), help=u"""Updates the details of the configuration item identified by the OCID. \n[Command Reference](updateConfig)""")
|
|
858
|
+
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
|
|
859
|
+
@cli_util.option('--config-id', required=True, help=u"""The [OCID] of the configuration item.""")
|
|
860
|
+
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
861
|
+
@cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
862
|
+
@cli_util.option('--config', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
863
|
+
@cli_util.option('--overrides', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
864
|
+
@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.""")
|
|
865
|
+
@cli_util.option('--opc-dry-run', help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.""")
|
|
866
|
+
@cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
|
|
867
|
+
@json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'apm_config', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apm_config', 'class': 'dict(str, dict(str, object))'}, 'config': {'module': 'apm_config', 'class': 'AgentConfigMap'}, 'overrides': {'module': 'apm_config', 'class': 'AgentConfigOverrides'}})
|
|
868
|
+
@cli_util.help_option
|
|
869
|
+
@click.pass_context
|
|
870
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'apm_config', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apm_config', 'class': 'dict(str, dict(str, object))'}, 'config': {'module': 'apm_config', 'class': 'AgentConfigMap'}, 'overrides': {'module': 'apm_config', 'class': 'AgentConfigOverrides'}}, output_type={'module': 'apm_config', 'class': 'Config'})
|
|
871
|
+
@cli_util.wrap_exceptions
|
|
872
|
+
def update_config_update_agent_config_details(ctx, from_json, force, apm_domain_id, config_id, freeform_tags, defined_tags, config, overrides, if_match, opc_dry_run):
|
|
873
|
+
|
|
874
|
+
if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0:
|
|
875
|
+
raise click.UsageError('Parameter --config-id cannot be whitespace or empty string')
|
|
876
|
+
if not force:
|
|
877
|
+
if freeform_tags or defined_tags or config or overrides:
|
|
878
|
+
if not click.confirm("WARNING: Updates to freeform-tags and defined-tags and config and overrides will replace any existing values. Are you sure you want to continue?"):
|
|
879
|
+
ctx.abort()
|
|
880
|
+
|
|
881
|
+
kwargs = {}
|
|
882
|
+
if if_match is not None:
|
|
883
|
+
kwargs['if_match'] = if_match
|
|
884
|
+
if opc_dry_run is not None:
|
|
885
|
+
kwargs['opc_dry_run'] = opc_dry_run
|
|
886
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
887
|
+
|
|
888
|
+
_details = {}
|
|
889
|
+
|
|
890
|
+
if freeform_tags is not None:
|
|
891
|
+
_details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
|
|
892
|
+
|
|
893
|
+
if defined_tags is not None:
|
|
894
|
+
_details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
|
|
895
|
+
|
|
896
|
+
if config is not None:
|
|
897
|
+
_details['config'] = cli_util.parse_json_parameter("config", config)
|
|
898
|
+
|
|
899
|
+
if overrides is not None:
|
|
900
|
+
_details['overrides'] = cli_util.parse_json_parameter("overrides", overrides)
|
|
901
|
+
|
|
902
|
+
_details['configType'] = 'AGENT'
|
|
903
|
+
|
|
904
|
+
client = cli_util.build_client('apm_config', 'config', ctx)
|
|
905
|
+
result = client.update_config(
|
|
906
|
+
apm_domain_id=apm_domain_id,
|
|
907
|
+
config_id=config_id,
|
|
908
|
+
update_config_details=_details,
|
|
909
|
+
**kwargs
|
|
910
|
+
)
|
|
911
|
+
cli_util.render_response(result, ctx)
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
@config_group.command(name=cli_util.override('apm_config.update_config_update_macs_apm_extension_details.command_name', 'update-config-update-macs-apm-extension-details'), help=u"""Updates the details of the configuration item identified by the OCID. \n[Command Reference](updateConfig)""")
|
|
915
|
+
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
|
|
916
|
+
@cli_util.option('--config-id', required=True, help=u"""The [OCID] of the configuration item.""")
|
|
917
|
+
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
918
|
+
@cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
919
|
+
@cli_util.option('--display-name', help=u"""The name by which a configuration entity is displayed to the end user.""")
|
|
920
|
+
@cli_util.option('--process-filter', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Filter patterns used to discover active Java processes for provisioning the APM Agent.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
921
|
+
@cli_util.option('--run-as-user', help=u"""The OS user that should be used to discover Java processes.""")
|
|
922
|
+
@cli_util.option('--service-name', help=u"""The name of the service being monitored. This argument enables you to filter by service and view traces and other signals in the APM Explorer user interface.""")
|
|
923
|
+
@cli_util.option('--agent-version', help=u"""The version of the referenced agent bundle.""")
|
|
924
|
+
@cli_util.option('--attach-install-dir', help=u"""The directory owned by runAsUser.""")
|
|
925
|
+
@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.""")
|
|
926
|
+
@cli_util.option('--opc-dry-run', help=u"""Indicates that the request is a dry run, if set to \"true\". A dry run request does not modify the configuration item details and is used only to perform validation on the submitted data.""")
|
|
927
|
+
@cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
|
|
928
|
+
@json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'apm_config', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apm_config', 'class': 'dict(str, dict(str, object))'}, 'process-filter': {'module': 'apm_config', 'class': 'list[string]'}})
|
|
929
|
+
@cli_util.help_option
|
|
930
|
+
@click.pass_context
|
|
931
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'apm_config', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'apm_config', 'class': 'dict(str, dict(str, object))'}, 'process-filter': {'module': 'apm_config', 'class': 'list[string]'}}, output_type={'module': 'apm_config', 'class': 'Config'})
|
|
932
|
+
@cli_util.wrap_exceptions
|
|
933
|
+
def update_config_update_macs_apm_extension_details(ctx, from_json, force, apm_domain_id, config_id, freeform_tags, defined_tags, display_name, process_filter, run_as_user, service_name, agent_version, attach_install_dir, if_match, opc_dry_run):
|
|
934
|
+
|
|
935
|
+
if isinstance(config_id, six.string_types) and len(config_id.strip()) == 0:
|
|
936
|
+
raise click.UsageError('Parameter --config-id cannot be whitespace or empty string')
|
|
937
|
+
if not force:
|
|
938
|
+
if freeform_tags or defined_tags or process_filter:
|
|
939
|
+
if not click.confirm("WARNING: Updates to freeform-tags and defined-tags and process-filter will replace any existing values. Are you sure you want to continue?"):
|
|
940
|
+
ctx.abort()
|
|
941
|
+
|
|
942
|
+
kwargs = {}
|
|
943
|
+
if if_match is not None:
|
|
944
|
+
kwargs['if_match'] = if_match
|
|
945
|
+
if opc_dry_run is not None:
|
|
946
|
+
kwargs['opc_dry_run'] = opc_dry_run
|
|
947
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
948
|
+
|
|
949
|
+
_details = {}
|
|
950
|
+
|
|
951
|
+
if freeform_tags is not None:
|
|
952
|
+
_details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
|
|
953
|
+
|
|
954
|
+
if defined_tags is not None:
|
|
955
|
+
_details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
|
|
956
|
+
|
|
957
|
+
if display_name is not None:
|
|
958
|
+
_details['displayName'] = display_name
|
|
959
|
+
|
|
960
|
+
if process_filter is not None:
|
|
961
|
+
_details['processFilter'] = cli_util.parse_json_parameter("process_filter", process_filter)
|
|
962
|
+
|
|
963
|
+
if run_as_user is not None:
|
|
964
|
+
_details['runAsUser'] = run_as_user
|
|
965
|
+
|
|
966
|
+
if service_name is not None:
|
|
967
|
+
_details['serviceName'] = service_name
|
|
968
|
+
|
|
969
|
+
if agent_version is not None:
|
|
970
|
+
_details['agentVersion'] = agent_version
|
|
971
|
+
|
|
972
|
+
if attach_install_dir is not None:
|
|
973
|
+
_details['attachInstallDir'] = attach_install_dir
|
|
974
|
+
|
|
975
|
+
_details['configType'] = 'MACS_APM_EXTENSION'
|
|
976
|
+
|
|
977
|
+
client = cli_util.build_client('apm_config', 'config', ctx)
|
|
978
|
+
result = client.update_config(
|
|
979
|
+
apm_domain_id=apm_domain_id,
|
|
980
|
+
config_id=config_id,
|
|
981
|
+
update_config_details=_details,
|
|
982
|
+
**kwargs
|
|
983
|
+
)
|
|
984
|
+
cli_util.render_response(result, ctx)
|
|
985
|
+
|
|
986
|
+
|
|
733
987
|
@config_group.command(name=cli_util.override('apm_config.update_config_update_apdex_rules_details.command_name', 'update-config-update-apdex-rules-details'), help=u"""Updates the details of the configuration item identified by the OCID. \n[Command Reference](updateConfig)""")
|
|
734
988
|
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
|
|
735
989
|
@cli_util.option('--config-id', required=True, help=u"""The [OCID] of the configuration item.""")
|
|
@@ -911,6 +1165,38 @@ def update_config_update_options_details(ctx, from_json, force, apm_domain_id, c
|
|
|
911
1165
|
cli_util.render_response(result, ctx)
|
|
912
1166
|
|
|
913
1167
|
|
|
1168
|
+
@match_agents_with_attribute_key_group.command(name=cli_util.override('apm_config.update_match_agents_with_attribute_key.command_name', 'update'), help=u"""Updates the agent matching attribute key for the APM Domain. \n[Command Reference](updateMatchAgentsWithAttributeKey)""")
|
|
1169
|
+
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
|
|
1170
|
+
@cli_util.option('--items', type=custom_types.CLI_COMPLEX_TYPE, help=u"""The list of agent matching attribute keys to be updated.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
1171
|
+
@cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
|
|
1172
|
+
@json_skeleton_utils.get_cli_json_input_option({'items': {'module': 'apm_config', 'class': 'list[string]'}})
|
|
1173
|
+
@cli_util.help_option
|
|
1174
|
+
@click.pass_context
|
|
1175
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'items': {'module': 'apm_config', 'class': 'list[string]'}}, output_type={'module': 'apm_config', 'class': 'MatchAgentsWithAttributeKey'})
|
|
1176
|
+
@cli_util.wrap_exceptions
|
|
1177
|
+
def update_match_agents_with_attribute_key(ctx, from_json, force, apm_domain_id, items):
|
|
1178
|
+
if not force:
|
|
1179
|
+
if items:
|
|
1180
|
+
if not click.confirm("WARNING: Updates to items will replace any existing values. Are you sure you want to continue?"):
|
|
1181
|
+
ctx.abort()
|
|
1182
|
+
|
|
1183
|
+
kwargs = {}
|
|
1184
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
1185
|
+
|
|
1186
|
+
_details = {}
|
|
1187
|
+
|
|
1188
|
+
if items is not None:
|
|
1189
|
+
_details['items'] = cli_util.parse_json_parameter("items", items)
|
|
1190
|
+
|
|
1191
|
+
client = cli_util.build_client('apm_config', 'config', ctx)
|
|
1192
|
+
result = client.update_match_agents_with_attribute_key(
|
|
1193
|
+
apm_domain_id=apm_domain_id,
|
|
1194
|
+
update_match_agents_with_attribute_key_details=_details,
|
|
1195
|
+
**kwargs
|
|
1196
|
+
)
|
|
1197
|
+
cli_util.render_response(result, ctx)
|
|
1198
|
+
|
|
1199
|
+
|
|
914
1200
|
@span_filter_group.command(name=cli_util.override('apm_config.validate_span_filter_pattern.command_name', 'validate-span-filter-pattern'), help=u"""Validates the Span Filter pattern (filterText) for syntactic correctness. Returns 204 on success, 422 when validation fails. \n[Command Reference](validateSpanFilterPattern)""")
|
|
915
1201
|
@cli_util.option('--apm-domain-id', required=True, help=u"""The APM Domain ID the request is intended for.""")
|
|
916
1202
|
@cli_util.option('--filter-text', required=True, help=u"""The string that defines the Span Filter expression.""")
|