From ce3b6e94984f3ecdeedca4a5254d1d9f7fa54052 Mon Sep 17 00:00:00 2001 From: oci-dex-release-bot Date: Tue, 30 Jan 2024 06:17:12 +0000 Subject: [PATCH] Releasing version 2.120.0 --- CHANGELOG.rst | 17 + README.rst | 4 +- docs/api/capacity_management.rst | 50 + ...ty_management.CapacityManagementClient.rst | 8 + ...ityManagementClientCompositeOperations.rst | 8 + ...ls.CreateOccAvailabilityCatalogDetails.rst | 11 + ...models.CreateOccCapacityRequestDetails.rst | 11 + ...city_management.models.MetadataDetails.rst | 11 + ...nagement.models.OccAvailabilityCatalog.rst | 11 + ...odels.OccAvailabilityCatalogCollection.rst | 11 + ...t.models.OccAvailabilityCatalogSummary.rst | 11 + ...ement.models.OccAvailabilityCollection.rst | 11 + ...nagement.models.OccAvailabilitySummary.rst | 11 + ...y_management.models.OccCapacityRequest.rst | 11 + ...t.models.OccCapacityRequestBaseDetails.rst | 11 + ...nt.models.OccCapacityRequestCollection.rst | 11 + ...odels.OccCapacityRequestComputeDetails.rst | 11 + ...ement.models.OccCapacityRequestSummary.rst | 11 + ...capacity_management.models.OccCustomer.rst | 11 + ...ity_management.models.OccCustomerGroup.rst | 11 + ...ment.models.OccCustomerGroupCollection.rst | 11 + ...agement.models.OccCustomerGroupSummary.rst | 11 + ...nagement.models.PatchInsertInstruction.rst | 11 + ....models.PatchInsertMultipleInstruction.rst | 11 + ...ity_management.models.PatchInstruction.rst | 11 + ...anagement.models.PatchMergeInstruction.rst | 11 + ...management.models.PatchMoveInstruction.rst | 11 + ....models.PatchOccCapacityRequestDetails.rst | 11 + ...gement.models.PatchProhibitInstruction.rst | 11 + ...nagement.models.PatchRemoveInstruction.rst | 11 + ...agement.models.PatchReplaceInstruction.rst | 11 + ...agement.models.PatchRequireInstruction.rst | 11 + ...pdateInternalOccCapacityRequestDetails.rst | 11 + ...ls.UpdateOccAvailabilityCatalogDetails.rst | 11 + ...models.UpdateOccCapacityRequestDetails.rst | 11 + docs/api/data_integration.rst | 5 + ...ntegration.models.ConnectionFromOAuth2.rst | 11 + ...ion.models.ConnectionFromOAuth2Details.rst | 11 + ...ion.models.ConnectionSummaryFromOAuth2.rst | 11 + ...tion.models.CreateConnectionFromOAuth2.rst | 11 + ...tion.models.UpdateConnectionFromOAuth2.rst | 11 + docs/api/database_management.rst | 17 + ...ent.models.BasicNamedCredentialContent.rst | 11 + ...hangeNamedCredentialCompartmentDetails.rst | 11 + ...nt.models.CreateNamedCredentialDetails.rst | 11 + ...ement.models.DatabaseCredentialDetails.rst | 11 + ....models.DatabaseNamedCredentialDetails.rst | 11 + ...dels.DatabasePasswordCredentialDetails.rst | 11 + ...models.DatabaseSecretCredentialDetails.rst | 11 + ...base_management.models.NamedCredential.rst | 11 + ...ement.models.NamedCredentialCollection.rst | 11 + ...nagement.models.NamedCredentialContent.rst | 11 + ...nagement.models.NamedCredentialSummary.rst | 11 + ...gement.models.NamedPreferredCredential.rst | 11 + ...ment.models.TestNamedCredentialDetails.rst | 11 + ...ement.models.TestNamedCredentialStatus.rst | 11 + ...ls.TestNamedPreferredCredentialDetails.rst | 11 + ...nt.models.UpdateNamedCredentialDetails.rst | 11 + ....UpdateNamedPreferredCredentialDetails.rst | 11 + docs/api/landing.rst | 2 + docs/api/osp_gateway.rst | 1 + .../oci.osp_gateway.models.ValueSetEntity.rst | 11 + docs/index.rst | 4 +- docs/installation.rst | 4 +- src/oci/__init__.py | 4 +- src/oci/capacity_management/__init__.py | 14 + .../capacity_management_client.py | 2520 +++++++++++++++++ ..._management_client_composite_operations.py | 318 +++ .../capacity_management/models/__init__.py | 72 + ...create_occ_availability_catalog_details.py | 332 +++ .../create_occ_capacity_request_details.py | 476 ++++ .../models/metadata_details.py | 84 + .../models/occ_availability_catalog.py | 615 ++++ .../occ_availability_catalog_collection.py | 72 + .../occ_availability_catalog_summary.py | 520 ++++ .../models/occ_availability_collection.py | 72 + .../models/occ_availability_summary.py | 368 +++ .../models/occ_capacity_request.py | 720 +++++ .../occ_capacity_request_base_details.py | 256 ++ .../models/occ_capacity_request_collection.py | 72 + .../occ_capacity_request_compute_details.py | 148 + .../models/occ_capacity_request_summary.py | 617 ++++ .../models/occ_customer.py | 212 ++ .../models/occ_customer_group.py | 498 ++++ .../models/occ_customer_group_collection.py | 72 + .../models/occ_customer_group_summary.py | 420 +++ .../models/patch_insert_instruction.py | 171 ++ .../patch_insert_multiple_instruction.py | 171 ++ .../models/patch_instruction.py | 188 ++ .../models/patch_merge_instruction.py | 97 + .../models/patch_move_instruction.py | 147 + .../patch_occ_capacity_request_details.py | 72 + .../models/patch_prohibit_instruction.py | 100 + .../models/patch_remove_instruction.py | 59 + .../models/patch_replace_instruction.py | 92 + .../models/patch_require_instruction.py | 99 + ...e_internal_occ_capacity_request_details.py | 123 + ...update_occ_availability_catalog_details.py | 169 ++ .../update_occ_capacity_request_details.py | 185 ++ src/oci/data_integration/models/__init__.py | 10 + src/oci/data_integration/models/connection.py | 14 +- .../models/connection_details.py | 14 +- .../models/connection_from_adwc.py | 2 +- .../models/connection_from_adwc_details.py | 2 +- .../models/connection_from_amazon_s3.py | 2 +- .../connection_from_amazon_s3_details.py | 2 +- .../models/connection_from_atp.py | 2 +- .../models/connection_from_atp_details.py | 2 +- .../models/connection_from_bicc.py | 2 +- .../models/connection_from_bicc_details.py | 2 +- .../models/connection_from_bip.py | 2 +- .../models/connection_from_bip_details.py | 2 +- .../models/connection_from_hdfs.py | 2 +- .../models/connection_from_hdfs_details.py | 2 +- .../models/connection_from_jdbc.py | 2 +- .../models/connection_from_jdbc_details.py | 2 +- .../models/connection_from_lake.py | 2 +- .../models/connection_from_lake_details.py | 2 +- .../models/connection_from_my_sql.py | 2 +- .../models/connection_from_my_sql_details.py | 2 +- .../connection_from_my_sql_heat_wave.py | 2 +- ...onnection_from_my_sql_heat_wave_details.py | 2 +- .../models/connection_from_o_auth2.py | 306 ++ .../models/connection_from_o_auth2_details.py | 298 ++ .../models/connection_from_object_storage.py | 2 +- .../connection_from_object_storage_details.py | 2 +- .../models/connection_from_oracle.py | 2 +- .../models/connection_from_oracle_details.py | 2 +- .../models/connection_from_oracle_ebs.py | 2 +- .../connection_from_oracle_ebs_details.py | 2 +- .../connection_from_oracle_people_soft.py | 2 +- ...nection_from_oracle_people_soft_details.py | 2 +- .../models/connection_from_oracle_siebel.py | 2 +- .../connection_from_oracle_siebel_details.py | 2 +- .../models/connection_from_rest_basic_auth.py | 2 +- ...connection_from_rest_basic_auth_details.py | 2 +- .../models/connection_from_rest_no_auth.py | 2 +- .../connection_from_rest_no_auth_details.py | 2 +- .../models/connection_summary.py | 14 +- .../models/connection_summary_from_adwc.py | 2 +- .../connection_summary_from_amazon_s3.py | 2 +- .../models/connection_summary_from_atp.py | 2 +- .../models/connection_summary_from_bicc.py | 2 +- .../models/connection_summary_from_bip.py | 2 +- .../models/connection_summary_from_hdfs.py | 2 +- .../models/connection_summary_from_jdbc.py | 2 +- .../models/connection_summary_from_lake.py | 2 +- .../models/connection_summary_from_my_sql.py | 2 +- ...onnection_summary_from_my_sql_heat_wave.py | 2 +- .../models/connection_summary_from_o_auth2.py | 306 ++ .../connection_summary_from_object_storage.py | 2 +- .../models/connection_summary_from_oracle.py | 2 +- .../connection_summary_from_oracle_ebs.py | 2 +- ...nection_summary_from_oracle_people_soft.py | 2 +- .../connection_summary_from_oracle_siebel.py | 2 +- ...connection_summary_from_rest_basic_auth.py | 2 +- .../connection_summary_from_rest_no_auth.py | 2 +- .../models/create_connection_details.py | 14 +- .../models/create_connection_from_adwc.py | 2 +- .../create_connection_from_amazon_s3.py | 2 +- .../models/create_connection_from_atp.py | 2 +- .../models/create_connection_from_bicc.py | 2 +- .../models/create_connection_from_bip.py | 2 +- .../models/create_connection_from_hdfs.py | 2 +- .../models/create_connection_from_jdbc.py | 2 +- .../models/create_connection_from_lake.py | 2 +- .../models/create_connection_from_my_sql.py | 2 +- ...create_connection_from_my_sql_heat_wave.py | 2 +- .../models/create_connection_from_o_auth2.py | 277 ++ .../create_connection_from_object_storage.py | 2 +- .../models/create_connection_from_oracle.py | 2 +- .../create_connection_from_oracle_ebs.py | 2 +- ...eate_connection_from_oracle_people_soft.py | 2 +- .../create_connection_from_oracle_siebel.py | 2 +- .../create_connection_from_rest_basic_auth.py | 2 +- .../create_connection_from_rest_no_auth.py | 2 +- .../models/create_import_request_details.py | 31 + .../models/import_object_metadata_summary.py | 10 +- .../data_integration/models/import_request.py | 31 + .../models/import_request_summary.py | 31 + .../models/update_connection_details.py | 14 +- .../models/update_connection_from_adwc.py | 2 +- .../update_connection_from_amazon_s3.py | 2 +- .../models/update_connection_from_atp.py | 2 +- .../models/update_connection_from_bicc.py | 2 +- .../models/update_connection_from_bip.py | 2 +- .../models/update_connection_from_hdfs.py | 2 +- .../models/update_connection_from_jdbc.py | 2 +- .../models/update_connection_from_lake.py | 2 +- .../models/update_connection_from_my_sql.py | 2 +- ...update_connection_from_my_sql_heat_wave.py | 2 +- .../models/update_connection_from_o_auth2.py | 284 ++ .../update_connection_from_object_storage.py | 2 +- .../models/update_connection_from_oracle.py | 2 +- .../update_connection_from_oracle_ebs.py | 2 +- ...date_connection_from_oracle_people_soft.py | 2 +- .../update_connection_from_oracle_siebel.py | 2 +- .../update_connection_from_rest_basic_auth.py | 2 +- .../update_connection_from_rest_no_auth.py | 2 +- .../db_management_client.py | 1256 +++++++- ..._management_client_composite_operations.py | 150 + .../diagnosability_client.py | 36 +- .../database_management/models/__init__.py | 34 + .../models/add_data_files_details.py | 30 +- .../models/basic_named_credential_content.py | 212 ++ .../models/basic_preferred_credential.py | 2 +- .../change_database_parameters_details.py | 30 +- ...ge_named_credential_compartment_details.py | 78 + .../models/change_plan_retention_details.py | 34 +- .../models/change_space_budget_details.py | 34 +- ...e_sql_plan_baselines_attributes_details.py | 34 +- .../models/clone_sql_tuning_task_details.py | 34 +- ...igure_automatic_capture_filters_details.py | 34 +- ...tomatic_spm_evolve_advisor_task_details.py | 34 +- .../models/create_named_credential_details.py | 300 ++ .../models/create_sql_job_details.py | 35 + .../models/create_sql_tuning_set_details.py | 30 +- .../models/create_tablespace_details.py | 30 +- .../models/database_credential_details.py | 117 + .../models/database_credentials.py | 2 + .../database_named_credential_details.py | 88 + .../database_password_credential_details.py | 161 ++ .../database_secret_credential_details.py | 167 ++ ..._automatic_initial_plan_capture_details.py | 34 +- ...tomatic_spm_evolve_advisor_task_details.py | 34 +- ...tomatic_spm_evolve_advisor_task_details.py | 34 +- ...isable_sql_plan_baselines_usage_details.py | 34 +- .../models/drop_sql_plan_baselines_details.py | 34 +- .../models/drop_sql_tuning_set_details.py | 30 +- .../models/drop_sql_tuning_task_details.py | 34 +- .../drop_sqls_in_sql_tuning_set_details.py | 30 +- .../models/drop_tablespace_details.py | 30 +- ..._automatic_initial_plan_capture_details.py | 34 +- ...tomatic_spm_evolve_advisor_task_details.py | 34 +- ...tomatic_spm_evolve_advisor_task_details.py | 34 +- ...enable_sql_plan_baselines_usage_details.py | 34 +- .../external_database_connection_info.py | 34 +- .../models/fetch_sql_tuning_set_details.py | 30 +- ..._statistics_advisor_recommendations_job.py | 31 +- ...oad_sql_plan_baselines_from_awr_details.py | 34 +- ...lan_baselines_from_cursor_cache_details.py | 34 +- .../models/load_sql_tuning_set_details.py | 30 +- .../models/named_credential.py | 483 ++++ .../models/named_credential_collection.py | 72 + .../models/named_credential_content.py | 101 + .../models/named_credential_summary.py | 427 +++ .../models/named_preferred_credential.py | 108 + .../models/preferred_credential.py | 14 +- .../models/preferred_credential_summary.py | 39 +- .../models/remove_data_file_details.py | 30 +- .../reset_database_parameters_details.py | 30 +- .../models/resize_data_file_details.py | 30 +- .../models/save_sql_tuning_set_as_details.py | 30 +- src/oci/database_management/models/sql_job.py | 39 +- .../models/start_sql_tuning_task_details.py | 30 +- ...test_basic_preferred_credential_details.py | 2 +- .../models/test_named_credential_details.py | 78 + .../models/test_named_credential_status.py | 150 + ...test_named_preferred_credential_details.py | 86 + .../test_preferred_credential_details.py | 14 +- ...date_basic_preferred_credential_details.py | 2 +- .../models/update_named_credential_details.py | 183 ++ ...date_named_preferred_credential_details.py | 86 + .../update_preferred_credential_details.py | 14 +- .../models/update_sql_job_details.py | 35 + .../models/update_tablespace_details.py | 30 +- .../models/validate_basic_filter_details.py | 30 +- src/oci/database_management/perfhub_client.py | 9 +- .../database_management/sql_tuning_client.py | 63 +- src/oci/dns/dns_client.py | 50 +- .../dns/models/create_zone_base_details.py | 14 + src/oci/osp_gateway/models/__init__.py | 2 + src/oci/osp_gateway/models/tax_info.py | 35 +- src/oci/osp_gateway/models/tax_type_rule.py | 35 +- .../osp_gateway/models/value_set_entity.py | 103 + src/oci/version.py | 2 +- 276 files changed, 18370 insertions(+), 353 deletions(-) create mode 100644 docs/api/capacity_management.rst create mode 100644 docs/api/capacity_management/client/oci.capacity_management.CapacityManagementClient.rst create mode 100644 docs/api/capacity_management/client/oci.capacity_management.CapacityManagementClientCompositeOperations.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.CreateOccAvailabilityCatalogDetails.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.CreateOccCapacityRequestDetails.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.MetadataDetails.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCatalog.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCatalogCollection.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCatalogSummary.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCollection.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilitySummary.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequest.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestBaseDetails.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestCollection.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestComputeDetails.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestSummary.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccCustomer.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccCustomerGroup.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccCustomerGroupCollection.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.OccCustomerGroupSummary.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.PatchInsertInstruction.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.PatchInsertMultipleInstruction.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.PatchInstruction.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.PatchMergeInstruction.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.PatchMoveInstruction.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.PatchOccCapacityRequestDetails.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.PatchProhibitInstruction.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.PatchRemoveInstruction.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.PatchReplaceInstruction.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.PatchRequireInstruction.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.UpdateInternalOccCapacityRequestDetails.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.UpdateOccAvailabilityCatalogDetails.rst create mode 100644 docs/api/capacity_management/models/oci.capacity_management.models.UpdateOccCapacityRequestDetails.rst create mode 100644 docs/api/data_integration/models/oci.data_integration.models.ConnectionFromOAuth2.rst create mode 100644 docs/api/data_integration/models/oci.data_integration.models.ConnectionFromOAuth2Details.rst create mode 100644 docs/api/data_integration/models/oci.data_integration.models.ConnectionSummaryFromOAuth2.rst create mode 100644 docs/api/data_integration/models/oci.data_integration.models.CreateConnectionFromOAuth2.rst create mode 100644 docs/api/data_integration/models/oci.data_integration.models.UpdateConnectionFromOAuth2.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.BasicNamedCredentialContent.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.ChangeNamedCredentialCompartmentDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.CreateNamedCredentialDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DatabaseCredentialDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DatabaseNamedCredentialDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DatabasePasswordCredentialDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.DatabaseSecretCredentialDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.NamedCredential.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.NamedCredentialCollection.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.NamedCredentialContent.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.NamedCredentialSummary.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.NamedPreferredCredential.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.TestNamedCredentialDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.TestNamedCredentialStatus.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.TestNamedPreferredCredentialDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.UpdateNamedCredentialDetails.rst create mode 100644 docs/api/database_management/models/oci.database_management.models.UpdateNamedPreferredCredentialDetails.rst create mode 100644 docs/api/osp_gateway/models/oci.osp_gateway.models.ValueSetEntity.rst create mode 100644 src/oci/capacity_management/__init__.py create mode 100644 src/oci/capacity_management/capacity_management_client.py create mode 100644 src/oci/capacity_management/capacity_management_client_composite_operations.py create mode 100644 src/oci/capacity_management/models/__init__.py create mode 100644 src/oci/capacity_management/models/create_occ_availability_catalog_details.py create mode 100644 src/oci/capacity_management/models/create_occ_capacity_request_details.py create mode 100644 src/oci/capacity_management/models/metadata_details.py create mode 100644 src/oci/capacity_management/models/occ_availability_catalog.py create mode 100644 src/oci/capacity_management/models/occ_availability_catalog_collection.py create mode 100644 src/oci/capacity_management/models/occ_availability_catalog_summary.py create mode 100644 src/oci/capacity_management/models/occ_availability_collection.py create mode 100644 src/oci/capacity_management/models/occ_availability_summary.py create mode 100644 src/oci/capacity_management/models/occ_capacity_request.py create mode 100644 src/oci/capacity_management/models/occ_capacity_request_base_details.py create mode 100644 src/oci/capacity_management/models/occ_capacity_request_collection.py create mode 100644 src/oci/capacity_management/models/occ_capacity_request_compute_details.py create mode 100644 src/oci/capacity_management/models/occ_capacity_request_summary.py create mode 100644 src/oci/capacity_management/models/occ_customer.py create mode 100644 src/oci/capacity_management/models/occ_customer_group.py create mode 100644 src/oci/capacity_management/models/occ_customer_group_collection.py create mode 100644 src/oci/capacity_management/models/occ_customer_group_summary.py create mode 100644 src/oci/capacity_management/models/patch_insert_instruction.py create mode 100644 src/oci/capacity_management/models/patch_insert_multiple_instruction.py create mode 100644 src/oci/capacity_management/models/patch_instruction.py create mode 100644 src/oci/capacity_management/models/patch_merge_instruction.py create mode 100644 src/oci/capacity_management/models/patch_move_instruction.py create mode 100644 src/oci/capacity_management/models/patch_occ_capacity_request_details.py create mode 100644 src/oci/capacity_management/models/patch_prohibit_instruction.py create mode 100644 src/oci/capacity_management/models/patch_remove_instruction.py create mode 100644 src/oci/capacity_management/models/patch_replace_instruction.py create mode 100644 src/oci/capacity_management/models/patch_require_instruction.py create mode 100644 src/oci/capacity_management/models/update_internal_occ_capacity_request_details.py create mode 100644 src/oci/capacity_management/models/update_occ_availability_catalog_details.py create mode 100644 src/oci/capacity_management/models/update_occ_capacity_request_details.py create mode 100644 src/oci/data_integration/models/connection_from_o_auth2.py create mode 100644 src/oci/data_integration/models/connection_from_o_auth2_details.py create mode 100644 src/oci/data_integration/models/connection_summary_from_o_auth2.py create mode 100644 src/oci/data_integration/models/create_connection_from_o_auth2.py create mode 100644 src/oci/data_integration/models/update_connection_from_o_auth2.py create mode 100644 src/oci/database_management/models/basic_named_credential_content.py create mode 100644 src/oci/database_management/models/change_named_credential_compartment_details.py create mode 100644 src/oci/database_management/models/create_named_credential_details.py create mode 100644 src/oci/database_management/models/database_credential_details.py create mode 100644 src/oci/database_management/models/database_named_credential_details.py create mode 100644 src/oci/database_management/models/database_password_credential_details.py create mode 100644 src/oci/database_management/models/database_secret_credential_details.py create mode 100644 src/oci/database_management/models/named_credential.py create mode 100644 src/oci/database_management/models/named_credential_collection.py create mode 100644 src/oci/database_management/models/named_credential_content.py create mode 100644 src/oci/database_management/models/named_credential_summary.py create mode 100644 src/oci/database_management/models/named_preferred_credential.py create mode 100644 src/oci/database_management/models/test_named_credential_details.py create mode 100644 src/oci/database_management/models/test_named_credential_status.py create mode 100644 src/oci/database_management/models/test_named_preferred_credential_details.py create mode 100644 src/oci/database_management/models/update_named_credential_details.py create mode 100644 src/oci/database_management/models/update_named_preferred_credential_details.py create mode 100644 src/oci/osp_gateway/models/value_set_entity.py diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f43fe889da..9af1d72052 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,23 @@ Change Log All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog `_. +==================== +2.120.0 - 2024-01-30 +==================== + +Added +----- +* Support for OCI Control Center service +* Support for giro value set for address rules in the Oracle Store Platform service +* Support for giro in tax information for subscriptions in the Oracle Store Platform service +* Support for REST connectivity with Oath2 in the Data Integration service +* Support for resolver rules limit increase in the DNS service +* Support for named credentials in the Database Management service + +Breaking +-------- +* Default retry disabled on the operations of the DNS service + ==================== 2.119.1 - 2024-01-23 ==================== diff --git a/README.rst b/README.rst index f37838fc2e..46aca0ed19 100644 --- a/README.rst +++ b/README.rst @@ -5,7 +5,9 @@ Oracle Cloud Infrastructure Python SDK About ===== -This is the Python SDK for Oracle Cloud Infrastructure. Python 3.6, 3.7, 3.8 and 3.9 are supported. +This is the Python SDK for Oracle Cloud Infrastructure. Supported Python versions are mentioned `here`__. + +__ https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/pythonsdk.htm#pythonsdk_topic-supported_python_versions .. code-block:: pycon diff --git a/docs/api/capacity_management.rst b/docs/api/capacity_management.rst new file mode 100644 index 0000000000..aa27fa3808 --- /dev/null +++ b/docs/api/capacity_management.rst @@ -0,0 +1,50 @@ +Capacity Management +=================== + +.. autosummary:: + :toctree: capacity_management/client + :nosignatures: + :template: autosummary/service_client.rst + + oci.capacity_management.CapacityManagementClient + oci.capacity_management.CapacityManagementClientCompositeOperations + +-------- + Models +-------- + +.. autosummary:: + :toctree: capacity_management/models + :nosignatures: + :template: autosummary/model_class.rst + + oci.capacity_management.models.CreateOccAvailabilityCatalogDetails + oci.capacity_management.models.CreateOccCapacityRequestDetails + oci.capacity_management.models.MetadataDetails + oci.capacity_management.models.OccAvailabilityCatalog + oci.capacity_management.models.OccAvailabilityCatalogCollection + oci.capacity_management.models.OccAvailabilityCatalogSummary + oci.capacity_management.models.OccAvailabilityCollection + oci.capacity_management.models.OccAvailabilitySummary + oci.capacity_management.models.OccCapacityRequest + oci.capacity_management.models.OccCapacityRequestBaseDetails + oci.capacity_management.models.OccCapacityRequestCollection + oci.capacity_management.models.OccCapacityRequestComputeDetails + oci.capacity_management.models.OccCapacityRequestSummary + oci.capacity_management.models.OccCustomer + oci.capacity_management.models.OccCustomerGroup + oci.capacity_management.models.OccCustomerGroupCollection + oci.capacity_management.models.OccCustomerGroupSummary + oci.capacity_management.models.PatchInsertInstruction + oci.capacity_management.models.PatchInsertMultipleInstruction + oci.capacity_management.models.PatchInstruction + oci.capacity_management.models.PatchMergeInstruction + oci.capacity_management.models.PatchMoveInstruction + oci.capacity_management.models.PatchOccCapacityRequestDetails + oci.capacity_management.models.PatchProhibitInstruction + oci.capacity_management.models.PatchRemoveInstruction + oci.capacity_management.models.PatchReplaceInstruction + oci.capacity_management.models.PatchRequireInstruction + oci.capacity_management.models.UpdateInternalOccCapacityRequestDetails + oci.capacity_management.models.UpdateOccAvailabilityCatalogDetails + oci.capacity_management.models.UpdateOccCapacityRequestDetails diff --git a/docs/api/capacity_management/client/oci.capacity_management.CapacityManagementClient.rst b/docs/api/capacity_management/client/oci.capacity_management.CapacityManagementClient.rst new file mode 100644 index 0000000000..b9c3e54c3b --- /dev/null +++ b/docs/api/capacity_management/client/oci.capacity_management.CapacityManagementClient.rst @@ -0,0 +1,8 @@ +CapacityManagementClient +======================== + +.. currentmodule:: oci.capacity_management + +.. autoclass:: CapacityManagementClient + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/capacity_management/client/oci.capacity_management.CapacityManagementClientCompositeOperations.rst b/docs/api/capacity_management/client/oci.capacity_management.CapacityManagementClientCompositeOperations.rst new file mode 100644 index 0000000000..a4faf86ef6 --- /dev/null +++ b/docs/api/capacity_management/client/oci.capacity_management.CapacityManagementClientCompositeOperations.rst @@ -0,0 +1,8 @@ +CapacityManagementClientCompositeOperations +=========================================== + +.. currentmodule:: oci.capacity_management + +.. autoclass:: CapacityManagementClientCompositeOperations + :special-members: __init__ + :members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.CreateOccAvailabilityCatalogDetails.rst b/docs/api/capacity_management/models/oci.capacity_management.models.CreateOccAvailabilityCatalogDetails.rst new file mode 100644 index 0000000000..769c1640dd --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.CreateOccAvailabilityCatalogDetails.rst @@ -0,0 +1,11 @@ +CreateOccAvailabilityCatalogDetails +=================================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: CreateOccAvailabilityCatalogDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.CreateOccCapacityRequestDetails.rst b/docs/api/capacity_management/models/oci.capacity_management.models.CreateOccCapacityRequestDetails.rst new file mode 100644 index 0000000000..bc176097b2 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.CreateOccCapacityRequestDetails.rst @@ -0,0 +1,11 @@ +CreateOccCapacityRequestDetails +=============================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: CreateOccCapacityRequestDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.MetadataDetails.rst b/docs/api/capacity_management/models/oci.capacity_management.models.MetadataDetails.rst new file mode 100644 index 0000000000..20216f47a8 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.MetadataDetails.rst @@ -0,0 +1,11 @@ +MetadataDetails +=============== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: MetadataDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCatalog.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCatalog.rst new file mode 100644 index 0000000000..eb73e77c06 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCatalog.rst @@ -0,0 +1,11 @@ +OccAvailabilityCatalog +====================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccAvailabilityCatalog + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCatalogCollection.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCatalogCollection.rst new file mode 100644 index 0000000000..6f29417d96 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCatalogCollection.rst @@ -0,0 +1,11 @@ +OccAvailabilityCatalogCollection +================================ + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccAvailabilityCatalogCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCatalogSummary.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCatalogSummary.rst new file mode 100644 index 0000000000..2951458a22 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCatalogSummary.rst @@ -0,0 +1,11 @@ +OccAvailabilityCatalogSummary +============================= + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccAvailabilityCatalogSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCollection.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCollection.rst new file mode 100644 index 0000000000..ecb869901f --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilityCollection.rst @@ -0,0 +1,11 @@ +OccAvailabilityCollection +========================= + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccAvailabilityCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilitySummary.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilitySummary.rst new file mode 100644 index 0000000000..7cb7eeb70a --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccAvailabilitySummary.rst @@ -0,0 +1,11 @@ +OccAvailabilitySummary +====================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccAvailabilitySummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequest.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequest.rst new file mode 100644 index 0000000000..a4718bf8f6 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequest.rst @@ -0,0 +1,11 @@ +OccCapacityRequest +================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccCapacityRequest + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestBaseDetails.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestBaseDetails.rst new file mode 100644 index 0000000000..9d707374b2 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestBaseDetails.rst @@ -0,0 +1,11 @@ +OccCapacityRequestBaseDetails +============================= + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccCapacityRequestBaseDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestCollection.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestCollection.rst new file mode 100644 index 0000000000..935bf5740f --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestCollection.rst @@ -0,0 +1,11 @@ +OccCapacityRequestCollection +============================ + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccCapacityRequestCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestComputeDetails.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestComputeDetails.rst new file mode 100644 index 0000000000..d13fd2edc3 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestComputeDetails.rst @@ -0,0 +1,11 @@ +OccCapacityRequestComputeDetails +================================ + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccCapacityRequestComputeDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestSummary.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestSummary.rst new file mode 100644 index 0000000000..c02fe06337 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccCapacityRequestSummary.rst @@ -0,0 +1,11 @@ +OccCapacityRequestSummary +========================= + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccCapacityRequestSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccCustomer.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccCustomer.rst new file mode 100644 index 0000000000..9fc929203f --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccCustomer.rst @@ -0,0 +1,11 @@ +OccCustomer +=========== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccCustomer + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccCustomerGroup.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccCustomerGroup.rst new file mode 100644 index 0000000000..d356ee0b6f --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccCustomerGroup.rst @@ -0,0 +1,11 @@ +OccCustomerGroup +================ + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccCustomerGroup + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccCustomerGroupCollection.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccCustomerGroupCollection.rst new file mode 100644 index 0000000000..81a34c29c5 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccCustomerGroupCollection.rst @@ -0,0 +1,11 @@ +OccCustomerGroupCollection +========================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccCustomerGroupCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.OccCustomerGroupSummary.rst b/docs/api/capacity_management/models/oci.capacity_management.models.OccCustomerGroupSummary.rst new file mode 100644 index 0000000000..7fffd93e80 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.OccCustomerGroupSummary.rst @@ -0,0 +1,11 @@ +OccCustomerGroupSummary +======================= + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: OccCustomerGroupSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.PatchInsertInstruction.rst b/docs/api/capacity_management/models/oci.capacity_management.models.PatchInsertInstruction.rst new file mode 100644 index 0000000000..04d1a0888d --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.PatchInsertInstruction.rst @@ -0,0 +1,11 @@ +PatchInsertInstruction +====================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: PatchInsertInstruction + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.PatchInsertMultipleInstruction.rst b/docs/api/capacity_management/models/oci.capacity_management.models.PatchInsertMultipleInstruction.rst new file mode 100644 index 0000000000..4b4bcece1f --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.PatchInsertMultipleInstruction.rst @@ -0,0 +1,11 @@ +PatchInsertMultipleInstruction +============================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: PatchInsertMultipleInstruction + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.PatchInstruction.rst b/docs/api/capacity_management/models/oci.capacity_management.models.PatchInstruction.rst new file mode 100644 index 0000000000..d530a2f957 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.PatchInstruction.rst @@ -0,0 +1,11 @@ +PatchInstruction +================ + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: PatchInstruction + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.PatchMergeInstruction.rst b/docs/api/capacity_management/models/oci.capacity_management.models.PatchMergeInstruction.rst new file mode 100644 index 0000000000..cf04a9c014 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.PatchMergeInstruction.rst @@ -0,0 +1,11 @@ +PatchMergeInstruction +===================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: PatchMergeInstruction + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.PatchMoveInstruction.rst b/docs/api/capacity_management/models/oci.capacity_management.models.PatchMoveInstruction.rst new file mode 100644 index 0000000000..a12e8b4433 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.PatchMoveInstruction.rst @@ -0,0 +1,11 @@ +PatchMoveInstruction +==================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: PatchMoveInstruction + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.PatchOccCapacityRequestDetails.rst b/docs/api/capacity_management/models/oci.capacity_management.models.PatchOccCapacityRequestDetails.rst new file mode 100644 index 0000000000..05e78d7c8a --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.PatchOccCapacityRequestDetails.rst @@ -0,0 +1,11 @@ +PatchOccCapacityRequestDetails +============================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: PatchOccCapacityRequestDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.PatchProhibitInstruction.rst b/docs/api/capacity_management/models/oci.capacity_management.models.PatchProhibitInstruction.rst new file mode 100644 index 0000000000..096c0dbd5d --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.PatchProhibitInstruction.rst @@ -0,0 +1,11 @@ +PatchProhibitInstruction +======================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: PatchProhibitInstruction + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.PatchRemoveInstruction.rst b/docs/api/capacity_management/models/oci.capacity_management.models.PatchRemoveInstruction.rst new file mode 100644 index 0000000000..71e932f7d6 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.PatchRemoveInstruction.rst @@ -0,0 +1,11 @@ +PatchRemoveInstruction +====================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: PatchRemoveInstruction + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.PatchReplaceInstruction.rst b/docs/api/capacity_management/models/oci.capacity_management.models.PatchReplaceInstruction.rst new file mode 100644 index 0000000000..33cf723eee --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.PatchReplaceInstruction.rst @@ -0,0 +1,11 @@ +PatchReplaceInstruction +======================= + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: PatchReplaceInstruction + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.PatchRequireInstruction.rst b/docs/api/capacity_management/models/oci.capacity_management.models.PatchRequireInstruction.rst new file mode 100644 index 0000000000..29ca5d29a1 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.PatchRequireInstruction.rst @@ -0,0 +1,11 @@ +PatchRequireInstruction +======================= + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: PatchRequireInstruction + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.UpdateInternalOccCapacityRequestDetails.rst b/docs/api/capacity_management/models/oci.capacity_management.models.UpdateInternalOccCapacityRequestDetails.rst new file mode 100644 index 0000000000..a2ce0dd38d --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.UpdateInternalOccCapacityRequestDetails.rst @@ -0,0 +1,11 @@ +UpdateInternalOccCapacityRequestDetails +======================================= + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: UpdateInternalOccCapacityRequestDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.UpdateOccAvailabilityCatalogDetails.rst b/docs/api/capacity_management/models/oci.capacity_management.models.UpdateOccAvailabilityCatalogDetails.rst new file mode 100644 index 0000000000..367dd07cfc --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.UpdateOccAvailabilityCatalogDetails.rst @@ -0,0 +1,11 @@ +UpdateOccAvailabilityCatalogDetails +=================================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: UpdateOccAvailabilityCatalogDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/capacity_management/models/oci.capacity_management.models.UpdateOccCapacityRequestDetails.rst b/docs/api/capacity_management/models/oci.capacity_management.models.UpdateOccCapacityRequestDetails.rst new file mode 100644 index 0000000000..9efb02a419 --- /dev/null +++ b/docs/api/capacity_management/models/oci.capacity_management.models.UpdateOccCapacityRequestDetails.rst @@ -0,0 +1,11 @@ +UpdateOccCapacityRequestDetails +=============================== + +.. currentmodule:: oci.capacity_management.models + +.. autoclass:: UpdateOccCapacityRequestDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_integration.rst b/docs/api/data_integration.rst index a3a9e774fe..6f2cd13214 100644 --- a/docs/api/data_integration.rst +++ b/docs/api/data_integration.rst @@ -82,6 +82,8 @@ Data Integration oci.data_integration.models.ConnectionFromMySQLDetails oci.data_integration.models.ConnectionFromMySqlHeatWave oci.data_integration.models.ConnectionFromMySqlHeatWaveDetails + oci.data_integration.models.ConnectionFromOAuth2 + oci.data_integration.models.ConnectionFromOAuth2Details oci.data_integration.models.ConnectionFromObjectStorage oci.data_integration.models.ConnectionFromObjectStorageDetails oci.data_integration.models.ConnectionFromOracle @@ -109,6 +111,7 @@ Data Integration oci.data_integration.models.ConnectionSummaryFromLake oci.data_integration.models.ConnectionSummaryFromMySQL oci.data_integration.models.ConnectionSummaryFromMySqlHeatWave + oci.data_integration.models.ConnectionSummaryFromOAuth2 oci.data_integration.models.ConnectionSummaryFromObjectStorage oci.data_integration.models.ConnectionSummaryFromOracle oci.data_integration.models.ConnectionSummaryFromOracleEbs @@ -140,6 +143,7 @@ Data Integration oci.data_integration.models.CreateConnectionFromLake oci.data_integration.models.CreateConnectionFromMySQL oci.data_integration.models.CreateConnectionFromMySqlHeatWave + oci.data_integration.models.CreateConnectionFromOAuth2 oci.data_integration.models.CreateConnectionFromObjectStorage oci.data_integration.models.CreateConnectionFromOracle oci.data_integration.models.CreateConnectionFromOracleEbs @@ -541,6 +545,7 @@ Data Integration oci.data_integration.models.UpdateConnectionFromLake oci.data_integration.models.UpdateConnectionFromMySQL oci.data_integration.models.UpdateConnectionFromMySqlHeatWave + oci.data_integration.models.UpdateConnectionFromOAuth2 oci.data_integration.models.UpdateConnectionFromObjectStorage oci.data_integration.models.UpdateConnectionFromOracle oci.data_integration.models.UpdateConnectionFromOracleEbs diff --git a/docs/api/data_integration/models/oci.data_integration.models.ConnectionFromOAuth2.rst b/docs/api/data_integration/models/oci.data_integration.models.ConnectionFromOAuth2.rst new file mode 100644 index 0000000000..d7eb74742b --- /dev/null +++ b/docs/api/data_integration/models/oci.data_integration.models.ConnectionFromOAuth2.rst @@ -0,0 +1,11 @@ +ConnectionFromOAuth2 +==================== + +.. currentmodule:: oci.data_integration.models + +.. autoclass:: ConnectionFromOAuth2 + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_integration/models/oci.data_integration.models.ConnectionFromOAuth2Details.rst b/docs/api/data_integration/models/oci.data_integration.models.ConnectionFromOAuth2Details.rst new file mode 100644 index 0000000000..a9b5a56f3e --- /dev/null +++ b/docs/api/data_integration/models/oci.data_integration.models.ConnectionFromOAuth2Details.rst @@ -0,0 +1,11 @@ +ConnectionFromOAuth2Details +=========================== + +.. currentmodule:: oci.data_integration.models + +.. autoclass:: ConnectionFromOAuth2Details + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_integration/models/oci.data_integration.models.ConnectionSummaryFromOAuth2.rst b/docs/api/data_integration/models/oci.data_integration.models.ConnectionSummaryFromOAuth2.rst new file mode 100644 index 0000000000..15ae0b142e --- /dev/null +++ b/docs/api/data_integration/models/oci.data_integration.models.ConnectionSummaryFromOAuth2.rst @@ -0,0 +1,11 @@ +ConnectionSummaryFromOAuth2 +=========================== + +.. currentmodule:: oci.data_integration.models + +.. autoclass:: ConnectionSummaryFromOAuth2 + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_integration/models/oci.data_integration.models.CreateConnectionFromOAuth2.rst b/docs/api/data_integration/models/oci.data_integration.models.CreateConnectionFromOAuth2.rst new file mode 100644 index 0000000000..a207fd7bc7 --- /dev/null +++ b/docs/api/data_integration/models/oci.data_integration.models.CreateConnectionFromOAuth2.rst @@ -0,0 +1,11 @@ +CreateConnectionFromOAuth2 +========================== + +.. currentmodule:: oci.data_integration.models + +.. autoclass:: CreateConnectionFromOAuth2 + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/data_integration/models/oci.data_integration.models.UpdateConnectionFromOAuth2.rst b/docs/api/data_integration/models/oci.data_integration.models.UpdateConnectionFromOAuth2.rst new file mode 100644 index 0000000000..eaae224cbb --- /dev/null +++ b/docs/api/data_integration/models/oci.data_integration.models.UpdateConnectionFromOAuth2.rst @@ -0,0 +1,11 @@ +UpdateConnectionFromOAuth2 +========================== + +.. currentmodule:: oci.data_integration.models + +.. autoclass:: UpdateConnectionFromOAuth2 + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management.rst b/docs/api/database_management.rst index 44aaf15828..87efb758ee 100644 --- a/docs/api/database_management.rst +++ b/docs/api/database_management.rst @@ -79,6 +79,7 @@ Database Management oci.database_management.models.AwrDbWaitEventCollection oci.database_management.models.AwrDbWaitEventSummary oci.database_management.models.AwrQueryResult + oci.database_management.models.BasicNamedCredentialContent oci.database_management.models.BasicPreferredCredential oci.database_management.models.ChangeDatabaseParameterDetails oci.database_management.models.ChangeDatabaseParametersDetails @@ -87,6 +88,7 @@ Database Management oci.database_management.models.ChangeExternalExadataInfrastructureCompartmentDetails oci.database_management.models.ChangeJobCompartmentDetails oci.database_management.models.ChangeManagedDatabaseGroupCompartmentDetails + oci.database_management.models.ChangeNamedCredentialCompartmentDetails oci.database_management.models.ChangePlanRetentionDetails oci.database_management.models.ChangeSpaceBudgetDetails oci.database_management.models.ChangeSqlPlanBaselinesAttributesDetails @@ -107,6 +109,7 @@ Database Management oci.database_management.models.CreateExternalExadataStorageConnectorDetails oci.database_management.models.CreateJobDetails oci.database_management.models.CreateManagedDatabaseGroupDetails + oci.database_management.models.CreateNamedCredentialDetails oci.database_management.models.CreateSqlJobDetails oci.database_management.models.CreateSqlTuningSetDetails oci.database_management.models.CreateTablespaceDetails @@ -118,6 +121,7 @@ Database Management oci.database_management.models.DatabaseConnectionCredentials oci.database_management.models.DatabaseConnectionCredentialsByDetails oci.database_management.models.DatabaseConnectionString + oci.database_management.models.DatabaseCredentialDetails oci.database_management.models.DatabaseCredentials oci.database_management.models.DatabaseFleetHealthMetrics oci.database_management.models.DatabaseHomeMetricDefinition @@ -125,11 +129,14 @@ Database Management oci.database_management.models.DatabaseIOAggregateMetrics oci.database_management.models.DatabaseInstanceHomeMetricsDefinition oci.database_management.models.DatabaseManagementConfig + oci.database_management.models.DatabaseNamedCredentialDetails oci.database_management.models.DatabaseParameterSummary oci.database_management.models.DatabaseParameterUpdateStatus oci.database_management.models.DatabaseParametersCollection + oci.database_management.models.DatabasePasswordCredentialDetails oci.database_management.models.DatabasePlan oci.database_management.models.DatabasePlanDirective + oci.database_management.models.DatabaseSecretCredentialDetails oci.database_management.models.DatabaseSslConnectionCredentials oci.database_management.models.DatabaseStorageAggregateMetrics oci.database_management.models.DatabaseTimeAggregateMetrics @@ -312,6 +319,11 @@ Database Management oci.database_management.models.MySqlFleetMetricSummaryDefinition oci.database_management.models.MySqlFleetMetrics oci.database_management.models.MySqlFleetSummary + oci.database_management.models.NamedCredential + oci.database_management.models.NamedCredentialCollection + oci.database_management.models.NamedCredentialContent + oci.database_management.models.NamedCredentialSummary + oci.database_management.models.NamedPreferredCredential oci.database_management.models.ObjectPrivilegeCollection oci.database_management.models.ObjectPrivilegeSummary oci.database_management.models.ObjectStorageJobExecutionResultDetails @@ -419,6 +431,9 @@ Database Management oci.database_management.models.TablespaceStorageSize oci.database_management.models.TablespaceSummary oci.database_management.models.TestBasicPreferredCredentialDetails + oci.database_management.models.TestNamedCredentialDetails + oci.database_management.models.TestNamedCredentialStatus + oci.database_management.models.TestNamedPreferredCredentialDetails oci.database_management.models.TestPreferredCredentialDetails oci.database_management.models.TestPreferredCredentialStatus oci.database_management.models.TimeSeriesMetricDataPoint @@ -440,6 +455,8 @@ Database Management oci.database_management.models.UpdateExternalListenerDetails oci.database_management.models.UpdateJobDetails oci.database_management.models.UpdateManagedDatabaseGroupDetails + oci.database_management.models.UpdateNamedCredentialDetails + oci.database_management.models.UpdateNamedPreferredCredentialDetails oci.database_management.models.UpdatePreferredCredentialDetails oci.database_management.models.UpdateSqlJobDetails oci.database_management.models.UpdateTablespaceDetails diff --git a/docs/api/database_management/models/oci.database_management.models.BasicNamedCredentialContent.rst b/docs/api/database_management/models/oci.database_management.models.BasicNamedCredentialContent.rst new file mode 100644 index 0000000000..2012627175 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.BasicNamedCredentialContent.rst @@ -0,0 +1,11 @@ +BasicNamedCredentialContent +=========================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: BasicNamedCredentialContent + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.ChangeNamedCredentialCompartmentDetails.rst b/docs/api/database_management/models/oci.database_management.models.ChangeNamedCredentialCompartmentDetails.rst new file mode 100644 index 0000000000..af2996a622 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.ChangeNamedCredentialCompartmentDetails.rst @@ -0,0 +1,11 @@ +ChangeNamedCredentialCompartmentDetails +======================================= + +.. currentmodule:: oci.database_management.models + +.. autoclass:: ChangeNamedCredentialCompartmentDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.CreateNamedCredentialDetails.rst b/docs/api/database_management/models/oci.database_management.models.CreateNamedCredentialDetails.rst new file mode 100644 index 0000000000..3574084a41 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.CreateNamedCredentialDetails.rst @@ -0,0 +1,11 @@ +CreateNamedCredentialDetails +============================ + +.. currentmodule:: oci.database_management.models + +.. autoclass:: CreateNamedCredentialDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DatabaseCredentialDetails.rst b/docs/api/database_management/models/oci.database_management.models.DatabaseCredentialDetails.rst new file mode 100644 index 0000000000..e3ce0605db --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DatabaseCredentialDetails.rst @@ -0,0 +1,11 @@ +DatabaseCredentialDetails +========================= + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DatabaseCredentialDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DatabaseNamedCredentialDetails.rst b/docs/api/database_management/models/oci.database_management.models.DatabaseNamedCredentialDetails.rst new file mode 100644 index 0000000000..3821014456 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DatabaseNamedCredentialDetails.rst @@ -0,0 +1,11 @@ +DatabaseNamedCredentialDetails +============================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DatabaseNamedCredentialDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DatabasePasswordCredentialDetails.rst b/docs/api/database_management/models/oci.database_management.models.DatabasePasswordCredentialDetails.rst new file mode 100644 index 0000000000..94001e5c6e --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DatabasePasswordCredentialDetails.rst @@ -0,0 +1,11 @@ +DatabasePasswordCredentialDetails +================================= + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DatabasePasswordCredentialDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.DatabaseSecretCredentialDetails.rst b/docs/api/database_management/models/oci.database_management.models.DatabaseSecretCredentialDetails.rst new file mode 100644 index 0000000000..7d2673390b --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.DatabaseSecretCredentialDetails.rst @@ -0,0 +1,11 @@ +DatabaseSecretCredentialDetails +=============================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: DatabaseSecretCredentialDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.NamedCredential.rst b/docs/api/database_management/models/oci.database_management.models.NamedCredential.rst new file mode 100644 index 0000000000..70a4b5e08d --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.NamedCredential.rst @@ -0,0 +1,11 @@ +NamedCredential +=============== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: NamedCredential + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.NamedCredentialCollection.rst b/docs/api/database_management/models/oci.database_management.models.NamedCredentialCollection.rst new file mode 100644 index 0000000000..a167fd9ee2 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.NamedCredentialCollection.rst @@ -0,0 +1,11 @@ +NamedCredentialCollection +========================= + +.. currentmodule:: oci.database_management.models + +.. autoclass:: NamedCredentialCollection + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.NamedCredentialContent.rst b/docs/api/database_management/models/oci.database_management.models.NamedCredentialContent.rst new file mode 100644 index 0000000000..63970cd85a --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.NamedCredentialContent.rst @@ -0,0 +1,11 @@ +NamedCredentialContent +====================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: NamedCredentialContent + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.NamedCredentialSummary.rst b/docs/api/database_management/models/oci.database_management.models.NamedCredentialSummary.rst new file mode 100644 index 0000000000..51cf3b6920 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.NamedCredentialSummary.rst @@ -0,0 +1,11 @@ +NamedCredentialSummary +====================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: NamedCredentialSummary + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.NamedPreferredCredential.rst b/docs/api/database_management/models/oci.database_management.models.NamedPreferredCredential.rst new file mode 100644 index 0000000000..c54c9ae7a9 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.NamedPreferredCredential.rst @@ -0,0 +1,11 @@ +NamedPreferredCredential +======================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: NamedPreferredCredential + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.TestNamedCredentialDetails.rst b/docs/api/database_management/models/oci.database_management.models.TestNamedCredentialDetails.rst new file mode 100644 index 0000000000..cbe7820e5e --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.TestNamedCredentialDetails.rst @@ -0,0 +1,11 @@ +TestNamedCredentialDetails +========================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: TestNamedCredentialDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.TestNamedCredentialStatus.rst b/docs/api/database_management/models/oci.database_management.models.TestNamedCredentialStatus.rst new file mode 100644 index 0000000000..a410d18510 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.TestNamedCredentialStatus.rst @@ -0,0 +1,11 @@ +TestNamedCredentialStatus +========================= + +.. currentmodule:: oci.database_management.models + +.. autoclass:: TestNamedCredentialStatus + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.TestNamedPreferredCredentialDetails.rst b/docs/api/database_management/models/oci.database_management.models.TestNamedPreferredCredentialDetails.rst new file mode 100644 index 0000000000..2ccd63259a --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.TestNamedPreferredCredentialDetails.rst @@ -0,0 +1,11 @@ +TestNamedPreferredCredentialDetails +=================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: TestNamedPreferredCredentialDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.UpdateNamedCredentialDetails.rst b/docs/api/database_management/models/oci.database_management.models.UpdateNamedCredentialDetails.rst new file mode 100644 index 0000000000..fdd1919704 --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.UpdateNamedCredentialDetails.rst @@ -0,0 +1,11 @@ +UpdateNamedCredentialDetails +============================ + +.. currentmodule:: oci.database_management.models + +.. autoclass:: UpdateNamedCredentialDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/database_management/models/oci.database_management.models.UpdateNamedPreferredCredentialDetails.rst b/docs/api/database_management/models/oci.database_management.models.UpdateNamedPreferredCredentialDetails.rst new file mode 100644 index 0000000000..73287fc16c --- /dev/null +++ b/docs/api/database_management/models/oci.database_management.models.UpdateNamedPreferredCredentialDetails.rst @@ -0,0 +1,11 @@ +UpdateNamedPreferredCredentialDetails +===================================== + +.. currentmodule:: oci.database_management.models + +.. autoclass:: UpdateNamedPreferredCredentialDetails + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/api/landing.rst b/docs/api/landing.rst index 5bfc5ef756..1e5aa36134 100644 --- a/docs/api/landing.rst +++ b/docs/api/landing.rst @@ -34,6 +34,7 @@ API Reference * :doc:`Block Storage ` * :doc:`Blockchain Platform ` * :doc:`Budget ` +* :doc:`Capacity Management ` * :doc:`Certificates ` * :doc:`Certificates Management ` * :doc:`Channels ` @@ -270,6 +271,7 @@ API Reference bds blockchain budget + capacity_management certificates certificates_management cims diff --git a/docs/api/osp_gateway.rst b/docs/api/osp_gateway.rst index 9a83a3bc63..ca14d42d2a 100644 --- a/docs/api/osp_gateway.rst +++ b/docs/api/osp_gateway.rst @@ -61,5 +61,6 @@ Osp Gateway oci.osp_gateway.models.TaxInfo oci.osp_gateway.models.TaxTypeRule oci.osp_gateway.models.UpdateSubscriptionDetails + oci.osp_gateway.models.ValueSetEntity oci.osp_gateway.models.VerifyAddressDetails oci.osp_gateway.models.VerifyAddressReceipt diff --git a/docs/api/osp_gateway/models/oci.osp_gateway.models.ValueSetEntity.rst b/docs/api/osp_gateway/models/oci.osp_gateway.models.ValueSetEntity.rst new file mode 100644 index 0000000000..964bd9db00 --- /dev/null +++ b/docs/api/osp_gateway/models/oci.osp_gateway.models.ValueSetEntity.rst @@ -0,0 +1,11 @@ +ValueSetEntity +============== + +.. currentmodule:: oci.osp_gateway.models + +.. autoclass:: ValueSetEntity + :show-inheritance: + :special-members: __init__ + :members: + :undoc-members: + :inherited-members: \ No newline at end of file diff --git a/docs/index.rst b/docs/index.rst index 7a893cadbe..d7fc2b5ed1 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -16,7 +16,9 @@ Oracle Cloud Infrastructure Python SDK - |OciSdkVersion| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -This is the public Python SDK for Oracle Cloud Infrastructure. Python 3.6, 3.7, 3.8 and 3.9 are supported. +This is the Python SDK for Oracle Cloud Infrastructure. Supported Python versions are mentioned `here`__. + +__ https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/pythonsdk.htm#pythonsdk_topic-supported_python_versions .. code-block:: pycon diff --git a/docs/installation.rst b/docs/installation.rst index f539ac8a40..06db094c21 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -31,6 +31,7 @@ In addition, all Oracle Cloud Infrastructure SDKs require: For an example of how to set up a new user, group, compartment, and policy, see `Adding Users`_ in the Getting Started Guide. For a list of other typical Oracle Cloud Infrastructure policies, see `Common Policies`_ in the User Guide. +* Python version as mentioned in `Supported Python Versions`_. * A keypair used for signing API requests, with the public key uploaded to Oracle. Only the user calling the API should be in possession of the private key. (For more information, see `Configuring the SDK`_.) @@ -220,4 +221,5 @@ When trying to use the SDK, if you get an exception related to SSL/TLS or certif .. _PyPI link: https://pypi.python.org/pypi .. _OpenSSL: https://www.openssl.org/ .. _ConfiguringSDK: Configuring the SDK -.. _OSXUsers: Verify OpenSSL Version \ No newline at end of file +.. _OSXUsers: Verify OpenSSL Version +.. _Supported Python Versions: https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/pythonsdk.htm#pythonsdk_topic-supported_python_versions \ No newline at end of file diff --git a/src/oci/__init__.py b/src/oci/__init__.py index 78be9fc81e..640d0e5c35 100644 --- a/src/oci/__init__.py +++ b/src/oci/__init__.py @@ -19,7 +19,7 @@ else: __all__ = [ "BaseClient", "Error", "Request", "Response", "Signer", "config", "constants", "decorators", "exceptions", "regions", "wait_until", "pagination", "auth", "retry", "fips", "circuit_breaker", "alloy", - "access_governance_cp", "adm", "ai_anomaly_detection", "ai_document", "ai_language", "ai_speech", "ai_vision", "analytics", "announcements_service", "apigateway", "apm_config", "apm_control_plane", "apm_synthetics", "apm_traces", "application_migration", "appmgmt_control", "artifacts", "audit", "autoscaling", "bastion", "bds", "blockchain", "budget", "certificates", "certificates_management", "cims", "cloud_bridge", "cloud_guard", "cloud_migrations", "compute_cloud_at_customer", "compute_instance_agent", "container_engine", "container_instances", "core", "dashboard_service", "data_catalog", "data_flow", "data_integration", "data_labeling_service", "data_labeling_service_dataplane", "data_safe", "data_science", "database", "database_management", "database_migration", "database_tools", "devops", "disaster_recovery", "dns", "dts", "em_warehouse", "email", "events", "file_storage", "fleet_software_update", "functions", "fusion_apps", "generative_ai", "generative_ai_inference", "generic_artifacts_content", "golden_gate", "governance_rules_control_plane", "healthchecks", "identity", "identity_data_plane", "identity_domains", "integration", "jms", "jms_java_downloads", "key_management", "license_manager", "limits", "load_balancer", "lockbox", "log_analytics", "logging", "loggingingestion", "loggingsearch", "management_agent", "management_dashboard", "marketplace", "marketplace_publisher", "media_services", "monitoring", "mysql", "network_firewall", "network_load_balancer", "nosql", "object_storage", "oce", "oci_control_center", "ocvp", "oda", "onesubscription", "ons", "opa", "opensearch", "operator_access_control", "opsi", "optimizer", "os_management", "os_management_hub", "osp_gateway", "osub_billing_schedule", "osub_organization_subscription", "osub_subscription", "osub_usage", "psql", "queue", "recovery", "redis", "resource_manager", "resource_search", "rover", "sch", "secrets", "service_catalog", "service_manager_proxy", "service_mesh", "stack_monitoring", "streaming", "tenant_manager_control_plane", "threat_intelligence", "usage", "usage_api", "vault", "vbs_inst", "visual_builder", "vn_monitoring", "vulnerability_scanning", "waa", "waas", "waf", "work_requests" + "access_governance_cp", "adm", "ai_anomaly_detection", "ai_document", "ai_language", "ai_speech", "ai_vision", "analytics", "announcements_service", "apigateway", "apm_config", "apm_control_plane", "apm_synthetics", "apm_traces", "application_migration", "appmgmt_control", "artifacts", "audit", "autoscaling", "bastion", "bds", "blockchain", "budget", "capacity_management", "certificates", "certificates_management", "cims", "cloud_bridge", "cloud_guard", "cloud_migrations", "compute_cloud_at_customer", "compute_instance_agent", "container_engine", "container_instances", "core", "dashboard_service", "data_catalog", "data_flow", "data_integration", "data_labeling_service", "data_labeling_service_dataplane", "data_safe", "data_science", "database", "database_management", "database_migration", "database_tools", "devops", "disaster_recovery", "dns", "dts", "em_warehouse", "email", "events", "file_storage", "fleet_software_update", "functions", "fusion_apps", "generative_ai", "generative_ai_inference", "generic_artifacts_content", "golden_gate", "governance_rules_control_plane", "healthchecks", "identity", "identity_data_plane", "identity_domains", "integration", "jms", "jms_java_downloads", "key_management", "license_manager", "limits", "load_balancer", "lockbox", "log_analytics", "logging", "loggingingestion", "loggingsearch", "management_agent", "management_dashboard", "marketplace", "marketplace_publisher", "media_services", "monitoring", "mysql", "network_firewall", "network_load_balancer", "nosql", "object_storage", "oce", "oci_control_center", "ocvp", "oda", "onesubscription", "ons", "opa", "opensearch", "operator_access_control", "opsi", "optimizer", "os_management", "os_management_hub", "osp_gateway", "osub_billing_schedule", "osub_organization_subscription", "osub_subscription", "osub_usage", "psql", "queue", "recovery", "redis", "resource_manager", "resource_search", "rover", "sch", "secrets", "service_catalog", "service_manager_proxy", "service_mesh", "stack_monitoring", "streaming", "tenant_manager_control_plane", "threat_intelligence", "usage", "usage_api", "vault", "vbs_inst", "visual_builder", "vn_monitoring", "vulnerability_scanning", "waa", "waas", "waf", "work_requests" ] if sys.version_info >= (3, 7) and os.getenv("OCI_PYTHON_SDK_LAZY_IMPORTS_DISABLED", "False").lower() != "true": def __getattr__(x): @@ -30,4 +30,4 @@ def __getattr__(x): return importlib.import_module(__name__ + "." + x) raise AttributeError("module " + __name__ + " has no attribute" + x) else: - from . import access_governance_cp, adm, ai_anomaly_detection, ai_document, ai_language, ai_speech, ai_vision, analytics, announcements_service, apigateway, apm_config, apm_control_plane, apm_synthetics, apm_traces, application_migration, appmgmt_control, artifacts, audit, autoscaling, bastion, bds, blockchain, budget, certificates, certificates_management, cims, cloud_bridge, cloud_guard, cloud_migrations, compute_cloud_at_customer, compute_instance_agent, container_engine, container_instances, core, dashboard_service, data_catalog, data_flow, data_integration, data_labeling_service, data_labeling_service_dataplane, data_safe, data_science, database, database_management, database_migration, database_tools, devops, disaster_recovery, dns, dts, em_warehouse, email, events, file_storage, fleet_software_update, functions, fusion_apps, generative_ai, generative_ai_inference, generic_artifacts_content, golden_gate, governance_rules_control_plane, healthchecks, identity, identity_data_plane, identity_domains, integration, jms, jms_java_downloads, key_management, license_manager, limits, load_balancer, lockbox, log_analytics, logging, loggingingestion, loggingsearch, management_agent, management_dashboard, marketplace, marketplace_publisher, media_services, monitoring, mysql, network_firewall, network_load_balancer, nosql, object_storage, oce, oci_control_center, ocvp, oda, onesubscription, ons, opa, opensearch, operator_access_control, opsi, optimizer, os_management, os_management_hub, osp_gateway, osub_billing_schedule, osub_organization_subscription, osub_subscription, osub_usage, psql, queue, recovery, redis, resource_manager, resource_search, rover, sch, secrets, service_catalog, service_manager_proxy, service_mesh, stack_monitoring, streaming, tenant_manager_control_plane, threat_intelligence, usage, usage_api, vault, vbs_inst, visual_builder, vn_monitoring, vulnerability_scanning, waa, waas, waf, work_requests + from . import access_governance_cp, adm, ai_anomaly_detection, ai_document, ai_language, ai_speech, ai_vision, analytics, announcements_service, apigateway, apm_config, apm_control_plane, apm_synthetics, apm_traces, application_migration, appmgmt_control, artifacts, audit, autoscaling, bastion, bds, blockchain, budget, capacity_management, certificates, certificates_management, cims, cloud_bridge, cloud_guard, cloud_migrations, compute_cloud_at_customer, compute_instance_agent, container_engine, container_instances, core, dashboard_service, data_catalog, data_flow, data_integration, data_labeling_service, data_labeling_service_dataplane, data_safe, data_science, database, database_management, database_migration, database_tools, devops, disaster_recovery, dns, dts, em_warehouse, email, events, file_storage, fleet_software_update, functions, fusion_apps, generative_ai, generative_ai_inference, generic_artifacts_content, golden_gate, governance_rules_control_plane, healthchecks, identity, identity_data_plane, identity_domains, integration, jms, jms_java_downloads, key_management, license_manager, limits, load_balancer, lockbox, log_analytics, logging, loggingingestion, loggingsearch, management_agent, management_dashboard, marketplace, marketplace_publisher, media_services, monitoring, mysql, network_firewall, network_load_balancer, nosql, object_storage, oce, oci_control_center, ocvp, oda, onesubscription, ons, opa, opensearch, operator_access_control, opsi, optimizer, os_management, os_management_hub, osp_gateway, osub_billing_schedule, osub_organization_subscription, osub_subscription, osub_usage, psql, queue, recovery, redis, resource_manager, resource_search, rover, sch, secrets, service_catalog, service_manager_proxy, service_mesh, stack_monitoring, streaming, tenant_manager_control_plane, threat_intelligence, usage, usage_api, vault, vbs_inst, visual_builder, vn_monitoring, vulnerability_scanning, waa, waas, waf, work_requests diff --git a/src/oci/capacity_management/__init__.py b/src/oci/capacity_management/__init__.py new file mode 100644 index 0000000000..c9638a0276 --- /dev/null +++ b/src/oci/capacity_management/__init__.py @@ -0,0 +1,14 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + +from __future__ import absolute_import + + +from .capacity_management_client import CapacityManagementClient +from .capacity_management_client_composite_operations import CapacityManagementClientCompositeOperations +from . import models + +__all__ = ["CapacityManagementClient", "CapacityManagementClientCompositeOperations", "models"] diff --git a/src/oci/capacity_management/capacity_management_client.py b/src/oci/capacity_management/capacity_management_client.py new file mode 100644 index 0000000000..e13851b29e --- /dev/null +++ b/src/oci/capacity_management/capacity_management_client.py @@ -0,0 +1,2520 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + +from __future__ import absolute_import + +from oci._vendor import requests # noqa: F401 +from oci._vendor import six + +from oci import retry, circuit_breaker # noqa: F401 +from oci.base_client import BaseClient +from oci.config import get_config_value_or_default, validate_config +from oci.signer import Signer +from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME +from oci.exceptions import InvalidAlloyConfig +from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET +from .models import capacity_management_type_mapping +missing = Sentinel("Missing") + + +class CapacityManagementClient(object): + """ + A description of the OciControlCenterCp API + """ + + def __init__(self, config, **kwargs): + """ + Creates a new service client + + :param dict config: + Configuration keys and values as per `SDK and Tool Configuration `__. + The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config + the dict using :py:meth:`~oci.config.validate_config` + + :param str service_endpoint: (optional) + The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is + not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit + need to specify a service endpoint. + + :param timeout: (optional) + The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided + as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If + a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout. + :type timeout: float or tuple(float, float) + + :param signer: (optional) + The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values + provided in the config parameter. + + One use case for this parameter is for `Instance Principals authentication `__ + by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument + :type signer: :py:class:`~oci.signer.AbstractBaseSigner` + + :param obj retry_strategy: (optional) + A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default. + Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation. + Any value provided at the operation level will override whatever is specified at the client level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` + is also available. The specifics of the default retry strategy are described `here `__. + + :param obj circuit_breaker_strategy: (optional) + A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level). + This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided. + The specifics of circuit breaker strategy are described `here `__. + + :param function circuit_breaker_callback: (optional) + Callback function to receive any exceptions triggerred by the circuit breaker. + + :param bool client_level_realm_specific_endpoint_template_enabled: (optional) + A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None. + + :param allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not + allow control characters to be in the response object. + """ + if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("capacity_management"): + raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service") + + validate_config(config, signer=kwargs.get('signer')) + if 'signer' in kwargs: + signer = kwargs['signer'] + + elif AUTHENTICATION_TYPE_FIELD_NAME in config: + signer = get_signer_from_authentication_type(config) + + else: + signer = Signer( + tenancy=config["tenancy"], + user=config["user"], + fingerprint=config["fingerprint"], + private_key_file_location=config.get("key_file"), + pass_phrase=get_config_value_or_default(config, "pass_phrase"), + private_key_content=config.get("key_content") + ) + + base_client_init_kwargs = { + 'regional_client': True, + 'service_endpoint': kwargs.get('service_endpoint'), + 'base_path': '/20231107', + 'service_endpoint_template': 'https://control-center-cp.{region}.oci.{secondLevelDomain}', + 'endpoint_service_name': 'control-center-cp', + 'service_endpoint_template_per_realm': { }, # noqa: E201 E202 + 'skip_deserialization': kwargs.get('skip_deserialization', False), + 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY), + 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled') + } + if 'timeout' in kwargs: + base_client_init_kwargs['timeout'] = kwargs.get('timeout') + if base_client_init_kwargs.get('circuit_breaker_strategy') is None: + base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY + if 'allow_control_chars' in kwargs: + base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars') + self.base_client = BaseClient("capacity_management", config, signer, capacity_management_type_mapping, **base_client_init_kwargs) + self.retry_strategy = kwargs.get('retry_strategy') + self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback') + + def create_occ_availability_catalog(self, create_occ_availability_catalog_details, **kwargs): + """ + Create availability catalog + + + :param oci.capacity_management.models.CreateOccAvailabilityCatalogDetails create_occ_availability_catalog_details: (required) + The request details for creating an availability catalog. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccAvailabilityCatalog` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use create_occ_availability_catalog API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/occAvailabilityCatalogs" + method = "POST" + operation_name = "create_occ_availability_catalog" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_retry_token", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"create_occ_availability_catalog got unknown kwargs: {extra_kwargs!r}") + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_occ_availability_catalog_details, + response_type="OccAvailabilityCatalog", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_occ_availability_catalog_details, + response_type="OccAvailabilityCatalog", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def create_occ_capacity_request(self, create_occ_capacity_request_details, **kwargs): + """ + Create Capacity Request. + + + :param oci.capacity_management.models.CreateOccCapacityRequestDetails create_occ_capacity_request_details: (required) + The request details for creating a capacity request. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCapacityRequest` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use create_occ_capacity_request API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/occCapacityRequests" + method = "POST" + operation_name = "create_occ_capacity_request" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_retry_token", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"create_occ_capacity_request got unknown kwargs: {extra_kwargs!r}") + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_occ_capacity_request_details, + response_type="OccCapacityRequest", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_occ_capacity_request_details, + response_type="OccCapacityRequest", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def delete_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs): + """ + Deletes the availability catalog resource. + + + :param str occ_availability_catalog_id: (required) + The OCID of the availability catalog. + + :param str if_match: (optional) + 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. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use delete_occ_availability_catalog API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['occAvailabilityCatalogId'] + resource_path = "/occAvailabilityCatalogs/{occAvailabilityCatalogId}" + method = "DELETE" + operation_name = "delete_occ_availability_catalog" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"delete_occ_availability_catalog got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "occAvailabilityCatalogId": occ_availability_catalog_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def delete_occ_capacity_request(self, occ_capacity_request_id, **kwargs): + """ + Deletes the capacity request resource. + + + :param str occ_capacity_request_id: (required) + The OCID of the capacity request. + + :param str if_match: (optional) + 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. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use delete_occ_capacity_request API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['occCapacityRequestId'] + resource_path = "/occCapacityRequests/{occCapacityRequestId}" + method = "DELETE" + operation_name = "delete_occ_capacity_request" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"delete_occ_capacity_request got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "occCapacityRequestId": occ_capacity_request_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def get_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs): + """ + Get details about availability catalog. + + + :param str occ_availability_catalog_id: (required) + The OCID of the availability catalog. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccAvailabilityCatalog` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_occ_availability_catalog API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['occAvailabilityCatalogId'] + resource_path = "/occAvailabilityCatalogs/{occAvailabilityCatalogId}" + method = "GET" + operation_name = "get_occ_availability_catalog" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_occ_availability_catalog got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "occAvailabilityCatalogId": occ_availability_catalog_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="OccAvailabilityCatalog", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="OccAvailabilityCatalog", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def get_occ_availability_catalog_content(self, occ_availability_catalog_id, **kwargs): + """ + Returns the binary contents of the availability catalog. Can be saved as a csv file. + + + :param str occ_availability_catalog_id: (required) + The OCID of the availability catalog. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param str if_match: (optional) + 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. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type stream + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_occ_availability_catalog_content API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['occAvailabilityCatalogId'] + resource_path = "/occAvailabilityCatalogs/{occAvailabilityCatalogId}/content" + method = "GET" + operation_name = "get_occ_availability_catalog_content" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_retry_token", + "opc_request_id", + "if_match" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_occ_availability_catalog_content got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "occAvailabilityCatalogId": occ_availability_catalog_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/binary", + "content-type": "application/json", + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing), + "if-match": kwargs.get("if_match", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="stream", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="stream", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def get_occ_capacity_request(self, occ_capacity_request_id, **kwargs): + """ + Get details about the capacity request. + + + :param str occ_capacity_request_id: (required) + The OCID of the capacity request. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCapacityRequest` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_occ_capacity_request API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['occCapacityRequestId'] + resource_path = "/occCapacityRequests/{occCapacityRequestId}" + method = "GET" + operation_name = "get_occ_capacity_request" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_occ_capacity_request got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "occCapacityRequestId": occ_capacity_request_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="OccCapacityRequest", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="OccCapacityRequest", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def get_occ_customer_group(self, occ_customer_group_id, **kwargs): + """ + Gets information about the specified customer group. + + + :param str occ_customer_group_id: (required) + The OCID of the customer group. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCustomerGroup` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_occ_customer_group API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['occCustomerGroupId'] + resource_path = "/occCustomerGroups/{occCustomerGroupId}" + method = "GET" + operation_name = "get_occ_customer_group" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_occ_customer_group got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "occCustomerGroupId": occ_customer_group_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="OccCustomerGroup", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="OccCustomerGroup", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_occ_availabilities(self, occ_availability_catalog_id, **kwargs): + """ + Lists availabilities for a particular availability catalog. + + + :param str occ_availability_catalog_id: (required) + The OCID of the availability catalog. + + :param str date_expected_capacity_handover: (optional) + The capacity handover date of the capacity constraint to filter the list of capacity constraints. + + :param str resource_name: (optional) + The name of the resource to filter the list of capacity constraints. + + :param str resource_type: (optional) + Resource type using which the capacity constraints of an availability catalog can be filtered. + + Allowed values are: "SERVER_HW", "CAPACITY_CONSTRAINT" + + :param str workload_type: (optional) + Workload type using the resources in an availability catalog can be filtered. + + Allowed values are: "GENERIC", "ROW", "US_PROD" + + :param int limit: (optional) + The maximum number of items to return. + + :param str page: (optional) + A token representing the position at which to start retrieving results. This must come from `opc-next-page` header field of a previous response. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param str sort_order: (optional) + The sort order to use, either 'ASC' or 'DESC'. + + Allowed values are: "ASC", "DESC" + + :param str sort_by: (optional) + The field to sort by. Only one sort order may be provided. The default order for resource name is ascending. The default order for date of capacity handover is descending. + + Allowed values are: "dateExpectedCapacityHandover", "resourceName" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccAvailabilityCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_occ_availabilities API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['occAvailabilityCatalogId'] + resource_path = "/occAvailabilityCatalogs/{occAvailabilityCatalogId}/occAvailabilities" + method = "GET" + operation_name = "list_occ_availabilities" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "date_expected_capacity_handover", + "resource_name", + "resource_type", + "workload_type", + "limit", + "page", + "opc_request_id", + "sort_order", + "sort_by" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_occ_availabilities got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "occAvailabilityCatalogId": occ_availability_catalog_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + if 'resource_type' in kwargs: + resource_type_allowed_values = ["SERVER_HW", "CAPACITY_CONSTRAINT"] + if kwargs['resource_type'] not in resource_type_allowed_values: + raise ValueError( + f"Invalid value for `resource_type`, must be one of { resource_type_allowed_values }" + ) + + if 'workload_type' in kwargs: + workload_type_allowed_values = ["GENERIC", "ROW", "US_PROD"] + if kwargs['workload_type'] not in workload_type_allowed_values: + raise ValueError( + f"Invalid value for `workload_type`, must be one of { workload_type_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["dateExpectedCapacityHandover", "resourceName"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + query_params = { + "dateExpectedCapacityHandover": kwargs.get("date_expected_capacity_handover", missing), + "resourceName": kwargs.get("resource_name", missing), + "resourceType": kwargs.get("resource_type", missing), + "workloadType": kwargs.get("workload_type", missing), + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + query_params=query_params, + header_params=header_params, + response_type="OccAvailabilityCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + query_params=query_params, + header_params=header_params, + response_type="OccAvailabilityCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_occ_availability_catalogs(self, compartment_id, **kwargs): + """ + Lists all availability catalogs. + + + :param str compartment_id: (required) + The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes. + + :param str namespace: (optional) + The namespace by which we would filter the list. + + Allowed values are: "COMPUTE" + + :param str id: (optional) + The OCID of the availability catalog to filter the list of availability catalogs. + + :param str display_name: (optional) + A filter to return only the resources that match the entire display name. The match is not case sensitive. + + :param str catalog_state: (optional) + Filter the list of availability catalogs based on the catalog state. + + Allowed values are: "NOT_UPLOADED", "UPLOAD_FAILED", "STAGED", "PUBLISHED", "OUTDATED", "DELETED" + + :param int limit: (optional) + The maximum number of items to return. + + :param str page: (optional) + A token representing the position at which to start retrieving results. This must come from `opc-next-page` header field of a previous response. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param str sort_order: (optional) + The sort order to use, either 'ASC' or 'DESC'. + + Allowed values are: "ASC", "DESC" + + :param str sort_by: (optional) + The field to sort by. Only one sort order may be provided. The default order for displayName is ascending. The default order for timeCreated is descending. + + Allowed values are: "displayName", "timeCreated" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccAvailabilityCatalogCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_occ_availability_catalogs API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['compartmentId'] + resource_path = "/occAvailabilityCatalogs" + method = "GET" + operation_name = "list_occ_availability_catalogs" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "namespace", + "id", + "display_name", + "catalog_state", + "limit", + "page", + "opc_request_id", + "sort_order", + "sort_by" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_occ_availability_catalogs got unknown kwargs: {extra_kwargs!r}") + + if 'namespace' in kwargs: + namespace_allowed_values = ["COMPUTE"] + if kwargs['namespace'] not in namespace_allowed_values: + raise ValueError( + f"Invalid value for `namespace`, must be one of { namespace_allowed_values }" + ) + + if 'catalog_state' in kwargs: + catalog_state_allowed_values = ["NOT_UPLOADED", "UPLOAD_FAILED", "STAGED", "PUBLISHED", "OUTDATED", "DELETED"] + if kwargs['catalog_state'] not in catalog_state_allowed_values: + raise ValueError( + f"Invalid value for `catalog_state`, must be one of { catalog_state_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["displayName", "timeCreated"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + query_params = { + "compartmentId": compartment_id, + "namespace": kwargs.get("namespace", missing), + "id": kwargs.get("id", missing), + "displayName": kwargs.get("display_name", missing), + "catalogState": kwargs.get("catalog_state", missing), + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="OccAvailabilityCatalogCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="OccAvailabilityCatalogCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_occ_availability_catalogs_internal(self, compartment_id, **kwargs): + """ + An internal api to list availability catalogs. + + + :param str compartment_id: (required) + The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes. + + :param str namespace: (optional) + The namespace by which we would filter the list. + + Allowed values are: "COMPUTE" + + :param str id: (optional) + The OCID of the availability catalog to filter the list of availability catalogs. + + :param str display_name: (optional) + A filter to return only the resources that match the entire display name. The match is not case sensitive. + + :param str catalog_state: (optional) + Filter the list of availability catalogs based on the catalog state. + + Allowed values are: "NOT_UPLOADED", "UPLOAD_FAILED", "STAGED", "PUBLISHED", "OUTDATED", "DELETED" + + :param str occ_customer_group_id: (optional) + The customer group ocid by which we would filter the list. + + :param int limit: (optional) + The maximum number of items to return. + + :param str page: (optional) + A token representing the position at which to start retrieving results. This must come from `opc-next-page` header field of a previous response. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param str sort_order: (optional) + The sort order to use, either 'ASC' or 'DESC'. + + Allowed values are: "ASC", "DESC" + + :param str sort_by: (optional) + The field to sort by. Only one sort order may be provided. The default order for displayName is ascending. The default order for timeCreated is descending. + + Allowed values are: "displayName", "timeCreated" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccAvailabilityCatalogCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_occ_availability_catalogs_internal API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['compartmentId'] + resource_path = "/internal/occAvailabilityCatalogs" + method = "GET" + operation_name = "list_occ_availability_catalogs_internal" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "namespace", + "id", + "display_name", + "catalog_state", + "occ_customer_group_id", + "limit", + "page", + "opc_request_id", + "sort_order", + "sort_by" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_occ_availability_catalogs_internal got unknown kwargs: {extra_kwargs!r}") + + if 'namespace' in kwargs: + namespace_allowed_values = ["COMPUTE"] + if kwargs['namespace'] not in namespace_allowed_values: + raise ValueError( + f"Invalid value for `namespace`, must be one of { namespace_allowed_values }" + ) + + if 'catalog_state' in kwargs: + catalog_state_allowed_values = ["NOT_UPLOADED", "UPLOAD_FAILED", "STAGED", "PUBLISHED", "OUTDATED", "DELETED"] + if kwargs['catalog_state'] not in catalog_state_allowed_values: + raise ValueError( + f"Invalid value for `catalog_state`, must be one of { catalog_state_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["displayName", "timeCreated"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + query_params = { + "compartmentId": compartment_id, + "namespace": kwargs.get("namespace", missing), + "id": kwargs.get("id", missing), + "displayName": kwargs.get("display_name", missing), + "catalogState": kwargs.get("catalog_state", missing), + "occCustomerGroupId": kwargs.get("occ_customer_group_id", missing), + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="OccAvailabilityCatalogCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="OccAvailabilityCatalogCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_occ_capacity_requests(self, compartment_id, **kwargs): + """ + Lists all capacity requests. + + + :param str compartment_id: (required) + The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes. + + :param str occ_availability_catalog_id: (optional) + A filter to return the list of capacity requests based on the OCID of the availability catalog against which they were created. + + :param str namespace: (optional) + The namespace by which we would filter the list. + + Allowed values are: "COMPUTE" + + :param str display_name: (optional) + A filter to return only the resources that match the entire display name. The match is not case sensitive. + + :param str id: (optional) + A filter to return the list of capacity requests based on the OCID of the capacity request. This is done for the users who have INSPECT permission on the resource but do not have READ permission. + + :param int limit: (optional) + The maximum number of items to return. + + :param str page: (optional) + A token representing the position at which to start retrieving results. This must come from `opc-next-page` header field of a previous response. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param str sort_order: (optional) + The sort order to use, either 'ASC' or 'DESC'. + + Allowed values are: "ASC", "DESC" + + :param str sort_by: (optional) + The field to sort by. Only one sort order may be provided. The default order for display name is ascending. The default order for time created is reverse chronological order(latest date at the top). + + Allowed values are: "displayName", "timeCreated" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCapacityRequestCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_occ_capacity_requests API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['compartmentId'] + resource_path = "/occCapacityRequests" + method = "GET" + operation_name = "list_occ_capacity_requests" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "occ_availability_catalog_id", + "namespace", + "display_name", + "id", + "limit", + "page", + "opc_request_id", + "sort_order", + "sort_by" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_occ_capacity_requests got unknown kwargs: {extra_kwargs!r}") + + if 'namespace' in kwargs: + namespace_allowed_values = ["COMPUTE"] + if kwargs['namespace'] not in namespace_allowed_values: + raise ValueError( + f"Invalid value for `namespace`, must be one of { namespace_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["displayName", "timeCreated"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + query_params = { + "compartmentId": compartment_id, + "occAvailabilityCatalogId": kwargs.get("occ_availability_catalog_id", missing), + "namespace": kwargs.get("namespace", missing), + "displayName": kwargs.get("display_name", missing), + "id": kwargs.get("id", missing), + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="OccCapacityRequestCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="OccCapacityRequestCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_occ_capacity_requests_internal(self, compartment_id, **kwargs): + """ + An internal api to list all capacity requests. + + + :param str compartment_id: (required) + The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes. + + :param str occ_customer_group_id: (optional) + The customer group ocid by which we would filter the list. + + :param str occ_availability_catalog_id: (optional) + A filter to return the list of capacity requests based on the OCID of the availability catalog against which they were created. + + :param str namespace: (optional) + The namespace by which we would filter the list. + + Allowed values are: "COMPUTE" + + :param str display_name: (optional) + A filter to return only the resources that match the entire display name. The match is not case sensitive. + + :param str id: (optional) + A filter to return the list of capacity requests based on the OCID of the capacity request. This is done for the users who have INSPECT permission on the resource but do not have READ permission. + + :param int limit: (optional) + The maximum number of items to return. + + :param str page: (optional) + A token representing the position at which to start retrieving results. This must come from `opc-next-page` header field of a previous response. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param str sort_order: (optional) + The sort order to use, either 'ASC' or 'DESC'. + + Allowed values are: "ASC", "DESC" + + :param str sort_by: (optional) + The field to sort by. Only one sort order may be provided. The default order for display name is ascending. The default order for time created is reverse chronological order(latest date at the top). + + Allowed values are: "displayName", "timeCreated" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCapacityRequestCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_occ_capacity_requests_internal API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['compartmentId'] + resource_path = "/internal/occCapacityRequests" + method = "GET" + operation_name = "list_occ_capacity_requests_internal" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "occ_customer_group_id", + "occ_availability_catalog_id", + "namespace", + "display_name", + "id", + "limit", + "page", + "opc_request_id", + "sort_order", + "sort_by" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_occ_capacity_requests_internal got unknown kwargs: {extra_kwargs!r}") + + if 'namespace' in kwargs: + namespace_allowed_values = ["COMPUTE"] + if kwargs['namespace'] not in namespace_allowed_values: + raise ValueError( + f"Invalid value for `namespace`, must be one of { namespace_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["displayName", "timeCreated"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + query_params = { + "compartmentId": compartment_id, + "occCustomerGroupId": kwargs.get("occ_customer_group_id", missing), + "occAvailabilityCatalogId": kwargs.get("occ_availability_catalog_id", missing), + "namespace": kwargs.get("namespace", missing), + "displayName": kwargs.get("display_name", missing), + "id": kwargs.get("id", missing), + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="OccCapacityRequestCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="OccCapacityRequestCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def list_occ_customer_groups(self, compartment_id, **kwargs): + """ + Lists all the customer groups. + + + :param str compartment_id: (required) + The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes. + + :param str status: (optional) + A query filter to return the list result based on status. + + Allowed values are: "ENABLED", "DISABLED" + + :param str display_name: (optional) + A filter to return only the resources that match the entire display name. The match is not case sensitive. + + :param str id: (optional) + A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission. + + :param int limit: (optional) + The maximum number of items to return. + + :param str page: (optional) + A token representing the position at which to start retrieving results. This must come from `opc-next-page` header field of a previous response. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param str sort_order: (optional) + The sort order to use, either 'ASC' or 'DESC'. + + Allowed values are: "ASC", "DESC" + + :param str sort_by: (optional) + The field to sort by. Only one sort order may be provided. Default order for name and compartment ID is ascending. Default order for time created is descending. + + Allowed values are: "compartmentId", "name", "timeCreated" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCustomerGroupCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_occ_customer_groups API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['compartmentId'] + resource_path = "/occCustomerGroups" + method = "GET" + operation_name = "list_occ_customer_groups" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "status", + "display_name", + "id", + "limit", + "page", + "opc_request_id", + "sort_order", + "sort_by" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_occ_customer_groups got unknown kwargs: {extra_kwargs!r}") + + if 'status' in kwargs: + status_allowed_values = ["ENABLED", "DISABLED"] + if kwargs['status'] not in status_allowed_values: + raise ValueError( + f"Invalid value for `status`, must be one of { status_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["compartmentId", "name", "timeCreated"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + query_params = { + "compartmentId": compartment_id, + "status": kwargs.get("status", missing), + "displayName": kwargs.get("display_name", missing), + "id": kwargs.get("id", missing), + "limit": kwargs.get("limit", missing), + "page": kwargs.get("page", missing), + "sortOrder": kwargs.get("sort_order", missing), + "sortBy": kwargs.get("sort_by", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="OccCustomerGroupCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="OccCustomerGroupCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def patch_occ_capacity_request(self, patch_occ_capacity_request_details, occ_capacity_request_id, **kwargs): + """ + Updates the OccCapacityRequest by evaluating a sequence of instructions. + + + :param oci.capacity_management.models.PatchOccCapacityRequestDetails patch_occ_capacity_request_details: (required) + Request to update the properties of the capacity request. + + :param str occ_capacity_request_id: (required) + The OCID of the capacity request. + + :param str if_match: (optional) + 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. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCapacityRequest` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use patch_occ_capacity_request API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['occCapacityRequestId'] + resource_path = "/occCapacityRequests/{occCapacityRequestId}" + method = "PATCH" + operation_name = "patch_occ_capacity_request" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"patch_occ_capacity_request got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "occCapacityRequestId": occ_capacity_request_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=patch_occ_capacity_request_details, + response_type="OccCapacityRequest", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=patch_occ_capacity_request_details, + response_type="OccCapacityRequest", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def publish_occ_availability_catalog(self, occ_availability_catalog_id, **kwargs): + """ + Publishes the version of availability catalog specified by the operator. This makes that catalog version visible to customers. + + + :param str occ_availability_catalog_id: (required) + The OCID of the availability catalog. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param str if_match: (optional) + 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. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use publish_occ_availability_catalog API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['occAvailabilityCatalogId'] + resource_path = "/occAvailabilityCatalogs/{occAvailabilityCatalogId}/actions/publish" + method = "POST" + operation_name = "publish_occ_availability_catalog" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_retry_token", + "opc_request_id", + "if_match" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"publish_occ_availability_catalog got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "occAvailabilityCatalogId": occ_availability_catalog_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-request-id": kwargs.get("opc_request_id", missing), + "if-match": kwargs.get("if_match", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def update_internal_occ_capacity_request(self, update_internal_occ_capacity_request_details, occ_capacity_request_id, **kwargs): + """ + The internal api to update the capacity request. This api will be used by operators for updating the capacity request to either completed, resubmitted or rejected. + + + :param oci.capacity_management.models.UpdateInternalOccCapacityRequestDetails update_internal_occ_capacity_request_details: (required) + Request to update the properties of the capacity request. + + :param str occ_capacity_request_id: (required) + The OCID of the capacity request. + + :param str if_match: (optional) + 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. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCapacityRequest` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use update_internal_occ_capacity_request API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['occCapacityRequestId'] + resource_path = "/internal/occCapacityRequests/{occCapacityRequestId}" + method = "PUT" + operation_name = "update_internal_occ_capacity_request" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"update_internal_occ_capacity_request got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "occCapacityRequestId": occ_capacity_request_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_internal_occ_capacity_request_details, + response_type="OccCapacityRequest", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_internal_occ_capacity_request_details, + response_type="OccCapacityRequest", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def update_occ_availability_catalog(self, update_occ_availability_catalog_details, occ_availability_catalog_id, **kwargs): + """ + The request to update the availability catalog. Currently only freeform tags can be updated via this api. + + + :param oci.capacity_management.models.UpdateOccAvailabilityCatalogDetails update_occ_availability_catalog_details: (required) + Request to update the properties of the availability catalog. + + :param str occ_availability_catalog_id: (required) + The OCID of the availability catalog. + + :param str if_match: (optional) + 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. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccAvailabilityCatalog` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use update_occ_availability_catalog API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['occAvailabilityCatalogId'] + resource_path = "/occAvailabilityCatalogs/{occAvailabilityCatalogId}" + method = "PUT" + operation_name = "update_occ_availability_catalog" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"update_occ_availability_catalog got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "occAvailabilityCatalogId": occ_availability_catalog_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_occ_availability_catalog_details, + response_type="OccAvailabilityCatalog", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_occ_availability_catalog_details, + response_type="OccAvailabilityCatalog", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + + def update_occ_capacity_request(self, update_occ_capacity_request_details, occ_capacity_request_id, **kwargs): + """ + The request to update the capacity request. The user can perform actions like closing a partially completed request so that it doesn't go ahead for full completion. + + + :param oci.capacity_management.models.UpdateOccCapacityRequestDetails update_occ_capacity_request_details: (required) + Request to update the properties of the capacity request. + + :param str occ_capacity_request_id: (required) + The OCID of the capacity request. + + :param str if_match: (optional) + 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. + + :param str opc_request_id: (optional) + The client request ID for tracing. The only valid characters for request IDs are letters, numbers, + underscore, and dash. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.capacity_management.models.OccCapacityRequest` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use update_occ_capacity_request API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['occCapacityRequestId'] + resource_path = "/occCapacityRequests/{occCapacityRequestId}" + method = "PUT" + operation_name = "update_occ_capacity_request" + api_reference_link = "" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"update_occ_capacity_request got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "occCapacityRequestId": occ_capacity_request_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + if retry_strategy is None: + retry_strategy = retry.DEFAULT_RETRY_STRATEGY + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_occ_capacity_request_details, + response_type="OccCapacityRequest", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_occ_capacity_request_details, + response_type="OccCapacityRequest", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) diff --git a/src/oci/capacity_management/capacity_management_client_composite_operations.py b/src/oci/capacity_management/capacity_management_client_composite_operations.py new file mode 100644 index 0000000000..b32f19c571 --- /dev/null +++ b/src/oci/capacity_management/capacity_management_client_composite_operations.py @@ -0,0 +1,318 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + +import oci # noqa: F401 +from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401 + + +class CapacityManagementClientCompositeOperations(object): + """ + This class provides a wrapper around :py:class:`~oci.capacity_management.CapacityManagementClient` and offers convenience methods + for operations that would otherwise need to be chained together. For example, instead of performing an action + on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource + to enter a given state, you can call a single method in this class to accomplish the same functionality + """ + + def __init__(self, client, **kwargs): + """ + Creates a new CapacityManagementClientCompositeOperations object + + :param CapacityManagementClient client: + The service client which will be wrapped by this object + """ + self.client = client + + def create_occ_availability_catalog_and_wait_for_state(self, create_occ_availability_catalog_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.capacity_management.CapacityManagementClient.create_occ_availability_catalog` and waits for the :py:class:`~oci.capacity_management.models.OccAvailabilityCatalog` acted upon + to enter the given state(s). + + :param oci.capacity_management.models.CreateOccAvailabilityCatalogDetails create_occ_availability_catalog_details: (required) + The request details for creating an availability catalog. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.capacity_management.models.OccAvailabilityCatalog.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.capacity_management.CapacityManagementClient.create_occ_availability_catalog` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.create_occ_availability_catalog(create_occ_availability_catalog_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + occ_availability_catalog_id = operation_result.data.id + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_occ_availability_catalog(occ_availability_catalog_id), # noqa: F821 + evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except (NameError, TypeError) as e: + if not e.args: + e.args = ('',) + e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def create_occ_capacity_request_and_wait_for_state(self, create_occ_capacity_request_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.capacity_management.CapacityManagementClient.create_occ_capacity_request` and waits for the :py:class:`~oci.capacity_management.models.OccCapacityRequest` acted upon + to enter the given state(s). + + :param oci.capacity_management.models.CreateOccCapacityRequestDetails create_occ_capacity_request_details: (required) + The request details for creating a capacity request. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.capacity_management.models.OccCapacityRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.capacity_management.CapacityManagementClient.create_occ_capacity_request` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.create_occ_capacity_request(create_occ_capacity_request_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + occ_capacity_request_id = operation_result.data.id + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_occ_capacity_request(occ_capacity_request_id), # noqa: F821 + evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except (NameError, TypeError) as e: + if not e.args: + e.args = ('',) + e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def delete_occ_availability_catalog_and_wait_for_state(self, occ_availability_catalog_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.capacity_management.CapacityManagementClient.delete_occ_availability_catalog` and waits for the :py:class:`~oci.capacity_management.models.OccAvailabilityCatalog` acted upon + to enter the given state(s). + + :param str occ_availability_catalog_id: (required) + The OCID of the availability catalog. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.capacity_management.models.OccAvailabilityCatalog.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.capacity_management.CapacityManagementClient.delete_occ_availability_catalog` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + initial_get_result = self.client.get_occ_availability_catalog(occ_availability_catalog_id) + operation_result = None + try: + operation_result = self.client.delete_occ_availability_catalog(occ_availability_catalog_id, **operation_kwargs) + except oci.exceptions.ServiceError as e: + if e.status == 404: + return WAIT_RESOURCE_NOT_FOUND + else: + raise e + + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + + try: + if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False): + self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_occ_availability_catalog, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended") + else: + """ + If the user does not send in this value, we set it to True by default. + We are doing this because during a delete resource scenario and waiting on its state, the service can + return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail + """ + waiter_kwargs["succeed_on_not_found"] = True + waiter_result = oci.wait_until( + self.client, + initial_get_result, # noqa: F821 + evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except (NameError, TypeError) as e: + if not e.args: + e.args = ('',) + e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def delete_occ_capacity_request_and_wait_for_state(self, occ_capacity_request_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.capacity_management.CapacityManagementClient.delete_occ_capacity_request` and waits for the :py:class:`~oci.capacity_management.models.OccCapacityRequest` acted upon + to enter the given state(s). + + :param str occ_capacity_request_id: (required) + The OCID of the capacity request. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.capacity_management.models.OccCapacityRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.capacity_management.CapacityManagementClient.delete_occ_capacity_request` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + initial_get_result = self.client.get_occ_capacity_request(occ_capacity_request_id) + operation_result = None + try: + operation_result = self.client.delete_occ_capacity_request(occ_capacity_request_id, **operation_kwargs) + except oci.exceptions.ServiceError as e: + if e.status == 404: + return WAIT_RESOURCE_NOT_FOUND + else: + raise e + + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + + try: + if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False): + self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_occ_capacity_request, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended") + else: + """ + If the user does not send in this value, we set it to True by default. + We are doing this because during a delete resource scenario and waiting on its state, the service can + return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail + """ + waiter_kwargs["succeed_on_not_found"] = True + waiter_result = oci.wait_until( + self.client, + initial_get_result, # noqa: F821 + evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except (NameError, TypeError) as e: + if not e.args: + e.args = ('',) + e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def update_occ_availability_catalog_and_wait_for_state(self, update_occ_availability_catalog_details, occ_availability_catalog_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.capacity_management.CapacityManagementClient.update_occ_availability_catalog` and waits for the :py:class:`~oci.capacity_management.models.OccAvailabilityCatalog` acted upon + to enter the given state(s). + + :param oci.capacity_management.models.UpdateOccAvailabilityCatalogDetails update_occ_availability_catalog_details: (required) + Request to update the properties of the availability catalog. + + :param str occ_availability_catalog_id: (required) + The OCID of the availability catalog. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.capacity_management.models.OccAvailabilityCatalog.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.capacity_management.CapacityManagementClient.update_occ_availability_catalog` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.update_occ_availability_catalog(update_occ_availability_catalog_details, occ_availability_catalog_id, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + occ_availability_catalog_id = operation_result.data.id + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_occ_availability_catalog(occ_availability_catalog_id), # noqa: F821 + evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except (NameError, TypeError) as e: + if not e.args: + e.args = ('',) + e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def update_occ_capacity_request_and_wait_for_state(self, update_occ_capacity_request_details, occ_capacity_request_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.capacity_management.CapacityManagementClient.update_occ_capacity_request` and waits for the :py:class:`~oci.capacity_management.models.OccCapacityRequest` acted upon + to enter the given state(s). + + :param oci.capacity_management.models.UpdateOccCapacityRequestDetails update_occ_capacity_request_details: (required) + Request to update the properties of the capacity request. + + :param str occ_capacity_request_id: (required) + The OCID of the capacity request. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.capacity_management.models.OccCapacityRequest.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.capacity_management.CapacityManagementClient.update_occ_capacity_request` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.update_occ_capacity_request(update_occ_capacity_request_details, occ_capacity_request_id, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + occ_capacity_request_id = operation_result.data.id + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_occ_capacity_request(occ_capacity_request_id), # noqa: F821 + evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except (NameError, TypeError) as e: + if not e.args: + e.args = ('',) + e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) diff --git a/src/oci/capacity_management/models/__init__.py b/src/oci/capacity_management/models/__init__.py new file mode 100644 index 0000000000..6684016c2f --- /dev/null +++ b/src/oci/capacity_management/models/__init__.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + +from __future__ import absolute_import + +from .create_occ_availability_catalog_details import CreateOccAvailabilityCatalogDetails +from .create_occ_capacity_request_details import CreateOccCapacityRequestDetails +from .metadata_details import MetadataDetails +from .occ_availability_catalog import OccAvailabilityCatalog +from .occ_availability_catalog_collection import OccAvailabilityCatalogCollection +from .occ_availability_catalog_summary import OccAvailabilityCatalogSummary +from .occ_availability_collection import OccAvailabilityCollection +from .occ_availability_summary import OccAvailabilitySummary +from .occ_capacity_request import OccCapacityRequest +from .occ_capacity_request_base_details import OccCapacityRequestBaseDetails +from .occ_capacity_request_collection import OccCapacityRequestCollection +from .occ_capacity_request_compute_details import OccCapacityRequestComputeDetails +from .occ_capacity_request_summary import OccCapacityRequestSummary +from .occ_customer import OccCustomer +from .occ_customer_group import OccCustomerGroup +from .occ_customer_group_collection import OccCustomerGroupCollection +from .occ_customer_group_summary import OccCustomerGroupSummary +from .patch_insert_instruction import PatchInsertInstruction +from .patch_insert_multiple_instruction import PatchInsertMultipleInstruction +from .patch_instruction import PatchInstruction +from .patch_merge_instruction import PatchMergeInstruction +from .patch_move_instruction import PatchMoveInstruction +from .patch_occ_capacity_request_details import PatchOccCapacityRequestDetails +from .patch_prohibit_instruction import PatchProhibitInstruction +from .patch_remove_instruction import PatchRemoveInstruction +from .patch_replace_instruction import PatchReplaceInstruction +from .patch_require_instruction import PatchRequireInstruction +from .update_internal_occ_capacity_request_details import UpdateInternalOccCapacityRequestDetails +from .update_occ_availability_catalog_details import UpdateOccAvailabilityCatalogDetails +from .update_occ_capacity_request_details import UpdateOccCapacityRequestDetails + +# Maps type names to classes for capacity_management services. +capacity_management_type_mapping = { + "CreateOccAvailabilityCatalogDetails": CreateOccAvailabilityCatalogDetails, + "CreateOccCapacityRequestDetails": CreateOccCapacityRequestDetails, + "MetadataDetails": MetadataDetails, + "OccAvailabilityCatalog": OccAvailabilityCatalog, + "OccAvailabilityCatalogCollection": OccAvailabilityCatalogCollection, + "OccAvailabilityCatalogSummary": OccAvailabilityCatalogSummary, + "OccAvailabilityCollection": OccAvailabilityCollection, + "OccAvailabilitySummary": OccAvailabilitySummary, + "OccCapacityRequest": OccCapacityRequest, + "OccCapacityRequestBaseDetails": OccCapacityRequestBaseDetails, + "OccCapacityRequestCollection": OccCapacityRequestCollection, + "OccCapacityRequestComputeDetails": OccCapacityRequestComputeDetails, + "OccCapacityRequestSummary": OccCapacityRequestSummary, + "OccCustomer": OccCustomer, + "OccCustomerGroup": OccCustomerGroup, + "OccCustomerGroupCollection": OccCustomerGroupCollection, + "OccCustomerGroupSummary": OccCustomerGroupSummary, + "PatchInsertInstruction": PatchInsertInstruction, + "PatchInsertMultipleInstruction": PatchInsertMultipleInstruction, + "PatchInstruction": PatchInstruction, + "PatchMergeInstruction": PatchMergeInstruction, + "PatchMoveInstruction": PatchMoveInstruction, + "PatchOccCapacityRequestDetails": PatchOccCapacityRequestDetails, + "PatchProhibitInstruction": PatchProhibitInstruction, + "PatchRemoveInstruction": PatchRemoveInstruction, + "PatchReplaceInstruction": PatchReplaceInstruction, + "PatchRequireInstruction": PatchRequireInstruction, + "UpdateInternalOccCapacityRequestDetails": UpdateInternalOccCapacityRequestDetails, + "UpdateOccAvailabilityCatalogDetails": UpdateOccAvailabilityCatalogDetails, + "UpdateOccCapacityRequestDetails": UpdateOccCapacityRequestDetails +} diff --git a/src/oci/capacity_management/models/create_occ_availability_catalog_details.py b/src/oci/capacity_management/models/create_occ_availability_catalog_details.py new file mode 100644 index 0000000000..5ba6678b60 --- /dev/null +++ b/src/oci/capacity_management/models/create_occ_availability_catalog_details.py @@ -0,0 +1,332 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class CreateOccAvailabilityCatalogDetails(object): + """ + Details about the create request for the availability catalog. + """ + + #: A constant which can be used with the namespace property of a CreateOccAvailabilityCatalogDetails. + #: This constant has a value of "COMPUTE" + NAMESPACE_COMPUTE = "COMPUTE" + + def __init__(self, **kwargs): + """ + Initializes a new CreateOccAvailabilityCatalogDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param occ_customer_group_id: + The value to assign to the occ_customer_group_id property of this CreateOccAvailabilityCatalogDetails. + :type occ_customer_group_id: str + + :param namespace: + The value to assign to the namespace property of this CreateOccAvailabilityCatalogDetails. + Allowed values for this property are: "COMPUTE" + :type namespace: str + + :param compartment_id: + The value to assign to the compartment_id property of this CreateOccAvailabilityCatalogDetails. + :type compartment_id: str + + :param base64_encoded_catalog_details: + The value to assign to the base64_encoded_catalog_details property of this CreateOccAvailabilityCatalogDetails. + :type base64_encoded_catalog_details: str + + :param metadata_details: + The value to assign to the metadata_details property of this CreateOccAvailabilityCatalogDetails. + :type metadata_details: oci.capacity_management.models.MetadataDetails + + :param display_name: + The value to assign to the display_name property of this CreateOccAvailabilityCatalogDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this CreateOccAvailabilityCatalogDetails. + :type description: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this CreateOccAvailabilityCatalogDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this CreateOccAvailabilityCatalogDetails. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'occ_customer_group_id': 'str', + 'namespace': 'str', + 'compartment_id': 'str', + 'base64_encoded_catalog_details': 'str', + 'metadata_details': 'MetadataDetails', + 'display_name': 'str', + 'description': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'occ_customer_group_id': 'occCustomerGroupId', + 'namespace': 'namespace', + 'compartment_id': 'compartmentId', + 'base64_encoded_catalog_details': 'base64EncodedCatalogDetails', + 'metadata_details': 'metadataDetails', + 'display_name': 'displayName', + 'description': 'description', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._occ_customer_group_id = None + self._namespace = None + self._compartment_id = None + self._base64_encoded_catalog_details = None + self._metadata_details = None + self._display_name = None + self._description = None + self._freeform_tags = None + self._defined_tags = None + + @property + def occ_customer_group_id(self): + """ + **[Required]** Gets the occ_customer_group_id of this CreateOccAvailabilityCatalogDetails. + The OCID of the customer group. + + + :return: The occ_customer_group_id of this CreateOccAvailabilityCatalogDetails. + :rtype: str + """ + return self._occ_customer_group_id + + @occ_customer_group_id.setter + def occ_customer_group_id(self, occ_customer_group_id): + """ + Sets the occ_customer_group_id of this CreateOccAvailabilityCatalogDetails. + The OCID of the customer group. + + + :param occ_customer_group_id: The occ_customer_group_id of this CreateOccAvailabilityCatalogDetails. + :type: str + """ + self._occ_customer_group_id = occ_customer_group_id + + @property + def namespace(self): + """ + **[Required]** Gets the namespace of this CreateOccAvailabilityCatalogDetails. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + Allowed values for this property are: "COMPUTE" + + + :return: The namespace of this CreateOccAvailabilityCatalogDetails. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this CreateOccAvailabilityCatalogDetails. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + + :param namespace: The namespace of this CreateOccAvailabilityCatalogDetails. + :type: str + """ + allowed_values = ["COMPUTE"] + if not value_allowed_none_or_none_sentinel(namespace, allowed_values): + raise ValueError( + f"Invalid value for `namespace`, must be None or one of {allowed_values}" + ) + self._namespace = namespace + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this CreateOccAvailabilityCatalogDetails. + Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed. + + + :return: The compartment_id of this CreateOccAvailabilityCatalogDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this CreateOccAvailabilityCatalogDetails. + Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed. + + + :param compartment_id: The compartment_id of this CreateOccAvailabilityCatalogDetails. + :type: str + """ + self._compartment_id = compartment_id + + @property + def base64_encoded_catalog_details(self): + """ + **[Required]** Gets the base64_encoded_catalog_details of this CreateOccAvailabilityCatalogDetails. + The base 64 encoded string corresponding to the catalog file contents. + + + :return: The base64_encoded_catalog_details of this CreateOccAvailabilityCatalogDetails. + :rtype: str + """ + return self._base64_encoded_catalog_details + + @base64_encoded_catalog_details.setter + def base64_encoded_catalog_details(self, base64_encoded_catalog_details): + """ + Sets the base64_encoded_catalog_details of this CreateOccAvailabilityCatalogDetails. + The base 64 encoded string corresponding to the catalog file contents. + + + :param base64_encoded_catalog_details: The base64_encoded_catalog_details of this CreateOccAvailabilityCatalogDetails. + :type: str + """ + self._base64_encoded_catalog_details = base64_encoded_catalog_details + + @property + def metadata_details(self): + """ + Gets the metadata_details of this CreateOccAvailabilityCatalogDetails. + + :return: The metadata_details of this CreateOccAvailabilityCatalogDetails. + :rtype: oci.capacity_management.models.MetadataDetails + """ + return self._metadata_details + + @metadata_details.setter + def metadata_details(self, metadata_details): + """ + Sets the metadata_details of this CreateOccAvailabilityCatalogDetails. + + :param metadata_details: The metadata_details of this CreateOccAvailabilityCatalogDetails. + :type: oci.capacity_management.models.MetadataDetails + """ + self._metadata_details = metadata_details + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this CreateOccAvailabilityCatalogDetails. + The display name of the availability catalog. + + + :return: The display_name of this CreateOccAvailabilityCatalogDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this CreateOccAvailabilityCatalogDetails. + The display name of the availability catalog. + + + :param display_name: The display_name of this CreateOccAvailabilityCatalogDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this CreateOccAvailabilityCatalogDetails. + Additional information about the availability catalog. + + + :return: The description of this CreateOccAvailabilityCatalogDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this CreateOccAvailabilityCatalogDetails. + Additional information about the availability catalog. + + + :param description: The description of this CreateOccAvailabilityCatalogDetails. + :type: str + """ + self._description = description + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this CreateOccAvailabilityCatalogDetails. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :return: The freeform_tags of this CreateOccAvailabilityCatalogDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this CreateOccAvailabilityCatalogDetails. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :param freeform_tags: The freeform_tags of this CreateOccAvailabilityCatalogDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this CreateOccAvailabilityCatalogDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :return: The defined_tags of this CreateOccAvailabilityCatalogDetails. + :rtype: dict(str, dict(str, object)) + """ + return self._defined_tags + + @defined_tags.setter + def defined_tags(self, defined_tags): + """ + Sets the defined_tags of this CreateOccAvailabilityCatalogDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :param defined_tags: The defined_tags of this CreateOccAvailabilityCatalogDetails. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/create_occ_capacity_request_details.py b/src/oci/capacity_management/models/create_occ_capacity_request_details.py new file mode 100644 index 0000000000..048ed50ceb --- /dev/null +++ b/src/oci/capacity_management/models/create_occ_capacity_request_details.py @@ -0,0 +1,476 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class CreateOccCapacityRequestDetails(object): + """ + Details about the create request for the capacity request. + """ + + #: A constant which can be used with the namespace property of a CreateOccCapacityRequestDetails. + #: This constant has a value of "COMPUTE" + NAMESPACE_COMPUTE = "COMPUTE" + + #: A constant which can be used with the request_state property of a CreateOccCapacityRequestDetails. + #: This constant has a value of "CREATED" + REQUEST_STATE_CREATED = "CREATED" + + #: A constant which can be used with the request_state property of a CreateOccCapacityRequestDetails. + #: This constant has a value of "SUBMITTED" + REQUEST_STATE_SUBMITTED = "SUBMITTED" + + def __init__(self, **kwargs): + """ + Initializes a new CreateOccCapacityRequestDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param compartment_id: + The value to assign to the compartment_id property of this CreateOccCapacityRequestDetails. + :type compartment_id: str + + :param occ_availability_catalog_id: + The value to assign to the occ_availability_catalog_id property of this CreateOccCapacityRequestDetails. + :type occ_availability_catalog_id: str + + :param namespace: + The value to assign to the namespace property of this CreateOccCapacityRequestDetails. + Allowed values for this property are: "COMPUTE" + :type namespace: str + + :param region: + The value to assign to the region property of this CreateOccCapacityRequestDetails. + :type region: str + + :param display_name: + The value to assign to the display_name property of this CreateOccCapacityRequestDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this CreateOccCapacityRequestDetails. + :type description: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this CreateOccCapacityRequestDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this CreateOccCapacityRequestDetails. + :type defined_tags: dict(str, dict(str, object)) + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this CreateOccCapacityRequestDetails. + :type lifecycle_details: str + + :param availability_domain: + The value to assign to the availability_domain property of this CreateOccCapacityRequestDetails. + :type availability_domain: str + + :param date_expected_capacity_handover: + The value to assign to the date_expected_capacity_handover property of this CreateOccCapacityRequestDetails. + :type date_expected_capacity_handover: datetime + + :param request_state: + The value to assign to the request_state property of this CreateOccCapacityRequestDetails. + Allowed values for this property are: "CREATED", "SUBMITTED" + :type request_state: str + + :param details: + The value to assign to the details property of this CreateOccCapacityRequestDetails. + :type details: list[oci.capacity_management.models.OccCapacityRequestBaseDetails] + + """ + self.swagger_types = { + 'compartment_id': 'str', + 'occ_availability_catalog_id': 'str', + 'namespace': 'str', + 'region': 'str', + 'display_name': 'str', + 'description': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'lifecycle_details': 'str', + 'availability_domain': 'str', + 'date_expected_capacity_handover': 'datetime', + 'request_state': 'str', + 'details': 'list[OccCapacityRequestBaseDetails]' + } + + self.attribute_map = { + 'compartment_id': 'compartmentId', + 'occ_availability_catalog_id': 'occAvailabilityCatalogId', + 'namespace': 'namespace', + 'region': 'region', + 'display_name': 'displayName', + 'description': 'description', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'lifecycle_details': 'lifecycleDetails', + 'availability_domain': 'availabilityDomain', + 'date_expected_capacity_handover': 'dateExpectedCapacityHandover', + 'request_state': 'requestState', + 'details': 'details' + } + + self._compartment_id = None + self._occ_availability_catalog_id = None + self._namespace = None + self._region = None + self._display_name = None + self._description = None + self._freeform_tags = None + self._defined_tags = None + self._lifecycle_details = None + self._availability_domain = None + self._date_expected_capacity_handover = None + self._request_state = None + self._details = None + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this CreateOccCapacityRequestDetails. + Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed. + + + :return: The compartment_id of this CreateOccCapacityRequestDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this CreateOccCapacityRequestDetails. + Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed. + + + :param compartment_id: The compartment_id of this CreateOccCapacityRequestDetails. + :type: str + """ + self._compartment_id = compartment_id + + @property + def occ_availability_catalog_id(self): + """ + **[Required]** Gets the occ_availability_catalog_id of this CreateOccCapacityRequestDetails. + The OCID of the availability catalog against which capacity request is made. + + + :return: The occ_availability_catalog_id of this CreateOccCapacityRequestDetails. + :rtype: str + """ + return self._occ_availability_catalog_id + + @occ_availability_catalog_id.setter + def occ_availability_catalog_id(self, occ_availability_catalog_id): + """ + Sets the occ_availability_catalog_id of this CreateOccCapacityRequestDetails. + The OCID of the availability catalog against which capacity request is made. + + + :param occ_availability_catalog_id: The occ_availability_catalog_id of this CreateOccCapacityRequestDetails. + :type: str + """ + self._occ_availability_catalog_id = occ_availability_catalog_id + + @property + def namespace(self): + """ + **[Required]** Gets the namespace of this CreateOccCapacityRequestDetails. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + Allowed values for this property are: "COMPUTE" + + + :return: The namespace of this CreateOccCapacityRequestDetails. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this CreateOccCapacityRequestDetails. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + + :param namespace: The namespace of this CreateOccCapacityRequestDetails. + :type: str + """ + allowed_values = ["COMPUTE"] + if not value_allowed_none_or_none_sentinel(namespace, allowed_values): + raise ValueError( + f"Invalid value for `namespace`, must be None or one of {allowed_values}" + ) + self._namespace = namespace + + @property + def region(self): + """ + **[Required]** Gets the region of this CreateOccCapacityRequestDetails. + The name of the region for which the capacity request is made. + + + :return: The region of this CreateOccCapacityRequestDetails. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """ + Sets the region of this CreateOccCapacityRequestDetails. + The name of the region for which the capacity request is made. + + + :param region: The region of this CreateOccCapacityRequestDetails. + :type: str + """ + self._region = region + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this CreateOccCapacityRequestDetails. + An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :return: The display_name of this CreateOccCapacityRequestDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this CreateOccCapacityRequestDetails. + An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :param display_name: The display_name of this CreateOccCapacityRequestDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this CreateOccCapacityRequestDetails. + Meaningful text about the capacity request. + + + :return: The description of this CreateOccCapacityRequestDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this CreateOccCapacityRequestDetails. + Meaningful text about the capacity request. + + + :param description: The description of this CreateOccCapacityRequestDetails. + :type: str + """ + self._description = description + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this CreateOccCapacityRequestDetails. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :return: The freeform_tags of this CreateOccCapacityRequestDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this CreateOccCapacityRequestDetails. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :param freeform_tags: The freeform_tags of this CreateOccCapacityRequestDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this CreateOccCapacityRequestDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :return: The defined_tags of this CreateOccCapacityRequestDetails. + :rtype: dict(str, dict(str, object)) + """ + return self._defined_tags + + @defined_tags.setter + def defined_tags(self, defined_tags): + """ + Sets the defined_tags of this CreateOccCapacityRequestDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :param defined_tags: The defined_tags of this CreateOccCapacityRequestDetails. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this CreateOccCapacityRequestDetails. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :return: The lifecycle_details of this CreateOccCapacityRequestDetails. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this CreateOccCapacityRequestDetails. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :param lifecycle_details: The lifecycle_details of this CreateOccCapacityRequestDetails. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def availability_domain(self): + """ + **[Required]** Gets the availability_domain of this CreateOccCapacityRequestDetails. + The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD. + + + :return: The availability_domain of this CreateOccCapacityRequestDetails. + :rtype: str + """ + return self._availability_domain + + @availability_domain.setter + def availability_domain(self, availability_domain): + """ + Sets the availability_domain of this CreateOccCapacityRequestDetails. + The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD. + + + :param availability_domain: The availability_domain of this CreateOccCapacityRequestDetails. + :type: str + """ + self._availability_domain = availability_domain + + @property + def date_expected_capacity_handover(self): + """ + **[Required]** Gets the date_expected_capacity_handover of this CreateOccCapacityRequestDetails. + The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled. + + + :return: The date_expected_capacity_handover of this CreateOccCapacityRequestDetails. + :rtype: datetime + """ + return self._date_expected_capacity_handover + + @date_expected_capacity_handover.setter + def date_expected_capacity_handover(self, date_expected_capacity_handover): + """ + Sets the date_expected_capacity_handover of this CreateOccCapacityRequestDetails. + The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled. + + + :param date_expected_capacity_handover: The date_expected_capacity_handover of this CreateOccCapacityRequestDetails. + :type: datetime + """ + self._date_expected_capacity_handover = date_expected_capacity_handover + + @property + def request_state(self): + """ + Gets the request_state of this CreateOccCapacityRequestDetails. + The subset of request states available for creating the capacity request. + + Allowed values for this property are: "CREATED", "SUBMITTED" + + + :return: The request_state of this CreateOccCapacityRequestDetails. + :rtype: str + """ + return self._request_state + + @request_state.setter + def request_state(self, request_state): + """ + Sets the request_state of this CreateOccCapacityRequestDetails. + The subset of request states available for creating the capacity request. + + + :param request_state: The request_state of this CreateOccCapacityRequestDetails. + :type: str + """ + allowed_values = ["CREATED", "SUBMITTED"] + if not value_allowed_none_or_none_sentinel(request_state, allowed_values): + raise ValueError( + f"Invalid value for `request_state`, must be None or one of {allowed_values}" + ) + self._request_state = request_state + + @property + def details(self): + """ + **[Required]** Gets the details of this CreateOccCapacityRequestDetails. + A list of different resources requested by the user. + + + :return: The details of this CreateOccCapacityRequestDetails. + :rtype: list[oci.capacity_management.models.OccCapacityRequestBaseDetails] + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this CreateOccCapacityRequestDetails. + A list of different resources requested by the user. + + + :param details: The details of this CreateOccCapacityRequestDetails. + :type: list[oci.capacity_management.models.OccCapacityRequestBaseDetails] + """ + self._details = details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/metadata_details.py b/src/oci/capacity_management/models/metadata_details.py new file mode 100644 index 0000000000..1be40341dd --- /dev/null +++ b/src/oci/capacity_management/models/metadata_details.py @@ -0,0 +1,84 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class MetadataDetails(object): + """ + Used for representing the metadata of the catalog. This denotes the version and format of the CSV file for parsing. + """ + + #: A constant which can be used with the format_version property of a MetadataDetails. + #: This constant has a value of "V1" + FORMAT_VERSION_V1 = "V1" + + def __init__(self, **kwargs): + """ + Initializes a new MetadataDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param format_version: + The value to assign to the format_version property of this MetadataDetails. + Allowed values for this property are: "V1", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type format_version: str + + """ + self.swagger_types = { + 'format_version': 'str' + } + + self.attribute_map = { + 'format_version': 'formatVersion' + } + + self._format_version = None + + @property + def format_version(self): + """ + **[Required]** Gets the format_version of this MetadataDetails. + The version for the format of the catalog file being uploaded. + + Allowed values for this property are: "V1", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The format_version of this MetadataDetails. + :rtype: str + """ + return self._format_version + + @format_version.setter + def format_version(self, format_version): + """ + Sets the format_version of this MetadataDetails. + The version for the format of the catalog file being uploaded. + + + :param format_version: The format_version of this MetadataDetails. + :type: str + """ + allowed_values = ["V1"] + if not value_allowed_none_or_none_sentinel(format_version, allowed_values): + format_version = 'UNKNOWN_ENUM_VALUE' + self._format_version = format_version + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_availability_catalog.py b/src/oci/capacity_management/models/occ_availability_catalog.py new file mode 100644 index 0000000000..0e566964e3 --- /dev/null +++ b/src/oci/capacity_management/models/occ_availability_catalog.py @@ -0,0 +1,615 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccAvailabilityCatalog(object): + """ + Details of the availability catalog resource. + """ + + #: A constant which can be used with the namespace property of a OccAvailabilityCatalog. + #: This constant has a value of "COMPUTE" + NAMESPACE_COMPUTE = "COMPUTE" + + #: A constant which can be used with the catalog_state property of a OccAvailabilityCatalog. + #: This constant has a value of "NOT_UPLOADED" + CATALOG_STATE_NOT_UPLOADED = "NOT_UPLOADED" + + #: A constant which can be used with the catalog_state property of a OccAvailabilityCatalog. + #: This constant has a value of "UPLOAD_FAILED" + CATALOG_STATE_UPLOAD_FAILED = "UPLOAD_FAILED" + + #: A constant which can be used with the catalog_state property of a OccAvailabilityCatalog. + #: This constant has a value of "STAGED" + CATALOG_STATE_STAGED = "STAGED" + + #: A constant which can be used with the catalog_state property of a OccAvailabilityCatalog. + #: This constant has a value of "PUBLISHED" + CATALOG_STATE_PUBLISHED = "PUBLISHED" + + #: A constant which can be used with the catalog_state property of a OccAvailabilityCatalog. + #: This constant has a value of "OUTDATED" + CATALOG_STATE_OUTDATED = "OUTDATED" + + #: A constant which can be used with the catalog_state property of a OccAvailabilityCatalog. + #: This constant has a value of "DELETED" + CATALOG_STATE_DELETED = "DELETED" + + #: A constant which can be used with the lifecycle_state property of a OccAvailabilityCatalog. + #: This constant has a value of "CREATING" + LIFECYCLE_STATE_CREATING = "CREATING" + + #: A constant which can be used with the lifecycle_state property of a OccAvailabilityCatalog. + #: This constant has a value of "UPDATING" + LIFECYCLE_STATE_UPDATING = "UPDATING" + + #: A constant which can be used with the lifecycle_state property of a OccAvailabilityCatalog. + #: This constant has a value of "ACTIVE" + LIFECYCLE_STATE_ACTIVE = "ACTIVE" + + #: A constant which can be used with the lifecycle_state property of a OccAvailabilityCatalog. + #: This constant has a value of "DELETING" + LIFECYCLE_STATE_DELETING = "DELETING" + + #: A constant which can be used with the lifecycle_state property of a OccAvailabilityCatalog. + #: This constant has a value of "DELETED" + LIFECYCLE_STATE_DELETED = "DELETED" + + #: A constant which can be used with the lifecycle_state property of a OccAvailabilityCatalog. + #: This constant has a value of "FAILED" + LIFECYCLE_STATE_FAILED = "FAILED" + + def __init__(self, **kwargs): + """ + Initializes a new OccAvailabilityCatalog object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param id: + The value to assign to the id property of this OccAvailabilityCatalog. + :type id: str + + :param namespace: + The value to assign to the namespace property of this OccAvailabilityCatalog. + Allowed values for this property are: "COMPUTE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type namespace: str + + :param compartment_id: + The value to assign to the compartment_id property of this OccAvailabilityCatalog. + :type compartment_id: str + + :param display_name: + The value to assign to the display_name property of this OccAvailabilityCatalog. + :type display_name: str + + :param description: + The value to assign to the description property of this OccAvailabilityCatalog. + :type description: str + + :param occ_customer_group_id: + The value to assign to the occ_customer_group_id property of this OccAvailabilityCatalog. + :type occ_customer_group_id: str + + :param catalog_state: + The value to assign to the catalog_state property of this OccAvailabilityCatalog. + Allowed values for this property are: "NOT_UPLOADED", "UPLOAD_FAILED", "STAGED", "PUBLISHED", "OUTDATED", "DELETED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type catalog_state: str + + :param metadata_details: + The value to assign to the metadata_details property of this OccAvailabilityCatalog. + :type metadata_details: oci.capacity_management.models.MetadataDetails + + :param time_created: + The value to assign to the time_created property of this OccAvailabilityCatalog. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this OccAvailabilityCatalog. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this OccAvailabilityCatalog. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type lifecycle_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this OccAvailabilityCatalog. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this OccAvailabilityCatalog. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this OccAvailabilityCatalog. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this OccAvailabilityCatalog. + :type system_tags: dict(str, dict(str, object)) + + :param details: + The value to assign to the details property of this OccAvailabilityCatalog. + :type details: list[oci.capacity_management.models.OccAvailabilitySummary] + + """ + self.swagger_types = { + 'id': 'str', + 'namespace': 'str', + 'compartment_id': 'str', + 'display_name': 'str', + 'description': 'str', + 'occ_customer_group_id': 'str', + 'catalog_state': 'str', + 'metadata_details': 'MetadataDetails', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))', + 'details': 'list[OccAvailabilitySummary]' + } + + self.attribute_map = { + 'id': 'id', + 'namespace': 'namespace', + 'compartment_id': 'compartmentId', + 'display_name': 'displayName', + 'description': 'description', + 'occ_customer_group_id': 'occCustomerGroupId', + 'catalog_state': 'catalogState', + 'metadata_details': 'metadataDetails', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags', + 'details': 'details' + } + + self._id = None + self._namespace = None + self._compartment_id = None + self._display_name = None + self._description = None + self._occ_customer_group_id = None + self._catalog_state = None + self._metadata_details = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + self._details = None + + @property + def id(self): + """ + **[Required]** Gets the id of this OccAvailabilityCatalog. + The OCID of the availability catalog. + + + :return: The id of this OccAvailabilityCatalog. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this OccAvailabilityCatalog. + The OCID of the availability catalog. + + + :param id: The id of this OccAvailabilityCatalog. + :type: str + """ + self._id = id + + @property + def namespace(self): + """ + **[Required]** Gets the namespace of this OccAvailabilityCatalog. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + Allowed values for this property are: "COMPUTE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The namespace of this OccAvailabilityCatalog. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this OccAvailabilityCatalog. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + + :param namespace: The namespace of this OccAvailabilityCatalog. + :type: str + """ + allowed_values = ["COMPUTE"] + if not value_allowed_none_or_none_sentinel(namespace, allowed_values): + namespace = 'UNKNOWN_ENUM_VALUE' + self._namespace = namespace + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this OccAvailabilityCatalog. + The OCID of the tenancy where the availability catalog resides. + + + :return: The compartment_id of this OccAvailabilityCatalog. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this OccAvailabilityCatalog. + The OCID of the tenancy where the availability catalog resides. + + + :param compartment_id: The compartment_id of this OccAvailabilityCatalog. + :type: str + """ + self._compartment_id = compartment_id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this OccAvailabilityCatalog. + A user-friendly name for the availability catalog. + + + :return: The display_name of this OccAvailabilityCatalog. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this OccAvailabilityCatalog. + A user-friendly name for the availability catalog. + + + :param display_name: The display_name of this OccAvailabilityCatalog. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this OccAvailabilityCatalog. + Text information about the availability catalog. + + + :return: The description of this OccAvailabilityCatalog. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this OccAvailabilityCatalog. + Text information about the availability catalog. + + + :param description: The description of this OccAvailabilityCatalog. + :type: str + """ + self._description = description + + @property + def occ_customer_group_id(self): + """ + **[Required]** Gets the occ_customer_group_id of this OccAvailabilityCatalog. + The customer group OCID to which the availability catalog belongs. + + + :return: The occ_customer_group_id of this OccAvailabilityCatalog. + :rtype: str + """ + return self._occ_customer_group_id + + @occ_customer_group_id.setter + def occ_customer_group_id(self, occ_customer_group_id): + """ + Sets the occ_customer_group_id of this OccAvailabilityCatalog. + The customer group OCID to which the availability catalog belongs. + + + :param occ_customer_group_id: The occ_customer_group_id of this OccAvailabilityCatalog. + :type: str + """ + self._occ_customer_group_id = occ_customer_group_id + + @property + def catalog_state(self): + """ + **[Required]** Gets the catalog_state of this OccAvailabilityCatalog. + The different states associated with the availability catalog. + + Allowed values for this property are: "NOT_UPLOADED", "UPLOAD_FAILED", "STAGED", "PUBLISHED", "OUTDATED", "DELETED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The catalog_state of this OccAvailabilityCatalog. + :rtype: str + """ + return self._catalog_state + + @catalog_state.setter + def catalog_state(self, catalog_state): + """ + Sets the catalog_state of this OccAvailabilityCatalog. + The different states associated with the availability catalog. + + + :param catalog_state: The catalog_state of this OccAvailabilityCatalog. + :type: str + """ + allowed_values = ["NOT_UPLOADED", "UPLOAD_FAILED", "STAGED", "PUBLISHED", "OUTDATED", "DELETED"] + if not value_allowed_none_or_none_sentinel(catalog_state, allowed_values): + catalog_state = 'UNKNOWN_ENUM_VALUE' + self._catalog_state = catalog_state + + @property + def metadata_details(self): + """ + **[Required]** Gets the metadata_details of this OccAvailabilityCatalog. + + :return: The metadata_details of this OccAvailabilityCatalog. + :rtype: oci.capacity_management.models.MetadataDetails + """ + return self._metadata_details + + @metadata_details.setter + def metadata_details(self, metadata_details): + """ + Sets the metadata_details of this OccAvailabilityCatalog. + + :param metadata_details: The metadata_details of this OccAvailabilityCatalog. + :type: oci.capacity_management.models.MetadataDetails + """ + self._metadata_details = metadata_details + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this OccAvailabilityCatalog. + The time when the availability catalog was created. + + + :return: The time_created of this OccAvailabilityCatalog. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this OccAvailabilityCatalog. + The time when the availability catalog was created. + + + :param time_created: The time_created of this OccAvailabilityCatalog. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + **[Required]** Gets the time_updated of this OccAvailabilityCatalog. + The time when the availability catalog was last updated. + + + :return: The time_updated of this OccAvailabilityCatalog. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this OccAvailabilityCatalog. + The time when the availability catalog was last updated. + + + :param time_updated: The time_updated of this OccAvailabilityCatalog. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this OccAvailabilityCatalog. + The current lifecycle state of the resource. + + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The lifecycle_state of this OccAvailabilityCatalog. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this OccAvailabilityCatalog. + The current lifecycle state of the resource. + + + :param lifecycle_state: The lifecycle_state of this OccAvailabilityCatalog. + :type: str + """ + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): + lifecycle_state = 'UNKNOWN_ENUM_VALUE' + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this OccAvailabilityCatalog. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :return: The lifecycle_details of this OccAvailabilityCatalog. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this OccAvailabilityCatalog. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :param lifecycle_details: The lifecycle_details of this OccAvailabilityCatalog. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this OccAvailabilityCatalog. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :return: The freeform_tags of this OccAvailabilityCatalog. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this OccAvailabilityCatalog. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :param freeform_tags: The freeform_tags of this OccAvailabilityCatalog. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this OccAvailabilityCatalog. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :return: The defined_tags of this OccAvailabilityCatalog. + :rtype: dict(str, dict(str, object)) + """ + return self._defined_tags + + @defined_tags.setter + def defined_tags(self, defined_tags): + """ + Sets the defined_tags of this OccAvailabilityCatalog. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :param defined_tags: The defined_tags of this OccAvailabilityCatalog. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this OccAvailabilityCatalog. + System tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :return: The system_tags of this OccAvailabilityCatalog. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this OccAvailabilityCatalog. + System tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :param system_tags: The system_tags of this OccAvailabilityCatalog. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + + @property + def details(self): + """ + Gets the details of this OccAvailabilityCatalog. + Details about capacity available for different resources in catalog. + + + :return: The details of this OccAvailabilityCatalog. + :rtype: list[oci.capacity_management.models.OccAvailabilitySummary] + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this OccAvailabilityCatalog. + Details about capacity available for different resources in catalog. + + + :param details: The details of this OccAvailabilityCatalog. + :type: list[oci.capacity_management.models.OccAvailabilitySummary] + """ + self._details = details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_availability_catalog_collection.py b/src/oci/capacity_management/models/occ_availability_catalog_collection.py new file mode 100644 index 0000000000..1791510939 --- /dev/null +++ b/src/oci/capacity_management/models/occ_availability_catalog_collection.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccAvailabilityCatalogCollection(object): + """ + A list of availability catalogs. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OccAvailabilityCatalogCollection object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param items: + The value to assign to the items property of this OccAvailabilityCatalogCollection. + :type items: list[oci.capacity_management.models.OccAvailabilityCatalogSummary] + + """ + self.swagger_types = { + 'items': 'list[OccAvailabilityCatalogSummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this OccAvailabilityCatalogCollection. + An array of availability catalogs. + + + :return: The items of this OccAvailabilityCatalogCollection. + :rtype: list[oci.capacity_management.models.OccAvailabilityCatalogSummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this OccAvailabilityCatalogCollection. + An array of availability catalogs. + + + :param items: The items of this OccAvailabilityCatalogCollection. + :type: list[oci.capacity_management.models.OccAvailabilityCatalogSummary] + """ + self._items = items + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_availability_catalog_summary.py b/src/oci/capacity_management/models/occ_availability_catalog_summary.py new file mode 100644 index 0000000000..74577fc943 --- /dev/null +++ b/src/oci/capacity_management/models/occ_availability_catalog_summary.py @@ -0,0 +1,520 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccAvailabilityCatalogSummary(object): + """ + A catalog containing resource availability details for a customer. + """ + + #: A constant which can be used with the namespace property of a OccAvailabilityCatalogSummary. + #: This constant has a value of "COMPUTE" + NAMESPACE_COMPUTE = "COMPUTE" + + def __init__(self, **kwargs): + """ + Initializes a new OccAvailabilityCatalogSummary object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param id: + The value to assign to the id property of this OccAvailabilityCatalogSummary. + :type id: str + + :param namespace: + The value to assign to the namespace property of this OccAvailabilityCatalogSummary. + Allowed values for this property are: "COMPUTE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type namespace: str + + :param compartment_id: + The value to assign to the compartment_id property of this OccAvailabilityCatalogSummary. + :type compartment_id: str + + :param display_name: + The value to assign to the display_name property of this OccAvailabilityCatalogSummary. + :type display_name: str + + :param description: + The value to assign to the description property of this OccAvailabilityCatalogSummary. + :type description: str + + :param occ_customer_group_id: + The value to assign to the occ_customer_group_id property of this OccAvailabilityCatalogSummary. + :type occ_customer_group_id: str + + :param catalog_state: + The value to assign to the catalog_state property of this OccAvailabilityCatalogSummary. + :type catalog_state: str + + :param metadata_details: + The value to assign to the metadata_details property of this OccAvailabilityCatalogSummary. + :type metadata_details: oci.capacity_management.models.MetadataDetails + + :param time_created: + The value to assign to the time_created property of this OccAvailabilityCatalogSummary. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this OccAvailabilityCatalogSummary. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this OccAvailabilityCatalogSummary. + :type lifecycle_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this OccAvailabilityCatalogSummary. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this OccAvailabilityCatalogSummary. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this OccAvailabilityCatalogSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this OccAvailabilityCatalogSummary. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'namespace': 'str', + 'compartment_id': 'str', + 'display_name': 'str', + 'description': 'str', + 'occ_customer_group_id': 'str', + 'catalog_state': 'str', + 'metadata_details': 'MetadataDetails', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'id': 'id', + 'namespace': 'namespace', + 'compartment_id': 'compartmentId', + 'display_name': 'displayName', + 'description': 'description', + 'occ_customer_group_id': 'occCustomerGroupId', + 'catalog_state': 'catalogState', + 'metadata_details': 'metadataDetails', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._namespace = None + self._compartment_id = None + self._display_name = None + self._description = None + self._occ_customer_group_id = None + self._catalog_state = None + self._metadata_details = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this OccAvailabilityCatalogSummary. + The OCID of the availability catalog. + + + :return: The id of this OccAvailabilityCatalogSummary. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this OccAvailabilityCatalogSummary. + The OCID of the availability catalog. + + + :param id: The id of this OccAvailabilityCatalogSummary. + :type: str + """ + self._id = id + + @property + def namespace(self): + """ + **[Required]** Gets the namespace of this OccAvailabilityCatalogSummary. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + Allowed values for this property are: "COMPUTE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The namespace of this OccAvailabilityCatalogSummary. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this OccAvailabilityCatalogSummary. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + + :param namespace: The namespace of this OccAvailabilityCatalogSummary. + :type: str + """ + allowed_values = ["COMPUTE"] + if not value_allowed_none_or_none_sentinel(namespace, allowed_values): + namespace = 'UNKNOWN_ENUM_VALUE' + self._namespace = namespace + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this OccAvailabilityCatalogSummary. + The OCID of the tenancy where the availability catalog resides. + + + :return: The compartment_id of this OccAvailabilityCatalogSummary. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this OccAvailabilityCatalogSummary. + The OCID of the tenancy where the availability catalog resides. + + + :param compartment_id: The compartment_id of this OccAvailabilityCatalogSummary. + :type: str + """ + self._compartment_id = compartment_id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this OccAvailabilityCatalogSummary. + An user-friendly name for the availability catalog. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :return: The display_name of this OccAvailabilityCatalogSummary. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this OccAvailabilityCatalogSummary. + An user-friendly name for the availability catalog. Does not have to be unique, and it's changeable. Avoid entering confidential information. + + + :param display_name: The display_name of this OccAvailabilityCatalogSummary. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this OccAvailabilityCatalogSummary. + Text information about the availability catalog. + + + :return: The description of this OccAvailabilityCatalogSummary. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this OccAvailabilityCatalogSummary. + Text information about the availability catalog. + + + :param description: The description of this OccAvailabilityCatalogSummary. + :type: str + """ + self._description = description + + @property + def occ_customer_group_id(self): + """ + **[Required]** Gets the occ_customer_group_id of this OccAvailabilityCatalogSummary. + The Customer Group OCID to which the availability catalog belongs. + + + :return: The occ_customer_group_id of this OccAvailabilityCatalogSummary. + :rtype: str + """ + return self._occ_customer_group_id + + @occ_customer_group_id.setter + def occ_customer_group_id(self, occ_customer_group_id): + """ + Sets the occ_customer_group_id of this OccAvailabilityCatalogSummary. + The Customer Group OCID to which the availability catalog belongs. + + + :param occ_customer_group_id: The occ_customer_group_id of this OccAvailabilityCatalogSummary. + :type: str + """ + self._occ_customer_group_id = occ_customer_group_id + + @property + def catalog_state(self): + """ + **[Required]** Gets the catalog_state of this OccAvailabilityCatalogSummary. + Represents whether this version of the availability catalog has been made available to the customer. The state is No by default. + + + :return: The catalog_state of this OccAvailabilityCatalogSummary. + :rtype: str + """ + return self._catalog_state + + @catalog_state.setter + def catalog_state(self, catalog_state): + """ + Sets the catalog_state of this OccAvailabilityCatalogSummary. + Represents whether this version of the availability catalog has been made available to the customer. The state is No by default. + + + :param catalog_state: The catalog_state of this OccAvailabilityCatalogSummary. + :type: str + """ + self._catalog_state = catalog_state + + @property + def metadata_details(self): + """ + **[Required]** Gets the metadata_details of this OccAvailabilityCatalogSummary. + + :return: The metadata_details of this OccAvailabilityCatalogSummary. + :rtype: oci.capacity_management.models.MetadataDetails + """ + return self._metadata_details + + @metadata_details.setter + def metadata_details(self, metadata_details): + """ + Sets the metadata_details of this OccAvailabilityCatalogSummary. + + :param metadata_details: The metadata_details of this OccAvailabilityCatalogSummary. + :type: oci.capacity_management.models.MetadataDetails + """ + self._metadata_details = metadata_details + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this OccAvailabilityCatalogSummary. + The time when the availability catalog was created. + + + :return: The time_created of this OccAvailabilityCatalogSummary. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this OccAvailabilityCatalogSummary. + The time when the availability catalog was created. + + + :param time_created: The time_created of this OccAvailabilityCatalogSummary. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + **[Required]** Gets the time_updated of this OccAvailabilityCatalogSummary. + The time when the availability catalog was last updated. + + + :return: The time_updated of this OccAvailabilityCatalogSummary. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this OccAvailabilityCatalogSummary. + The time when the availability catalog was last updated. + + + :param time_updated: The time_updated of this OccAvailabilityCatalogSummary. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this OccAvailabilityCatalogSummary. + The current lifecycle state of the customer group. + + + :return: The lifecycle_state of this OccAvailabilityCatalogSummary. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this OccAvailabilityCatalogSummary. + The current lifecycle state of the customer group. + + + :param lifecycle_state: The lifecycle_state of this OccAvailabilityCatalogSummary. + :type: str + """ + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this OccAvailabilityCatalogSummary. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :return: The lifecycle_details of this OccAvailabilityCatalogSummary. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this OccAvailabilityCatalogSummary. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :param lifecycle_details: The lifecycle_details of this OccAvailabilityCatalogSummary. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this OccAvailabilityCatalogSummary. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :return: The freeform_tags of this OccAvailabilityCatalogSummary. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this OccAvailabilityCatalogSummary. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :param freeform_tags: The freeform_tags of this OccAvailabilityCatalogSummary. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this OccAvailabilityCatalogSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :return: The defined_tags of this OccAvailabilityCatalogSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._defined_tags + + @defined_tags.setter + def defined_tags(self, defined_tags): + """ + Sets the defined_tags of this OccAvailabilityCatalogSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :param defined_tags: The defined_tags of this OccAvailabilityCatalogSummary. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this OccAvailabilityCatalogSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :return: The system_tags of this OccAvailabilityCatalogSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this OccAvailabilityCatalogSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :param system_tags: The system_tags of this OccAvailabilityCatalogSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_availability_collection.py b/src/oci/capacity_management/models/occ_availability_collection.py new file mode 100644 index 0000000000..d977ee4eb4 --- /dev/null +++ b/src/oci/capacity_management/models/occ_availability_collection.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccAvailabilityCollection(object): + """ + A list of capacity constraints. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OccAvailabilityCollection object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param items: + The value to assign to the items property of this OccAvailabilityCollection. + :type items: list[oci.capacity_management.models.OccAvailabilitySummary] + + """ + self.swagger_types = { + 'items': 'list[OccAvailabilitySummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this OccAvailabilityCollection. + An array of capacity constraints. + + + :return: The items of this OccAvailabilityCollection. + :rtype: list[oci.capacity_management.models.OccAvailabilitySummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this OccAvailabilityCollection. + An array of capacity constraints. + + + :param items: The items of this OccAvailabilityCollection. + :type: list[oci.capacity_management.models.OccAvailabilitySummary] + """ + self._items = items + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_availability_summary.py b/src/oci/capacity_management/models/occ_availability_summary.py new file mode 100644 index 0000000000..8101c0813f --- /dev/null +++ b/src/oci/capacity_management/models/occ_availability_summary.py @@ -0,0 +1,368 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccAvailabilitySummary(object): + """ + The details about the available capacity and constraints for different resource types present in the availability catalog. + """ + + #: A constant which can be used with the namespace property of a OccAvailabilitySummary. + #: This constant has a value of "COMPUTE" + NAMESPACE_COMPUTE = "COMPUTE" + + #: A constant which can be used with the resource_type property of a OccAvailabilitySummary. + #: This constant has a value of "SERVER_HW" + RESOURCE_TYPE_SERVER_HW = "SERVER_HW" + + #: A constant which can be used with the resource_type property of a OccAvailabilitySummary. + #: This constant has a value of "CAPACITY_CONSTRAINT" + RESOURCE_TYPE_CAPACITY_CONSTRAINT = "CAPACITY_CONSTRAINT" + + #: A constant which can be used with the workload_type property of a OccAvailabilitySummary. + #: This constant has a value of "GENERIC" + WORKLOAD_TYPE_GENERIC = "GENERIC" + + #: A constant which can be used with the workload_type property of a OccAvailabilitySummary. + #: This constant has a value of "ROW" + WORKLOAD_TYPE_ROW = "ROW" + + #: A constant which can be used with the workload_type property of a OccAvailabilitySummary. + #: This constant has a value of "US_PROD" + WORKLOAD_TYPE_US_PROD = "US_PROD" + + def __init__(self, **kwargs): + """ + Initializes a new OccAvailabilitySummary object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param catalog_id: + The value to assign to the catalog_id property of this OccAvailabilitySummary. + :type catalog_id: str + + :param namespace: + The value to assign to the namespace property of this OccAvailabilitySummary. + Allowed values for this property are: "COMPUTE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type namespace: str + + :param date_final_customer_order: + The value to assign to the date_final_customer_order property of this OccAvailabilitySummary. + :type date_final_customer_order: datetime + + :param date_expected_capacity_handover: + The value to assign to the date_expected_capacity_handover property of this OccAvailabilitySummary. + :type date_expected_capacity_handover: datetime + + :param resource_type: + The value to assign to the resource_type property of this OccAvailabilitySummary. + Allowed values for this property are: "SERVER_HW", "CAPACITY_CONSTRAINT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type resource_type: str + + :param workload_type: + The value to assign to the workload_type property of this OccAvailabilitySummary. + Allowed values for this property are: "GENERIC", "ROW", "US_PROD", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type workload_type: str + + :param resource_name: + The value to assign to the resource_name property of this OccAvailabilitySummary. + :type resource_name: str + + :param available_quantity: + The value to assign to the available_quantity property of this OccAvailabilitySummary. + :type available_quantity: int + + :param unit: + The value to assign to the unit property of this OccAvailabilitySummary. + :type unit: str + + """ + self.swagger_types = { + 'catalog_id': 'str', + 'namespace': 'str', + 'date_final_customer_order': 'datetime', + 'date_expected_capacity_handover': 'datetime', + 'resource_type': 'str', + 'workload_type': 'str', + 'resource_name': 'str', + 'available_quantity': 'int', + 'unit': 'str' + } + + self.attribute_map = { + 'catalog_id': 'catalogId', + 'namespace': 'namespace', + 'date_final_customer_order': 'dateFinalCustomerOrder', + 'date_expected_capacity_handover': 'dateExpectedCapacityHandover', + 'resource_type': 'resourceType', + 'workload_type': 'workloadType', + 'resource_name': 'resourceName', + 'available_quantity': 'availableQuantity', + 'unit': 'unit' + } + + self._catalog_id = None + self._namespace = None + self._date_final_customer_order = None + self._date_expected_capacity_handover = None + self._resource_type = None + self._workload_type = None + self._resource_name = None + self._available_quantity = None + self._unit = None + + @property + def catalog_id(self): + """ + **[Required]** Gets the catalog_id of this OccAvailabilitySummary. + The OCID of the availability catalog. + + + :return: The catalog_id of this OccAvailabilitySummary. + :rtype: str + """ + return self._catalog_id + + @catalog_id.setter + def catalog_id(self, catalog_id): + """ + Sets the catalog_id of this OccAvailabilitySummary. + The OCID of the availability catalog. + + + :param catalog_id: The catalog_id of this OccAvailabilitySummary. + :type: str + """ + self._catalog_id = catalog_id + + @property + def namespace(self): + """ + **[Required]** Gets the namespace of this OccAvailabilitySummary. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + Allowed values for this property are: "COMPUTE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The namespace of this OccAvailabilitySummary. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this OccAvailabilitySummary. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + + :param namespace: The namespace of this OccAvailabilitySummary. + :type: str + """ + allowed_values = ["COMPUTE"] + if not value_allowed_none_or_none_sentinel(namespace, allowed_values): + namespace = 'UNKNOWN_ENUM_VALUE' + self._namespace = namespace + + @property + def date_final_customer_order(self): + """ + **[Required]** Gets the date_final_customer_order of this OccAvailabilitySummary. + The date by which the customer must place the order to have their capacity requirements met by the customer handover date. + + + :return: The date_final_customer_order of this OccAvailabilitySummary. + :rtype: datetime + """ + return self._date_final_customer_order + + @date_final_customer_order.setter + def date_final_customer_order(self, date_final_customer_order): + """ + Sets the date_final_customer_order of this OccAvailabilitySummary. + The date by which the customer must place the order to have their capacity requirements met by the customer handover date. + + + :param date_final_customer_order: The date_final_customer_order of this OccAvailabilitySummary. + :type: datetime + """ + self._date_final_customer_order = date_final_customer_order + + @property + def date_expected_capacity_handover(self): + """ + **[Required]** Gets the date_expected_capacity_handover of this OccAvailabilitySummary. + The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled. + + + :return: The date_expected_capacity_handover of this OccAvailabilitySummary. + :rtype: datetime + """ + return self._date_expected_capacity_handover + + @date_expected_capacity_handover.setter + def date_expected_capacity_handover(self, date_expected_capacity_handover): + """ + Sets the date_expected_capacity_handover of this OccAvailabilitySummary. + The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled. + + + :param date_expected_capacity_handover: The date_expected_capacity_handover of this OccAvailabilitySummary. + :type: datetime + """ + self._date_expected_capacity_handover = date_expected_capacity_handover + + @property + def resource_type(self): + """ + **[Required]** Gets the resource_type of this OccAvailabilitySummary. + The different types of resources against which customers can place capacity requests. + + Allowed values for this property are: "SERVER_HW", "CAPACITY_CONSTRAINT", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The resource_type of this OccAvailabilitySummary. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """ + Sets the resource_type of this OccAvailabilitySummary. + The different types of resources against which customers can place capacity requests. + + + :param resource_type: The resource_type of this OccAvailabilitySummary. + :type: str + """ + allowed_values = ["SERVER_HW", "CAPACITY_CONSTRAINT"] + if not value_allowed_none_or_none_sentinel(resource_type, allowed_values): + resource_type = 'UNKNOWN_ENUM_VALUE' + self._resource_type = resource_type + + @property + def workload_type(self): + """ + **[Required]** Gets the workload_type of this OccAvailabilitySummary. + The type of workload (Generic/ROW). + + Allowed values for this property are: "GENERIC", "ROW", "US_PROD", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The workload_type of this OccAvailabilitySummary. + :rtype: str + """ + return self._workload_type + + @workload_type.setter + def workload_type(self, workload_type): + """ + Sets the workload_type of this OccAvailabilitySummary. + The type of workload (Generic/ROW). + + + :param workload_type: The workload_type of this OccAvailabilitySummary. + :type: str + """ + allowed_values = ["GENERIC", "ROW", "US_PROD"] + if not value_allowed_none_or_none_sentinel(workload_type, allowed_values): + workload_type = 'UNKNOWN_ENUM_VALUE' + self._workload_type = workload_type + + @property + def resource_name(self): + """ + **[Required]** Gets the resource_name of this OccAvailabilitySummary. + The name of the resource that the customer can request. + + + :return: The resource_name of this OccAvailabilitySummary. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """ + Sets the resource_name of this OccAvailabilitySummary. + The name of the resource that the customer can request. + + + :param resource_name: The resource_name of this OccAvailabilitySummary. + :type: str + """ + self._resource_name = resource_name + + @property + def available_quantity(self): + """ + **[Required]** Gets the available_quantity of this OccAvailabilitySummary. + The quantity of available resource that the customer can request. + + + :return: The available_quantity of this OccAvailabilitySummary. + :rtype: int + """ + return self._available_quantity + + @available_quantity.setter + def available_quantity(self, available_quantity): + """ + Sets the available_quantity of this OccAvailabilitySummary. + The quantity of available resource that the customer can request. + + + :param available_quantity: The available_quantity of this OccAvailabilitySummary. + :type: int + """ + self._available_quantity = available_quantity + + @property + def unit(self): + """ + **[Required]** Gets the unit of this OccAvailabilitySummary. + The unit in which the resource available is measured. + + + :return: The unit of this OccAvailabilitySummary. + :rtype: str + """ + return self._unit + + @unit.setter + def unit(self, unit): + """ + Sets the unit of this OccAvailabilitySummary. + The unit in which the resource available is measured. + + + :param unit: The unit of this OccAvailabilitySummary. + :type: str + """ + self._unit = unit + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_capacity_request.py b/src/oci/capacity_management/models/occ_capacity_request.py new file mode 100644 index 0000000000..fedd4ad51c --- /dev/null +++ b/src/oci/capacity_management/models/occ_capacity_request.py @@ -0,0 +1,720 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccCapacityRequest(object): + """ + A single request of some quantity of a specific server type, in a specific location and expected delivery date. The maximum amount possible to request is the smallest number between the number of servers available for purchase and the number of servers allowed by the constraints (For example, power, network, physical space, and so on). + """ + + #: A constant which can be used with the namespace property of a OccCapacityRequest. + #: This constant has a value of "COMPUTE" + NAMESPACE_COMPUTE = "COMPUTE" + + #: A constant which can be used with the request_state property of a OccCapacityRequest. + #: This constant has a value of "CREATED" + REQUEST_STATE_CREATED = "CREATED" + + #: A constant which can be used with the request_state property of a OccCapacityRequest. + #: This constant has a value of "SUBMITTED" + REQUEST_STATE_SUBMITTED = "SUBMITTED" + + #: A constant which can be used with the request_state property of a OccCapacityRequest. + #: This constant has a value of "REJECTED" + REQUEST_STATE_REJECTED = "REJECTED" + + #: A constant which can be used with the request_state property of a OccCapacityRequest. + #: This constant has a value of "IN_PROGRESS" + REQUEST_STATE_IN_PROGRESS = "IN_PROGRESS" + + #: A constant which can be used with the request_state property of a OccCapacityRequest. + #: This constant has a value of "COMPLETED" + REQUEST_STATE_COMPLETED = "COMPLETED" + + #: A constant which can be used with the request_state property of a OccCapacityRequest. + #: This constant has a value of "PARTIALLY_COMPLETED" + REQUEST_STATE_PARTIALLY_COMPLETED = "PARTIALLY_COMPLETED" + + #: A constant which can be used with the request_state property of a OccCapacityRequest. + #: This constant has a value of "CANCELLED" + REQUEST_STATE_CANCELLED = "CANCELLED" + + #: A constant which can be used with the request_state property of a OccCapacityRequest. + #: This constant has a value of "DELETED" + REQUEST_STATE_DELETED = "DELETED" + + #: A constant which can be used with the lifecycle_state property of a OccCapacityRequest. + #: This constant has a value of "CREATING" + LIFECYCLE_STATE_CREATING = "CREATING" + + #: A constant which can be used with the lifecycle_state property of a OccCapacityRequest. + #: This constant has a value of "UPDATING" + LIFECYCLE_STATE_UPDATING = "UPDATING" + + #: A constant which can be used with the lifecycle_state property of a OccCapacityRequest. + #: This constant has a value of "ACTIVE" + LIFECYCLE_STATE_ACTIVE = "ACTIVE" + + #: A constant which can be used with the lifecycle_state property of a OccCapacityRequest. + #: This constant has a value of "DELETING" + LIFECYCLE_STATE_DELETING = "DELETING" + + #: A constant which can be used with the lifecycle_state property of a OccCapacityRequest. + #: This constant has a value of "DELETED" + LIFECYCLE_STATE_DELETED = "DELETED" + + #: A constant which can be used with the lifecycle_state property of a OccCapacityRequest. + #: This constant has a value of "FAILED" + LIFECYCLE_STATE_FAILED = "FAILED" + + def __init__(self, **kwargs): + """ + Initializes a new OccCapacityRequest object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param id: + The value to assign to the id property of this OccCapacityRequest. + :type id: str + + :param compartment_id: + The value to assign to the compartment_id property of this OccCapacityRequest. + :type compartment_id: str + + :param occ_availability_catalog_id: + The value to assign to the occ_availability_catalog_id property of this OccCapacityRequest. + :type occ_availability_catalog_id: str + + :param display_name: + The value to assign to the display_name property of this OccCapacityRequest. + :type display_name: str + + :param description: + The value to assign to the description property of this OccCapacityRequest. + :type description: str + + :param namespace: + The value to assign to the namespace property of this OccCapacityRequest. + Allowed values for this property are: "COMPUTE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type namespace: str + + :param occ_customer_group_id: + The value to assign to the occ_customer_group_id property of this OccCapacityRequest. + :type occ_customer_group_id: str + + :param region: + The value to assign to the region property of this OccCapacityRequest. + :type region: str + + :param availability_domain: + The value to assign to the availability_domain property of this OccCapacityRequest. + :type availability_domain: str + + :param date_expected_capacity_handover: + The value to assign to the date_expected_capacity_handover property of this OccCapacityRequest. + :type date_expected_capacity_handover: datetime + + :param request_state: + The value to assign to the request_state property of this OccCapacityRequest. + Allowed values for this property are: "CREATED", "SUBMITTED", "REJECTED", "IN_PROGRESS", "COMPLETED", "PARTIALLY_COMPLETED", "CANCELLED", "DELETED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type request_state: str + + :param time_created: + The value to assign to the time_created property of this OccCapacityRequest. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this OccCapacityRequest. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this OccCapacityRequest. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type lifecycle_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this OccCapacityRequest. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this OccCapacityRequest. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this OccCapacityRequest. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this OccCapacityRequest. + :type system_tags: dict(str, dict(str, object)) + + :param details: + The value to assign to the details property of this OccCapacityRequest. + :type details: list[oci.capacity_management.models.OccCapacityRequestBaseDetails] + + """ + self.swagger_types = { + 'id': 'str', + 'compartment_id': 'str', + 'occ_availability_catalog_id': 'str', + 'display_name': 'str', + 'description': 'str', + 'namespace': 'str', + 'occ_customer_group_id': 'str', + 'region': 'str', + 'availability_domain': 'str', + 'date_expected_capacity_handover': 'datetime', + 'request_state': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))', + 'details': 'list[OccCapacityRequestBaseDetails]' + } + + self.attribute_map = { + 'id': 'id', + 'compartment_id': 'compartmentId', + 'occ_availability_catalog_id': 'occAvailabilityCatalogId', + 'display_name': 'displayName', + 'description': 'description', + 'namespace': 'namespace', + 'occ_customer_group_id': 'occCustomerGroupId', + 'region': 'region', + 'availability_domain': 'availabilityDomain', + 'date_expected_capacity_handover': 'dateExpectedCapacityHandover', + 'request_state': 'requestState', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags', + 'details': 'details' + } + + self._id = None + self._compartment_id = None + self._occ_availability_catalog_id = None + self._display_name = None + self._description = None + self._namespace = None + self._occ_customer_group_id = None + self._region = None + self._availability_domain = None + self._date_expected_capacity_handover = None + self._request_state = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + self._details = None + + @property + def id(self): + """ + **[Required]** Gets the id of this OccCapacityRequest. + The OCID of the capacity request. + + + :return: The id of this OccCapacityRequest. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this OccCapacityRequest. + The OCID of the capacity request. + + + :param id: The id of this OccCapacityRequest. + :type: str + """ + self._id = id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this OccCapacityRequest. + The OCID of the tenancy from which the request was made. + + + :return: The compartment_id of this OccCapacityRequest. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this OccCapacityRequest. + The OCID of the tenancy from which the request was made. + + + :param compartment_id: The compartment_id of this OccCapacityRequest. + :type: str + """ + self._compartment_id = compartment_id + + @property + def occ_availability_catalog_id(self): + """ + **[Required]** Gets the occ_availability_catalog_id of this OccCapacityRequest. + The OCID of the availability catalog against which the capacity request was placed. + + + :return: The occ_availability_catalog_id of this OccCapacityRequest. + :rtype: str + """ + return self._occ_availability_catalog_id + + @occ_availability_catalog_id.setter + def occ_availability_catalog_id(self, occ_availability_catalog_id): + """ + Sets the occ_availability_catalog_id of this OccCapacityRequest. + The OCID of the availability catalog against which the capacity request was placed. + + + :param occ_availability_catalog_id: The occ_availability_catalog_id of this OccCapacityRequest. + :type: str + """ + self._occ_availability_catalog_id = occ_availability_catalog_id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this OccCapacityRequest. + The display name of the capacity request. + + + :return: The display_name of this OccCapacityRequest. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this OccCapacityRequest. + The display name of the capacity request. + + + :param display_name: The display_name of this OccCapacityRequest. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this OccCapacityRequest. + Meaningful text about the capacity request. + + + :return: The description of this OccCapacityRequest. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this OccCapacityRequest. + Meaningful text about the capacity request. + + + :param description: The description of this OccCapacityRequest. + :type: str + """ + self._description = description + + @property + def namespace(self): + """ + **[Required]** Gets the namespace of this OccCapacityRequest. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + Allowed values for this property are: "COMPUTE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The namespace of this OccCapacityRequest. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this OccCapacityRequest. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + + :param namespace: The namespace of this OccCapacityRequest. + :type: str + """ + allowed_values = ["COMPUTE"] + if not value_allowed_none_or_none_sentinel(namespace, allowed_values): + namespace = 'UNKNOWN_ENUM_VALUE' + self._namespace = namespace + + @property + def occ_customer_group_id(self): + """ + **[Required]** Gets the occ_customer_group_id of this OccCapacityRequest. + The OCID of the customer group to which this customer belongs to. + + + :return: The occ_customer_group_id of this OccCapacityRequest. + :rtype: str + """ + return self._occ_customer_group_id + + @occ_customer_group_id.setter + def occ_customer_group_id(self, occ_customer_group_id): + """ + Sets the occ_customer_group_id of this OccCapacityRequest. + The OCID of the customer group to which this customer belongs to. + + + :param occ_customer_group_id: The occ_customer_group_id of this OccCapacityRequest. + :type: str + """ + self._occ_customer_group_id = occ_customer_group_id + + @property + def region(self): + """ + **[Required]** Gets the region of this OccCapacityRequest. + The name of the region for which the capacity request was made. + + + :return: The region of this OccCapacityRequest. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """ + Sets the region of this OccCapacityRequest. + The name of the region for which the capacity request was made. + + + :param region: The region of this OccCapacityRequest. + :type: str + """ + self._region = region + + @property + def availability_domain(self): + """ + **[Required]** Gets the availability_domain of this OccCapacityRequest. + The availability domain (AD) for which the capacity request was made. + + + :return: The availability_domain of this OccCapacityRequest. + :rtype: str + """ + return self._availability_domain + + @availability_domain.setter + def availability_domain(self, availability_domain): + """ + Sets the availability_domain of this OccCapacityRequest. + The availability domain (AD) for which the capacity request was made. + + + :param availability_domain: The availability_domain of this OccCapacityRequest. + :type: str + """ + self._availability_domain = availability_domain + + @property + def date_expected_capacity_handover(self): + """ + **[Required]** Gets the date_expected_capacity_handover of this OccCapacityRequest. + The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled. + + + :return: The date_expected_capacity_handover of this OccCapacityRequest. + :rtype: datetime + """ + return self._date_expected_capacity_handover + + @date_expected_capacity_handover.setter + def date_expected_capacity_handover(self, date_expected_capacity_handover): + """ + Sets the date_expected_capacity_handover of this OccCapacityRequest. + The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled. + + + :param date_expected_capacity_handover: The date_expected_capacity_handover of this OccCapacityRequest. + :type: datetime + """ + self._date_expected_capacity_handover = date_expected_capacity_handover + + @property + def request_state(self): + """ + **[Required]** Gets the request_state of this OccCapacityRequest. + The different states the capacity request goes through. + + Allowed values for this property are: "CREATED", "SUBMITTED", "REJECTED", "IN_PROGRESS", "COMPLETED", "PARTIALLY_COMPLETED", "CANCELLED", "DELETED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The request_state of this OccCapacityRequest. + :rtype: str + """ + return self._request_state + + @request_state.setter + def request_state(self, request_state): + """ + Sets the request_state of this OccCapacityRequest. + The different states the capacity request goes through. + + + :param request_state: The request_state of this OccCapacityRequest. + :type: str + """ + allowed_values = ["CREATED", "SUBMITTED", "REJECTED", "IN_PROGRESS", "COMPLETED", "PARTIALLY_COMPLETED", "CANCELLED", "DELETED"] + if not value_allowed_none_or_none_sentinel(request_state, allowed_values): + request_state = 'UNKNOWN_ENUM_VALUE' + self._request_state = request_state + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this OccCapacityRequest. + The time when the capacity request was created. + + + :return: The time_created of this OccCapacityRequest. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this OccCapacityRequest. + The time when the capacity request was created. + + + :param time_created: The time_created of this OccCapacityRequest. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + **[Required]** Gets the time_updated of this OccCapacityRequest. + The time when the capacity request was updated. + + + :return: The time_updated of this OccCapacityRequest. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this OccCapacityRequest. + The time when the capacity request was updated. + + + :param time_updated: The time_updated of this OccCapacityRequest. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this OccCapacityRequest. + The current lifecycle state of the resource. + + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The lifecycle_state of this OccCapacityRequest. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this OccCapacityRequest. + The current lifecycle state of the resource. + + + :param lifecycle_state: The lifecycle_state of this OccCapacityRequest. + :type: str + """ + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): + lifecycle_state = 'UNKNOWN_ENUM_VALUE' + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this OccCapacityRequest. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :return: The lifecycle_details of this OccCapacityRequest. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this OccCapacityRequest. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :param lifecycle_details: The lifecycle_details of this OccCapacityRequest. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this OccCapacityRequest. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :return: The freeform_tags of this OccCapacityRequest. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this OccCapacityRequest. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :param freeform_tags: The freeform_tags of this OccCapacityRequest. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this OccCapacityRequest. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :return: The defined_tags of this OccCapacityRequest. + :rtype: dict(str, dict(str, object)) + """ + return self._defined_tags + + @defined_tags.setter + def defined_tags(self, defined_tags): + """ + Sets the defined_tags of this OccCapacityRequest. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :param defined_tags: The defined_tags of this OccCapacityRequest. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this OccCapacityRequest. + System tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :return: The system_tags of this OccCapacityRequest. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this OccCapacityRequest. + System tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :param system_tags: The system_tags of this OccCapacityRequest. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + + @property + def details(self): + """ + **[Required]** Gets the details of this OccCapacityRequest. + A list of resources requested as part of this request + + + :return: The details of this OccCapacityRequest. + :rtype: list[oci.capacity_management.models.OccCapacityRequestBaseDetails] + """ + return self._details + + @details.setter + def details(self, details): + """ + Sets the details of this OccCapacityRequest. + A list of resources requested as part of this request + + + :param details: The details of this OccCapacityRequest. + :type: list[oci.capacity_management.models.OccCapacityRequestBaseDetails] + """ + self._details = details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_capacity_request_base_details.py b/src/oci/capacity_management/models/occ_capacity_request_base_details.py new file mode 100644 index 0000000000..eb1392eb4e --- /dev/null +++ b/src/oci/capacity_management/models/occ_capacity_request_base_details.py @@ -0,0 +1,256 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccCapacityRequestBaseDetails(object): + """ + The details of the create capacity request. This model serves as a base for different namespaces. + """ + + #: A constant which can be used with the resource_type property of a OccCapacityRequestBaseDetails. + #: This constant has a value of "SERVER_HW" + RESOURCE_TYPE_SERVER_HW = "SERVER_HW" + + def __init__(self, **kwargs): + """ + Initializes a new OccCapacityRequestBaseDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input + to a service operations then you should favor using a subclass over the base class: + + * :class:`~oci.capacity_management.models.OccCapacityRequestComputeDetails` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param resource_type: + The value to assign to the resource_type property of this OccCapacityRequestBaseDetails. + Allowed values for this property are: "SERVER_HW", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type resource_type: str + + :param workload_type: + The value to assign to the workload_type property of this OccCapacityRequestBaseDetails. + :type workload_type: str + + :param expected_handover_quantity: + The value to assign to the expected_handover_quantity property of this OccCapacityRequestBaseDetails. + :type expected_handover_quantity: int + + :param date_expected_handover: + The value to assign to the date_expected_handover property of this OccCapacityRequestBaseDetails. + :type date_expected_handover: datetime + + :param actual_handover_quantity: + The value to assign to the actual_handover_quantity property of this OccCapacityRequestBaseDetails. + :type actual_handover_quantity: int + + :param date_actual_handover: + The value to assign to the date_actual_handover property of this OccCapacityRequestBaseDetails. + :type date_actual_handover: datetime + + """ + self.swagger_types = { + 'resource_type': 'str', + 'workload_type': 'str', + 'expected_handover_quantity': 'int', + 'date_expected_handover': 'datetime', + 'actual_handover_quantity': 'int', + 'date_actual_handover': 'datetime' + } + + self.attribute_map = { + 'resource_type': 'resourceType', + 'workload_type': 'workloadType', + 'expected_handover_quantity': 'expectedHandoverQuantity', + 'date_expected_handover': 'dateExpectedHandover', + 'actual_handover_quantity': 'actualHandoverQuantity', + 'date_actual_handover': 'dateActualHandover' + } + + self._resource_type = None + self._workload_type = None + self._expected_handover_quantity = None + self._date_expected_handover = None + self._actual_handover_quantity = None + self._date_actual_handover = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['resourceType'] + + if type == 'SERVER_HW': + return 'OccCapacityRequestComputeDetails' + else: + return 'OccCapacityRequestBaseDetails' + + @property + def resource_type(self): + """ + **[Required]** Gets the resource_type of this OccCapacityRequestBaseDetails. + The type of the resource against which the user wants to place a capacity request. + + Allowed values for this property are: "SERVER_HW", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The resource_type of this OccCapacityRequestBaseDetails. + :rtype: str + """ + return self._resource_type + + @resource_type.setter + def resource_type(self, resource_type): + """ + Sets the resource_type of this OccCapacityRequestBaseDetails. + The type of the resource against which the user wants to place a capacity request. + + + :param resource_type: The resource_type of this OccCapacityRequestBaseDetails. + :type: str + """ + allowed_values = ["SERVER_HW"] + if not value_allowed_none_or_none_sentinel(resource_type, allowed_values): + resource_type = 'UNKNOWN_ENUM_VALUE' + self._resource_type = resource_type + + @property + def workload_type(self): + """ + **[Required]** Gets the workload_type of this OccCapacityRequestBaseDetails. + The type of the workload (Generic/ROW). + + + :return: The workload_type of this OccCapacityRequestBaseDetails. + :rtype: str + """ + return self._workload_type + + @workload_type.setter + def workload_type(self, workload_type): + """ + Sets the workload_type of this OccCapacityRequestBaseDetails. + The type of the workload (Generic/ROW). + + + :param workload_type: The workload_type of this OccCapacityRequestBaseDetails. + :type: str + """ + self._workload_type = workload_type + + @property + def expected_handover_quantity(self): + """ + Gets the expected_handover_quantity of this OccCapacityRequestBaseDetails. + The incremental quantity of resources supplied as the provisioning is underway. + + + :return: The expected_handover_quantity of this OccCapacityRequestBaseDetails. + :rtype: int + """ + return self._expected_handover_quantity + + @expected_handover_quantity.setter + def expected_handover_quantity(self, expected_handover_quantity): + """ + Sets the expected_handover_quantity of this OccCapacityRequestBaseDetails. + The incremental quantity of resources supplied as the provisioning is underway. + + + :param expected_handover_quantity: The expected_handover_quantity of this OccCapacityRequestBaseDetails. + :type: int + """ + self._expected_handover_quantity = expected_handover_quantity + + @property + def date_expected_handover(self): + """ + Gets the date_expected_handover of this OccCapacityRequestBaseDetails. + The date on which the latest increment to supplied quantity of resources was delivered. + + + :return: The date_expected_handover of this OccCapacityRequestBaseDetails. + :rtype: datetime + """ + return self._date_expected_handover + + @date_expected_handover.setter + def date_expected_handover(self, date_expected_handover): + """ + Sets the date_expected_handover of this OccCapacityRequestBaseDetails. + The date on which the latest increment to supplied quantity of resources was delivered. + + + :param date_expected_handover: The date_expected_handover of this OccCapacityRequestBaseDetails. + :type: datetime + """ + self._date_expected_handover = date_expected_handover + + @property + def actual_handover_quantity(self): + """ + Gets the actual_handover_quantity of this OccCapacityRequestBaseDetails. + The actual handed over quantity of resources at the time of request resolution. + + + :return: The actual_handover_quantity of this OccCapacityRequestBaseDetails. + :rtype: int + """ + return self._actual_handover_quantity + + @actual_handover_quantity.setter + def actual_handover_quantity(self, actual_handover_quantity): + """ + Sets the actual_handover_quantity of this OccCapacityRequestBaseDetails. + The actual handed over quantity of resources at the time of request resolution. + + + :param actual_handover_quantity: The actual_handover_quantity of this OccCapacityRequestBaseDetails. + :type: int + """ + self._actual_handover_quantity = actual_handover_quantity + + @property + def date_actual_handover(self): + """ + Gets the date_actual_handover of this OccCapacityRequestBaseDetails. + The date on which the actual handover quantity of resources is delivered. + + + :return: The date_actual_handover of this OccCapacityRequestBaseDetails. + :rtype: datetime + """ + return self._date_actual_handover + + @date_actual_handover.setter + def date_actual_handover(self, date_actual_handover): + """ + Sets the date_actual_handover of this OccCapacityRequestBaseDetails. + The date on which the actual handover quantity of resources is delivered. + + + :param date_actual_handover: The date_actual_handover of this OccCapacityRequestBaseDetails. + :type: datetime + """ + self._date_actual_handover = date_actual_handover + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_capacity_request_collection.py b/src/oci/capacity_management/models/occ_capacity_request_collection.py new file mode 100644 index 0000000000..428eae9c3e --- /dev/null +++ b/src/oci/capacity_management/models/occ_capacity_request_collection.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccCapacityRequestCollection(object): + """ + A list of capacity requests. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OccCapacityRequestCollection object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param items: + The value to assign to the items property of this OccCapacityRequestCollection. + :type items: list[oci.capacity_management.models.OccCapacityRequestSummary] + + """ + self.swagger_types = { + 'items': 'list[OccCapacityRequestSummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this OccCapacityRequestCollection. + An array of capacity requests. + + + :return: The items of this OccCapacityRequestCollection. + :rtype: list[oci.capacity_management.models.OccCapacityRequestSummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this OccCapacityRequestCollection. + An array of capacity requests. + + + :param items: The items of this OccCapacityRequestCollection. + :type: list[oci.capacity_management.models.OccCapacityRequestSummary] + """ + self._items = items + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_capacity_request_compute_details.py b/src/oci/capacity_management/models/occ_capacity_request_compute_details.py new file mode 100644 index 0000000000..6389b7442b --- /dev/null +++ b/src/oci/capacity_management/models/occ_capacity_request_compute_details.py @@ -0,0 +1,148 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + +from .occ_capacity_request_base_details import OccCapacityRequestBaseDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccCapacityRequestComputeDetails(OccCapacityRequestBaseDetails): + """ + The details about the compute servers required for creating a capacity request. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OccCapacityRequestComputeDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.capacity_management.models.OccCapacityRequestComputeDetails.resource_type` attribute + of this class is ``SERVER_HW`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param resource_type: + The value to assign to the resource_type property of this OccCapacityRequestComputeDetails. + Allowed values for this property are: "SERVER_HW" + :type resource_type: str + + :param workload_type: + The value to assign to the workload_type property of this OccCapacityRequestComputeDetails. + :type workload_type: str + + :param expected_handover_quantity: + The value to assign to the expected_handover_quantity property of this OccCapacityRequestComputeDetails. + :type expected_handover_quantity: int + + :param date_expected_handover: + The value to assign to the date_expected_handover property of this OccCapacityRequestComputeDetails. + :type date_expected_handover: datetime + + :param actual_handover_quantity: + The value to assign to the actual_handover_quantity property of this OccCapacityRequestComputeDetails. + :type actual_handover_quantity: int + + :param date_actual_handover: + The value to assign to the date_actual_handover property of this OccCapacityRequestComputeDetails. + :type date_actual_handover: datetime + + :param resource_name: + The value to assign to the resource_name property of this OccCapacityRequestComputeDetails. + :type resource_name: str + + :param demand_quantity: + The value to assign to the demand_quantity property of this OccCapacityRequestComputeDetails. + :type demand_quantity: int + + """ + self.swagger_types = { + 'resource_type': 'str', + 'workload_type': 'str', + 'expected_handover_quantity': 'int', + 'date_expected_handover': 'datetime', + 'actual_handover_quantity': 'int', + 'date_actual_handover': 'datetime', + 'resource_name': 'str', + 'demand_quantity': 'int' + } + + self.attribute_map = { + 'resource_type': 'resourceType', + 'workload_type': 'workloadType', + 'expected_handover_quantity': 'expectedHandoverQuantity', + 'date_expected_handover': 'dateExpectedHandover', + 'actual_handover_quantity': 'actualHandoverQuantity', + 'date_actual_handover': 'dateActualHandover', + 'resource_name': 'resourceName', + 'demand_quantity': 'demandQuantity' + } + + self._resource_type = None + self._workload_type = None + self._expected_handover_quantity = None + self._date_expected_handover = None + self._actual_handover_quantity = None + self._date_actual_handover = None + self._resource_name = None + self._demand_quantity = None + self._resource_type = 'SERVER_HW' + + @property + def resource_name(self): + """ + **[Required]** Gets the resource_name of this OccCapacityRequestComputeDetails. + The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name. + + + :return: The resource_name of this OccCapacityRequestComputeDetails. + :rtype: str + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """ + Sets the resource_name of this OccCapacityRequestComputeDetails. + The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name. + + + :param resource_name: The resource_name of this OccCapacityRequestComputeDetails. + :type: str + """ + self._resource_name = resource_name + + @property + def demand_quantity(self): + """ + **[Required]** Gets the demand_quantity of this OccCapacityRequestComputeDetails. + The number of compute server's with name required by the user. + + + :return: The demand_quantity of this OccCapacityRequestComputeDetails. + :rtype: int + """ + return self._demand_quantity + + @demand_quantity.setter + def demand_quantity(self, demand_quantity): + """ + Sets the demand_quantity of this OccCapacityRequestComputeDetails. + The number of compute server's with name required by the user. + + + :param demand_quantity: The demand_quantity of this OccCapacityRequestComputeDetails. + :type: int + """ + self._demand_quantity = demand_quantity + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_capacity_request_summary.py b/src/oci/capacity_management/models/occ_capacity_request_summary.py new file mode 100644 index 0000000000..6e8c17b85b --- /dev/null +++ b/src/oci/capacity_management/models/occ_capacity_request_summary.py @@ -0,0 +1,617 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccCapacityRequestSummary(object): + """ + A summary model for the capacity request model. + """ + + #: A constant which can be used with the namespace property of a OccCapacityRequestSummary. + #: This constant has a value of "COMPUTE" + NAMESPACE_COMPUTE = "COMPUTE" + + def __init__(self, **kwargs): + """ + Initializes a new OccCapacityRequestSummary object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param id: + The value to assign to the id property of this OccCapacityRequestSummary. + :type id: str + + :param compartment_id: + The value to assign to the compartment_id property of this OccCapacityRequestSummary. + :type compartment_id: str + + :param occ_availability_catalog_id: + The value to assign to the occ_availability_catalog_id property of this OccCapacityRequestSummary. + :type occ_availability_catalog_id: str + + :param display_name: + The value to assign to the display_name property of this OccCapacityRequestSummary. + :type display_name: str + + :param description: + The value to assign to the description property of this OccCapacityRequestSummary. + :type description: str + + :param namespace: + The value to assign to the namespace property of this OccCapacityRequestSummary. + Allowed values for this property are: "COMPUTE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type namespace: str + + :param occ_customer_group_id: + The value to assign to the occ_customer_group_id property of this OccCapacityRequestSummary. + :type occ_customer_group_id: str + + :param region: + The value to assign to the region property of this OccCapacityRequestSummary. + :type region: str + + :param availability_domain: + The value to assign to the availability_domain property of this OccCapacityRequestSummary. + :type availability_domain: str + + :param date_expected_capacity_handover: + The value to assign to the date_expected_capacity_handover property of this OccCapacityRequestSummary. + :type date_expected_capacity_handover: datetime + + :param request_state: + The value to assign to the request_state property of this OccCapacityRequestSummary. + :type request_state: str + + :param time_created: + The value to assign to the time_created property of this OccCapacityRequestSummary. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this OccCapacityRequestSummary. + :type time_updated: datetime + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this OccCapacityRequestSummary. + :type lifecycle_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this OccCapacityRequestSummary. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this OccCapacityRequestSummary. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this OccCapacityRequestSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this OccCapacityRequestSummary. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'compartment_id': 'str', + 'occ_availability_catalog_id': 'str', + 'display_name': 'str', + 'description': 'str', + 'namespace': 'str', + 'occ_customer_group_id': 'str', + 'region': 'str', + 'availability_domain': 'str', + 'date_expected_capacity_handover': 'datetime', + 'request_state': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'lifecycle_state': 'str', + 'lifecycle_details': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'id': 'id', + 'compartment_id': 'compartmentId', + 'occ_availability_catalog_id': 'occAvailabilityCatalogId', + 'display_name': 'displayName', + 'description': 'description', + 'namespace': 'namespace', + 'occ_customer_group_id': 'occCustomerGroupId', + 'region': 'region', + 'availability_domain': 'availabilityDomain', + 'date_expected_capacity_handover': 'dateExpectedCapacityHandover', + 'request_state': 'requestState', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._compartment_id = None + self._occ_availability_catalog_id = None + self._display_name = None + self._description = None + self._namespace = None + self._occ_customer_group_id = None + self._region = None + self._availability_domain = None + self._date_expected_capacity_handover = None + self._request_state = None + self._time_created = None + self._time_updated = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this OccCapacityRequestSummary. + The OCID of the capacity request. + + + :return: The id of this OccCapacityRequestSummary. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this OccCapacityRequestSummary. + The OCID of the capacity request. + + + :param id: The id of this OccCapacityRequestSummary. + :type: str + """ + self._id = id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this OccCapacityRequestSummary. + The OCID of the tenancy from which the request was made. + + + :return: The compartment_id of this OccCapacityRequestSummary. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this OccCapacityRequestSummary. + The OCID of the tenancy from which the request was made. + + + :param compartment_id: The compartment_id of this OccCapacityRequestSummary. + :type: str + """ + self._compartment_id = compartment_id + + @property + def occ_availability_catalog_id(self): + """ + **[Required]** Gets the occ_availability_catalog_id of this OccCapacityRequestSummary. + The OCID of the availability catalog against which the capacity request was placed. + + + :return: The occ_availability_catalog_id of this OccCapacityRequestSummary. + :rtype: str + """ + return self._occ_availability_catalog_id + + @occ_availability_catalog_id.setter + def occ_availability_catalog_id(self, occ_availability_catalog_id): + """ + Sets the occ_availability_catalog_id of this OccCapacityRequestSummary. + The OCID of the availability catalog against which the capacity request was placed. + + + :param occ_availability_catalog_id: The occ_availability_catalog_id of this OccCapacityRequestSummary. + :type: str + """ + self._occ_availability_catalog_id = occ_availability_catalog_id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this OccCapacityRequestSummary. + The display name of the capacity request. + + + :return: The display_name of this OccCapacityRequestSummary. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this OccCapacityRequestSummary. + The display name of the capacity request. + + + :param display_name: The display_name of this OccCapacityRequestSummary. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this OccCapacityRequestSummary. + Meaningful text about the capacity request. + + + :return: The description of this OccCapacityRequestSummary. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this OccCapacityRequestSummary. + Meaningful text about the capacity request. + + + :param description: The description of this OccCapacityRequestSummary. + :type: str + """ + self._description = description + + @property + def namespace(self): + """ + **[Required]** Gets the namespace of this OccCapacityRequestSummary. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + Allowed values for this property are: "COMPUTE", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The namespace of this OccCapacityRequestSummary. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this OccCapacityRequestSummary. + The name of the OCI service in consideration. For example, Compute, Exadata, and so on. + + + :param namespace: The namespace of this OccCapacityRequestSummary. + :type: str + """ + allowed_values = ["COMPUTE"] + if not value_allowed_none_or_none_sentinel(namespace, allowed_values): + namespace = 'UNKNOWN_ENUM_VALUE' + self._namespace = namespace + + @property + def occ_customer_group_id(self): + """ + **[Required]** Gets the occ_customer_group_id of this OccCapacityRequestSummary. + The OCID of the customer group to which this customer belongs to. + + + :return: The occ_customer_group_id of this OccCapacityRequestSummary. + :rtype: str + """ + return self._occ_customer_group_id + + @occ_customer_group_id.setter + def occ_customer_group_id(self, occ_customer_group_id): + """ + Sets the occ_customer_group_id of this OccCapacityRequestSummary. + The OCID of the customer group to which this customer belongs to. + + + :param occ_customer_group_id: The occ_customer_group_id of this OccCapacityRequestSummary. + :type: str + """ + self._occ_customer_group_id = occ_customer_group_id + + @property + def region(self): + """ + **[Required]** Gets the region of this OccCapacityRequestSummary. + The name of the region for which the capacity request was made. + + + :return: The region of this OccCapacityRequestSummary. + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """ + Sets the region of this OccCapacityRequestSummary. + The name of the region for which the capacity request was made. + + + :param region: The region of this OccCapacityRequestSummary. + :type: str + """ + self._region = region + + @property + def availability_domain(self): + """ + **[Required]** Gets the availability_domain of this OccCapacityRequestSummary. + The availability domain (AD) for which the capacity request was made. + + + :return: The availability_domain of this OccCapacityRequestSummary. + :rtype: str + """ + return self._availability_domain + + @availability_domain.setter + def availability_domain(self, availability_domain): + """ + Sets the availability_domain of this OccCapacityRequestSummary. + The availability domain (AD) for which the capacity request was made. + + + :param availability_domain: The availability_domain of this OccCapacityRequestSummary. + :type: str + """ + self._availability_domain = availability_domain + + @property + def date_expected_capacity_handover(self): + """ + **[Required]** Gets the date_expected_capacity_handover of this OccCapacityRequestSummary. + The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled. + + + :return: The date_expected_capacity_handover of this OccCapacityRequestSummary. + :rtype: datetime + """ + return self._date_expected_capacity_handover + + @date_expected_capacity_handover.setter + def date_expected_capacity_handover(self, date_expected_capacity_handover): + """ + Sets the date_expected_capacity_handover of this OccCapacityRequestSummary. + The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled. + + + :param date_expected_capacity_handover: The date_expected_capacity_handover of this OccCapacityRequestSummary. + :type: datetime + """ + self._date_expected_capacity_handover = date_expected_capacity_handover + + @property + def request_state(self): + """ + **[Required]** Gets the request_state of this OccCapacityRequestSummary. + A list of states through which the capacity request goes by. + + + :return: The request_state of this OccCapacityRequestSummary. + :rtype: str + """ + return self._request_state + + @request_state.setter + def request_state(self, request_state): + """ + Sets the request_state of this OccCapacityRequestSummary. + A list of states through which the capacity request goes by. + + + :param request_state: The request_state of this OccCapacityRequestSummary. + :type: str + """ + self._request_state = request_state + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this OccCapacityRequestSummary. + The time when the capacity request was created. + + + :return: The time_created of this OccCapacityRequestSummary. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this OccCapacityRequestSummary. + The time when the capacity request was created. + + + :param time_created: The time_created of this OccCapacityRequestSummary. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + **[Required]** Gets the time_updated of this OccCapacityRequestSummary. + The time when the capacity request was updated. + + + :return: The time_updated of this OccCapacityRequestSummary. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this OccCapacityRequestSummary. + The time when the capacity request was updated. + + + :param time_updated: The time_updated of this OccCapacityRequestSummary. + :type: datetime + """ + self._time_updated = time_updated + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this OccCapacityRequestSummary. + The current lifecycle state of the customer group. + + + :return: The lifecycle_state of this OccCapacityRequestSummary. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this OccCapacityRequestSummary. + The current lifecycle state of the customer group. + + + :param lifecycle_state: The lifecycle_state of this OccCapacityRequestSummary. + :type: str + """ + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this OccCapacityRequestSummary. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :return: The lifecycle_details of this OccCapacityRequestSummary. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this OccCapacityRequestSummary. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :param lifecycle_details: The lifecycle_details of this OccCapacityRequestSummary. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this OccCapacityRequestSummary. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :return: The freeform_tags of this OccCapacityRequestSummary. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this OccCapacityRequestSummary. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :param freeform_tags: The freeform_tags of this OccCapacityRequestSummary. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this OccCapacityRequestSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :return: The defined_tags of this OccCapacityRequestSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._defined_tags + + @defined_tags.setter + def defined_tags(self, defined_tags): + """ + Sets the defined_tags of this OccCapacityRequestSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :param defined_tags: The defined_tags of this OccCapacityRequestSummary. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this OccCapacityRequestSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :return: The system_tags of this OccCapacityRequestSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this OccCapacityRequestSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :param system_tags: The system_tags of this OccCapacityRequestSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_customer.py b/src/oci/capacity_management/models/occ_customer.py new file mode 100644 index 0000000000..7938ae5288 --- /dev/null +++ b/src/oci/capacity_management/models/occ_customer.py @@ -0,0 +1,212 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccCustomer(object): + """ + The details about the customer. + """ + + #: A constant which can be used with the status property of a OccCustomer. + #: This constant has a value of "ENABLED" + STATUS_ENABLED = "ENABLED" + + #: A constant which can be used with the status property of a OccCustomer. + #: This constant has a value of "DISABLED" + STATUS_DISABLED = "DISABLED" + + def __init__(self, **kwargs): + """ + Initializes a new OccCustomer object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param occ_customer_group_id: + The value to assign to the occ_customer_group_id property of this OccCustomer. + :type occ_customer_group_id: str + + :param tenancy_id: + The value to assign to the tenancy_id property of this OccCustomer. + :type tenancy_id: str + + :param display_name: + The value to assign to the display_name property of this OccCustomer. + :type display_name: str + + :param description: + The value to assign to the description property of this OccCustomer. + :type description: str + + :param status: + The value to assign to the status property of this OccCustomer. + Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type status: str + + """ + self.swagger_types = { + 'occ_customer_group_id': 'str', + 'tenancy_id': 'str', + 'display_name': 'str', + 'description': 'str', + 'status': 'str' + } + + self.attribute_map = { + 'occ_customer_group_id': 'occCustomerGroupId', + 'tenancy_id': 'tenancyId', + 'display_name': 'displayName', + 'description': 'description', + 'status': 'status' + } + + self._occ_customer_group_id = None + self._tenancy_id = None + self._display_name = None + self._description = None + self._status = None + + @property + def occ_customer_group_id(self): + """ + **[Required]** Gets the occ_customer_group_id of this OccCustomer. + The OCID of the customer group. + + + :return: The occ_customer_group_id of this OccCustomer. + :rtype: str + """ + return self._occ_customer_group_id + + @occ_customer_group_id.setter + def occ_customer_group_id(self, occ_customer_group_id): + """ + Sets the occ_customer_group_id of this OccCustomer. + The OCID of the customer group. + + + :param occ_customer_group_id: The occ_customer_group_id of this OccCustomer. + :type: str + """ + self._occ_customer_group_id = occ_customer_group_id + + @property + def tenancy_id(self): + """ + **[Required]** Gets the tenancy_id of this OccCustomer. + The OCID of the tenancy belonging to the customer. + + + :return: The tenancy_id of this OccCustomer. + :rtype: str + """ + return self._tenancy_id + + @tenancy_id.setter + def tenancy_id(self, tenancy_id): + """ + Sets the tenancy_id of this OccCustomer. + The OCID of the tenancy belonging to the customer. + + + :param tenancy_id: The tenancy_id of this OccCustomer. + :type: str + """ + self._tenancy_id = tenancy_id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this OccCustomer. + The display name for the customer + + + :return: The display_name of this OccCustomer. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this OccCustomer. + The display name for the customer + + + :param display_name: The display_name of this OccCustomer. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this OccCustomer. + The description about the customer group. + + + :return: The description of this OccCustomer. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this OccCustomer. + The description about the customer group. + + + :param description: The description of this OccCustomer. + :type: str + """ + self._description = description + + @property + def status(self): + """ + **[Required]** Gets the status of this OccCustomer. + To determine whether the customer is enabled/disabled.` + + Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The status of this OccCustomer. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this OccCustomer. + To determine whether the customer is enabled/disabled.` + + + :param status: The status of this OccCustomer. + :type: str + """ + allowed_values = ["ENABLED", "DISABLED"] + if not value_allowed_none_or_none_sentinel(status, allowed_values): + status = 'UNKNOWN_ENUM_VALUE' + self._status = status + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_customer_group.py b/src/oci/capacity_management/models/occ_customer_group.py new file mode 100644 index 0000000000..548a5cba41 --- /dev/null +++ b/src/oci/capacity_management/models/occ_customer_group.py @@ -0,0 +1,498 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccCustomerGroup(object): + """ + Details of the customer group resource. + """ + + #: A constant which can be used with the status property of a OccCustomerGroup. + #: This constant has a value of "ENABLED" + STATUS_ENABLED = "ENABLED" + + #: A constant which can be used with the status property of a OccCustomerGroup. + #: This constant has a value of "DISABLED" + STATUS_DISABLED = "DISABLED" + + #: A constant which can be used with the lifecycle_state property of a OccCustomerGroup. + #: This constant has a value of "CREATING" + LIFECYCLE_STATE_CREATING = "CREATING" + + #: A constant which can be used with the lifecycle_state property of a OccCustomerGroup. + #: This constant has a value of "UPDATING" + LIFECYCLE_STATE_UPDATING = "UPDATING" + + #: A constant which can be used with the lifecycle_state property of a OccCustomerGroup. + #: This constant has a value of "ACTIVE" + LIFECYCLE_STATE_ACTIVE = "ACTIVE" + + #: A constant which can be used with the lifecycle_state property of a OccCustomerGroup. + #: This constant has a value of "DELETING" + LIFECYCLE_STATE_DELETING = "DELETING" + + #: A constant which can be used with the lifecycle_state property of a OccCustomerGroup. + #: This constant has a value of "DELETED" + LIFECYCLE_STATE_DELETED = "DELETED" + + #: A constant which can be used with the lifecycle_state property of a OccCustomerGroup. + #: This constant has a value of "FAILED" + LIFECYCLE_STATE_FAILED = "FAILED" + + def __init__(self, **kwargs): + """ + Initializes a new OccCustomerGroup object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param id: + The value to assign to the id property of this OccCustomerGroup. + :type id: str + + :param compartment_id: + The value to assign to the compartment_id property of this OccCustomerGroup. + :type compartment_id: str + + :param display_name: + The value to assign to the display_name property of this OccCustomerGroup. + :type display_name: str + + :param description: + The value to assign to the description property of this OccCustomerGroup. + :type description: str + + :param time_created: + The value to assign to the time_created property of this OccCustomerGroup. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this OccCustomerGroup. + :type time_updated: datetime + + :param status: + The value to assign to the status property of this OccCustomerGroup. + Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type status: str + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this OccCustomerGroup. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type lifecycle_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this OccCustomerGroup. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this OccCustomerGroup. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this OccCustomerGroup. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this OccCustomerGroup. + :type system_tags: dict(str, dict(str, object)) + + :param customers_list: + The value to assign to the customers_list property of this OccCustomerGroup. + :type customers_list: list[oci.capacity_management.models.OccCustomer] + + """ + self.swagger_types = { + 'id': 'str', + 'compartment_id': 'str', + 'display_name': 'str', + 'description': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'status': 'str', + 'lifecycle_state': 'str', + 'lifecycle_details': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))', + 'customers_list': 'list[OccCustomer]' + } + + self.attribute_map = { + 'id': 'id', + 'compartment_id': 'compartmentId', + 'display_name': 'displayName', + 'description': 'description', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'status': 'status', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags', + 'customers_list': 'customersList' + } + + self._id = None + self._compartment_id = None + self._display_name = None + self._description = None + self._time_created = None + self._time_updated = None + self._status = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + self._customers_list = None + + @property + def id(self): + """ + **[Required]** Gets the id of this OccCustomerGroup. + The OCID of the customer group. + + + :return: The id of this OccCustomerGroup. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this OccCustomerGroup. + The OCID of the customer group. + + + :param id: The id of this OccCustomerGroup. + :type: str + """ + self._id = id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this OccCustomerGroup. + The OCID of the tenancy containing the customer group. + + + :return: The compartment_id of this OccCustomerGroup. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this OccCustomerGroup. + The OCID of the tenancy containing the customer group. + + + :param compartment_id: The compartment_id of this OccCustomerGroup. + :type: str + """ + self._compartment_id = compartment_id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this OccCustomerGroup. + The display name of the customer group. + + + :return: The display_name of this OccCustomerGroup. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this OccCustomerGroup. + The display name of the customer group. + + + :param display_name: The display_name of this OccCustomerGroup. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this OccCustomerGroup. + The description about the customer group. + + + :return: The description of this OccCustomerGroup. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this OccCustomerGroup. + The description about the customer group. + + + :param description: The description of this OccCustomerGroup. + :type: str + """ + self._description = description + + @property + def time_created(self): + """ + Gets the time_created of this OccCustomerGroup. + The time when the customer group was created. + + + :return: The time_created of this OccCustomerGroup. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this OccCustomerGroup. + The time when the customer group was created. + + + :param time_created: The time_created of this OccCustomerGroup. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this OccCustomerGroup. + The time when the customer group was last updated. + + + :return: The time_updated of this OccCustomerGroup. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this OccCustomerGroup. + The time when the customer group was last updated. + + + :param time_updated: The time_updated of this OccCustomerGroup. + :type: datetime + """ + self._time_updated = time_updated + + @property + def status(self): + """ + **[Required]** Gets the status of this OccCustomerGroup. + To determine whether the customer group is enabled/disabled. + + Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The status of this OccCustomerGroup. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this OccCustomerGroup. + To determine whether the customer group is enabled/disabled. + + + :param status: The status of this OccCustomerGroup. + :type: str + """ + allowed_values = ["ENABLED", "DISABLED"] + if not value_allowed_none_or_none_sentinel(status, allowed_values): + status = 'UNKNOWN_ENUM_VALUE' + self._status = status + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this OccCustomerGroup. + The current lifecycle state of the resource. + + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The lifecycle_state of this OccCustomerGroup. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this OccCustomerGroup. + The current lifecycle state of the resource. + + + :param lifecycle_state: The lifecycle_state of this OccCustomerGroup. + :type: str + """ + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): + lifecycle_state = 'UNKNOWN_ENUM_VALUE' + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this OccCustomerGroup. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :return: The lifecycle_details of this OccCustomerGroup. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this OccCustomerGroup. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :param lifecycle_details: The lifecycle_details of this OccCustomerGroup. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this OccCustomerGroup. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :return: The freeform_tags of this OccCustomerGroup. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this OccCustomerGroup. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :param freeform_tags: The freeform_tags of this OccCustomerGroup. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this OccCustomerGroup. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :return: The defined_tags of this OccCustomerGroup. + :rtype: dict(str, dict(str, object)) + """ + return self._defined_tags + + @defined_tags.setter + def defined_tags(self, defined_tags): + """ + Sets the defined_tags of this OccCustomerGroup. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :param defined_tags: The defined_tags of this OccCustomerGroup. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this OccCustomerGroup. + System tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :return: The system_tags of this OccCustomerGroup. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this OccCustomerGroup. + System tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :param system_tags: The system_tags of this OccCustomerGroup. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + + @property + def customers_list(self): + """ + **[Required]** Gets the customers_list of this OccCustomerGroup. + A list containing all the customers that belong to this customer group + + + :return: The customers_list of this OccCustomerGroup. + :rtype: list[oci.capacity_management.models.OccCustomer] + """ + return self._customers_list + + @customers_list.setter + def customers_list(self, customers_list): + """ + Sets the customers_list of this OccCustomerGroup. + A list containing all the customers that belong to this customer group + + + :param customers_list: The customers_list of this OccCustomerGroup. + :type: list[oci.capacity_management.models.OccCustomer] + """ + self._customers_list = customers_list + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_customer_group_collection.py b/src/oci/capacity_management/models/occ_customer_group_collection.py new file mode 100644 index 0000000000..ade8f15a21 --- /dev/null +++ b/src/oci/capacity_management/models/occ_customer_group_collection.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccCustomerGroupCollection(object): + """ + A list of customer groups. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OccCustomerGroupCollection object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param items: + The value to assign to the items property of this OccCustomerGroupCollection. + :type items: list[oci.capacity_management.models.OccCustomerGroupSummary] + + """ + self.swagger_types = { + 'items': 'list[OccCustomerGroupSummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this OccCustomerGroupCollection. + An array of customer groups. + + + :return: The items of this OccCustomerGroupCollection. + :rtype: list[oci.capacity_management.models.OccCustomerGroupSummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this OccCustomerGroupCollection. + An array of customer groups. + + + :param items: The items of this OccCustomerGroupCollection. + :type: list[oci.capacity_management.models.OccCustomerGroupSummary] + """ + self._items = items + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/occ_customer_group_summary.py b/src/oci/capacity_management/models/occ_customer_group_summary.py new file mode 100644 index 0000000000..c0d937e578 --- /dev/null +++ b/src/oci/capacity_management/models/occ_customer_group_summary.py @@ -0,0 +1,420 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class OccCustomerGroupSummary(object): + """ + A customer group is a resource that represents the portion of the capacity reserved for a customer + or a group of customers to facilitate their capacity bookings. + """ + + def __init__(self, **kwargs): + """ + Initializes a new OccCustomerGroupSummary object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param id: + The value to assign to the id property of this OccCustomerGroupSummary. + :type id: str + + :param compartment_id: + The value to assign to the compartment_id property of this OccCustomerGroupSummary. + :type compartment_id: str + + :param display_name: + The value to assign to the display_name property of this OccCustomerGroupSummary. + :type display_name: str + + :param description: + The value to assign to the description property of this OccCustomerGroupSummary. + :type description: str + + :param time_created: + The value to assign to the time_created property of this OccCustomerGroupSummary. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this OccCustomerGroupSummary. + :type time_updated: datetime + + :param status: + The value to assign to the status property of this OccCustomerGroupSummary. + :type status: str + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this OccCustomerGroupSummary. + :type lifecycle_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this OccCustomerGroupSummary. + :type lifecycle_details: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this OccCustomerGroupSummary. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this OccCustomerGroupSummary. + :type defined_tags: dict(str, dict(str, object)) + + :param system_tags: + The value to assign to the system_tags property of this OccCustomerGroupSummary. + :type system_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'id': 'str', + 'compartment_id': 'str', + 'display_name': 'str', + 'description': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'status': 'str', + 'lifecycle_state': 'str', + 'lifecycle_details': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'system_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'id': 'id', + 'compartment_id': 'compartmentId', + 'display_name': 'displayName', + 'description': 'description', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'status': 'status', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'system_tags': 'systemTags' + } + + self._id = None + self._compartment_id = None + self._display_name = None + self._description = None + self._time_created = None + self._time_updated = None + self._status = None + self._lifecycle_state = None + self._lifecycle_details = None + self._freeform_tags = None + self._defined_tags = None + self._system_tags = None + + @property + def id(self): + """ + **[Required]** Gets the id of this OccCustomerGroupSummary. + The OCID of the customer group. + + + :return: The id of this OccCustomerGroupSummary. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this OccCustomerGroupSummary. + The OCID of the customer group. + + + :param id: The id of this OccCustomerGroupSummary. + :type: str + """ + self._id = id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this OccCustomerGroupSummary. + The OCID of the tenancy containing the customer group. + + + :return: The compartment_id of this OccCustomerGroupSummary. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this OccCustomerGroupSummary. + The OCID of the tenancy containing the customer group. + + + :param compartment_id: The compartment_id of this OccCustomerGroupSummary. + :type: str + """ + self._compartment_id = compartment_id + + @property + def display_name(self): + """ + **[Required]** Gets the display_name of this OccCustomerGroupSummary. + The display name of the customer group. + + + :return: The display_name of this OccCustomerGroupSummary. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this OccCustomerGroupSummary. + The display name of the customer group. + + + :param display_name: The display_name of this OccCustomerGroupSummary. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this OccCustomerGroupSummary. + The description about the customer group. + + + :return: The description of this OccCustomerGroupSummary. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this OccCustomerGroupSummary. + The description about the customer group. + + + :param description: The description of this OccCustomerGroupSummary. + :type: str + """ + self._description = description + + @property + def time_created(self): + """ + Gets the time_created of this OccCustomerGroupSummary. + The time when the customer group was created. + + + :return: The time_created of this OccCustomerGroupSummary. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this OccCustomerGroupSummary. + The time when the customer group was created. + + + :param time_created: The time_created of this OccCustomerGroupSummary. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this OccCustomerGroupSummary. + The time when the customer group was last updated. + + + :return: The time_updated of this OccCustomerGroupSummary. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this OccCustomerGroupSummary. + The time when the customer group was last updated. + + + :param time_updated: The time_updated of this OccCustomerGroupSummary. + :type: datetime + """ + self._time_updated = time_updated + + @property + def status(self): + """ + **[Required]** Gets the status of this OccCustomerGroupSummary. + The status (enabled/disabled) of the customer group. + + + :return: The status of this OccCustomerGroupSummary. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this OccCustomerGroupSummary. + The status (enabled/disabled) of the customer group. + + + :param status: The status of this OccCustomerGroupSummary. + :type: str + """ + self._status = status + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this OccCustomerGroupSummary. + The current lifecycle state of the customer group. + + + :return: The lifecycle_state of this OccCustomerGroupSummary. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this OccCustomerGroupSummary. + The current lifecycle state of the customer group. + + + :param lifecycle_state: The lifecycle_state of this OccCustomerGroupSummary. + :type: str + """ + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this OccCustomerGroupSummary. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :return: The lifecycle_details of this OccCustomerGroupSummary. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this OccCustomerGroupSummary. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :param lifecycle_details: The lifecycle_details of this OccCustomerGroupSummary. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this OccCustomerGroupSummary. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :return: The freeform_tags of this OccCustomerGroupSummary. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this OccCustomerGroupSummary. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :param freeform_tags: The freeform_tags of this OccCustomerGroupSummary. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this OccCustomerGroupSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :return: The defined_tags of this OccCustomerGroupSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._defined_tags + + @defined_tags.setter + def defined_tags(self, defined_tags): + """ + Sets the defined_tags of this OccCustomerGroupSummary. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :param defined_tags: The defined_tags of this OccCustomerGroupSummary. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def system_tags(self): + """ + Gets the system_tags of this OccCustomerGroupSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :return: The system_tags of this OccCustomerGroupSummary. + :rtype: dict(str, dict(str, object)) + """ + return self._system_tags + + @system_tags.setter + def system_tags(self, system_tags): + """ + Sets the system_tags of this OccCustomerGroupSummary. + System tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}` + + + :param system_tags: The system_tags of this OccCustomerGroupSummary. + :type: dict(str, dict(str, object)) + """ + self._system_tags = system_tags + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/patch_insert_instruction.py b/src/oci/capacity_management/models/patch_insert_instruction.py new file mode 100644 index 0000000000..389c871a46 --- /dev/null +++ b/src/oci/capacity_management/models/patch_insert_instruction.py @@ -0,0 +1,171 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + +from .patch_instruction import PatchInstruction +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class PatchInsertInstruction(PatchInstruction): + """ + An operation that inserts a value into an array, shifting array items as necessary and handling NOT_FOUND exceptions by creating the implied containing structure. + """ + + #: A constant which can be used with the position property of a PatchInsertInstruction. + #: This constant has a value of "BEFORE" + POSITION_BEFORE = "BEFORE" + + #: A constant which can be used with the position property of a PatchInsertInstruction. + #: This constant has a value of "AFTER" + POSITION_AFTER = "AFTER" + + def __init__(self, **kwargs): + """ + Initializes a new PatchInsertInstruction object with values from keyword arguments. The default value of the :py:attr:`~oci.capacity_management.models.PatchInsertInstruction.operation` attribute + of this class is ``INSERT`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param operation: + The value to assign to the operation property of this PatchInsertInstruction. + Allowed values for this property are: "REQUIRE", "PROHIBIT", "REPLACE", "INSERT", "REMOVE", "MOVE", "MERGE" + :type operation: str + + :param selection: + The value to assign to the selection property of this PatchInsertInstruction. + :type selection: str + + :param value: + The value to assign to the value property of this PatchInsertInstruction. + :type value: object + + :param selected_item: + The value to assign to the selected_item property of this PatchInsertInstruction. + :type selected_item: str + + :param position: + The value to assign to the position property of this PatchInsertInstruction. + Allowed values for this property are: "BEFORE", "AFTER" + :type position: str + + """ + self.swagger_types = { + 'operation': 'str', + 'selection': 'str', + 'value': 'object', + 'selected_item': 'str', + 'position': 'str' + } + + self.attribute_map = { + 'operation': 'operation', + 'selection': 'selection', + 'value': 'value', + 'selected_item': 'selectedItem', + 'position': 'position' + } + + self._operation = None + self._selection = None + self._value = None + self._selected_item = None + self._position = None + self._operation = 'INSERT' + + @property + def value(self): + """ + **[Required]** Gets the value of this PatchInsertInstruction. + A value to be inserted into the target. + + + :return: The value of this PatchInsertInstruction. + :rtype: object + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this PatchInsertInstruction. + A value to be inserted into the target. + + + :param value: The value of this PatchInsertInstruction. + :type: object + """ + self._value = value + + @property + def selected_item(self): + """ + Gets the selected_item of this PatchInsertInstruction. + A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as `selection`. + + + :return: The selected_item of this PatchInsertInstruction. + :rtype: str + """ + return self._selected_item + + @selected_item.setter + def selected_item(self, selected_item): + """ + Sets the selected_item of this PatchInsertInstruction. + A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as `selection`. + + + :param selected_item: The selected_item of this PatchInsertInstruction. + :type: str + """ + self._selected_item = selected_item + + @property + def position(self): + """ + Gets the position of this PatchInsertInstruction. + Where to insert the value, relative to the first item matched by `selectedItem`. + If `selectedItem` is unspecified, then \"BEFORE\" specifies insertion at the first position in an array and \"AFTER\" specifies insertion at the last position. + If `selectedItem` is specified but results in an empty selection, then both values specify insertion at the last position. + + Allowed values for this property are: "BEFORE", "AFTER" + + + :return: The position of this PatchInsertInstruction. + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """ + Sets the position of this PatchInsertInstruction. + Where to insert the value, relative to the first item matched by `selectedItem`. + If `selectedItem` is unspecified, then \"BEFORE\" specifies insertion at the first position in an array and \"AFTER\" specifies insertion at the last position. + If `selectedItem` is specified but results in an empty selection, then both values specify insertion at the last position. + + + :param position: The position of this PatchInsertInstruction. + :type: str + """ + allowed_values = ["BEFORE", "AFTER"] + if not value_allowed_none_or_none_sentinel(position, allowed_values): + raise ValueError( + f"Invalid value for `position`, must be None or one of {allowed_values}" + ) + self._position = position + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/patch_insert_multiple_instruction.py b/src/oci/capacity_management/models/patch_insert_multiple_instruction.py new file mode 100644 index 0000000000..b520ea8f78 --- /dev/null +++ b/src/oci/capacity_management/models/patch_insert_multiple_instruction.py @@ -0,0 +1,171 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + +from .patch_instruction import PatchInstruction +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class PatchInsertMultipleInstruction(PatchInstruction): + """ + An operation that inserts multiple consecutive values into an array, shifting array items as necessary and handling NOT_FOUND exceptions by creating the implied containing structure. + """ + + #: A constant which can be used with the position property of a PatchInsertMultipleInstruction. + #: This constant has a value of "BEFORE" + POSITION_BEFORE = "BEFORE" + + #: A constant which can be used with the position property of a PatchInsertMultipleInstruction. + #: This constant has a value of "AFTER" + POSITION_AFTER = "AFTER" + + def __init__(self, **kwargs): + """ + Initializes a new PatchInsertMultipleInstruction object with values from keyword arguments. The default value of the :py:attr:`~oci.capacity_management.models.PatchInsertMultipleInstruction.operation` attribute + of this class is ``INSERT_MULTIPLE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param operation: + The value to assign to the operation property of this PatchInsertMultipleInstruction. + Allowed values for this property are: "REQUIRE", "PROHIBIT", "REPLACE", "INSERT", "REMOVE", "MOVE", "MERGE" + :type operation: str + + :param selection: + The value to assign to the selection property of this PatchInsertMultipleInstruction. + :type selection: str + + :param values: + The value to assign to the values property of this PatchInsertMultipleInstruction. + :type values: list[object] + + :param selected_item: + The value to assign to the selected_item property of this PatchInsertMultipleInstruction. + :type selected_item: str + + :param position: + The value to assign to the position property of this PatchInsertMultipleInstruction. + Allowed values for this property are: "BEFORE", "AFTER" + :type position: str + + """ + self.swagger_types = { + 'operation': 'str', + 'selection': 'str', + 'values': 'list[object]', + 'selected_item': 'str', + 'position': 'str' + } + + self.attribute_map = { + 'operation': 'operation', + 'selection': 'selection', + 'values': 'values', + 'selected_item': 'selectedItem', + 'position': 'position' + } + + self._operation = None + self._selection = None + self._values = None + self._selected_item = None + self._position = None + self._operation = 'INSERT_MULTIPLE' + + @property + def values(self): + """ + **[Required]** Gets the values of this PatchInsertMultipleInstruction. + A list of consecutive values to be inserted into the target. + + + :return: The values of this PatchInsertMultipleInstruction. + :rtype: list[object] + """ + return self._values + + @values.setter + def values(self, values): + """ + Sets the values of this PatchInsertMultipleInstruction. + A list of consecutive values to be inserted into the target. + + + :param values: The values of this PatchInsertMultipleInstruction. + :type: list[object] + """ + self._values = values + + @property + def selected_item(self): + """ + Gets the selected_item of this PatchInsertMultipleInstruction. + A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as `selection`. + + + :return: The selected_item of this PatchInsertMultipleInstruction. + :rtype: str + """ + return self._selected_item + + @selected_item.setter + def selected_item(self, selected_item): + """ + Sets the selected_item of this PatchInsertMultipleInstruction. + A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as `selection`. + + + :param selected_item: The selected_item of this PatchInsertMultipleInstruction. + :type: str + """ + self._selected_item = selected_item + + @property + def position(self): + """ + Gets the position of this PatchInsertMultipleInstruction. + Where to insert the values, relative to the first item matched by `selectedItem`. + If `selectedItem` is unspecified, then \"BEFORE\" specifies insertion at the first position in an array and \"AFTER\" specifies insertion at the last position. + If `selectedItem` is specified but results in an empty selection, then both values specify insertion at the last position. + + Allowed values for this property are: "BEFORE", "AFTER" + + + :return: The position of this PatchInsertMultipleInstruction. + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """ + Sets the position of this PatchInsertMultipleInstruction. + Where to insert the values, relative to the first item matched by `selectedItem`. + If `selectedItem` is unspecified, then \"BEFORE\" specifies insertion at the first position in an array and \"AFTER\" specifies insertion at the last position. + If `selectedItem` is specified but results in an empty selection, then both values specify insertion at the last position. + + + :param position: The position of this PatchInsertMultipleInstruction. + :type: str + """ + allowed_values = ["BEFORE", "AFTER"] + if not value_allowed_none_or_none_sentinel(position, allowed_values): + raise ValueError( + f"Invalid value for `position`, must be None or one of {allowed_values}" + ) + self._position = position + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/patch_instruction.py b/src/oci/capacity_management/models/patch_instruction.py new file mode 100644 index 0000000000..5da327c185 --- /dev/null +++ b/src/oci/capacity_management/models/patch_instruction.py @@ -0,0 +1,188 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class PatchInstruction(object): + """ + A single instruction to be included as part of Patch request content. + """ + + #: A constant which can be used with the operation property of a PatchInstruction. + #: This constant has a value of "REQUIRE" + OPERATION_REQUIRE = "REQUIRE" + + #: A constant which can be used with the operation property of a PatchInstruction. + #: This constant has a value of "PROHIBIT" + OPERATION_PROHIBIT = "PROHIBIT" + + #: A constant which can be used with the operation property of a PatchInstruction. + #: This constant has a value of "REPLACE" + OPERATION_REPLACE = "REPLACE" + + #: A constant which can be used with the operation property of a PatchInstruction. + #: This constant has a value of "INSERT" + OPERATION_INSERT = "INSERT" + + #: A constant which can be used with the operation property of a PatchInstruction. + #: This constant has a value of "REMOVE" + OPERATION_REMOVE = "REMOVE" + + #: A constant which can be used with the operation property of a PatchInstruction. + #: This constant has a value of "MOVE" + OPERATION_MOVE = "MOVE" + + #: A constant which can be used with the operation property of a PatchInstruction. + #: This constant has a value of "MERGE" + OPERATION_MERGE = "MERGE" + + def __init__(self, **kwargs): + """ + Initializes a new PatchInstruction object with values from keyword arguments. This class has the following subclasses and if you are using this class as input + to a service operations then you should favor using a subclass over the base class: + + * :class:`~oci.capacity_management.models.PatchMoveInstruction` + * :class:`~oci.capacity_management.models.PatchRemoveInstruction` + * :class:`~oci.capacity_management.models.PatchReplaceInstruction` + * :class:`~oci.capacity_management.models.PatchInsertMultipleInstruction` + * :class:`~oci.capacity_management.models.PatchInsertInstruction` + * :class:`~oci.capacity_management.models.PatchRequireInstruction` + * :class:`~oci.capacity_management.models.PatchMergeInstruction` + * :class:`~oci.capacity_management.models.PatchProhibitInstruction` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param operation: + The value to assign to the operation property of this PatchInstruction. + Allowed values for this property are: "REQUIRE", "PROHIBIT", "REPLACE", "INSERT", "REMOVE", "MOVE", "MERGE" + :type operation: str + + :param selection: + The value to assign to the selection property of this PatchInstruction. + :type selection: str + + """ + self.swagger_types = { + 'operation': 'str', + 'selection': 'str' + } + + self.attribute_map = { + 'operation': 'operation', + 'selection': 'selection' + } + + self._operation = None + self._selection = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['operation'] + + if type == 'MOVE': + return 'PatchMoveInstruction' + + if type == 'REMOVE': + return 'PatchRemoveInstruction' + + if type == 'REPLACE': + return 'PatchReplaceInstruction' + + if type == 'INSERT_MULTIPLE': + return 'PatchInsertMultipleInstruction' + + if type == 'INSERT': + return 'PatchInsertInstruction' + + if type == 'REQUIRE': + return 'PatchRequireInstruction' + + if type == 'MERGE': + return 'PatchMergeInstruction' + + if type == 'PROHIBIT': + return 'PatchProhibitInstruction' + else: + return 'PatchInstruction' + + @property + def operation(self): + """ + **[Required]** Gets the operation of this PatchInstruction. + Allowed values for this property are: "REQUIRE", "PROHIBIT", "REPLACE", "INSERT", "REMOVE", "MOVE", "MERGE" + + + :return: The operation of this PatchInstruction. + :rtype: str + """ + return self._operation + + @operation.setter + def operation(self, operation): + """ + Sets the operation of this PatchInstruction. + + :param operation: The operation of this PatchInstruction. + :type: str + """ + allowed_values = ["REQUIRE", "PROHIBIT", "REPLACE", "INSERT", "REMOVE", "MOVE", "MERGE"] + if not value_allowed_none_or_none_sentinel(operation, allowed_values): + raise ValueError( + f"Invalid value for `operation`, must be None or one of {allowed_values}" + ) + self._operation = operation + + @property + def selection(self): + """ + **[Required]** Gets the selection of this PatchInstruction. + The set of values to which the operation applies as a `JMESPath expression`__ for evaluation against the context resource. + An operation fails if the selection yields an exception, except as otherwise specified. + Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false. + + __ https://jmespath.org/specification.html + + + :return: The selection of this PatchInstruction. + :rtype: str + """ + return self._selection + + @selection.setter + def selection(self, selection): + """ + Sets the selection of this PatchInstruction. + The set of values to which the operation applies as a `JMESPath expression`__ for evaluation against the context resource. + An operation fails if the selection yields an exception, except as otherwise specified. + Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false. + + __ https://jmespath.org/specification.html + + + :param selection: The selection of this PatchInstruction. + :type: str + """ + self._selection = selection + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/patch_merge_instruction.py b/src/oci/capacity_management/models/patch_merge_instruction.py new file mode 100644 index 0000000000..9c1af96a3e --- /dev/null +++ b/src/oci/capacity_management/models/patch_merge_instruction.py @@ -0,0 +1,97 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + +from .patch_instruction import PatchInstruction +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class PatchMergeInstruction(PatchInstruction): + """ + An operation that recursively updates items of the selection, or adding the value if the selection is empty. + If the value is not an object, it is used directly, otherwise each key-value member is used + to create or update a member of the same name in the target and the same process is applied recursively for each object-typed value + (similar to `RFC 7396`__ JSON Merge Patch, except that null values are copied + rather than transformed into deletions). + NOT_FOUND exceptions are handled by creating the implied containing structure. + To avoid referential errors if an item's descendant is also in the selection, items of the selection are processed in order of decreasing depth. + + __ https://tools.ietf.org/html/rfc7396#section-2 + """ + + def __init__(self, **kwargs): + """ + Initializes a new PatchMergeInstruction object with values from keyword arguments. The default value of the :py:attr:`~oci.capacity_management.models.PatchMergeInstruction.operation` attribute + of this class is ``MERGE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param operation: + The value to assign to the operation property of this PatchMergeInstruction. + Allowed values for this property are: "REQUIRE", "PROHIBIT", "REPLACE", "INSERT", "REMOVE", "MOVE", "MERGE" + :type operation: str + + :param selection: + The value to assign to the selection property of this PatchMergeInstruction. + :type selection: str + + :param value: + The value to assign to the value property of this PatchMergeInstruction. + :type value: object + + """ + self.swagger_types = { + 'operation': 'str', + 'selection': 'str', + 'value': 'object' + } + + self.attribute_map = { + 'operation': 'operation', + 'selection': 'selection', + 'value': 'value' + } + + self._operation = None + self._selection = None + self._value = None + self._operation = 'MERGE' + + @property + def value(self): + """ + Gets the value of this PatchMergeInstruction. + A value to be merged into the target. + + + :return: The value of this PatchMergeInstruction. + :rtype: object + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this PatchMergeInstruction. + A value to be merged into the target. + + + :param value: The value of this PatchMergeInstruction. + :type: object + """ + self._value = value + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/patch_move_instruction.py b/src/oci/capacity_management/models/patch_move_instruction.py new file mode 100644 index 0000000000..896bed6ae4 --- /dev/null +++ b/src/oci/capacity_management/models/patch_move_instruction.py @@ -0,0 +1,147 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + +from .patch_instruction import PatchInstruction +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class PatchMoveInstruction(PatchInstruction): + """ + An operation that \"puts\" values from elsewhere in the target, functionally equivalent to a single add and then a remove. + The first item of the selection is replaced, or created if the selection is empty. + NOT_FOUND exceptions in the selection are handled by creating the implied containing structure. + This operation fails if the `from` selection yields any exceptions, or if an item is moved to any of its descendants. + """ + + #: A constant which can be used with the position property of a PatchMoveInstruction. + #: This constant has a value of "AT" + POSITION_AT = "AT" + + #: A constant which can be used with the position property of a PatchMoveInstruction. + #: This constant has a value of "BEFORE" + POSITION_BEFORE = "BEFORE" + + #: A constant which can be used with the position property of a PatchMoveInstruction. + #: This constant has a value of "AFTER" + POSITION_AFTER = "AFTER" + + def __init__(self, **kwargs): + """ + Initializes a new PatchMoveInstruction object with values from keyword arguments. The default value of the :py:attr:`~oci.capacity_management.models.PatchMoveInstruction.operation` attribute + of this class is ``MOVE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param operation: + The value to assign to the operation property of this PatchMoveInstruction. + Allowed values for this property are: "REQUIRE", "PROHIBIT", "REPLACE", "INSERT", "REMOVE", "MOVE", "MERGE" + :type operation: str + + :param selection: + The value to assign to the selection property of this PatchMoveInstruction. + :type selection: str + + :param _from: + The value to assign to the _from property of this PatchMoveInstruction. + :type _from: str + + :param position: + The value to assign to the position property of this PatchMoveInstruction. + Allowed values for this property are: "AT", "BEFORE", "AFTER" + :type position: str + + """ + self.swagger_types = { + 'operation': 'str', + 'selection': 'str', + '_from': 'str', + 'position': 'str' + } + + self.attribute_map = { + 'operation': 'operation', + 'selection': 'selection', + '_from': 'from', + 'position': 'position' + } + + self._operation = None + self._selection = None + self.__from = None + self._position = None + self._operation = 'MOVE' + + @property + def _from(self): + """ + **[Required]** Gets the _from of this PatchMoveInstruction. + The selection that is to be moved, with the same format and semantics as `selection`. + + + :return: The _from of this PatchMoveInstruction. + :rtype: str + """ + return self.__from + + @_from.setter + def _from(self, _from): + """ + Sets the _from of this PatchMoveInstruction. + The selection that is to be moved, with the same format and semantics as `selection`. + + + :param _from: The _from of this PatchMoveInstruction. + :type: str + """ + self.__from = _from + + @property + def position(self): + """ + Gets the position of this PatchMoveInstruction. + Where to insert the value in an array, relative to the first item in the selection. + If there is no such item, then \"BEFORE\" specifies insertion at the first position in an array and \"AFTER\" specifies insertion at the last position. + If the first item in the selection is not the child of an array, then this field has no effect. + + Allowed values for this property are: "AT", "BEFORE", "AFTER" + + + :return: The position of this PatchMoveInstruction. + :rtype: str + """ + return self._position + + @position.setter + def position(self, position): + """ + Sets the position of this PatchMoveInstruction. + Where to insert the value in an array, relative to the first item in the selection. + If there is no such item, then \"BEFORE\" specifies insertion at the first position in an array and \"AFTER\" specifies insertion at the last position. + If the first item in the selection is not the child of an array, then this field has no effect. + + + :param position: The position of this PatchMoveInstruction. + :type: str + """ + allowed_values = ["AT", "BEFORE", "AFTER"] + if not value_allowed_none_or_none_sentinel(position, allowed_values): + raise ValueError( + f"Invalid value for `position`, must be None or one of {allowed_values}" + ) + self._position = position + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/patch_occ_capacity_request_details.py b/src/oci/capacity_management/models/patch_occ_capacity_request_details.py new file mode 100644 index 0000000000..e9f51039b7 --- /dev/null +++ b/src/oci/capacity_management/models/patch_occ_capacity_request_details.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class PatchOccCapacityRequestDetails(object): + """ + CapacityRequest details to patch. + """ + + def __init__(self, **kwargs): + """ + Initializes a new PatchOccCapacityRequestDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param items: + The value to assign to the items property of this PatchOccCapacityRequestDetails. + :type items: list[oci.capacity_management.models.PatchInstruction] + + """ + self.swagger_types = { + 'items': 'list[PatchInstruction]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + Gets the items of this PatchOccCapacityRequestDetails. + List of patch instructions. + + + :return: The items of this PatchOccCapacityRequestDetails. + :rtype: list[oci.capacity_management.models.PatchInstruction] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this PatchOccCapacityRequestDetails. + List of patch instructions. + + + :param items: The items of this PatchOccCapacityRequestDetails. + :type: list[oci.capacity_management.models.PatchInstruction] + """ + self._items = items + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/patch_prohibit_instruction.py b/src/oci/capacity_management/models/patch_prohibit_instruction.py new file mode 100644 index 0000000000..271fbcb3ba --- /dev/null +++ b/src/oci/capacity_management/models/patch_prohibit_instruction.py @@ -0,0 +1,100 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + +from .patch_instruction import PatchInstruction +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class PatchProhibitInstruction(PatchInstruction): + """ + A precondition operation that requires a selection to be empty, or optionally to be non-empty but include no item with a specified value + (useful for asserting that a value does not exist before attempting to create it, avoiding accidental update). + It fails if value is provided and the selection includes an item matching it, or if value is not provided and the selection is not empty, + but ignores NOT_FOUND exceptions. + """ + + def __init__(self, **kwargs): + """ + Initializes a new PatchProhibitInstruction object with values from keyword arguments. The default value of the :py:attr:`~oci.capacity_management.models.PatchProhibitInstruction.operation` attribute + of this class is ``PROHIBIT`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param operation: + The value to assign to the operation property of this PatchProhibitInstruction. + Allowed values for this property are: "REQUIRE", "PROHIBIT", "REPLACE", "INSERT", "REMOVE", "MOVE", "MERGE" + :type operation: str + + :param selection: + The value to assign to the selection property of this PatchProhibitInstruction. + :type selection: str + + :param value: + The value to assign to the value property of this PatchProhibitInstruction. + :type value: object + + """ + self.swagger_types = { + 'operation': 'str', + 'selection': 'str', + 'value': 'object' + } + + self.attribute_map = { + 'operation': 'operation', + 'selection': 'selection', + 'value': 'value' + } + + self._operation = None + self._selection = None + self._value = None + self._operation = 'PROHIBIT' + + @property + def value(self): + """ + Gets the value of this PatchProhibitInstruction. + A value to be compared against each item of the selection. + If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation. + Otherwise, it matches any item to which it is equal according to the rules of `JSON Schema`__. + + __ https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3 + + + :return: The value of this PatchProhibitInstruction. + :rtype: object + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this PatchProhibitInstruction. + A value to be compared against each item of the selection. + If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation. + Otherwise, it matches any item to which it is equal according to the rules of `JSON Schema`__. + + __ https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3 + + + :param value: The value of this PatchProhibitInstruction. + :type: object + """ + self._value = value + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/patch_remove_instruction.py b/src/oci/capacity_management/models/patch_remove_instruction.py new file mode 100644 index 0000000000..8e728b04ba --- /dev/null +++ b/src/oci/capacity_management/models/patch_remove_instruction.py @@ -0,0 +1,59 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + +from .patch_instruction import PatchInstruction +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class PatchRemoveInstruction(PatchInstruction): + """ + An operation that deletes items, ignoring NOT_FOUND exceptions. + To avoid referential errors if an item's descendant is also in the selection, items of the selection are processed in order of decreasing depth. + """ + + def __init__(self, **kwargs): + """ + Initializes a new PatchRemoveInstruction object with values from keyword arguments. The default value of the :py:attr:`~oci.capacity_management.models.PatchRemoveInstruction.operation` attribute + of this class is ``REMOVE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param operation: + The value to assign to the operation property of this PatchRemoveInstruction. + Allowed values for this property are: "REQUIRE", "PROHIBIT", "REPLACE", "INSERT", "REMOVE", "MOVE", "MERGE" + :type operation: str + + :param selection: + The value to assign to the selection property of this PatchRemoveInstruction. + :type selection: str + + """ + self.swagger_types = { + 'operation': 'str', + 'selection': 'str' + } + + self.attribute_map = { + 'operation': 'operation', + 'selection': 'selection' + } + + self._operation = None + self._selection = None + self._operation = 'REMOVE' + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/patch_replace_instruction.py b/src/oci/capacity_management/models/patch_replace_instruction.py new file mode 100644 index 0000000000..4cd3c2a5ec --- /dev/null +++ b/src/oci/capacity_management/models/patch_replace_instruction.py @@ -0,0 +1,92 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + +from .patch_instruction import PatchInstruction +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class PatchReplaceInstruction(PatchInstruction): + """ + An operation that \"puts\" a value, replacing every item of the selection with it, or creating it if the selection is empty. + NOT_FOUND exceptions are handled by creating the implied containing structure (but note that this may put the target in an invalid state, + which can be prevented by use of precondition operations). + To avoid referential errors if an item's descendant is also in the selection, items of the selection are processed in order of decreasing depth. + """ + + def __init__(self, **kwargs): + """ + Initializes a new PatchReplaceInstruction object with values from keyword arguments. The default value of the :py:attr:`~oci.capacity_management.models.PatchReplaceInstruction.operation` attribute + of this class is ``REPLACE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param operation: + The value to assign to the operation property of this PatchReplaceInstruction. + Allowed values for this property are: "REQUIRE", "PROHIBIT", "REPLACE", "INSERT", "REMOVE", "MOVE", "MERGE" + :type operation: str + + :param selection: + The value to assign to the selection property of this PatchReplaceInstruction. + :type selection: str + + :param value: + The value to assign to the value property of this PatchReplaceInstruction. + :type value: object + + """ + self.swagger_types = { + 'operation': 'str', + 'selection': 'str', + 'value': 'object' + } + + self.attribute_map = { + 'operation': 'operation', + 'selection': 'selection', + 'value': 'value' + } + + self._operation = None + self._selection = None + self._value = None + self._operation = 'REPLACE' + + @property + def value(self): + """ + **[Required]** Gets the value of this PatchReplaceInstruction. + A value to be added into the target. + + + :return: The value of this PatchReplaceInstruction. + :rtype: object + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this PatchReplaceInstruction. + A value to be added into the target. + + + :param value: The value of this PatchReplaceInstruction. + :type: object + """ + self._value = value + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/patch_require_instruction.py b/src/oci/capacity_management/models/patch_require_instruction.py new file mode 100644 index 0000000000..0db9f13f24 --- /dev/null +++ b/src/oci/capacity_management/models/patch_require_instruction.py @@ -0,0 +1,99 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + +from .patch_instruction import PatchInstruction +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class PatchRequireInstruction(PatchInstruction): + """ + A precondition operation that requires a selection to be non-empty, and optionally to include an item with a specified value + (useful for asserting that a value exists before attempting to update it, avoiding accidental creation). + It fails if the selection is empty, or if value is provided and no item of the selection matches it. + """ + + def __init__(self, **kwargs): + """ + Initializes a new PatchRequireInstruction object with values from keyword arguments. The default value of the :py:attr:`~oci.capacity_management.models.PatchRequireInstruction.operation` attribute + of this class is ``REQUIRE`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param operation: + The value to assign to the operation property of this PatchRequireInstruction. + Allowed values for this property are: "REQUIRE", "PROHIBIT", "REPLACE", "INSERT", "REMOVE", "MOVE", "MERGE" + :type operation: str + + :param selection: + The value to assign to the selection property of this PatchRequireInstruction. + :type selection: str + + :param value: + The value to assign to the value property of this PatchRequireInstruction. + :type value: object + + """ + self.swagger_types = { + 'operation': 'str', + 'selection': 'str', + 'value': 'object' + } + + self.attribute_map = { + 'operation': 'operation', + 'selection': 'selection', + 'value': 'value' + } + + self._operation = None + self._selection = None + self._value = None + self._operation = 'REQUIRE' + + @property + def value(self): + """ + Gets the value of this PatchRequireInstruction. + A value to be compared against each item of the selection. + If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation. + Otherwise, it matches any item to which it is equal according to the rules of `JSON Schema`__. + + __ https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3 + + + :return: The value of this PatchRequireInstruction. + :rtype: object + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this PatchRequireInstruction. + A value to be compared against each item of the selection. + If this value is an object, then it matches any item that would be unaffected by applying this value as a merge operation. + Otherwise, it matches any item to which it is equal according to the rules of `JSON Schema`__. + + __ https://tools.ietf.org/html/draft-handrews-json-schema-00#section-4.2.3 + + + :param value: The value of this PatchRequireInstruction. + :type: object + """ + self._value = value + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/update_internal_occ_capacity_request_details.py b/src/oci/capacity_management/models/update_internal_occ_capacity_request_details.py new file mode 100644 index 0000000000..8f0e46f8f7 --- /dev/null +++ b/src/oci/capacity_management/models/update_internal_occ_capacity_request_details.py @@ -0,0 +1,123 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class UpdateInternalOccCapacityRequestDetails(object): + """ + The details required for making an internal API update call for the capacity requests. + """ + + #: A constant which can be used with the request_state property of a UpdateInternalOccCapacityRequestDetails. + #: This constant has a value of "RESOLVED" + REQUEST_STATE_RESOLVED = "RESOLVED" + + #: A constant which can be used with the request_state property of a UpdateInternalOccCapacityRequestDetails. + #: This constant has a value of "REJECTED" + REQUEST_STATE_REJECTED = "REJECTED" + + #: A constant which can be used with the request_state property of a UpdateInternalOccCapacityRequestDetails. + #: This constant has a value of "IN_PROGRESS" + REQUEST_STATE_IN_PROGRESS = "IN_PROGRESS" + + def __init__(self, **kwargs): + """ + Initializes a new UpdateInternalOccCapacityRequestDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param request_state: + The value to assign to the request_state property of this UpdateInternalOccCapacityRequestDetails. + Allowed values for this property are: "RESOLVED", "REJECTED", "IN_PROGRESS" + :type request_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this UpdateInternalOccCapacityRequestDetails. + :type lifecycle_details: str + + """ + self.swagger_types = { + 'request_state': 'str', + 'lifecycle_details': 'str' + } + + self.attribute_map = { + 'request_state': 'requestState', + 'lifecycle_details': 'lifecycleDetails' + } + + self._request_state = None + self._lifecycle_details = None + + @property + def request_state(self): + """ + Gets the request_state of this UpdateInternalOccCapacityRequestDetails. + The subset of request states available internally for updating the capacity request. + + Allowed values for this property are: "RESOLVED", "REJECTED", "IN_PROGRESS" + + + :return: The request_state of this UpdateInternalOccCapacityRequestDetails. + :rtype: str + """ + return self._request_state + + @request_state.setter + def request_state(self, request_state): + """ + Sets the request_state of this UpdateInternalOccCapacityRequestDetails. + The subset of request states available internally for updating the capacity request. + + + :param request_state: The request_state of this UpdateInternalOccCapacityRequestDetails. + :type: str + """ + allowed_values = ["RESOLVED", "REJECTED", "IN_PROGRESS"] + if not value_allowed_none_or_none_sentinel(request_state, allowed_values): + raise ValueError( + f"Invalid value for `request_state`, must be None or one of {allowed_values}" + ) + self._request_state = request_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this UpdateInternalOccCapacityRequestDetails. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :return: The lifecycle_details of this UpdateInternalOccCapacityRequestDetails. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this UpdateInternalOccCapacityRequestDetails. + A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State. + + + :param lifecycle_details: The lifecycle_details of this UpdateInternalOccCapacityRequestDetails. + :type: str + """ + self._lifecycle_details = lifecycle_details + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/update_occ_availability_catalog_details.py b/src/oci/capacity_management/models/update_occ_availability_catalog_details.py new file mode 100644 index 0000000000..6a86c302ae --- /dev/null +++ b/src/oci/capacity_management/models/update_occ_availability_catalog_details.py @@ -0,0 +1,169 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class UpdateOccAvailabilityCatalogDetails(object): + """ + Details about the update request for updating the availability catalogs. + """ + + def __init__(self, **kwargs): + """ + Initializes a new UpdateOccAvailabilityCatalogDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param display_name: + The value to assign to the display_name property of this UpdateOccAvailabilityCatalogDetails. + :type display_name: str + + :param description: + The value to assign to the description property of this UpdateOccAvailabilityCatalogDetails. + :type description: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this UpdateOccAvailabilityCatalogDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this UpdateOccAvailabilityCatalogDetails. + :type defined_tags: dict(str, dict(str, object)) + + """ + self.swagger_types = { + 'display_name': 'str', + 'description': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))' + } + + self.attribute_map = { + 'display_name': 'displayName', + 'description': 'description', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags' + } + + self._display_name = None + self._description = None + self._freeform_tags = None + self._defined_tags = None + + @property + def display_name(self): + """ + Gets the display_name of this UpdateOccAvailabilityCatalogDetails. + The display name of the availability catalog. + + + :return: The display_name of this UpdateOccAvailabilityCatalogDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this UpdateOccAvailabilityCatalogDetails. + The display name of the availability catalog. + + + :param display_name: The display_name of this UpdateOccAvailabilityCatalogDetails. + :type: str + """ + self._display_name = display_name + + @property + def description(self): + """ + Gets the description of this UpdateOccAvailabilityCatalogDetails. + Additional information about the availability catalog. + + + :return: The description of this UpdateOccAvailabilityCatalogDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this UpdateOccAvailabilityCatalogDetails. + Additional information about the availability catalog. + + + :param description: The description of this UpdateOccAvailabilityCatalogDetails. + :type: str + """ + self._description = description + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this UpdateOccAvailabilityCatalogDetails. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :return: The freeform_tags of this UpdateOccAvailabilityCatalogDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this UpdateOccAvailabilityCatalogDetails. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :param freeform_tags: The freeform_tags of this UpdateOccAvailabilityCatalogDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this UpdateOccAvailabilityCatalogDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :return: The defined_tags of this UpdateOccAvailabilityCatalogDetails. + :rtype: dict(str, dict(str, object)) + """ + return self._defined_tags + + @defined_tags.setter + def defined_tags(self, defined_tags): + """ + Sets the defined_tags of this UpdateOccAvailabilityCatalogDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :param defined_tags: The defined_tags of this UpdateOccAvailabilityCatalogDetails. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/capacity_management/models/update_occ_capacity_request_details.py b/src/oci/capacity_management/models/update_occ_capacity_request_details.py new file mode 100644 index 0000000000..98d45c0bab --- /dev/null +++ b/src/oci/capacity_management/models/update_occ_capacity_request_details.py @@ -0,0 +1,185 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20231107 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class UpdateOccCapacityRequestDetails(object): + """ + The details required for making an update call for capacity requests. + """ + + #: A constant which can be used with the request_state property of a UpdateOccCapacityRequestDetails. + #: This constant has a value of "SUBMITTED" + REQUEST_STATE_SUBMITTED = "SUBMITTED" + + #: A constant which can be used with the request_state property of a UpdateOccCapacityRequestDetails. + #: This constant has a value of "CANCELLED" + REQUEST_STATE_CANCELLED = "CANCELLED" + + def __init__(self, **kwargs): + """ + Initializes a new UpdateOccCapacityRequestDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param display_name: + The value to assign to the display_name property of this UpdateOccCapacityRequestDetails. + :type display_name: str + + :param freeform_tags: + The value to assign to the freeform_tags property of this UpdateOccCapacityRequestDetails. + :type freeform_tags: dict(str, str) + + :param defined_tags: + The value to assign to the defined_tags property of this UpdateOccCapacityRequestDetails. + :type defined_tags: dict(str, dict(str, object)) + + :param request_state: + The value to assign to the request_state property of this UpdateOccCapacityRequestDetails. + Allowed values for this property are: "SUBMITTED", "CANCELLED" + :type request_state: str + + """ + self.swagger_types = { + 'display_name': 'str', + 'freeform_tags': 'dict(str, str)', + 'defined_tags': 'dict(str, dict(str, object))', + 'request_state': 'str' + } + + self.attribute_map = { + 'display_name': 'displayName', + 'freeform_tags': 'freeformTags', + 'defined_tags': 'definedTags', + 'request_state': 'requestState' + } + + self._display_name = None + self._freeform_tags = None + self._defined_tags = None + self._request_state = None + + @property + def display_name(self): + """ + Gets the display_name of this UpdateOccCapacityRequestDetails. + The display name of the capacity request. + + + :return: The display_name of this UpdateOccCapacityRequestDetails. + :rtype: str + """ + return self._display_name + + @display_name.setter + def display_name(self, display_name): + """ + Sets the display_name of this UpdateOccCapacityRequestDetails. + The display name of the capacity request. + + + :param display_name: The display_name of this UpdateOccCapacityRequestDetails. + :type: str + """ + self._display_name = display_name + + @property + def freeform_tags(self): + """ + Gets the freeform_tags of this UpdateOccCapacityRequestDetails. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :return: The freeform_tags of this UpdateOccCapacityRequestDetails. + :rtype: dict(str, str) + """ + return self._freeform_tags + + @freeform_tags.setter + def freeform_tags(self, freeform_tags): + """ + Sets the freeform_tags of this UpdateOccCapacityRequestDetails. + Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + Example: `{\"bar-key\": \"value\"}` + + + :param freeform_tags: The freeform_tags of this UpdateOccCapacityRequestDetails. + :type: dict(str, str) + """ + self._freeform_tags = freeform_tags + + @property + def defined_tags(self): + """ + Gets the defined_tags of this UpdateOccCapacityRequestDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :return: The defined_tags of this UpdateOccCapacityRequestDetails. + :rtype: dict(str, dict(str, object)) + """ + return self._defined_tags + + @defined_tags.setter + def defined_tags(self, defined_tags): + """ + Sets the defined_tags of this UpdateOccCapacityRequestDetails. + Defined tags for this resource. Each key is predefined and scoped to a namespace. + Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` + + + :param defined_tags: The defined_tags of this UpdateOccCapacityRequestDetails. + :type: dict(str, dict(str, object)) + """ + self._defined_tags = defined_tags + + @property + def request_state(self): + """ + Gets the request_state of this UpdateOccCapacityRequestDetails. + The subset of request states available for updating the capacity request. + + Allowed values for this property are: "SUBMITTED", "CANCELLED" + + + :return: The request_state of this UpdateOccCapacityRequestDetails. + :rtype: str + """ + return self._request_state + + @request_state.setter + def request_state(self, request_state): + """ + Sets the request_state of this UpdateOccCapacityRequestDetails. + The subset of request states available for updating the capacity request. + + + :param request_state: The request_state of this UpdateOccCapacityRequestDetails. + :type: str + """ + allowed_values = ["SUBMITTED", "CANCELLED"] + if not value_allowed_none_or_none_sentinel(request_state, allowed_values): + raise ValueError( + f"Invalid value for `request_state`, must be None or one of {allowed_values}" + ) + self._request_state = request_state + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_integration/models/__init__.py b/src/oci/data_integration/models/__init__.py index 333dd7a9a7..83c9c1adbe 100644 --- a/src/oci/data_integration/models/__init__.py +++ b/src/oci/data_integration/models/__init__.py @@ -70,6 +70,8 @@ from .connection_from_my_sql_details import ConnectionFromMySQLDetails from .connection_from_my_sql_heat_wave import ConnectionFromMySqlHeatWave from .connection_from_my_sql_heat_wave_details import ConnectionFromMySqlHeatWaveDetails +from .connection_from_o_auth2 import ConnectionFromOAuth2 +from .connection_from_o_auth2_details import ConnectionFromOAuth2Details from .connection_from_object_storage import ConnectionFromObjectStorage from .connection_from_object_storage_details import ConnectionFromObjectStorageDetails from .connection_from_oracle import ConnectionFromOracle @@ -97,6 +99,7 @@ from .connection_summary_from_lake import ConnectionSummaryFromLake from .connection_summary_from_my_sql import ConnectionSummaryFromMySQL from .connection_summary_from_my_sql_heat_wave import ConnectionSummaryFromMySqlHeatWave +from .connection_summary_from_o_auth2 import ConnectionSummaryFromOAuth2 from .connection_summary_from_object_storage import ConnectionSummaryFromObjectStorage from .connection_summary_from_oracle import ConnectionSummaryFromOracle from .connection_summary_from_oracle_ebs import ConnectionSummaryFromOracleEbs @@ -128,6 +131,7 @@ from .create_connection_from_lake import CreateConnectionFromLake from .create_connection_from_my_sql import CreateConnectionFromMySQL from .create_connection_from_my_sql_heat_wave import CreateConnectionFromMySqlHeatWave +from .create_connection_from_o_auth2 import CreateConnectionFromOAuth2 from .create_connection_from_object_storage import CreateConnectionFromObjectStorage from .create_connection_from_oracle import CreateConnectionFromOracle from .create_connection_from_oracle_ebs import CreateConnectionFromOracleEbs @@ -529,6 +533,7 @@ from .update_connection_from_lake import UpdateConnectionFromLake from .update_connection_from_my_sql import UpdateConnectionFromMySQL from .update_connection_from_my_sql_heat_wave import UpdateConnectionFromMySqlHeatWave +from .update_connection_from_o_auth2 import UpdateConnectionFromOAuth2 from .update_connection_from_object_storage import UpdateConnectionFromObjectStorage from .update_connection_from_oracle import UpdateConnectionFromOracle from .update_connection_from_oracle_ebs import UpdateConnectionFromOracleEbs @@ -661,6 +666,8 @@ "ConnectionFromMySQLDetails": ConnectionFromMySQLDetails, "ConnectionFromMySqlHeatWave": ConnectionFromMySqlHeatWave, "ConnectionFromMySqlHeatWaveDetails": ConnectionFromMySqlHeatWaveDetails, + "ConnectionFromOAuth2": ConnectionFromOAuth2, + "ConnectionFromOAuth2Details": ConnectionFromOAuth2Details, "ConnectionFromObjectStorage": ConnectionFromObjectStorage, "ConnectionFromObjectStorageDetails": ConnectionFromObjectStorageDetails, "ConnectionFromOracle": ConnectionFromOracle, @@ -688,6 +695,7 @@ "ConnectionSummaryFromLake": ConnectionSummaryFromLake, "ConnectionSummaryFromMySQL": ConnectionSummaryFromMySQL, "ConnectionSummaryFromMySqlHeatWave": ConnectionSummaryFromMySqlHeatWave, + "ConnectionSummaryFromOAuth2": ConnectionSummaryFromOAuth2, "ConnectionSummaryFromObjectStorage": ConnectionSummaryFromObjectStorage, "ConnectionSummaryFromOracle": ConnectionSummaryFromOracle, "ConnectionSummaryFromOracleEbs": ConnectionSummaryFromOracleEbs, @@ -719,6 +727,7 @@ "CreateConnectionFromLake": CreateConnectionFromLake, "CreateConnectionFromMySQL": CreateConnectionFromMySQL, "CreateConnectionFromMySqlHeatWave": CreateConnectionFromMySqlHeatWave, + "CreateConnectionFromOAuth2": CreateConnectionFromOAuth2, "CreateConnectionFromObjectStorage": CreateConnectionFromObjectStorage, "CreateConnectionFromOracle": CreateConnectionFromOracle, "CreateConnectionFromOracleEbs": CreateConnectionFromOracleEbs, @@ -1120,6 +1129,7 @@ "UpdateConnectionFromLake": UpdateConnectionFromLake, "UpdateConnectionFromMySQL": UpdateConnectionFromMySQL, "UpdateConnectionFromMySqlHeatWave": UpdateConnectionFromMySqlHeatWave, + "UpdateConnectionFromOAuth2": UpdateConnectionFromOAuth2, "UpdateConnectionFromObjectStorage": UpdateConnectionFromObjectStorage, "UpdateConnectionFromOracle": UpdateConnectionFromOracle, "UpdateConnectionFromOracleEbs": UpdateConnectionFromOracleEbs, diff --git a/src/oci/data_integration/models/connection.py b/src/oci/data_integration/models/connection.py index 392cf5d2c7..94fcee981a 100644 --- a/src/oci/data_integration/models/connection.py +++ b/src/oci/data_integration/models/connection.py @@ -83,6 +83,10 @@ class Connection(object): #: This constant has a value of "REST_BASIC_AUTH_CONNECTION" MODEL_TYPE_REST_BASIC_AUTH_CONNECTION = "REST_BASIC_AUTH_CONNECTION" + #: A constant which can be used with the model_type property of a Connection. + #: This constant has a value of "OAUTH2_CONNECTION" + MODEL_TYPE_OAUTH2_CONNECTION = "OAUTH2_CONNECTION" + def __init__(self, **kwargs): """ Initializes a new Connection object with values from keyword arguments. This class has the following subclasses and if you are using this class as input @@ -91,6 +95,7 @@ def __init__(self, **kwargs): * :class:`~oci.data_integration.models.ConnectionFromAmazonS3` * :class:`~oci.data_integration.models.ConnectionFromBIP` * :class:`~oci.data_integration.models.ConnectionFromMySQL` + * :class:`~oci.data_integration.models.ConnectionFromOAuth2` * :class:`~oci.data_integration.models.ConnectionFromJdbc` * :class:`~oci.data_integration.models.ConnectionFromBICC` * :class:`~oci.data_integration.models.ConnectionFromMySqlHeatWave` @@ -110,7 +115,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this Connection. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str @@ -233,6 +238,9 @@ def get_subtype(object_dictionary): if type == 'MYSQL_CONNECTION': return 'ConnectionFromMySQL' + if type == 'OAUTH2_CONNECTION': + return 'ConnectionFromOAuth2' + if type == 'GENERIC_JDBC_CONNECTION': return 'ConnectionFromJdbc' @@ -283,7 +291,7 @@ def model_type(self): **[Required]** Gets the model_type of this Connection. The type of the connection. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -302,7 +310,7 @@ def model_type(self, model_type): :param model_type: The model_type of this Connection. :type: str """ - allowed_values = ["ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION"] + allowed_values = ["ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION"] if not value_allowed_none_or_none_sentinel(model_type, allowed_values): model_type = 'UNKNOWN_ENUM_VALUE' self._model_type = model_type diff --git a/src/oci/data_integration/models/connection_details.py b/src/oci/data_integration/models/connection_details.py index 901f9dbf3f..88021d22cc 100644 --- a/src/oci/data_integration/models/connection_details.py +++ b/src/oci/data_integration/models/connection_details.py @@ -83,6 +83,10 @@ class ConnectionDetails(object): #: This constant has a value of "REST_BASIC_AUTH_CONNECTION" MODEL_TYPE_REST_BASIC_AUTH_CONNECTION = "REST_BASIC_AUTH_CONNECTION" + #: A constant which can be used with the model_type property of a ConnectionDetails. + #: This constant has a value of "OAUTH2_CONNECTION" + MODEL_TYPE_OAUTH2_CONNECTION = "OAUTH2_CONNECTION" + def __init__(self, **kwargs): """ Initializes a new ConnectionDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input @@ -99,6 +103,7 @@ def __init__(self, **kwargs): * :class:`~oci.data_integration.models.ConnectionFromAtpDetails` * :class:`~oci.data_integration.models.ConnectionFromOraclePeopleSoftDetails` * :class:`~oci.data_integration.models.ConnectionFromRestBasicAuthDetails` + * :class:`~oci.data_integration.models.ConnectionFromOAuth2Details` * :class:`~oci.data_integration.models.ConnectionFromBICCDetails` * :class:`~oci.data_integration.models.ConnectionFromAdwcDetails` * :class:`~oci.data_integration.models.ConnectionFromOracleDetails` @@ -110,7 +115,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: @@ -249,6 +254,9 @@ def get_subtype(object_dictionary): if type == 'REST_BASIC_AUTH_CONNECTION': return 'ConnectionFromRestBasicAuthDetails' + if type == 'OAUTH2_CONNECTION': + return 'ConnectionFromOAuth2Details' + if type == 'BICC_CONNECTION': return 'ConnectionFromBICCDetails' @@ -275,7 +283,7 @@ def model_type(self): **[Required]** Gets the model_type of this ConnectionDetails. The type of the connection. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :return: The model_type of this ConnectionDetails. @@ -293,7 +301,7 @@ def model_type(self, model_type): :param model_type: The model_type of this ConnectionDetails. :type: str """ - allowed_values = ["ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION"] + allowed_values = ["ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION"] if not value_allowed_none_or_none_sentinel(model_type, allowed_values): raise ValueError( f"Invalid value for `model_type`, must be None or one of {allowed_values}" diff --git a/src/oci/data_integration/models/connection_from_adwc.py b/src/oci/data_integration/models/connection_from_adwc.py index 4c2d25c9b3..1697399c31 100644 --- a/src/oci/data_integration/models/connection_from_adwc.py +++ b/src/oci/data_integration/models/connection_from_adwc.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromAdwc. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_adwc_details.py b/src/oci/data_integration/models/connection_from_adwc_details.py index 96dc3294f9..5624cf470a 100644 --- a/src/oci/data_integration/models/connection_from_adwc_details.py +++ b/src/oci/data_integration/models/connection_from_adwc_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromAdwcDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_amazon_s3.py b/src/oci/data_integration/models/connection_from_amazon_s3.py index aed24db496..6d3cd80a9c 100644 --- a/src/oci/data_integration/models/connection_from_amazon_s3.py +++ b/src/oci/data_integration/models/connection_from_amazon_s3.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromAmazonS3. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_amazon_s3_details.py b/src/oci/data_integration/models/connection_from_amazon_s3_details.py index 09eb9f2edc..0767c70706 100644 --- a/src/oci/data_integration/models/connection_from_amazon_s3_details.py +++ b/src/oci/data_integration/models/connection_from_amazon_s3_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromAmazonS3Details. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_atp.py b/src/oci/data_integration/models/connection_from_atp.py index 18b97617a3..b63771fbb3 100644 --- a/src/oci/data_integration/models/connection_from_atp.py +++ b/src/oci/data_integration/models/connection_from_atp.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromAtp. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_atp_details.py b/src/oci/data_integration/models/connection_from_atp_details.py index 98c7d2ffd5..9129072d2a 100644 --- a/src/oci/data_integration/models/connection_from_atp_details.py +++ b/src/oci/data_integration/models/connection_from_atp_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromAtpDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_bicc.py b/src/oci/data_integration/models/connection_from_bicc.py index 362d89f7d9..eb2229f34d 100644 --- a/src/oci/data_integration/models/connection_from_bicc.py +++ b/src/oci/data_integration/models/connection_from_bicc.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromBICC. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_bicc_details.py b/src/oci/data_integration/models/connection_from_bicc_details.py index 2e50dfa149..368372c2bd 100644 --- a/src/oci/data_integration/models/connection_from_bicc_details.py +++ b/src/oci/data_integration/models/connection_from_bicc_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromBICCDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_bip.py b/src/oci/data_integration/models/connection_from_bip.py index c37ea8e808..c072045f1f 100644 --- a/src/oci/data_integration/models/connection_from_bip.py +++ b/src/oci/data_integration/models/connection_from_bip.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromBIP. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_bip_details.py b/src/oci/data_integration/models/connection_from_bip_details.py index f0534f413e..5ef42cb75b 100644 --- a/src/oci/data_integration/models/connection_from_bip_details.py +++ b/src/oci/data_integration/models/connection_from_bip_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromBipDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_hdfs.py b/src/oci/data_integration/models/connection_from_hdfs.py index 563ed1d425..89b84dbc5a 100644 --- a/src/oci/data_integration/models/connection_from_hdfs.py +++ b/src/oci/data_integration/models/connection_from_hdfs.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromHdfs. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_hdfs_details.py b/src/oci/data_integration/models/connection_from_hdfs_details.py index a72b5ef42a..96aa7836e2 100644 --- a/src/oci/data_integration/models/connection_from_hdfs_details.py +++ b/src/oci/data_integration/models/connection_from_hdfs_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromHdfsDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_jdbc.py b/src/oci/data_integration/models/connection_from_jdbc.py index 33c1c338e5..5be02d26c9 100644 --- a/src/oci/data_integration/models/connection_from_jdbc.py +++ b/src/oci/data_integration/models/connection_from_jdbc.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromJdbc. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_jdbc_details.py b/src/oci/data_integration/models/connection_from_jdbc_details.py index 574b8384d0..00f2f87642 100644 --- a/src/oci/data_integration/models/connection_from_jdbc_details.py +++ b/src/oci/data_integration/models/connection_from_jdbc_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromJdbcDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_lake.py b/src/oci/data_integration/models/connection_from_lake.py index 2027be658d..b97b552ba6 100644 --- a/src/oci/data_integration/models/connection_from_lake.py +++ b/src/oci/data_integration/models/connection_from_lake.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromLake. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_lake_details.py b/src/oci/data_integration/models/connection_from_lake_details.py index c841ce7f4b..af2ccbc064 100644 --- a/src/oci/data_integration/models/connection_from_lake_details.py +++ b/src/oci/data_integration/models/connection_from_lake_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromLakeDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_my_sql.py b/src/oci/data_integration/models/connection_from_my_sql.py index 000469c358..37304ac2e3 100644 --- a/src/oci/data_integration/models/connection_from_my_sql.py +++ b/src/oci/data_integration/models/connection_from_my_sql.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromMySQL. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_my_sql_details.py b/src/oci/data_integration/models/connection_from_my_sql_details.py index e47c074b24..ee1f9b29a0 100644 --- a/src/oci/data_integration/models/connection_from_my_sql_details.py +++ b/src/oci/data_integration/models/connection_from_my_sql_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromMySQLDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_my_sql_heat_wave.py b/src/oci/data_integration/models/connection_from_my_sql_heat_wave.py index 8aa7f71d1d..372291222e 100644 --- a/src/oci/data_integration/models/connection_from_my_sql_heat_wave.py +++ b/src/oci/data_integration/models/connection_from_my_sql_heat_wave.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromMySqlHeatWave. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_my_sql_heat_wave_details.py b/src/oci/data_integration/models/connection_from_my_sql_heat_wave_details.py index 15ae44ba27..cb5178210b 100644 --- a/src/oci/data_integration/models/connection_from_my_sql_heat_wave_details.py +++ b/src/oci/data_integration/models/connection_from_my_sql_heat_wave_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromMySqlHeatWaveDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_o_auth2.py b/src/oci/data_integration/models/connection_from_o_auth2.py new file mode 100644 index 0000000000..81bd344db6 --- /dev/null +++ b/src/oci/data_integration/models/connection_from_o_auth2.py @@ -0,0 +1,306 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200430 + +from .connection import Connection +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ConnectionFromOAuth2(Connection): + """ + The connection details for a OAuth connection. + """ + + #: A constant which can be used with the grant_type property of a ConnectionFromOAuth2. + #: This constant has a value of "CLIENT_CREDENTIALS" + GRANT_TYPE_CLIENT_CREDENTIALS = "CLIENT_CREDENTIALS" + + def __init__(self, **kwargs): + """ + Initializes a new ConnectionFromOAuth2 object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.ConnectionFromOAuth2.model_type` attribute + of this class is ``OAUTH2_CONNECTION`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param model_type: + The value to assign to the model_type property of this ConnectionFromOAuth2. + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type model_type: str + + :param key: + The value to assign to the key property of this ConnectionFromOAuth2. + :type key: str + + :param model_version: + The value to assign to the model_version property of this ConnectionFromOAuth2. + :type model_version: str + + :param parent_ref: + The value to assign to the parent_ref property of this ConnectionFromOAuth2. + :type parent_ref: oci.data_integration.models.ParentReference + + :param name: + The value to assign to the name property of this ConnectionFromOAuth2. + :type name: str + + :param description: + The value to assign to the description property of this ConnectionFromOAuth2. + :type description: str + + :param object_version: + The value to assign to the object_version property of this ConnectionFromOAuth2. + :type object_version: int + + :param object_status: + The value to assign to the object_status property of this ConnectionFromOAuth2. + :type object_status: int + + :param identifier: + The value to assign to the identifier property of this ConnectionFromOAuth2. + :type identifier: str + + :param primary_schema: + The value to assign to the primary_schema property of this ConnectionFromOAuth2. + :type primary_schema: oci.data_integration.models.Schema + + :param connection_properties: + The value to assign to the connection_properties property of this ConnectionFromOAuth2. + :type connection_properties: list[oci.data_integration.models.ConnectionProperty] + + :param is_default: + The value to assign to the is_default property of this ConnectionFromOAuth2. + :type is_default: bool + + :param metadata: + The value to assign to the metadata property of this ConnectionFromOAuth2. + :type metadata: oci.data_integration.models.ObjectMetadata + + :param key_map: + The value to assign to the key_map property of this ConnectionFromOAuth2. + :type key_map: dict(str, str) + + :param access_token_url: + The value to assign to the access_token_url property of this ConnectionFromOAuth2. + :type access_token_url: str + + :param client_id: + The value to assign to the client_id property of this ConnectionFromOAuth2. + :type client_id: str + + :param client_secret: + The value to assign to the client_secret property of this ConnectionFromOAuth2. + :type client_secret: oci.data_integration.models.SensitiveAttribute + + :param scope: + The value to assign to the scope property of this ConnectionFromOAuth2. + :type scope: str + + :param grant_type: + The value to assign to the grant_type property of this ConnectionFromOAuth2. + Allowed values for this property are: "CLIENT_CREDENTIALS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type grant_type: str + + """ + self.swagger_types = { + 'model_type': 'str', + 'key': 'str', + 'model_version': 'str', + 'parent_ref': 'ParentReference', + 'name': 'str', + 'description': 'str', + 'object_version': 'int', + 'object_status': 'int', + 'identifier': 'str', + 'primary_schema': 'Schema', + 'connection_properties': 'list[ConnectionProperty]', + 'is_default': 'bool', + 'metadata': 'ObjectMetadata', + 'key_map': 'dict(str, str)', + 'access_token_url': 'str', + 'client_id': 'str', + 'client_secret': 'SensitiveAttribute', + 'scope': 'str', + 'grant_type': 'str' + } + + self.attribute_map = { + 'model_type': 'modelType', + 'key': 'key', + 'model_version': 'modelVersion', + 'parent_ref': 'parentRef', + 'name': 'name', + 'description': 'description', + 'object_version': 'objectVersion', + 'object_status': 'objectStatus', + 'identifier': 'identifier', + 'primary_schema': 'primarySchema', + 'connection_properties': 'connectionProperties', + 'is_default': 'isDefault', + 'metadata': 'metadata', + 'key_map': 'keyMap', + 'access_token_url': 'accessTokenUrl', + 'client_id': 'clientId', + 'client_secret': 'clientSecret', + 'scope': 'scope', + 'grant_type': 'grantType' + } + + self._model_type = None + self._key = None + self._model_version = None + self._parent_ref = None + self._name = None + self._description = None + self._object_version = None + self._object_status = None + self._identifier = None + self._primary_schema = None + self._connection_properties = None + self._is_default = None + self._metadata = None + self._key_map = None + self._access_token_url = None + self._client_id = None + self._client_secret = None + self._scope = None + self._grant_type = None + self._model_type = 'OAUTH2_CONNECTION' + + @property + def access_token_url(self): + """ + **[Required]** Gets the access_token_url of this ConnectionFromOAuth2. + Specifies the endpoint used to exchange authentication credentials for access tokens + + + :return: The access_token_url of this ConnectionFromOAuth2. + :rtype: str + """ + return self._access_token_url + + @access_token_url.setter + def access_token_url(self, access_token_url): + """ + Sets the access_token_url of this ConnectionFromOAuth2. + Specifies the endpoint used to exchange authentication credentials for access tokens + + + :param access_token_url: The access_token_url of this ConnectionFromOAuth2. + :type: str + """ + self._access_token_url = access_token_url + + @property + def client_id(self): + """ + Gets the client_id of this ConnectionFromOAuth2. + Specifies the client ID key for specific application + + + :return: The client_id of this ConnectionFromOAuth2. + :rtype: str + """ + return self._client_id + + @client_id.setter + def client_id(self, client_id): + """ + Sets the client_id of this ConnectionFromOAuth2. + Specifies the client ID key for specific application + + + :param client_id: The client_id of this ConnectionFromOAuth2. + :type: str + """ + self._client_id = client_id + + @property + def client_secret(self): + """ + Gets the client_secret of this ConnectionFromOAuth2. + + :return: The client_secret of this ConnectionFromOAuth2. + :rtype: oci.data_integration.models.SensitiveAttribute + """ + return self._client_secret + + @client_secret.setter + def client_secret(self, client_secret): + """ + Sets the client_secret of this ConnectionFromOAuth2. + + :param client_secret: The client_secret of this ConnectionFromOAuth2. + :type: oci.data_integration.models.SensitiveAttribute + """ + self._client_secret = client_secret + + @property + def scope(self): + """ + Gets the scope of this ConnectionFromOAuth2. + Specifies the OAuth scopes that limit the permissions granted by an access token. + + + :return: The scope of this ConnectionFromOAuth2. + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """ + Sets the scope of this ConnectionFromOAuth2. + Specifies the OAuth scopes that limit the permissions granted by an access token. + + + :param scope: The scope of this ConnectionFromOAuth2. + :type: str + """ + self._scope = scope + + @property + def grant_type(self): + """ + Gets the grant_type of this ConnectionFromOAuth2. + Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + + Allowed values for this property are: "CLIENT_CREDENTIALS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The grant_type of this ConnectionFromOAuth2. + :rtype: str + """ + return self._grant_type + + @grant_type.setter + def grant_type(self, grant_type): + """ + Sets the grant_type of this ConnectionFromOAuth2. + Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + + + :param grant_type: The grant_type of this ConnectionFromOAuth2. + :type: str + """ + allowed_values = ["CLIENT_CREDENTIALS"] + if not value_allowed_none_or_none_sentinel(grant_type, allowed_values): + grant_type = 'UNKNOWN_ENUM_VALUE' + self._grant_type = grant_type + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_integration/models/connection_from_o_auth2_details.py b/src/oci/data_integration/models/connection_from_o_auth2_details.py new file mode 100644 index 0000000000..f033cbb05e --- /dev/null +++ b/src/oci/data_integration/models/connection_from_o_auth2_details.py @@ -0,0 +1,298 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200430 + +from .connection_details import ConnectionDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ConnectionFromOAuth2Details(ConnectionDetails): + """ + The connection details for a OAuth connection. + """ + + #: A constant which can be used with the grant_type property of a ConnectionFromOAuth2Details. + #: This constant has a value of "CLIENT_CREDENTIALS" + GRANT_TYPE_CLIENT_CREDENTIALS = "CLIENT_CREDENTIALS" + + def __init__(self, **kwargs): + """ + Initializes a new ConnectionFromOAuth2Details object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.ConnectionFromOAuth2Details.model_type` attribute + of this class is ``OAUTH2_CONNECTION`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param model_type: + The value to assign to the model_type property of this ConnectionFromOAuth2Details. + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + :type model_type: str + + :param key: + The value to assign to the key property of this ConnectionFromOAuth2Details. + :type key: str + + :param model_version: + The value to assign to the model_version property of this ConnectionFromOAuth2Details. + :type model_version: str + + :param parent_ref: + The value to assign to the parent_ref property of this ConnectionFromOAuth2Details. + :type parent_ref: oci.data_integration.models.ParentReference + + :param name: + The value to assign to the name property of this ConnectionFromOAuth2Details. + :type name: str + + :param description: + The value to assign to the description property of this ConnectionFromOAuth2Details. + :type description: str + + :param object_version: + The value to assign to the object_version property of this ConnectionFromOAuth2Details. + :type object_version: int + + :param object_status: + The value to assign to the object_status property of this ConnectionFromOAuth2Details. + :type object_status: int + + :param identifier: + The value to assign to the identifier property of this ConnectionFromOAuth2Details. + :type identifier: str + + :param primary_schema: + The value to assign to the primary_schema property of this ConnectionFromOAuth2Details. + :type primary_schema: oci.data_integration.models.Schema + + :param connection_properties: + The value to assign to the connection_properties property of this ConnectionFromOAuth2Details. + :type connection_properties: list[oci.data_integration.models.ConnectionProperty] + + :param is_default: + The value to assign to the is_default property of this ConnectionFromOAuth2Details. + :type is_default: bool + + :param metadata: + The value to assign to the metadata property of this ConnectionFromOAuth2Details. + :type metadata: oci.data_integration.models.ObjectMetadata + + :param access_token_url: + The value to assign to the access_token_url property of this ConnectionFromOAuth2Details. + :type access_token_url: str + + :param client_id: + The value to assign to the client_id property of this ConnectionFromOAuth2Details. + :type client_id: str + + :param client_secret: + The value to assign to the client_secret property of this ConnectionFromOAuth2Details. + :type client_secret: oci.data_integration.models.SensitiveAttribute + + :param scope: + The value to assign to the scope property of this ConnectionFromOAuth2Details. + :type scope: str + + :param grant_type: + The value to assign to the grant_type property of this ConnectionFromOAuth2Details. + Allowed values for this property are: "CLIENT_CREDENTIALS" + :type grant_type: str + + """ + self.swagger_types = { + 'model_type': 'str', + 'key': 'str', + 'model_version': 'str', + 'parent_ref': 'ParentReference', + 'name': 'str', + 'description': 'str', + 'object_version': 'int', + 'object_status': 'int', + 'identifier': 'str', + 'primary_schema': 'Schema', + 'connection_properties': 'list[ConnectionProperty]', + 'is_default': 'bool', + 'metadata': 'ObjectMetadata', + 'access_token_url': 'str', + 'client_id': 'str', + 'client_secret': 'SensitiveAttribute', + 'scope': 'str', + 'grant_type': 'str' + } + + self.attribute_map = { + 'model_type': 'modelType', + 'key': 'key', + 'model_version': 'modelVersion', + 'parent_ref': 'parentRef', + 'name': 'name', + 'description': 'description', + 'object_version': 'objectVersion', + 'object_status': 'objectStatus', + 'identifier': 'identifier', + 'primary_schema': 'primarySchema', + 'connection_properties': 'connectionProperties', + 'is_default': 'isDefault', + 'metadata': 'metadata', + 'access_token_url': 'accessTokenUrl', + 'client_id': 'clientId', + 'client_secret': 'clientSecret', + 'scope': 'scope', + 'grant_type': 'grantType' + } + + self._model_type = None + self._key = None + self._model_version = None + self._parent_ref = None + self._name = None + self._description = None + self._object_version = None + self._object_status = None + self._identifier = None + self._primary_schema = None + self._connection_properties = None + self._is_default = None + self._metadata = None + self._access_token_url = None + self._client_id = None + self._client_secret = None + self._scope = None + self._grant_type = None + self._model_type = 'OAUTH2_CONNECTION' + + @property + def access_token_url(self): + """ + **[Required]** Gets the access_token_url of this ConnectionFromOAuth2Details. + Specifies the endpoint used to exchange authentication credentials for access tokens + + + :return: The access_token_url of this ConnectionFromOAuth2Details. + :rtype: str + """ + return self._access_token_url + + @access_token_url.setter + def access_token_url(self, access_token_url): + """ + Sets the access_token_url of this ConnectionFromOAuth2Details. + Specifies the endpoint used to exchange authentication credentials for access tokens + + + :param access_token_url: The access_token_url of this ConnectionFromOAuth2Details. + :type: str + """ + self._access_token_url = access_token_url + + @property + def client_id(self): + """ + Gets the client_id of this ConnectionFromOAuth2Details. + Specifies the client ID key for specific application + + + :return: The client_id of this ConnectionFromOAuth2Details. + :rtype: str + """ + return self._client_id + + @client_id.setter + def client_id(self, client_id): + """ + Sets the client_id of this ConnectionFromOAuth2Details. + Specifies the client ID key for specific application + + + :param client_id: The client_id of this ConnectionFromOAuth2Details. + :type: str + """ + self._client_id = client_id + + @property + def client_secret(self): + """ + Gets the client_secret of this ConnectionFromOAuth2Details. + + :return: The client_secret of this ConnectionFromOAuth2Details. + :rtype: oci.data_integration.models.SensitiveAttribute + """ + return self._client_secret + + @client_secret.setter + def client_secret(self, client_secret): + """ + Sets the client_secret of this ConnectionFromOAuth2Details. + + :param client_secret: The client_secret of this ConnectionFromOAuth2Details. + :type: oci.data_integration.models.SensitiveAttribute + """ + self._client_secret = client_secret + + @property + def scope(self): + """ + Gets the scope of this ConnectionFromOAuth2Details. + Specifies the OAuth scopes that limit the permissions granted by an access token. + + + :return: The scope of this ConnectionFromOAuth2Details. + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """ + Sets the scope of this ConnectionFromOAuth2Details. + Specifies the OAuth scopes that limit the permissions granted by an access token. + + + :param scope: The scope of this ConnectionFromOAuth2Details. + :type: str + """ + self._scope = scope + + @property + def grant_type(self): + """ + Gets the grant_type of this ConnectionFromOAuth2Details. + Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + + Allowed values for this property are: "CLIENT_CREDENTIALS" + + + :return: The grant_type of this ConnectionFromOAuth2Details. + :rtype: str + """ + return self._grant_type + + @grant_type.setter + def grant_type(self, grant_type): + """ + Sets the grant_type of this ConnectionFromOAuth2Details. + Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + + + :param grant_type: The grant_type of this ConnectionFromOAuth2Details. + :type: str + """ + allowed_values = ["CLIENT_CREDENTIALS"] + if not value_allowed_none_or_none_sentinel(grant_type, allowed_values): + raise ValueError( + f"Invalid value for `grant_type`, must be None or one of {allowed_values}" + ) + self._grant_type = grant_type + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_integration/models/connection_from_object_storage.py b/src/oci/data_integration/models/connection_from_object_storage.py index 94fe7e122b..ee5026cfa9 100644 --- a/src/oci/data_integration/models/connection_from_object_storage.py +++ b/src/oci/data_integration/models/connection_from_object_storage.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromObjectStorage. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_object_storage_details.py b/src/oci/data_integration/models/connection_from_object_storage_details.py index e954bde7ee..515480ed84 100644 --- a/src/oci/data_integration/models/connection_from_object_storage_details.py +++ b/src/oci/data_integration/models/connection_from_object_storage_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromObjectStorageDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_oracle.py b/src/oci/data_integration/models/connection_from_oracle.py index be5127def0..b85c950850 100644 --- a/src/oci/data_integration/models/connection_from_oracle.py +++ b/src/oci/data_integration/models/connection_from_oracle.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromOracle. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_oracle_details.py b/src/oci/data_integration/models/connection_from_oracle_details.py index bf2a309016..570688313a 100644 --- a/src/oci/data_integration/models/connection_from_oracle_details.py +++ b/src/oci/data_integration/models/connection_from_oracle_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromOracleDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str diff --git a/src/oci/data_integration/models/connection_from_oracle_ebs.py b/src/oci/data_integration/models/connection_from_oracle_ebs.py index 7ae47b0d99..7751ddc8ff 100644 --- a/src/oci/data_integration/models/connection_from_oracle_ebs.py +++ b/src/oci/data_integration/models/connection_from_oracle_ebs.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromOracleEbs. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_oracle_ebs_details.py b/src/oci/data_integration/models/connection_from_oracle_ebs_details.py index 2b12adf898..755bb1da91 100644 --- a/src/oci/data_integration/models/connection_from_oracle_ebs_details.py +++ b/src/oci/data_integration/models/connection_from_oracle_ebs_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromOracleEbsDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_oracle_people_soft.py b/src/oci/data_integration/models/connection_from_oracle_people_soft.py index 4a15e062e8..0778ded34f 100644 --- a/src/oci/data_integration/models/connection_from_oracle_people_soft.py +++ b/src/oci/data_integration/models/connection_from_oracle_people_soft.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromOraclePeopleSoft. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_oracle_people_soft_details.py b/src/oci/data_integration/models/connection_from_oracle_people_soft_details.py index accf64d4f6..07681535a6 100644 --- a/src/oci/data_integration/models/connection_from_oracle_people_soft_details.py +++ b/src/oci/data_integration/models/connection_from_oracle_people_soft_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromOraclePeopleSoftDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_oracle_siebel.py b/src/oci/data_integration/models/connection_from_oracle_siebel.py index 51a35b5cdf..570683317d 100644 --- a/src/oci/data_integration/models/connection_from_oracle_siebel.py +++ b/src/oci/data_integration/models/connection_from_oracle_siebel.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromOracleSiebel. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_oracle_siebel_details.py b/src/oci/data_integration/models/connection_from_oracle_siebel_details.py index f672e1953a..536fb7028b 100644 --- a/src/oci/data_integration/models/connection_from_oracle_siebel_details.py +++ b/src/oci/data_integration/models/connection_from_oracle_siebel_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromOracleSiebelDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_rest_basic_auth.py b/src/oci/data_integration/models/connection_from_rest_basic_auth.py index 3eb9ab8ae2..8bfeed2cdd 100644 --- a/src/oci/data_integration/models/connection_from_rest_basic_auth.py +++ b/src/oci/data_integration/models/connection_from_rest_basic_auth.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromRestBasicAuth. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_rest_basic_auth_details.py b/src/oci/data_integration/models/connection_from_rest_basic_auth_details.py index 79eb4a3ddf..e5de336862 100644 --- a/src/oci/data_integration/models/connection_from_rest_basic_auth_details.py +++ b/src/oci/data_integration/models/connection_from_rest_basic_auth_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromRestBasicAuthDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_rest_no_auth.py b/src/oci/data_integration/models/connection_from_rest_no_auth.py index fbdb053414..d6f4822e1c 100644 --- a/src/oci/data_integration/models/connection_from_rest_no_auth.py +++ b/src/oci/data_integration/models/connection_from_rest_no_auth.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromRestNoAuth. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_from_rest_no_auth_details.py b/src/oci/data_integration/models/connection_from_rest_no_auth_details.py index 583f1fb0d1..11e861c39e 100644 --- a/src/oci/data_integration/models/connection_from_rest_no_auth_details.py +++ b/src/oci/data_integration/models/connection_from_rest_no_auth_details.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionFromRestNoAuthDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary.py b/src/oci/data_integration/models/connection_summary.py index a30e7cf696..33f80cd767 100644 --- a/src/oci/data_integration/models/connection_summary.py +++ b/src/oci/data_integration/models/connection_summary.py @@ -83,6 +83,10 @@ class ConnectionSummary(object): #: This constant has a value of "REST_BASIC_AUTH_CONNECTION" MODEL_TYPE_REST_BASIC_AUTH_CONNECTION = "REST_BASIC_AUTH_CONNECTION" + #: A constant which can be used with the model_type property of a ConnectionSummary. + #: This constant has a value of "OAUTH2_CONNECTION" + MODEL_TYPE_OAUTH2_CONNECTION = "OAUTH2_CONNECTION" + def __init__(self, **kwargs): """ Initializes a new ConnectionSummary object with values from keyword arguments. This class has the following subclasses and if you are using this class as input @@ -94,6 +98,7 @@ def __init__(self, **kwargs): * :class:`~oci.data_integration.models.ConnectionSummaryFromOracle` * :class:`~oci.data_integration.models.ConnectionSummaryFromMySqlHeatWave` * :class:`~oci.data_integration.models.ConnectionSummaryFromAmazonS3` + * :class:`~oci.data_integration.models.ConnectionSummaryFromOAuth2` * :class:`~oci.data_integration.models.ConnectionSummaryFromOraclePeopleSoft` * :class:`~oci.data_integration.models.ConnectionSummaryFromOracleEbs` * :class:`~oci.data_integration.models.ConnectionSummaryFromAdwc` @@ -110,7 +115,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummary. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str @@ -242,6 +247,9 @@ def get_subtype(object_dictionary): if type == 'AMAZON_S3_CONNECTION': return 'ConnectionSummaryFromAmazonS3' + if type == 'OAUTH2_CONNECTION': + return 'ConnectionSummaryFromOAuth2' + if type == 'ORACLE_PEOPLESOFT_CONNECTION': return 'ConnectionSummaryFromOraclePeopleSoft' @@ -283,7 +291,7 @@ def model_type(self): **[Required]** Gets the model_type of this ConnectionSummary. The type of the connection. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -302,7 +310,7 @@ def model_type(self, model_type): :param model_type: The model_type of this ConnectionSummary. :type: str """ - allowed_values = ["ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION"] + allowed_values = ["ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION"] if not value_allowed_none_or_none_sentinel(model_type, allowed_values): model_type = 'UNKNOWN_ENUM_VALUE' self._model_type = model_type diff --git a/src/oci/data_integration/models/connection_summary_from_adwc.py b/src/oci/data_integration/models/connection_summary_from_adwc.py index 154b73b8c6..6715f21c6f 100644 --- a/src/oci/data_integration/models/connection_summary_from_adwc.py +++ b/src/oci/data_integration/models/connection_summary_from_adwc.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromAdwc. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_amazon_s3.py b/src/oci/data_integration/models/connection_summary_from_amazon_s3.py index e539c817ba..9c4b7b2ab0 100644 --- a/src/oci/data_integration/models/connection_summary_from_amazon_s3.py +++ b/src/oci/data_integration/models/connection_summary_from_amazon_s3.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromAmazonS3. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str diff --git a/src/oci/data_integration/models/connection_summary_from_atp.py b/src/oci/data_integration/models/connection_summary_from_atp.py index 403c8eaa70..a2cb653dbd 100644 --- a/src/oci/data_integration/models/connection_summary_from_atp.py +++ b/src/oci/data_integration/models/connection_summary_from_atp.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromAtp. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_bicc.py b/src/oci/data_integration/models/connection_summary_from_bicc.py index c45ba50700..d351debd77 100644 --- a/src/oci/data_integration/models/connection_summary_from_bicc.py +++ b/src/oci/data_integration/models/connection_summary_from_bicc.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromBICC. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_bip.py b/src/oci/data_integration/models/connection_summary_from_bip.py index c19ef77466..5f4d20d4ac 100644 --- a/src/oci/data_integration/models/connection_summary_from_bip.py +++ b/src/oci/data_integration/models/connection_summary_from_bip.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromBIP. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_hdfs.py b/src/oci/data_integration/models/connection_summary_from_hdfs.py index f631d8ec2d..9025b2b0a6 100644 --- a/src/oci/data_integration/models/connection_summary_from_hdfs.py +++ b/src/oci/data_integration/models/connection_summary_from_hdfs.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromHdfs. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_jdbc.py b/src/oci/data_integration/models/connection_summary_from_jdbc.py index b203344753..7f3ca5d468 100644 --- a/src/oci/data_integration/models/connection_summary_from_jdbc.py +++ b/src/oci/data_integration/models/connection_summary_from_jdbc.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromJdbc. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_lake.py b/src/oci/data_integration/models/connection_summary_from_lake.py index d27343b528..f68304305e 100644 --- a/src/oci/data_integration/models/connection_summary_from_lake.py +++ b/src/oci/data_integration/models/connection_summary_from_lake.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromLake. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_my_sql.py b/src/oci/data_integration/models/connection_summary_from_my_sql.py index 6a95db0c43..030c9c5c5b 100644 --- a/src/oci/data_integration/models/connection_summary_from_my_sql.py +++ b/src/oci/data_integration/models/connection_summary_from_my_sql.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromMySQL. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_my_sql_heat_wave.py b/src/oci/data_integration/models/connection_summary_from_my_sql_heat_wave.py index 0cc38931bf..72bdd86a0c 100644 --- a/src/oci/data_integration/models/connection_summary_from_my_sql_heat_wave.py +++ b/src/oci/data_integration/models/connection_summary_from_my_sql_heat_wave.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromMySqlHeatWave. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_o_auth2.py b/src/oci/data_integration/models/connection_summary_from_o_auth2.py new file mode 100644 index 0000000000..b39081c6da --- /dev/null +++ b/src/oci/data_integration/models/connection_summary_from_o_auth2.py @@ -0,0 +1,306 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200430 + +from .connection_summary import ConnectionSummary +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ConnectionSummaryFromOAuth2(ConnectionSummary): + """ + The connection summary for a OAuth connection. + """ + + #: A constant which can be used with the grant_type property of a ConnectionSummaryFromOAuth2. + #: This constant has a value of "CLIENT_CREDENTIALS" + GRANT_TYPE_CLIENT_CREDENTIALS = "CLIENT_CREDENTIALS" + + def __init__(self, **kwargs): + """ + Initializes a new ConnectionSummaryFromOAuth2 object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.ConnectionSummaryFromOAuth2.model_type` attribute + of this class is ``OAUTH2_CONNECTION`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param model_type: + The value to assign to the model_type property of this ConnectionSummaryFromOAuth2. + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type model_type: str + + :param key: + The value to assign to the key property of this ConnectionSummaryFromOAuth2. + :type key: str + + :param model_version: + The value to assign to the model_version property of this ConnectionSummaryFromOAuth2. + :type model_version: str + + :param parent_ref: + The value to assign to the parent_ref property of this ConnectionSummaryFromOAuth2. + :type parent_ref: oci.data_integration.models.ParentReference + + :param name: + The value to assign to the name property of this ConnectionSummaryFromOAuth2. + :type name: str + + :param description: + The value to assign to the description property of this ConnectionSummaryFromOAuth2. + :type description: str + + :param object_version: + The value to assign to the object_version property of this ConnectionSummaryFromOAuth2. + :type object_version: int + + :param object_status: + The value to assign to the object_status property of this ConnectionSummaryFromOAuth2. + :type object_status: int + + :param identifier: + The value to assign to the identifier property of this ConnectionSummaryFromOAuth2. + :type identifier: str + + :param primary_schema: + The value to assign to the primary_schema property of this ConnectionSummaryFromOAuth2. + :type primary_schema: oci.data_integration.models.Schema + + :param connection_properties: + The value to assign to the connection_properties property of this ConnectionSummaryFromOAuth2. + :type connection_properties: list[oci.data_integration.models.ConnectionProperty] + + :param is_default: + The value to assign to the is_default property of this ConnectionSummaryFromOAuth2. + :type is_default: bool + + :param metadata: + The value to assign to the metadata property of this ConnectionSummaryFromOAuth2. + :type metadata: oci.data_integration.models.ObjectMetadata + + :param key_map: + The value to assign to the key_map property of this ConnectionSummaryFromOAuth2. + :type key_map: dict(str, str) + + :param access_token_url: + The value to assign to the access_token_url property of this ConnectionSummaryFromOAuth2. + :type access_token_url: str + + :param client_id: + The value to assign to the client_id property of this ConnectionSummaryFromOAuth2. + :type client_id: str + + :param client_secret: + The value to assign to the client_secret property of this ConnectionSummaryFromOAuth2. + :type client_secret: oci.data_integration.models.SensitiveAttribute + + :param scope: + The value to assign to the scope property of this ConnectionSummaryFromOAuth2. + :type scope: str + + :param grant_type: + The value to assign to the grant_type property of this ConnectionSummaryFromOAuth2. + Allowed values for this property are: "CLIENT_CREDENTIALS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type grant_type: str + + """ + self.swagger_types = { + 'model_type': 'str', + 'key': 'str', + 'model_version': 'str', + 'parent_ref': 'ParentReference', + 'name': 'str', + 'description': 'str', + 'object_version': 'int', + 'object_status': 'int', + 'identifier': 'str', + 'primary_schema': 'Schema', + 'connection_properties': 'list[ConnectionProperty]', + 'is_default': 'bool', + 'metadata': 'ObjectMetadata', + 'key_map': 'dict(str, str)', + 'access_token_url': 'str', + 'client_id': 'str', + 'client_secret': 'SensitiveAttribute', + 'scope': 'str', + 'grant_type': 'str' + } + + self.attribute_map = { + 'model_type': 'modelType', + 'key': 'key', + 'model_version': 'modelVersion', + 'parent_ref': 'parentRef', + 'name': 'name', + 'description': 'description', + 'object_version': 'objectVersion', + 'object_status': 'objectStatus', + 'identifier': 'identifier', + 'primary_schema': 'primarySchema', + 'connection_properties': 'connectionProperties', + 'is_default': 'isDefault', + 'metadata': 'metadata', + 'key_map': 'keyMap', + 'access_token_url': 'accessTokenUrl', + 'client_id': 'clientId', + 'client_secret': 'clientSecret', + 'scope': 'scope', + 'grant_type': 'grantType' + } + + self._model_type = None + self._key = None + self._model_version = None + self._parent_ref = None + self._name = None + self._description = None + self._object_version = None + self._object_status = None + self._identifier = None + self._primary_schema = None + self._connection_properties = None + self._is_default = None + self._metadata = None + self._key_map = None + self._access_token_url = None + self._client_id = None + self._client_secret = None + self._scope = None + self._grant_type = None + self._model_type = 'OAUTH2_CONNECTION' + + @property + def access_token_url(self): + """ + **[Required]** Gets the access_token_url of this ConnectionSummaryFromOAuth2. + Specifies the endpoint used to exchange authentication credentials for access tokens + + + :return: The access_token_url of this ConnectionSummaryFromOAuth2. + :rtype: str + """ + return self._access_token_url + + @access_token_url.setter + def access_token_url(self, access_token_url): + """ + Sets the access_token_url of this ConnectionSummaryFromOAuth2. + Specifies the endpoint used to exchange authentication credentials for access tokens + + + :param access_token_url: The access_token_url of this ConnectionSummaryFromOAuth2. + :type: str + """ + self._access_token_url = access_token_url + + @property + def client_id(self): + """ + Gets the client_id of this ConnectionSummaryFromOAuth2. + Specifies the client ID key for specific application + + + :return: The client_id of this ConnectionSummaryFromOAuth2. + :rtype: str + """ + return self._client_id + + @client_id.setter + def client_id(self, client_id): + """ + Sets the client_id of this ConnectionSummaryFromOAuth2. + Specifies the client ID key for specific application + + + :param client_id: The client_id of this ConnectionSummaryFromOAuth2. + :type: str + """ + self._client_id = client_id + + @property + def client_secret(self): + """ + Gets the client_secret of this ConnectionSummaryFromOAuth2. + + :return: The client_secret of this ConnectionSummaryFromOAuth2. + :rtype: oci.data_integration.models.SensitiveAttribute + """ + return self._client_secret + + @client_secret.setter + def client_secret(self, client_secret): + """ + Sets the client_secret of this ConnectionSummaryFromOAuth2. + + :param client_secret: The client_secret of this ConnectionSummaryFromOAuth2. + :type: oci.data_integration.models.SensitiveAttribute + """ + self._client_secret = client_secret + + @property + def scope(self): + """ + Gets the scope of this ConnectionSummaryFromOAuth2. + Specifies the OAuth scopes that limit the permissions granted by an access token. + + + :return: The scope of this ConnectionSummaryFromOAuth2. + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """ + Sets the scope of this ConnectionSummaryFromOAuth2. + Specifies the OAuth scopes that limit the permissions granted by an access token. + + + :param scope: The scope of this ConnectionSummaryFromOAuth2. + :type: str + """ + self._scope = scope + + @property + def grant_type(self): + """ + Gets the grant_type of this ConnectionSummaryFromOAuth2. + Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + + Allowed values for this property are: "CLIENT_CREDENTIALS", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The grant_type of this ConnectionSummaryFromOAuth2. + :rtype: str + """ + return self._grant_type + + @grant_type.setter + def grant_type(self, grant_type): + """ + Sets the grant_type of this ConnectionSummaryFromOAuth2. + Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + + + :param grant_type: The grant_type of this ConnectionSummaryFromOAuth2. + :type: str + """ + allowed_values = ["CLIENT_CREDENTIALS"] + if not value_allowed_none_or_none_sentinel(grant_type, allowed_values): + grant_type = 'UNKNOWN_ENUM_VALUE' + self._grant_type = grant_type + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_integration/models/connection_summary_from_object_storage.py b/src/oci/data_integration/models/connection_summary_from_object_storage.py index 222b186a52..9deae01ce3 100644 --- a/src/oci/data_integration/models/connection_summary_from_object_storage.py +++ b/src/oci/data_integration/models/connection_summary_from_object_storage.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromObjectStorage. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str diff --git a/src/oci/data_integration/models/connection_summary_from_oracle.py b/src/oci/data_integration/models/connection_summary_from_oracle.py index 64215194e6..c90fe3575a 100644 --- a/src/oci/data_integration/models/connection_summary_from_oracle.py +++ b/src/oci/data_integration/models/connection_summary_from_oracle.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromOracle. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type model_type: str diff --git a/src/oci/data_integration/models/connection_summary_from_oracle_ebs.py b/src/oci/data_integration/models/connection_summary_from_oracle_ebs.py index f5cf60a9c7..d113c58d8c 100644 --- a/src/oci/data_integration/models/connection_summary_from_oracle_ebs.py +++ b/src/oci/data_integration/models/connection_summary_from_oracle_ebs.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromOracleEbs. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_oracle_people_soft.py b/src/oci/data_integration/models/connection_summary_from_oracle_people_soft.py index a9328fa107..30e1cddfd0 100644 --- a/src/oci/data_integration/models/connection_summary_from_oracle_people_soft.py +++ b/src/oci/data_integration/models/connection_summary_from_oracle_people_soft.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromOraclePeopleSoft. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_oracle_siebel.py b/src/oci/data_integration/models/connection_summary_from_oracle_siebel.py index 0a9cfb31ef..2be8e86fe4 100644 --- a/src/oci/data_integration/models/connection_summary_from_oracle_siebel.py +++ b/src/oci/data_integration/models/connection_summary_from_oracle_siebel.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromOracleSiebel. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_rest_basic_auth.py b/src/oci/data_integration/models/connection_summary_from_rest_basic_auth.py index 9a9cceec9c..a8e3b8b514 100644 --- a/src/oci/data_integration/models/connection_summary_from_rest_basic_auth.py +++ b/src/oci/data_integration/models/connection_summary_from_rest_basic_auth.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromRestBasicAuth. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/connection_summary_from_rest_no_auth.py b/src/oci/data_integration/models/connection_summary_from_rest_no_auth.py index 997f105b38..a0c8b9172c 100644 --- a/src/oci/data_integration/models/connection_summary_from_rest_no_auth.py +++ b/src/oci/data_integration/models/connection_summary_from_rest_no_auth.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this ConnectionSummaryFromRestNoAuth. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_details.py b/src/oci/data_integration/models/create_connection_details.py index e4f7472f64..e320af0428 100644 --- a/src/oci/data_integration/models/create_connection_details.py +++ b/src/oci/data_integration/models/create_connection_details.py @@ -83,6 +83,10 @@ class CreateConnectionDetails(object): #: This constant has a value of "REST_BASIC_AUTH_CONNECTION" MODEL_TYPE_REST_BASIC_AUTH_CONNECTION = "REST_BASIC_AUTH_CONNECTION" + #: A constant which can be used with the model_type property of a CreateConnectionDetails. + #: This constant has a value of "OAUTH2_CONNECTION" + MODEL_TYPE_OAUTH2_CONNECTION = "OAUTH2_CONNECTION" + def __init__(self, **kwargs): """ Initializes a new CreateConnectionDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input @@ -101,6 +105,7 @@ def __init__(self, **kwargs): * :class:`~oci.data_integration.models.CreateConnectionFromMySQL` * :class:`~oci.data_integration.models.CreateConnectionFromJdbc` * :class:`~oci.data_integration.models.CreateConnectionFromBIP` + * :class:`~oci.data_integration.models.CreateConnectionFromOAuth2` * :class:`~oci.data_integration.models.CreateConnectionFromAdwc` * :class:`~oci.data_integration.models.CreateConnectionFromRestNoAuth` * :class:`~oci.data_integration.models.CreateConnectionFromObjectStorage` @@ -110,7 +115,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: @@ -234,6 +239,9 @@ def get_subtype(object_dictionary): if type == 'BIP_CONNECTION': return 'CreateConnectionFromBIP' + if type == 'OAUTH2_CONNECTION': + return 'CreateConnectionFromOAuth2' + if type == 'ORACLE_ADWC_CONNECTION': return 'CreateConnectionFromAdwc' @@ -254,7 +262,7 @@ def model_type(self): Gets the model_type of this CreateConnectionDetails. The type of the connection. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :return: The model_type of this CreateConnectionDetails. @@ -272,7 +280,7 @@ def model_type(self, model_type): :param model_type: The model_type of this CreateConnectionDetails. :type: str """ - allowed_values = ["ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION"] + allowed_values = ["ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION"] if not value_allowed_none_or_none_sentinel(model_type, allowed_values): raise ValueError( f"Invalid value for `model_type`, must be None or one of {allowed_values}" diff --git a/src/oci/data_integration/models/create_connection_from_adwc.py b/src/oci/data_integration/models/create_connection_from_adwc.py index 85d8c0b5c3..624dae0a11 100644 --- a/src/oci/data_integration/models/create_connection_from_adwc.py +++ b/src/oci/data_integration/models/create_connection_from_adwc.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromAdwc. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_amazon_s3.py b/src/oci/data_integration/models/create_connection_from_amazon_s3.py index 90ea969134..ce652539a7 100644 --- a/src/oci/data_integration/models/create_connection_from_amazon_s3.py +++ b/src/oci/data_integration/models/create_connection_from_amazon_s3.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromAmazonS3. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_atp.py b/src/oci/data_integration/models/create_connection_from_atp.py index 56ee7ea6fb..5e4fdaa4bb 100644 --- a/src/oci/data_integration/models/create_connection_from_atp.py +++ b/src/oci/data_integration/models/create_connection_from_atp.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromAtp. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_bicc.py b/src/oci/data_integration/models/create_connection_from_bicc.py index 8d5100a15e..126b7b0aae 100644 --- a/src/oci/data_integration/models/create_connection_from_bicc.py +++ b/src/oci/data_integration/models/create_connection_from_bicc.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromBICC. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_bip.py b/src/oci/data_integration/models/create_connection_from_bip.py index 6603e28b27..30b7c95214 100644 --- a/src/oci/data_integration/models/create_connection_from_bip.py +++ b/src/oci/data_integration/models/create_connection_from_bip.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromBIP. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_hdfs.py b/src/oci/data_integration/models/create_connection_from_hdfs.py index 337462b3f9..365b58e192 100644 --- a/src/oci/data_integration/models/create_connection_from_hdfs.py +++ b/src/oci/data_integration/models/create_connection_from_hdfs.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromHdfs. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_jdbc.py b/src/oci/data_integration/models/create_connection_from_jdbc.py index 0f4e85c14a..8567ead761 100644 --- a/src/oci/data_integration/models/create_connection_from_jdbc.py +++ b/src/oci/data_integration/models/create_connection_from_jdbc.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromJdbc. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_lake.py b/src/oci/data_integration/models/create_connection_from_lake.py index 6c22ce3b3a..c3aacf8a87 100644 --- a/src/oci/data_integration/models/create_connection_from_lake.py +++ b/src/oci/data_integration/models/create_connection_from_lake.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromLake. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_my_sql.py b/src/oci/data_integration/models/create_connection_from_my_sql.py index ef24e34bd2..65238b6a3f 100644 --- a/src/oci/data_integration/models/create_connection_from_my_sql.py +++ b/src/oci/data_integration/models/create_connection_from_my_sql.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromMySQL. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_my_sql_heat_wave.py b/src/oci/data_integration/models/create_connection_from_my_sql_heat_wave.py index 6ebdddae4c..2efcc17ba7 100644 --- a/src/oci/data_integration/models/create_connection_from_my_sql_heat_wave.py +++ b/src/oci/data_integration/models/create_connection_from_my_sql_heat_wave.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromMySqlHeatWave. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_o_auth2.py b/src/oci/data_integration/models/create_connection_from_o_auth2.py new file mode 100644 index 0000000000..051afa8cf0 --- /dev/null +++ b/src/oci/data_integration/models/create_connection_from_o_auth2.py @@ -0,0 +1,277 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200430 + +from .create_connection_details import CreateConnectionDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class CreateConnectionFromOAuth2(CreateConnectionDetails): + """ + The details to create a OAuth2 connection + """ + + #: A constant which can be used with the grant_type property of a CreateConnectionFromOAuth2. + #: This constant has a value of "CLIENT_CREDENTIALS" + GRANT_TYPE_CLIENT_CREDENTIALS = "CLIENT_CREDENTIALS" + + def __init__(self, **kwargs): + """ + Initializes a new CreateConnectionFromOAuth2 object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.CreateConnectionFromOAuth2.model_type` attribute + of this class is ``OAUTH2_CONNECTION`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param model_type: + The value to assign to the model_type property of this CreateConnectionFromOAuth2. + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + :type model_type: str + + :param key: + The value to assign to the key property of this CreateConnectionFromOAuth2. + :type key: str + + :param model_version: + The value to assign to the model_version property of this CreateConnectionFromOAuth2. + :type model_version: str + + :param parent_ref: + The value to assign to the parent_ref property of this CreateConnectionFromOAuth2. + :type parent_ref: oci.data_integration.models.ParentReference + + :param name: + The value to assign to the name property of this CreateConnectionFromOAuth2. + :type name: str + + :param description: + The value to assign to the description property of this CreateConnectionFromOAuth2. + :type description: str + + :param object_status: + The value to assign to the object_status property of this CreateConnectionFromOAuth2. + :type object_status: int + + :param identifier: + The value to assign to the identifier property of this CreateConnectionFromOAuth2. + :type identifier: str + + :param connection_properties: + The value to assign to the connection_properties property of this CreateConnectionFromOAuth2. + :type connection_properties: list[oci.data_integration.models.ConnectionProperty] + + :param registry_metadata: + The value to assign to the registry_metadata property of this CreateConnectionFromOAuth2. + :type registry_metadata: oci.data_integration.models.RegistryMetadata + + :param access_token_url: + The value to assign to the access_token_url property of this CreateConnectionFromOAuth2. + :type access_token_url: str + + :param client_id: + The value to assign to the client_id property of this CreateConnectionFromOAuth2. + :type client_id: str + + :param client_secret: + The value to assign to the client_secret property of this CreateConnectionFromOAuth2. + :type client_secret: oci.data_integration.models.SensitiveAttribute + + :param scope: + The value to assign to the scope property of this CreateConnectionFromOAuth2. + :type scope: str + + :param grant_type: + The value to assign to the grant_type property of this CreateConnectionFromOAuth2. + Allowed values for this property are: "CLIENT_CREDENTIALS" + :type grant_type: str + + """ + self.swagger_types = { + 'model_type': 'str', + 'key': 'str', + 'model_version': 'str', + 'parent_ref': 'ParentReference', + 'name': 'str', + 'description': 'str', + 'object_status': 'int', + 'identifier': 'str', + 'connection_properties': 'list[ConnectionProperty]', + 'registry_metadata': 'RegistryMetadata', + 'access_token_url': 'str', + 'client_id': 'str', + 'client_secret': 'SensitiveAttribute', + 'scope': 'str', + 'grant_type': 'str' + } + + self.attribute_map = { + 'model_type': 'modelType', + 'key': 'key', + 'model_version': 'modelVersion', + 'parent_ref': 'parentRef', + 'name': 'name', + 'description': 'description', + 'object_status': 'objectStatus', + 'identifier': 'identifier', + 'connection_properties': 'connectionProperties', + 'registry_metadata': 'registryMetadata', + 'access_token_url': 'accessTokenUrl', + 'client_id': 'clientId', + 'client_secret': 'clientSecret', + 'scope': 'scope', + 'grant_type': 'grantType' + } + + self._model_type = None + self._key = None + self._model_version = None + self._parent_ref = None + self._name = None + self._description = None + self._object_status = None + self._identifier = None + self._connection_properties = None + self._registry_metadata = None + self._access_token_url = None + self._client_id = None + self._client_secret = None + self._scope = None + self._grant_type = None + self._model_type = 'OAUTH2_CONNECTION' + + @property + def access_token_url(self): + """ + **[Required]** Gets the access_token_url of this CreateConnectionFromOAuth2. + Specifies the endpoint used to exchange authentication credentials for access tokens + + + :return: The access_token_url of this CreateConnectionFromOAuth2. + :rtype: str + """ + return self._access_token_url + + @access_token_url.setter + def access_token_url(self, access_token_url): + """ + Sets the access_token_url of this CreateConnectionFromOAuth2. + Specifies the endpoint used to exchange authentication credentials for access tokens + + + :param access_token_url: The access_token_url of this CreateConnectionFromOAuth2. + :type: str + """ + self._access_token_url = access_token_url + + @property + def client_id(self): + """ + Gets the client_id of this CreateConnectionFromOAuth2. + Specifies the client ID key for specific application + + + :return: The client_id of this CreateConnectionFromOAuth2. + :rtype: str + """ + return self._client_id + + @client_id.setter + def client_id(self, client_id): + """ + Sets the client_id of this CreateConnectionFromOAuth2. + Specifies the client ID key for specific application + + + :param client_id: The client_id of this CreateConnectionFromOAuth2. + :type: str + """ + self._client_id = client_id + + @property + def client_secret(self): + """ + Gets the client_secret of this CreateConnectionFromOAuth2. + + :return: The client_secret of this CreateConnectionFromOAuth2. + :rtype: oci.data_integration.models.SensitiveAttribute + """ + return self._client_secret + + @client_secret.setter + def client_secret(self, client_secret): + """ + Sets the client_secret of this CreateConnectionFromOAuth2. + + :param client_secret: The client_secret of this CreateConnectionFromOAuth2. + :type: oci.data_integration.models.SensitiveAttribute + """ + self._client_secret = client_secret + + @property + def scope(self): + """ + Gets the scope of this CreateConnectionFromOAuth2. + Specifies the OAuth scopes that limit the permissions granted by an access token. + + + :return: The scope of this CreateConnectionFromOAuth2. + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """ + Sets the scope of this CreateConnectionFromOAuth2. + Specifies the OAuth scopes that limit the permissions granted by an access token. + + + :param scope: The scope of this CreateConnectionFromOAuth2. + :type: str + """ + self._scope = scope + + @property + def grant_type(self): + """ + Gets the grant_type of this CreateConnectionFromOAuth2. + Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + + Allowed values for this property are: "CLIENT_CREDENTIALS" + + + :return: The grant_type of this CreateConnectionFromOAuth2. + :rtype: str + """ + return self._grant_type + + @grant_type.setter + def grant_type(self, grant_type): + """ + Sets the grant_type of this CreateConnectionFromOAuth2. + Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + + + :param grant_type: The grant_type of this CreateConnectionFromOAuth2. + :type: str + """ + allowed_values = ["CLIENT_CREDENTIALS"] + if not value_allowed_none_or_none_sentinel(grant_type, allowed_values): + raise ValueError( + f"Invalid value for `grant_type`, must be None or one of {allowed_values}" + ) + self._grant_type = grant_type + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_integration/models/create_connection_from_object_storage.py b/src/oci/data_integration/models/create_connection_from_object_storage.py index df91f08550..9473dc7766 100644 --- a/src/oci/data_integration/models/create_connection_from_object_storage.py +++ b/src/oci/data_integration/models/create_connection_from_object_storage.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromObjectStorage. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_oracle.py b/src/oci/data_integration/models/create_connection_from_oracle.py index 92c71be993..f409dc1cae 100644 --- a/src/oci/data_integration/models/create_connection_from_oracle.py +++ b/src/oci/data_integration/models/create_connection_from_oracle.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromOracle. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_oracle_ebs.py b/src/oci/data_integration/models/create_connection_from_oracle_ebs.py index 98c2e2c89e..54966c9d43 100644 --- a/src/oci/data_integration/models/create_connection_from_oracle_ebs.py +++ b/src/oci/data_integration/models/create_connection_from_oracle_ebs.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromOracleEbs. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_oracle_people_soft.py b/src/oci/data_integration/models/create_connection_from_oracle_people_soft.py index 7dead9926f..d52bb096fb 100644 --- a/src/oci/data_integration/models/create_connection_from_oracle_people_soft.py +++ b/src/oci/data_integration/models/create_connection_from_oracle_people_soft.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromOraclePeopleSoft. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_oracle_siebel.py b/src/oci/data_integration/models/create_connection_from_oracle_siebel.py index 932638a882..a0e65d97fb 100644 --- a/src/oci/data_integration/models/create_connection_from_oracle_siebel.py +++ b/src/oci/data_integration/models/create_connection_from_oracle_siebel.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromOracleSiebel. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_rest_basic_auth.py b/src/oci/data_integration/models/create_connection_from_rest_basic_auth.py index f835ea2ec9..4042c913e8 100644 --- a/src/oci/data_integration/models/create_connection_from_rest_basic_auth.py +++ b/src/oci/data_integration/models/create_connection_from_rest_basic_auth.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromRestBasicAuth. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_connection_from_rest_no_auth.py b/src/oci/data_integration/models/create_connection_from_rest_no_auth.py index a409162d53..666e0e672b 100644 --- a/src/oci/data_integration/models/create_connection_from_rest_no_auth.py +++ b/src/oci/data_integration/models/create_connection_from_rest_no_auth.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this CreateConnectionFromRestNoAuth. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/create_import_request_details.py b/src/oci/data_integration/models/create_import_request_details.py index 5896573827..42d8ce6aed 100644 --- a/src/oci/data_integration/models/create_import_request_details.py +++ b/src/oci/data_integration/models/create_import_request_details.py @@ -40,6 +40,10 @@ def __init__(self, **kwargs): The value to assign to the object_key_for_import property of this CreateImportRequestDetails. :type object_key_for_import: str + :param are_data_asset_references_included: + The value to assign to the are_data_asset_references_included property of this CreateImportRequestDetails. + :type are_data_asset_references_included: bool + :param import_conflict_resolution: The value to assign to the import_conflict_resolution property of this CreateImportRequestDetails. :type import_conflict_resolution: oci.data_integration.models.ImportConflictResolution @@ -51,6 +55,7 @@ def __init__(self, **kwargs): 'object_storage_tenancy_id': 'str', 'object_storage_region': 'str', 'object_key_for_import': 'str', + 'are_data_asset_references_included': 'bool', 'import_conflict_resolution': 'ImportConflictResolution' } @@ -60,6 +65,7 @@ def __init__(self, **kwargs): 'object_storage_tenancy_id': 'objectStorageTenancyId', 'object_storage_region': 'objectStorageRegion', 'object_key_for_import': 'objectKeyForImport', + 'are_data_asset_references_included': 'areDataAssetReferencesIncluded', 'import_conflict_resolution': 'importConflictResolution' } @@ -68,6 +74,7 @@ def __init__(self, **kwargs): self._object_storage_tenancy_id = None self._object_storage_region = None self._object_key_for_import = None + self._are_data_asset_references_included = None self._import_conflict_resolution = None @property @@ -190,6 +197,30 @@ def object_key_for_import(self, object_key_for_import): """ self._object_key_for_import = object_key_for_import + @property + def are_data_asset_references_included(self): + """ + Gets the are_data_asset_references_included of this CreateImportRequestDetails. + This field controls if the data asset references will be included during import. + + + :return: The are_data_asset_references_included of this CreateImportRequestDetails. + :rtype: bool + """ + return self._are_data_asset_references_included + + @are_data_asset_references_included.setter + def are_data_asset_references_included(self, are_data_asset_references_included): + """ + Sets the are_data_asset_references_included of this CreateImportRequestDetails. + This field controls if the data asset references will be included during import. + + + :param are_data_asset_references_included: The are_data_asset_references_included of this CreateImportRequestDetails. + :type: bool + """ + self._are_data_asset_references_included = are_data_asset_references_included + @property def import_conflict_resolution(self): """ diff --git a/src/oci/data_integration/models/import_object_metadata_summary.py b/src/oci/data_integration/models/import_object_metadata_summary.py index bf7de0428e..158b247683 100644 --- a/src/oci/data_integration/models/import_object_metadata_summary.py +++ b/src/oci/data_integration/models/import_object_metadata_summary.py @@ -31,6 +31,10 @@ class ImportObjectMetadataSummary(object): #: This constant has a value of "REPLACED" RESOLUTION_ACTION_REPLACED = "REPLACED" + #: A constant which can be used with the resolution_action property of a ImportObjectMetadataSummary. + #: This constant has a value of "EXCLUDED" + RESOLUTION_ACTION_EXCLUDED = "EXCLUDED" + def __init__(self, **kwargs): """ Initializes a new ImportObjectMetadataSummary object with values from keyword arguments. @@ -74,7 +78,7 @@ def __init__(self, **kwargs): :param resolution_action: The value to assign to the resolution_action property of this ImportObjectMetadataSummary. - Allowed values for this property are: "CREATED", "RETAINED", "DUPLICATED", "REPLACED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATED", "RETAINED", "DUPLICATED", "REPLACED", "EXCLUDED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type resolution_action: str @@ -338,7 +342,7 @@ def resolution_action(self): Gets the resolution_action of this ImportObjectMetadataSummary. Object resolution action - Allowed values for this property are: "CREATED", "RETAINED", "DUPLICATED", "REPLACED", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "CREATED", "RETAINED", "DUPLICATED", "REPLACED", "EXCLUDED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -357,7 +361,7 @@ def resolution_action(self, resolution_action): :param resolution_action: The resolution_action of this ImportObjectMetadataSummary. :type: str """ - allowed_values = ["CREATED", "RETAINED", "DUPLICATED", "REPLACED"] + allowed_values = ["CREATED", "RETAINED", "DUPLICATED", "REPLACED", "EXCLUDED"] if not value_allowed_none_or_none_sentinel(resolution_action, allowed_values): resolution_action = 'UNKNOWN_ENUM_VALUE' self._resolution_action = resolution_action diff --git a/src/oci/data_integration/models/import_request.py b/src/oci/data_integration/models/import_request.py index 0ad6f90571..e8e1fd2444 100644 --- a/src/oci/data_integration/models/import_request.py +++ b/src/oci/data_integration/models/import_request.py @@ -68,6 +68,10 @@ def __init__(self, **kwargs): The value to assign to the object_key_for_import property of this ImportRequest. :type object_key_for_import: str + :param are_data_asset_references_included: + The value to assign to the are_data_asset_references_included property of this ImportRequest. + :type are_data_asset_references_included: bool + :param import_conflict_resolution: The value to assign to the import_conflict_resolution property of this ImportRequest. :type import_conflict_resolution: oci.data_integration.models.ImportConflictResolution @@ -114,6 +118,7 @@ def __init__(self, **kwargs): 'object_storage_tenancy_id': 'str', 'object_storage_region': 'str', 'object_key_for_import': 'str', + 'are_data_asset_references_included': 'bool', 'import_conflict_resolution': 'ImportConflictResolution', 'status': 'str', 'created_by': 'str', @@ -132,6 +137,7 @@ def __init__(self, **kwargs): 'object_storage_tenancy_id': 'objectStorageTenancyId', 'object_storage_region': 'objectStorageRegion', 'object_key_for_import': 'objectKeyForImport', + 'are_data_asset_references_included': 'areDataAssetReferencesIncluded', 'import_conflict_resolution': 'importConflictResolution', 'status': 'status', 'created_by': 'createdBy', @@ -149,6 +155,7 @@ def __init__(self, **kwargs): self._object_storage_tenancy_id = None self._object_storage_region = None self._object_key_for_import = None + self._are_data_asset_references_included = None self._import_conflict_resolution = None self._status = None self._created_by = None @@ -303,6 +310,30 @@ def object_key_for_import(self, object_key_for_import): """ self._object_key_for_import = object_key_for_import + @property + def are_data_asset_references_included(self): + """ + Gets the are_data_asset_references_included of this ImportRequest. + This field controls if the data asset references will be included during import. + + + :return: The are_data_asset_references_included of this ImportRequest. + :rtype: bool + """ + return self._are_data_asset_references_included + + @are_data_asset_references_included.setter + def are_data_asset_references_included(self, are_data_asset_references_included): + """ + Sets the are_data_asset_references_included of this ImportRequest. + This field controls if the data asset references will be included during import. + + + :param are_data_asset_references_included: The are_data_asset_references_included of this ImportRequest. + :type: bool + """ + self._are_data_asset_references_included = are_data_asset_references_included + @property def import_conflict_resolution(self): """ diff --git a/src/oci/data_integration/models/import_request_summary.py b/src/oci/data_integration/models/import_request_summary.py index 6ca6c3c519..7004bf1aa3 100644 --- a/src/oci/data_integration/models/import_request_summary.py +++ b/src/oci/data_integration/models/import_request_summary.py @@ -68,6 +68,10 @@ def __init__(self, **kwargs): The value to assign to the object_key_for_import property of this ImportRequestSummary. :type object_key_for_import: str + :param are_data_asset_references_included: + The value to assign to the are_data_asset_references_included property of this ImportRequestSummary. + :type are_data_asset_references_included: bool + :param import_conflict_resolution: The value to assign to the import_conflict_resolution property of this ImportRequestSummary. :type import_conflict_resolution: oci.data_integration.models.ImportConflictResolution @@ -114,6 +118,7 @@ def __init__(self, **kwargs): 'object_storage_tenancy_id': 'str', 'object_storage_region': 'str', 'object_key_for_import': 'str', + 'are_data_asset_references_included': 'bool', 'import_conflict_resolution': 'ImportConflictResolution', 'status': 'str', 'created_by': 'str', @@ -132,6 +137,7 @@ def __init__(self, **kwargs): 'object_storage_tenancy_id': 'objectStorageTenancyId', 'object_storage_region': 'objectStorageRegion', 'object_key_for_import': 'objectKeyForImport', + 'are_data_asset_references_included': 'areDataAssetReferencesIncluded', 'import_conflict_resolution': 'importConflictResolution', 'status': 'status', 'created_by': 'createdBy', @@ -149,6 +155,7 @@ def __init__(self, **kwargs): self._object_storage_tenancy_id = None self._object_storage_region = None self._object_key_for_import = None + self._are_data_asset_references_included = None self._import_conflict_resolution = None self._status = None self._created_by = None @@ -303,6 +310,30 @@ def object_key_for_import(self, object_key_for_import): """ self._object_key_for_import = object_key_for_import + @property + def are_data_asset_references_included(self): + """ + Gets the are_data_asset_references_included of this ImportRequestSummary. + This field controls if the data asset references will be included during import. + + + :return: The are_data_asset_references_included of this ImportRequestSummary. + :rtype: bool + """ + return self._are_data_asset_references_included + + @are_data_asset_references_included.setter + def are_data_asset_references_included(self, are_data_asset_references_included): + """ + Sets the are_data_asset_references_included of this ImportRequestSummary. + This field controls if the data asset references will be included during import. + + + :param are_data_asset_references_included: The are_data_asset_references_included of this ImportRequestSummary. + :type: bool + """ + self._are_data_asset_references_included = are_data_asset_references_included + @property def import_conflict_resolution(self): """ diff --git a/src/oci/data_integration/models/update_connection_details.py b/src/oci/data_integration/models/update_connection_details.py index e5dfe8e282..7ec004a38c 100644 --- a/src/oci/data_integration/models/update_connection_details.py +++ b/src/oci/data_integration/models/update_connection_details.py @@ -83,6 +83,10 @@ class UpdateConnectionDetails(object): #: This constant has a value of "REST_BASIC_AUTH_CONNECTION" MODEL_TYPE_REST_BASIC_AUTH_CONNECTION = "REST_BASIC_AUTH_CONNECTION" + #: A constant which can be used with the model_type property of a UpdateConnectionDetails. + #: This constant has a value of "OAUTH2_CONNECTION" + MODEL_TYPE_OAUTH2_CONNECTION = "OAUTH2_CONNECTION" + def __init__(self, **kwargs): """ Initializes a new UpdateConnectionDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input @@ -94,6 +98,7 @@ def __init__(self, **kwargs): * :class:`~oci.data_integration.models.UpdateConnectionFromBICC` * :class:`~oci.data_integration.models.UpdateConnectionFromRestNoAuth` * :class:`~oci.data_integration.models.UpdateConnectionFromHdfs` + * :class:`~oci.data_integration.models.UpdateConnectionFromOAuth2` * :class:`~oci.data_integration.models.UpdateConnectionFromRestBasicAuth` * :class:`~oci.data_integration.models.UpdateConnectionFromOracleSiebel` * :class:`~oci.data_integration.models.UpdateConnectionFromMySqlHeatWave` @@ -110,7 +115,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionDetails. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: @@ -220,6 +225,9 @@ def get_subtype(object_dictionary): if type == 'HDFS_CONNECTION': return 'UpdateConnectionFromHdfs' + if type == 'OAUTH2_CONNECTION': + return 'UpdateConnectionFromOAuth2' + if type == 'REST_BASIC_AUTH_CONNECTION': return 'UpdateConnectionFromRestBasicAuth' @@ -261,7 +269,7 @@ def model_type(self): **[Required]** Gets the model_type of this UpdateConnectionDetails. The type of the connection. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :return: The model_type of this UpdateConnectionDetails. @@ -279,7 +287,7 @@ def model_type(self, model_type): :param model_type: The model_type of this UpdateConnectionDetails. :type: str """ - allowed_values = ["ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION"] + allowed_values = ["ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION"] if not value_allowed_none_or_none_sentinel(model_type, allowed_values): raise ValueError( f"Invalid value for `model_type`, must be None or one of {allowed_values}" diff --git a/src/oci/data_integration/models/update_connection_from_adwc.py b/src/oci/data_integration/models/update_connection_from_adwc.py index cda28802be..b319e4f6ad 100644 --- a/src/oci/data_integration/models/update_connection_from_adwc.py +++ b/src/oci/data_integration/models/update_connection_from_adwc.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromAdwc. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_amazon_s3.py b/src/oci/data_integration/models/update_connection_from_amazon_s3.py index b19456d791..d24adf3ca5 100644 --- a/src/oci/data_integration/models/update_connection_from_amazon_s3.py +++ b/src/oci/data_integration/models/update_connection_from_amazon_s3.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromAmazonS3. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_atp.py b/src/oci/data_integration/models/update_connection_from_atp.py index 7af62d79e4..a0afbc82e9 100644 --- a/src/oci/data_integration/models/update_connection_from_atp.py +++ b/src/oci/data_integration/models/update_connection_from_atp.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromAtp. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_bicc.py b/src/oci/data_integration/models/update_connection_from_bicc.py index 685cdca426..04fbcc41c6 100644 --- a/src/oci/data_integration/models/update_connection_from_bicc.py +++ b/src/oci/data_integration/models/update_connection_from_bicc.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromBICC. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_bip.py b/src/oci/data_integration/models/update_connection_from_bip.py index 9ab8a9ff21..9b0330823f 100644 --- a/src/oci/data_integration/models/update_connection_from_bip.py +++ b/src/oci/data_integration/models/update_connection_from_bip.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromBIP. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_hdfs.py b/src/oci/data_integration/models/update_connection_from_hdfs.py index 5c22c889d4..a23cd993e4 100644 --- a/src/oci/data_integration/models/update_connection_from_hdfs.py +++ b/src/oci/data_integration/models/update_connection_from_hdfs.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromHdfs. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_jdbc.py b/src/oci/data_integration/models/update_connection_from_jdbc.py index e1d94298e3..487aea9c82 100644 --- a/src/oci/data_integration/models/update_connection_from_jdbc.py +++ b/src/oci/data_integration/models/update_connection_from_jdbc.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromJdbc. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_lake.py b/src/oci/data_integration/models/update_connection_from_lake.py index 53a82c8fb6..06ca7e0959 100644 --- a/src/oci/data_integration/models/update_connection_from_lake.py +++ b/src/oci/data_integration/models/update_connection_from_lake.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromLake. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_my_sql.py b/src/oci/data_integration/models/update_connection_from_my_sql.py index 38cc6bf8a6..9bbd35fbfe 100644 --- a/src/oci/data_integration/models/update_connection_from_my_sql.py +++ b/src/oci/data_integration/models/update_connection_from_my_sql.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromMySQL. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_my_sql_heat_wave.py b/src/oci/data_integration/models/update_connection_from_my_sql_heat_wave.py index 6cca4f0010..9e1b3fa74a 100644 --- a/src/oci/data_integration/models/update_connection_from_my_sql_heat_wave.py +++ b/src/oci/data_integration/models/update_connection_from_my_sql_heat_wave.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromMySqlHeatWave. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_o_auth2.py b/src/oci/data_integration/models/update_connection_from_o_auth2.py new file mode 100644 index 0000000000..079d6f9c22 --- /dev/null +++ b/src/oci/data_integration/models/update_connection_from_o_auth2.py @@ -0,0 +1,284 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20200430 + +from .update_connection_details import UpdateConnectionDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class UpdateConnectionFromOAuth2(UpdateConnectionDetails): + """ + The details to update a OAuth connection. + """ + + #: A constant which can be used with the grant_type property of a UpdateConnectionFromOAuth2. + #: This constant has a value of "CLIENT_CREDENTIALS" + GRANT_TYPE_CLIENT_CREDENTIALS = "CLIENT_CREDENTIALS" + + def __init__(self, **kwargs): + """ + Initializes a new UpdateConnectionFromOAuth2 object with values from keyword arguments. The default value of the :py:attr:`~oci.data_integration.models.UpdateConnectionFromOAuth2.model_type` attribute + of this class is ``OAUTH2_CONNECTION`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param model_type: + The value to assign to the model_type property of this UpdateConnectionFromOAuth2. + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" + :type model_type: str + + :param key: + The value to assign to the key property of this UpdateConnectionFromOAuth2. + :type key: str + + :param model_version: + The value to assign to the model_version property of this UpdateConnectionFromOAuth2. + :type model_version: str + + :param parent_ref: + The value to assign to the parent_ref property of this UpdateConnectionFromOAuth2. + :type parent_ref: oci.data_integration.models.ParentReference + + :param name: + The value to assign to the name property of this UpdateConnectionFromOAuth2. + :type name: str + + :param description: + The value to assign to the description property of this UpdateConnectionFromOAuth2. + :type description: str + + :param object_status: + The value to assign to the object_status property of this UpdateConnectionFromOAuth2. + :type object_status: int + + :param object_version: + The value to assign to the object_version property of this UpdateConnectionFromOAuth2. + :type object_version: int + + :param identifier: + The value to assign to the identifier property of this UpdateConnectionFromOAuth2. + :type identifier: str + + :param connection_properties: + The value to assign to the connection_properties property of this UpdateConnectionFromOAuth2. + :type connection_properties: list[oci.data_integration.models.ConnectionProperty] + + :param registry_metadata: + The value to assign to the registry_metadata property of this UpdateConnectionFromOAuth2. + :type registry_metadata: oci.data_integration.models.RegistryMetadata + + :param access_token_url: + The value to assign to the access_token_url property of this UpdateConnectionFromOAuth2. + :type access_token_url: str + + :param client_id: + The value to assign to the client_id property of this UpdateConnectionFromOAuth2. + :type client_id: str + + :param client_secret: + The value to assign to the client_secret property of this UpdateConnectionFromOAuth2. + :type client_secret: oci.data_integration.models.SensitiveAttribute + + :param scope: + The value to assign to the scope property of this UpdateConnectionFromOAuth2. + :type scope: str + + :param grant_type: + The value to assign to the grant_type property of this UpdateConnectionFromOAuth2. + Allowed values for this property are: "CLIENT_CREDENTIALS" + :type grant_type: str + + """ + self.swagger_types = { + 'model_type': 'str', + 'key': 'str', + 'model_version': 'str', + 'parent_ref': 'ParentReference', + 'name': 'str', + 'description': 'str', + 'object_status': 'int', + 'object_version': 'int', + 'identifier': 'str', + 'connection_properties': 'list[ConnectionProperty]', + 'registry_metadata': 'RegistryMetadata', + 'access_token_url': 'str', + 'client_id': 'str', + 'client_secret': 'SensitiveAttribute', + 'scope': 'str', + 'grant_type': 'str' + } + + self.attribute_map = { + 'model_type': 'modelType', + 'key': 'key', + 'model_version': 'modelVersion', + 'parent_ref': 'parentRef', + 'name': 'name', + 'description': 'description', + 'object_status': 'objectStatus', + 'object_version': 'objectVersion', + 'identifier': 'identifier', + 'connection_properties': 'connectionProperties', + 'registry_metadata': 'registryMetadata', + 'access_token_url': 'accessTokenUrl', + 'client_id': 'clientId', + 'client_secret': 'clientSecret', + 'scope': 'scope', + 'grant_type': 'grantType' + } + + self._model_type = None + self._key = None + self._model_version = None + self._parent_ref = None + self._name = None + self._description = None + self._object_status = None + self._object_version = None + self._identifier = None + self._connection_properties = None + self._registry_metadata = None + self._access_token_url = None + self._client_id = None + self._client_secret = None + self._scope = None + self._grant_type = None + self._model_type = 'OAUTH2_CONNECTION' + + @property + def access_token_url(self): + """ + **[Required]** Gets the access_token_url of this UpdateConnectionFromOAuth2. + Specifies the endpoint used to exchange authentication credentials for access tokens + + + :return: The access_token_url of this UpdateConnectionFromOAuth2. + :rtype: str + """ + return self._access_token_url + + @access_token_url.setter + def access_token_url(self, access_token_url): + """ + Sets the access_token_url of this UpdateConnectionFromOAuth2. + Specifies the endpoint used to exchange authentication credentials for access tokens + + + :param access_token_url: The access_token_url of this UpdateConnectionFromOAuth2. + :type: str + """ + self._access_token_url = access_token_url + + @property + def client_id(self): + """ + Gets the client_id of this UpdateConnectionFromOAuth2. + Specifies the client ID key for specific application + + + :return: The client_id of this UpdateConnectionFromOAuth2. + :rtype: str + """ + return self._client_id + + @client_id.setter + def client_id(self, client_id): + """ + Sets the client_id of this UpdateConnectionFromOAuth2. + Specifies the client ID key for specific application + + + :param client_id: The client_id of this UpdateConnectionFromOAuth2. + :type: str + """ + self._client_id = client_id + + @property + def client_secret(self): + """ + Gets the client_secret of this UpdateConnectionFromOAuth2. + + :return: The client_secret of this UpdateConnectionFromOAuth2. + :rtype: oci.data_integration.models.SensitiveAttribute + """ + return self._client_secret + + @client_secret.setter + def client_secret(self, client_secret): + """ + Sets the client_secret of this UpdateConnectionFromOAuth2. + + :param client_secret: The client_secret of this UpdateConnectionFromOAuth2. + :type: oci.data_integration.models.SensitiveAttribute + """ + self._client_secret = client_secret + + @property + def scope(self): + """ + Gets the scope of this UpdateConnectionFromOAuth2. + Specifies the OAuth scopes that limit the permissions granted by an access token. + + + :return: The scope of this UpdateConnectionFromOAuth2. + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """ + Sets the scope of this UpdateConnectionFromOAuth2. + Specifies the OAuth scopes that limit the permissions granted by an access token. + + + :param scope: The scope of this UpdateConnectionFromOAuth2. + :type: str + """ + self._scope = scope + + @property + def grant_type(self): + """ + Gets the grant_type of this UpdateConnectionFromOAuth2. + Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + + Allowed values for this property are: "CLIENT_CREDENTIALS" + + + :return: The grant_type of this UpdateConnectionFromOAuth2. + :rtype: str + """ + return self._grant_type + + @grant_type.setter + def grant_type(self, grant_type): + """ + Sets the grant_type of this UpdateConnectionFromOAuth2. + Specifies the OAuth2 grant mechanism. Example CLIENT_CREDENTIALS, Implicit Flow etc. + + + :param grant_type: The grant_type of this UpdateConnectionFromOAuth2. + :type: str + """ + allowed_values = ["CLIENT_CREDENTIALS"] + if not value_allowed_none_or_none_sentinel(grant_type, allowed_values): + raise ValueError( + f"Invalid value for `grant_type`, must be None or one of {allowed_values}" + ) + self._grant_type = grant_type + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/data_integration/models/update_connection_from_object_storage.py b/src/oci/data_integration/models/update_connection_from_object_storage.py index 072b4a4dba..fd83bb39a2 100644 --- a/src/oci/data_integration/models/update_connection_from_object_storage.py +++ b/src/oci/data_integration/models/update_connection_from_object_storage.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromObjectStorage. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_oracle.py b/src/oci/data_integration/models/update_connection_from_oracle.py index 3f5c284e98..b802e60db9 100644 --- a/src/oci/data_integration/models/update_connection_from_oracle.py +++ b/src/oci/data_integration/models/update_connection_from_oracle.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromOracle. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_oracle_ebs.py b/src/oci/data_integration/models/update_connection_from_oracle_ebs.py index 16cbe6e560..d8da74ea9a 100644 --- a/src/oci/data_integration/models/update_connection_from_oracle_ebs.py +++ b/src/oci/data_integration/models/update_connection_from_oracle_ebs.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromOracleEbs. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_oracle_people_soft.py b/src/oci/data_integration/models/update_connection_from_oracle_people_soft.py index bb33cbb974..b36ee52ef7 100644 --- a/src/oci/data_integration/models/update_connection_from_oracle_people_soft.py +++ b/src/oci/data_integration/models/update_connection_from_oracle_people_soft.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromOraclePeopleSoft. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_oracle_siebel.py b/src/oci/data_integration/models/update_connection_from_oracle_siebel.py index 0993bea955..e382195b7e 100644 --- a/src/oci/data_integration/models/update_connection_from_oracle_siebel.py +++ b/src/oci/data_integration/models/update_connection_from_oracle_siebel.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromOracleSiebel. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_rest_basic_auth.py b/src/oci/data_integration/models/update_connection_from_rest_basic_auth.py index 9261de0cc9..b0053db4d4 100644 --- a/src/oci/data_integration/models/update_connection_from_rest_basic_auth.py +++ b/src/oci/data_integration/models/update_connection_from_rest_basic_auth.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromRestBasicAuth. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/data_integration/models/update_connection_from_rest_no_auth.py b/src/oci/data_integration/models/update_connection_from_rest_no_auth.py index 20ff8670a1..25ab054840 100644 --- a/src/oci/data_integration/models/update_connection_from_rest_no_auth.py +++ b/src/oci/data_integration/models/update_connection_from_rest_no_auth.py @@ -23,7 +23,7 @@ def __init__(self, **kwargs): :param model_type: The value to assign to the model_type property of this UpdateConnectionFromRestNoAuth. - Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION" + Allowed values for this property are: "ORACLE_ADWC_CONNECTION", "ORACLE_ATP_CONNECTION", "ORACLE_OBJECT_STORAGE_CONNECTION", "ORACLEDB_CONNECTION", "MYSQL_CONNECTION", "GENERIC_JDBC_CONNECTION", "BICC_CONNECTION", "AMAZON_S3_CONNECTION", "BIP_CONNECTION", "LAKE_CONNECTION", "ORACLE_PEOPLESOFT_CONNECTION", "ORACLE_EBS_CONNECTION", "ORACLE_SIEBEL_CONNECTION", "HDFS_CONNECTION", "MYSQL_HEATWAVE_CONNECTION", "REST_NO_AUTH_CONNECTION", "REST_BASIC_AUTH_CONNECTION", "OAUTH2_CONNECTION" :type model_type: str :param key: diff --git a/src/oci/database_management/db_management_client.py b/src/oci/database_management/db_management_client.py index ae2f7f18ca..0ca1594527 100644 --- a/src/oci/database_management/db_management_client.py +++ b/src/oci/database_management/db_management_client.py @@ -385,6 +385,9 @@ def addm_tasks(self, managed_database_id, time_start, time_end, **kwargs): Allowed values are: "ASC", "DESC" + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -418,7 +421,8 @@ def addm_tasks(self, managed_database_id, time_start, time_end, **kwargs): "page", "limit", "sort_by", - "sort_order" + "sort_order", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -462,7 +466,8 @@ def addm_tasks(self, managed_database_id, time_start, time_end, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -1235,6 +1240,130 @@ def change_managed_database_group_compartment(self, managed_database_group_id, c api_reference_link=api_reference_link, required_arguments=required_arguments) + def change_named_credential_compartment(self, named_credential_id, change_named_credential_compartment_details, **kwargs): + """ + Moves a named credential to a different compartment. + The destination compartment must not have a named credential + with the same name. + + + :param str named_credential_id: (required) + The `OCID`__ of the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.ChangeNamedCredentialCompartmentDetails change_named_credential_compartment_details: (required) + The `OCID`__ of the compartment to which the named credential should be moved. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param str if_match: (optional) + 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. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use change_named_credential_compartment API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['namedCredentialId'] + resource_path = "/namedCredentials/{namedCredentialId}/actions/changeCompartment" + method = "POST" + operation_name = "change_named_credential_compartment" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/ChangeNamedCredentialCompartment" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "opc_retry_token", + "if_match" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"change_named_credential_compartment got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "namedCredentialId": named_credential_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "if-match": kwargs.get("if_match", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=change_named_credential_compartment_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=change_named_credential_compartment_details, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def change_plan_retention(self, managed_database_id, change_plan_retention_details, **kwargs): """ Changes the retention period of unused plans. The period can range @@ -2773,6 +2902,102 @@ def create_managed_database_group(self, create_managed_database_group_details, * api_reference_link=api_reference_link, required_arguments=required_arguments) + def create_named_credential(self, create_named_credential_details, **kwargs): + """ + Creates a named credential. + + + :param oci.database_management.models.CreateNamedCredentialDetails create_named_credential_details: (required) + The details required to create a named credential. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param str opc_retry_token: (optional) + A token that uniquely identifies a request so it can be retried in case of a timeout or + server error without risk of executing that same action again. Retry tokens expire after 24 + hours, but can be invalidated before then due to conflicting operations. For example, if a resource + has been deleted and purged from the system, then a retry of the original creation request + might be rejected. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.NamedCredential` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use create_named_credential API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = [] + resource_path = "/namedCredentials" + method = "POST" + operation_name = "create_named_credential" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/CreateNamedCredential" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "opc_retry_token" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"create_named_credential got unknown kwargs: {extra_kwargs!r}") + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-retry-token": kwargs.get("opc_retry_token", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_retry_token_if_needed(header_params) + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_named_credential_details, + response_type="NamedCredential", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + header_params=header_params, + body=create_named_credential_details, + response_type="NamedCredential", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def create_tablespace(self, managed_database_id, create_tablespace_details, **kwargs): """ Creates a tablespace within the Managed Database specified by managedDatabaseId. @@ -3725,6 +3950,111 @@ def delete_managed_database_group(self, managed_database_group_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def delete_named_credential(self, named_credential_id, **kwargs): + """ + Deletes the named credential specified by namedCredentialId. + + + :param str named_credential_id: (required) + The `OCID`__ of the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param str if_match: (optional) + 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. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type None + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use delete_named_credential API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['namedCredentialId'] + resource_path = "/namedCredentials/{namedCredentialId}" + method = "DELETE" + operation_name = "delete_named_credential" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/DeleteNamedCredential" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"delete_named_credential got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "namedCredentialId": named_credential_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def delete_preferred_credential(self, managed_database_id, credential_name, **kwargs): """ Deletes the preferred credential based on the credentialName. @@ -5767,6 +6097,9 @@ def generate_awr_snapshot(self, managed_database_id, **kwargs): :param str opc_request_id: (optional) Unique identifier for the request. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -5797,7 +6130,8 @@ def generate_awr_snapshot(self, managed_database_id, **kwargs): "allow_control_chars", "retry_strategy", "opc_retry_token", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -5818,7 +6152,8 @@ def generate_awr_snapshot(self, managed_database_id, **kwargs): "accept": "application/json", "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -5910,6 +6245,9 @@ def get_awr_db_report(self, managed_database_id, awr_db_id, **kwargs): has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -5948,7 +6286,8 @@ def get_awr_db_report(self, managed_database_id, awr_db_id, **kwargs): "container_id", "report_format", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -5996,7 +6335,8 @@ def get_awr_db_report(self, managed_database_id, awr_db_id, **kwargs): "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -6088,6 +6428,9 @@ def get_awr_db_sql_report(self, managed_database_id, awr_db_id, sql_id, **kwargs has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -6125,7 +6468,8 @@ def get_awr_db_sql_report(self, managed_database_id, awr_db_id, sql_id, **kwargs "report_format", "container_id", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -6166,7 +6510,8 @@ def get_awr_db_sql_report(self, managed_database_id, awr_db_id, sql_id, **kwargs "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -6784,6 +7129,9 @@ def get_external_asm_configuration(self, external_asm_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -6813,7 +7161,8 @@ def get_external_asm_configuration(self, external_asm_id, **kwargs): expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -6833,7 +7182,8 @@ def get_external_asm_configuration(self, external_asm_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -8756,6 +9106,104 @@ def get_managed_database_group(self, managed_database_group_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def get_named_credential(self, named_credential_id, **kwargs): + """ + Gets the details for the named credential specified by namedCredentialId. + + + :param str named_credential_id: (required) + The `OCID`__ of the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.NamedCredential` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use get_named_credential API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['namedCredentialId'] + resource_path = "/namedCredentials/{namedCredentialId}" + method = "GET" + operation_name = "get_named_credential" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/GetNamedCredential" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"get_named_credential got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "namedCredentialId": named_credential_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="NamedCredential", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + response_type="NamedCredential", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def get_open_alert_history(self, external_exadata_storage_server_id, **kwargs): """ Gets the open alerts from the specified Exadata storage server. @@ -8876,6 +9324,9 @@ def get_optimizer_statistics_advisor_execution(self, managed_database_id, execut :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -8905,7 +9356,8 @@ def get_optimizer_statistics_advisor_execution(self, managed_database_id, execut expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -8931,7 +9383,8 @@ def get_optimizer_statistics_advisor_execution(self, managed_database_id, execut header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -8988,6 +9441,9 @@ def get_optimizer_statistics_advisor_execution_script(self, managed_database_id, :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -9017,7 +9473,8 @@ def get_optimizer_statistics_advisor_execution_script(self, managed_database_id, expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -9043,7 +9500,8 @@ def get_optimizer_statistics_advisor_execution_script(self, managed_database_id, header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -9097,6 +9555,9 @@ def get_optimizer_statistics_collection_operation(self, managed_database_id, opt :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -9126,7 +9587,8 @@ def get_optimizer_statistics_collection_operation(self, managed_database_id, opt expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -9147,7 +9609,8 @@ def get_optimizer_statistics_collection_operation(self, managed_database_id, opt header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -9444,6 +9907,9 @@ def get_sql_plan_baseline(self, managed_database_id, plan_name, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -9473,7 +9939,8 @@ def get_sql_plan_baseline(self, managed_database_id, plan_name, **kwargs): expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -9494,7 +9961,8 @@ def get_sql_plan_baseline(self, managed_database_id, plan_name, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -9547,6 +10015,9 @@ def get_sql_plan_baseline_configuration(self, managed_database_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -9576,7 +10047,8 @@ def get_sql_plan_baseline_configuration(self, managed_database_id, **kwargs): expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -9596,7 +10068,8 @@ def get_sql_plan_baseline_configuration(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -9650,6 +10123,9 @@ def get_tablespace(self, managed_database_id, tablespace_name, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -9679,7 +10155,8 @@ def get_tablespace(self, managed_database_id, tablespace_name, **kwargs): expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -9700,7 +10177,8 @@ def get_tablespace(self, managed_database_id, tablespace_name, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -9852,6 +10330,9 @@ def get_user(self, managed_database_id, user_name, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -9881,7 +10362,8 @@ def get_user(self, managed_database_id, user_name, **kwargs): expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -9902,7 +10384,8 @@ def get_user(self, managed_database_id, user_name, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -10504,6 +10987,9 @@ def list_awr_db_snapshots(self, managed_database_id, awr_db_id, **kwargs): has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -10544,7 +11030,8 @@ def list_awr_db_snapshots(self, managed_database_id, awr_db_id, **kwargs): "sort_by", "sort_order", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -10594,7 +11081,8 @@ def list_awr_db_snapshots(self, managed_database_id, awr_db_id, **kwargs): "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -10679,6 +11167,9 @@ def list_awr_dbs(self, managed_database_id, **kwargs): has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -10716,7 +11207,8 @@ def list_awr_dbs(self, managed_database_id, **kwargs): "sort_by", "sort_order", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -10762,7 +11254,8 @@ def list_awr_dbs(self, managed_database_id, **kwargs): "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -10838,6 +11331,9 @@ def list_consumer_group_privileges(self, managed_database_id, user_name, **kwarg The page token representing the page from where the next set of paginated results are retrieved. This is usually retrieved from a previous list call. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -10872,7 +11368,8 @@ def list_consumer_group_privileges(self, managed_database_id, user_name, **kwarg "sort_by", "sort_order", "limit", - "page" + "page", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -10916,7 +11413,8 @@ def list_consumer_group_privileges(self, managed_database_id, user_name, **kwarg header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -10989,6 +11487,9 @@ def list_cursor_cache_statements(self, managed_database_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -11023,7 +11524,8 @@ def list_cursor_cache_statements(self, managed_database_id, **kwargs): "limit", "sort_by", "sort_order", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -11066,7 +11568,8 @@ def list_cursor_cache_statements(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -11143,6 +11646,9 @@ def list_data_access_containers(self, managed_database_id, user_name, **kwargs): The page token representing the page from where the next set of paginated results are retrieved. This is usually retrieved from a previous list call. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -11177,7 +11683,8 @@ def list_data_access_containers(self, managed_database_id, user_name, **kwargs): "sort_by", "sort_order", "limit", - "page" + "page", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -11221,7 +11728,8 @@ def list_data_access_containers(self, managed_database_id, user_name, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -11297,6 +11805,9 @@ def list_database_parameters(self, managed_database_id, **kwargs): Allowed values are: "ASC", "DESC" + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -11331,7 +11842,8 @@ def list_database_parameters(self, managed_database_id, **kwargs): "name", "is_allowed_values_included", "sort_by", - "sort_order" + "sort_order", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -11381,7 +11893,8 @@ def list_database_parameters(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -11615,6 +12128,9 @@ def list_external_asm_disk_groups(self, external_asm_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -11648,7 +12164,8 @@ def list_external_asm_disk_groups(self, external_asm_id, **kwargs): "limit", "sort_by", "sort_order", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -11690,7 +12207,8 @@ def list_external_asm_disk_groups(self, external_asm_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -11910,6 +12428,9 @@ def list_external_asm_users(self, external_asm_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -11943,7 +12464,8 @@ def list_external_asm_users(self, external_asm_id, **kwargs): "limit", "sort_by", "sort_order", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -11985,7 +12507,8 @@ def list_external_asm_users(self, external_asm_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -13822,6 +14345,9 @@ def list_external_listener_services(self, external_listener_id, managed_database :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -13855,7 +14381,8 @@ def list_external_listener_services(self, external_listener_id, managed_database "limit", "sort_by", "sort_order", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -13898,7 +14425,8 @@ def list_external_listener_services(self, external_listener_id, managed_database header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -14954,6 +15482,178 @@ def list_managed_databases(self, compartment_id, **kwargs): api_reference_link=api_reference_link, required_arguments=required_arguments) + def list_named_credentials(self, compartment_id, **kwargs): + """ + Gets a single named credential specified by the name or all the named credentials in a specific compartment. + + + :param str compartment_id: (required) + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param str associated_resource: (optional) + The resource associated to the named credential. + + :param str type: (optional) + The type of database that is associated to the named credential. + + Allowed values are: "ORACLE_DB" + + :param str scope: (optional) + The scope of named credential. + + Allowed values are: "RESOURCE", "GLOBAL" + + :param str name: (optional) + The name of the named credential. + + :param str page: (optional) + The page token representing the page from where the next set of paginated results + are retrieved. This is usually retrieved from a previous list call. + + :param int limit: (optional) + The maximum number of records returned in the paginated response. + + :param str sort_by: (optional) + The field to sort information by. Only one sortOrder can be used. The default sort order + for \u2018TIMECREATED\u2019 is descending and the default sort order for \u2018NAME\u2019 is ascending. + The \u2018NAME\u2019 sort order is case-sensitive. + + Allowed values are: "TIMECREATED", "NAME" + + :param str sort_order: (optional) + The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Ascending order is the default order. + + Allowed values are: "ASC", "DESC" + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.NamedCredentialCollection` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use list_named_credentials API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['compartmentId'] + resource_path = "/namedCredentials" + method = "GET" + operation_name = "list_named_credentials" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/ListNamedCredentials" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id", + "associated_resource", + "type", + "scope", + "name", + "page", + "limit", + "sort_by", + "sort_order" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"list_named_credentials got unknown kwargs: {extra_kwargs!r}") + + if 'type' in kwargs: + type_allowed_values = ["ORACLE_DB"] + if kwargs['type'] not in type_allowed_values: + raise ValueError( + f"Invalid value for `type`, must be one of { type_allowed_values }" + ) + + if 'scope' in kwargs: + scope_allowed_values = ["RESOURCE", "GLOBAL"] + if kwargs['scope'] not in scope_allowed_values: + raise ValueError( + f"Invalid value for `scope`, must be one of { scope_allowed_values }" + ) + + if 'sort_by' in kwargs: + sort_by_allowed_values = ["TIMECREATED", "NAME"] + if kwargs['sort_by'] not in sort_by_allowed_values: + raise ValueError( + f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" + ) + + if 'sort_order' in kwargs: + sort_order_allowed_values = ["ASC", "DESC"] + if kwargs['sort_order'] not in sort_order_allowed_values: + raise ValueError( + f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }" + ) + + query_params = { + "compartmentId": compartment_id, + "associatedResource": kwargs.get("associated_resource", missing), + "type": kwargs.get("type", missing), + "scope": kwargs.get("scope", missing), + "name": kwargs.get("name", missing), + "page": kwargs.get("page", missing), + "limit": kwargs.get("limit", missing), + "sortBy": kwargs.get("sort_by", missing), + "sortOrder": kwargs.get("sort_order", missing) + } + query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="NamedCredentialCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + query_params=query_params, + header_params=header_params, + response_type="NamedCredentialCollection", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def list_object_privileges(self, managed_database_id, user_name, **kwargs): """ Gets the list of object privileges granted to a specific user. @@ -14991,6 +15691,9 @@ def list_object_privileges(self, managed_database_id, user_name, **kwargs): The page token representing the page from where the next set of paginated results are retrieved. This is usually retrieved from a previous list call. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -15025,7 +15728,8 @@ def list_object_privileges(self, managed_database_id, user_name, **kwargs): "sort_by", "sort_order", "limit", - "page" + "page", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -15069,7 +15773,8 @@ def list_object_privileges(self, managed_database_id, user_name, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -15130,6 +15835,9 @@ def list_optimizer_statistics_advisor_executions(self, managed_database_id, **kw :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -15161,7 +15869,8 @@ def list_optimizer_statistics_advisor_executions(self, managed_database_id, **kw "retry_strategy", "start_time_greater_than_or_equal_to", "end_time_less_than_or_equal_to", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -15187,7 +15896,8 @@ def list_optimizer_statistics_advisor_executions(self, managed_database_id, **kw header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -15268,6 +15978,9 @@ def list_optimizer_statistics_collection_aggregations(self, managed_database_id, The page token representing the page from where the next set of paginated results are retrieved. This is usually retrieved from a previous list call. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -15302,7 +16015,8 @@ def list_optimizer_statistics_collection_aggregations(self, managed_database_id, "task_type", "opc_request_id", "limit", - "page" + "page", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -15345,7 +16059,8 @@ def list_optimizer_statistics_collection_aggregations(self, managed_database_id, header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -15438,6 +16153,9 @@ def list_optimizer_statistics_collection_operations(self, managed_database_id, * :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -15475,7 +16193,8 @@ def list_optimizer_statistics_collection_operations(self, managed_database_id, * "filter_by", "sort_by", "sort_order", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -15528,7 +16247,8 @@ def list_optimizer_statistics_collection_operations(self, managed_database_id, * header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -15701,6 +16421,9 @@ def list_proxied_for_users(self, managed_database_id, user_name, **kwargs): The page token representing the page from where the next set of paginated results are retrieved. This is usually retrieved from a previous list call. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -15735,7 +16458,8 @@ def list_proxied_for_users(self, managed_database_id, user_name, **kwargs): "sort_by", "sort_order", "limit", - "page" + "page", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -15779,7 +16503,8 @@ def list_proxied_for_users(self, managed_database_id, user_name, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -15854,6 +16579,9 @@ def list_proxy_users(self, managed_database_id, user_name, **kwargs): The page token representing the page from where the next set of paginated results are retrieved. This is usually retrieved from a previous list call. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -15888,7 +16616,8 @@ def list_proxy_users(self, managed_database_id, user_name, **kwargs): "sort_by", "sort_order", "limit", - "page" + "page", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -15932,7 +16661,8 @@ def list_proxy_users(self, managed_database_id, user_name, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -16007,6 +16737,9 @@ def list_roles(self, managed_database_id, user_name, **kwargs): The page token representing the page from where the next set of paginated results are retrieved. This is usually retrieved from a previous list call. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -16041,7 +16774,8 @@ def list_roles(self, managed_database_id, user_name, **kwargs): "sort_by", "sort_order", "limit", - "page" + "page", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -16085,7 +16819,8 @@ def list_roles(self, managed_database_id, user_name, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -16158,6 +16893,9 @@ def list_sql_plan_baseline_jobs(self, managed_database_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -16192,7 +16930,8 @@ def list_sql_plan_baseline_jobs(self, managed_database_id, **kwargs): "limit", "sort_by", "sort_order", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -16235,7 +16974,8 @@ def list_sql_plan_baseline_jobs(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -16331,16 +17071,35 @@ def list_sql_plan_baselines(self, managed_database_id, **kwargs): :param str sort_by: (optional) The option to sort the SQL plan baseline summary data. - Allowed values are: "timeCreated", "timeLastModified" + Allowed values are: "timeCreated", "timeLastModified", "timeLastExecuted" :param str sort_order: (optional) The option to sort information in ascending (\u2018ASC\u2019) or descending (\u2018DESC\u2019) order. Descending order is the default order. Allowed values are: "ASC", "DESC" + :param bool is_auto_purged: (optional) + A filter to return only SQL plan baselines that are either auto-purged or not auto-purged. + By default, all SQL plan baselines are returned. + + :param datetime time_last_executed_greater_than: (optional) + A filter to return only SQL plan baselines whose last execution time is + after the specified value. By default, all SQL plan baselines are returned. + + :param datetime time_last_executed_less_than: (optional) + A filter to return only SQL plan baselines whose last execution time is + before the specified value. By default, all SQL plan baselines are returned. + + :param bool is_never_executed: (optional) + A filter to return only SQL plan baselines that are not executed till now. + By default, all SQL plan baselines are returned. + :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -16383,7 +17142,12 @@ def list_sql_plan_baselines(self, managed_database_id, **kwargs): "limit", "sort_by", "sort_order", - "opc_request_id" + "is_auto_purged", + "time_last_executed_greater_than", + "time_last_executed_less_than", + "is_never_executed", + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -16408,7 +17172,7 @@ def list_sql_plan_baselines(self, managed_database_id, **kwargs): ) if 'sort_by' in kwargs: - sort_by_allowed_values = ["timeCreated", "timeLastModified"] + sort_by_allowed_values = ["timeCreated", "timeLastModified", "timeLastExecuted"] if kwargs['sort_by'] not in sort_by_allowed_values: raise ValueError( f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }" @@ -16434,14 +17198,19 @@ def list_sql_plan_baselines(self, managed_database_id, **kwargs): "page": kwargs.get("page", missing), "limit": kwargs.get("limit", missing), "sortBy": kwargs.get("sort_by", missing), - "sortOrder": kwargs.get("sort_order", missing) + "sortOrder": kwargs.get("sort_order", missing), + "isAutoPurged": kwargs.get("is_auto_purged", missing), + "timeLastExecutedGreaterThan": kwargs.get("time_last_executed_greater_than", missing), + "timeLastExecutedLessThan": kwargs.get("time_last_executed_less_than", missing), + "isNeverExecuted": kwargs.get("is_never_executed", missing) } query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None} header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -16518,6 +17287,9 @@ def list_system_privileges(self, managed_database_id, user_name, **kwargs): The page token representing the page from where the next set of paginated results are retrieved. This is usually retrieved from a previous list call. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -16552,7 +17324,8 @@ def list_system_privileges(self, managed_database_id, user_name, **kwargs): "sort_by", "sort_order", "limit", - "page" + "page", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -16596,7 +17369,8 @@ def list_system_privileges(self, managed_database_id, user_name, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -16648,6 +17422,9 @@ def list_table_statistics(self, managed_database_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -16677,7 +17454,8 @@ def list_table_statistics(self, managed_database_id, **kwargs): expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -16697,7 +17475,8 @@ def list_table_statistics(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -16768,6 +17547,9 @@ def list_tablespaces(self, managed_database_id, **kwargs): :param int limit: (optional) The maximum number of records returned in the paginated response. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -16802,7 +17584,8 @@ def list_tablespaces(self, managed_database_id, **kwargs): "sort_by", "sort_order", "page", - "limit" + "limit", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -16845,7 +17628,8 @@ def list_tablespaces(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -16918,6 +17702,9 @@ def list_users(self, managed_database_id, **kwargs): The page token representing the page from where the next set of paginated results are retrieved. This is usually retrieved from a previous list call. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -16952,7 +17739,8 @@ def list_users(self, managed_database_id, **kwargs): "sort_by", "sort_order", "limit", - "page" + "page", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -16995,7 +17783,8 @@ def list_users(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -18288,6 +19077,9 @@ def run_historic_addm(self, managed_database_id, run_historic_addm_details, **kw :param str opc_request_id: (optional) Unique identifier for the request. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -18318,7 +19110,8 @@ def run_historic_addm(self, managed_database_id, run_historic_addm_details, **kw "allow_control_chars", "retry_strategy", "opc_retry_token", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -18339,7 +19132,8 @@ def run_historic_addm(self, managed_database_id, run_historic_addm_details, **kw "accept": "application/json", "content-type": "application/json", "opc-retry-token": kwargs.get("opc_retry_token", missing), - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -18445,6 +19239,9 @@ def summarize_awr_db_cpu_usages(self, managed_database_id, awr_db_id, **kwargs): has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -18486,7 +19283,8 @@ def summarize_awr_db_cpu_usages(self, managed_database_id, awr_db_id, **kwargs): "sort_by", "sort_order", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -18544,7 +19342,8 @@ def summarize_awr_db_cpu_usages(self, managed_database_id, awr_db_id, **kwargs): "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -18648,6 +19447,9 @@ def summarize_awr_db_metrics(self, managed_database_id, awr_db_id, name, **kwarg has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -18688,7 +19490,8 @@ def summarize_awr_db_metrics(self, managed_database_id, awr_db_id, name, **kwarg "sort_by", "sort_order", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -18739,7 +19542,8 @@ def summarize_awr_db_metrics(self, managed_database_id, awr_db_id, name, **kwarg "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -18847,6 +19651,9 @@ def summarize_awr_db_parameter_changes(self, managed_database_id, awr_db_id, nam has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -18887,7 +19694,8 @@ def summarize_awr_db_parameter_changes(self, managed_database_id, awr_db_id, nam "sort_by", "sort_order", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -18938,7 +19746,8 @@ def summarize_awr_db_parameter_changes(self, managed_database_id, awr_db_id, nam "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -19070,6 +19879,9 @@ def summarize_awr_db_parameters(self, managed_database_id, awr_db_id, **kwargs): has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -19115,7 +19927,8 @@ def summarize_awr_db_parameters(self, managed_database_id, awr_db_id, **kwargs): "sort_by", "sort_order", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -19191,7 +20004,8 @@ def summarize_awr_db_parameters(self, managed_database_id, awr_db_id, **kwargs): "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -19276,6 +20090,9 @@ def summarize_awr_db_snapshot_ranges(self, managed_database_id, **kwargs): has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -19313,7 +20130,8 @@ def summarize_awr_db_snapshot_ranges(self, managed_database_id, **kwargs): "sort_by", "sort_order", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -19359,7 +20177,8 @@ def summarize_awr_db_snapshot_ranges(self, managed_database_id, **kwargs): "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -19463,6 +20282,9 @@ def summarize_awr_db_sysstats(self, managed_database_id, awr_db_id, name, **kwar has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -19503,7 +20325,8 @@ def summarize_awr_db_sysstats(self, managed_database_id, awr_db_id, name, **kwar "sort_by", "sort_order", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -19554,7 +20377,8 @@ def summarize_awr_db_sysstats(self, managed_database_id, awr_db_id, name, **kwar "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -19656,6 +20480,9 @@ def summarize_awr_db_top_wait_events(self, managed_database_id, awr_db_id, **kwa has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -19696,7 +20523,8 @@ def summarize_awr_db_top_wait_events(self, managed_database_id, awr_db_id, **kwa "sort_by", "sort_order", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -19753,7 +20581,8 @@ def summarize_awr_db_top_wait_events(self, managed_database_id, awr_db_id, **kwa "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -19866,6 +20695,9 @@ def summarize_awr_db_wait_event_buckets(self, managed_database_id, awr_db_id, na has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -19909,7 +20741,8 @@ def summarize_awr_db_wait_event_buckets(self, managed_database_id, awr_db_id, na "sort_by", "sort_order", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -19963,7 +20796,8 @@ def summarize_awr_db_wait_event_buckets(self, managed_database_id, awr_db_id, na "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -20072,6 +20906,9 @@ def summarize_awr_db_wait_events(self, managed_database_id, awr_db_id, **kwargs) has been deleted and purged from the system, then a retry of the original creation request might be rejected. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -20114,7 +20951,8 @@ def summarize_awr_db_wait_events(self, managed_database_id, awr_db_id, **kwargs) "sort_by", "sort_order", "opc_request_id", - "opc_retry_token" + "opc_retry_token", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -20173,7 +21011,8 @@ def summarize_awr_db_wait_events(self, managed_database_id, awr_db_id, **kwargs) "accept": "application/json", "content-type": "application/json", "opc-request-id": kwargs.get("opc_request_id", missing), - "opc-retry-token": kwargs.get("opc_retry_token", missing) + "opc-retry-token": kwargs.get("opc_retry_token", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -21174,6 +22013,9 @@ def summarize_sql_plan_baselines(self, managed_database_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -21204,7 +22046,8 @@ def summarize_sql_plan_baselines(self, managed_database_id, **kwargs): "allow_control_chars", "retry_strategy", "page", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -21229,7 +22072,8 @@ def summarize_sql_plan_baselines(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -21286,6 +22130,9 @@ def summarize_sql_plan_baselines_by_last_execution(self, managed_database_id, ** :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -21316,7 +22163,8 @@ def summarize_sql_plan_baselines_by_last_execution(self, managed_database_id, ** "allow_control_chars", "retry_strategy", "page", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -21341,7 +22189,8 @@ def summarize_sql_plan_baselines_by_last_execution(self, managed_database_id, ** header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -21381,6 +22230,111 @@ def summarize_sql_plan_baselines_by_last_execution(self, managed_database_id, ** api_reference_link=api_reference_link, required_arguments=required_arguments) + def test_named_credential(self, named_credential_id, test_named_credential_details, **kwargs): + """ + Tests the named credential. + + + :param str named_credential_id: (required) + The `OCID`__ of the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.TestNamedCredentialDetails test_named_credential_details: (required) + The `OCID`__ of the database against which the credential is to be tested. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.TestNamedCredentialStatus` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use test_named_credential API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['namedCredentialId'] + resource_path = "/namedCredentials/{namedCredentialId}/actions/test" + method = "POST" + operation_name = "test_named_credential" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/TestNamedCredential" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"test_named_credential got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "namedCredentialId": named_credential_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=test_named_credential_details, + response_type="TestNamedCredentialStatus", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=test_named_credential_details, + response_type="TestNamedCredentialStatus", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def test_preferred_credential(self, managed_database_id, credential_name, **kwargs): """ Tests the preferred credential. @@ -22943,6 +23897,118 @@ def update_managed_database_group(self, managed_database_group_id, update_manage api_reference_link=api_reference_link, required_arguments=required_arguments) + def update_named_credential(self, named_credential_id, update_named_credential_details, **kwargs): + """ + Updates the named credential specified by namedCredentialId. + + + :param str named_credential_id: (required) + The `OCID`__ of the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.UpdateNamedCredentialDetails update_named_credential_details: (required) + The details required to update a named credential. + + :param str if_match: (optional) + 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. + + :param str opc_request_id: (optional) + The client request ID for tracing. + + :param obj retry_strategy: (optional) + A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. + + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. + The specifics of the default retry strategy are described `here `__. + + To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. + + :param bool allow_control_chars: (optional) + allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object. + By default, the response will not allow control characters in strings + + :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.database_management.models.NamedCredential` + :rtype: :class:`~oci.response.Response` + + :example: + Click `here `__ to see an example of how to use update_named_credential API. + """ + # Required path and query arguments. These are in camelCase to replace values in service endpoints. + required_arguments = ['namedCredentialId'] + resource_path = "/namedCredentials/{namedCredentialId}" + method = "PUT" + operation_name = "update_named_credential" + api_reference_link = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/UpdateNamedCredential" + + # Don't accept unknown kwargs + expected_kwargs = [ + "allow_control_chars", + "retry_strategy", + "if_match", + "opc_request_id" + ] + extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] + if extra_kwargs: + raise ValueError( + f"update_named_credential got unknown kwargs: {extra_kwargs!r}") + + path_params = { + "namedCredentialId": named_credential_id + } + + path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing} + + for (k, v) in six.iteritems(path_params): + if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0): + raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string') + + header_params = { + "accept": "application/json", + "content-type": "application/json", + "if-match": kwargs.get("if_match", missing), + "opc-request-id": kwargs.get("opc_request_id", missing) + } + header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} + + retry_strategy = self.base_client.get_preferred_retry_strategy( + operation_retry_strategy=kwargs.get('retry_strategy'), + client_retry_strategy=self.retry_strategy + ) + + if retry_strategy: + if not isinstance(retry_strategy, retry.NoneRetryStrategy): + self.base_client.add_opc_client_retries_header(header_params) + retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback) + return retry_strategy.make_retrying_call( + self.base_client.call_api, + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_named_credential_details, + response_type="NamedCredential", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + else: + return self.base_client.call_api( + resource_path=resource_path, + method=method, + path_params=path_params, + header_params=header_params, + body=update_named_credential_details, + response_type="NamedCredential", + allow_control_chars=kwargs.get('allow_control_chars'), + operation_name=operation_name, + api_reference_link=api_reference_link, + required_arguments=required_arguments) + def update_preferred_credential(self, managed_database_id, credential_name, update_preferred_credential_details, **kwargs): """ Updates the preferred credential based on the credentialName. diff --git a/src/oci/database_management/db_management_client_composite_operations.py b/src/oci/database_management/db_management_client_composite_operations.py index 4283bd3803..7e62dd4830 100644 --- a/src/oci/database_management/db_management_client_composite_operations.py +++ b/src/oci/database_management/db_management_client_composite_operations.py @@ -486,6 +486,48 @@ def create_managed_database_group_and_wait_for_state(self, create_managed_databa except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def create_named_credential_and_wait_for_state(self, create_named_credential_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.create_named_credential` and waits for the :py:class:`~oci.database_management.models.NamedCredential` acted upon + to enter the given state(s). + + :param oci.database_management.models.CreateNamedCredentialDetails create_named_credential_details: (required) + The details required to create a named credential. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.NamedCredential.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.create_named_credential` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.create_named_credential(create_named_credential_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + named_credential_id = operation_result.data.id + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_named_credential(named_credential_id), # noqa: F821 + evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except (NameError, TypeError) as e: + if not e.args: + e.args = ('',) + e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def delete_db_management_private_endpoint_and_wait_for_state(self, db_management_private_endpoint_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.database_management.DbManagementClient.delete_db_management_private_endpoint` and waits for the :py:class:`~oci.database_management.models.WorkRequest` @@ -936,6 +978,67 @@ def delete_managed_database_group_and_wait_for_state(self, managed_database_grou except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def delete_named_credential_and_wait_for_state(self, named_credential_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.delete_named_credential` and waits for the :py:class:`~oci.database_management.models.NamedCredential` acted upon + to enter the given state(s). + + :param str named_credential_id: (required) + The `OCID`__ of the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.NamedCredential.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.delete_named_credential` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + initial_get_result = self.client.get_named_credential(named_credential_id) + operation_result = None + try: + operation_result = self.client.delete_named_credential(named_credential_id, **operation_kwargs) + except oci.exceptions.ServiceError as e: + if e.status == 404: + return WAIT_RESOURCE_NOT_FOUND + else: + raise e + + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + + try: + if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False): + self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_named_credential, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended") + else: + """ + If the user does not send in this value, we set it to True by default. + We are doing this because during a delete resource scenario and waiting on its state, the service can + return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail + """ + waiter_kwargs["succeed_on_not_found"] = True + waiter_result = oci.wait_until( + self.client, + initial_get_result, # noqa: F821 + evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except (NameError, TypeError) as e: + if not e.args: + e.args = ('',) + e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + def disable_external_db_system_database_management_and_wait_for_state(self, external_db_system_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): """ Calls :py:func:`~oci.database_management.DbManagementClient.disable_external_db_system_database_management` and waits for the :py:class:`~oci.database_management.models.WorkRequest` @@ -1781,3 +1884,50 @@ def update_managed_database_group_and_wait_for_state(self, managed_database_grou raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) except Exception as e: raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + + def update_named_credential_and_wait_for_state(self, named_credential_id, update_named_credential_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}): + """ + Calls :py:func:`~oci.database_management.DbManagementClient.update_named_credential` and waits for the :py:class:`~oci.database_management.models.NamedCredential` acted upon + to enter the given state(s). + + :param str named_credential_id: (required) + The `OCID`__ of the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + :param oci.database_management.models.UpdateNamedCredentialDetails update_named_credential_details: (required) + The details required to update a named credential. + + :param list[str] wait_for_states: + An array of states to wait on. These should be valid values for :py:attr:`~oci.database_management.models.NamedCredential.lifecycle_state` + + :param dict operation_kwargs: + A dictionary of keyword arguments to pass to :py:func:`~oci.database_management.DbManagementClient.update_named_credential` + + :param dict waiter_kwargs: + A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds`` + as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait + """ + operation_result = self.client.update_named_credential(named_credential_id, update_named_credential_details, **operation_kwargs) + if not wait_for_states: + return operation_result + lowered_wait_for_states = [w.lower() for w in wait_for_states] + named_credential_id = operation_result.data.id + + try: + waiter_result = oci.wait_until( + self.client, + self.client.get_named_credential(named_credential_id), # noqa: F821 + evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states, + **waiter_kwargs + ) + result_to_return = waiter_result + + return result_to_return + except (NameError, TypeError) as e: + if not e.args: + e.args = ('',) + e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', ) + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) + except Exception as e: + raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e) diff --git a/src/oci/database_management/diagnosability_client.py b/src/oci/database_management/diagnosability_client.py index 48322a82aa..62bb9996e1 100644 --- a/src/oci/database_management/diagnosability_client.py +++ b/src/oci/database_management/diagnosability_client.py @@ -170,6 +170,9 @@ def list_alert_logs(self, managed_database_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -209,7 +212,8 @@ def list_alert_logs(self, managed_database_id, **kwargs): "sort_order", "page", "limit", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -271,7 +275,8 @@ def list_alert_logs(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -361,6 +366,9 @@ def list_attention_logs(self, managed_database_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -400,7 +408,8 @@ def list_attention_logs(self, managed_database_id, **kwargs): "sort_order", "page", "limit", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -462,7 +471,8 @@ def list_attention_logs(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -547,6 +557,9 @@ def summarize_alert_log_counts(self, managed_database_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -585,7 +598,8 @@ def summarize_alert_log_counts(self, managed_database_id, **kwargs): "is_regular_expression", "page", "limit", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -639,7 +653,8 @@ def summarize_alert_log_counts(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -724,6 +739,9 @@ def summarize_attention_log_counts(self, managed_database_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -762,7 +780,8 @@ def summarize_attention_log_counts(self, managed_database_id, **kwargs): "is_regular_expression", "page", "limit", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -816,7 +835,8 @@ def summarize_attention_log_counts(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} diff --git a/src/oci/database_management/models/__init__.py b/src/oci/database_management/models/__init__.py index fbaf53a8fa..3a9aaa7ded 100644 --- a/src/oci/database_management/models/__init__.py +++ b/src/oci/database_management/models/__init__.py @@ -59,6 +59,7 @@ from .awr_db_wait_event_collection import AwrDbWaitEventCollection from .awr_db_wait_event_summary import AwrDbWaitEventSummary from .awr_query_result import AwrQueryResult +from .basic_named_credential_content import BasicNamedCredentialContent from .basic_preferred_credential import BasicPreferredCredential from .change_database_parameter_details import ChangeDatabaseParameterDetails from .change_database_parameters_details import ChangeDatabaseParametersDetails @@ -67,6 +68,7 @@ from .change_external_exadata_infrastructure_compartment_details import ChangeExternalExadataInfrastructureCompartmentDetails from .change_job_compartment_details import ChangeJobCompartmentDetails from .change_managed_database_group_compartment_details import ChangeManagedDatabaseGroupCompartmentDetails +from .change_named_credential_compartment_details import ChangeNamedCredentialCompartmentDetails from .change_plan_retention_details import ChangePlanRetentionDetails from .change_space_budget_details import ChangeSpaceBudgetDetails from .change_sql_plan_baselines_attributes_details import ChangeSqlPlanBaselinesAttributesDetails @@ -87,6 +89,7 @@ from .create_external_exadata_storage_connector_details import CreateExternalExadataStorageConnectorDetails from .create_job_details import CreateJobDetails from .create_managed_database_group_details import CreateManagedDatabaseGroupDetails +from .create_named_credential_details import CreateNamedCredentialDetails from .create_sql_job_details import CreateSqlJobDetails from .create_sql_tuning_set_details import CreateSqlTuningSetDetails from .create_tablespace_details import CreateTablespaceDetails @@ -98,6 +101,7 @@ from .database_connection_credentials import DatabaseConnectionCredentials from .database_connection_credentials_by_details import DatabaseConnectionCredentialsByDetails from .database_connection_string import DatabaseConnectionString +from .database_credential_details import DatabaseCredentialDetails from .database_credentials import DatabaseCredentials from .database_fleet_health_metrics import DatabaseFleetHealthMetrics from .database_home_metric_definition import DatabaseHomeMetricDefinition @@ -105,11 +109,14 @@ from .database_io_aggregate_metrics import DatabaseIOAggregateMetrics from .database_instance_home_metrics_definition import DatabaseInstanceHomeMetricsDefinition from .database_management_config import DatabaseManagementConfig +from .database_named_credential_details import DatabaseNamedCredentialDetails from .database_parameter_summary import DatabaseParameterSummary from .database_parameter_update_status import DatabaseParameterUpdateStatus from .database_parameters_collection import DatabaseParametersCollection +from .database_password_credential_details import DatabasePasswordCredentialDetails from .database_plan import DatabasePlan from .database_plan_directive import DatabasePlanDirective +from .database_secret_credential_details import DatabaseSecretCredentialDetails from .database_ssl_connection_credentials import DatabaseSslConnectionCredentials from .database_storage_aggregate_metrics import DatabaseStorageAggregateMetrics from .database_time_aggregate_metrics import DatabaseTimeAggregateMetrics @@ -292,6 +299,11 @@ from .my_sql_fleet_metric_summary_definition import MySqlFleetMetricSummaryDefinition from .my_sql_fleet_metrics import MySqlFleetMetrics from .my_sql_fleet_summary import MySqlFleetSummary +from .named_credential import NamedCredential +from .named_credential_collection import NamedCredentialCollection +from .named_credential_content import NamedCredentialContent +from .named_credential_summary import NamedCredentialSummary +from .named_preferred_credential import NamedPreferredCredential from .object_privilege_collection import ObjectPrivilegeCollection from .object_privilege_summary import ObjectPrivilegeSummary from .object_storage_job_execution_result_details import ObjectStorageJobExecutionResultDetails @@ -399,6 +411,9 @@ from .tablespace_storage_size import TablespaceStorageSize from .tablespace_summary import TablespaceSummary from .test_basic_preferred_credential_details import TestBasicPreferredCredentialDetails +from .test_named_credential_details import TestNamedCredentialDetails +from .test_named_credential_status import TestNamedCredentialStatus +from .test_named_preferred_credential_details import TestNamedPreferredCredentialDetails from .test_preferred_credential_details import TestPreferredCredentialDetails from .test_preferred_credential_status import TestPreferredCredentialStatus from .time_series_metric_data_point import TimeSeriesMetricDataPoint @@ -420,6 +435,8 @@ from .update_external_listener_details import UpdateExternalListenerDetails from .update_job_details import UpdateJobDetails from .update_managed_database_group_details import UpdateManagedDatabaseGroupDetails +from .update_named_credential_details import UpdateNamedCredentialDetails +from .update_named_preferred_credential_details import UpdateNamedPreferredCredentialDetails from .update_preferred_credential_details import UpdatePreferredCredentialDetails from .update_sql_job_details import UpdateSqlJobDetails from .update_tablespace_details import UpdateTablespaceDetails @@ -492,6 +509,7 @@ "AwrDbWaitEventCollection": AwrDbWaitEventCollection, "AwrDbWaitEventSummary": AwrDbWaitEventSummary, "AwrQueryResult": AwrQueryResult, + "BasicNamedCredentialContent": BasicNamedCredentialContent, "BasicPreferredCredential": BasicPreferredCredential, "ChangeDatabaseParameterDetails": ChangeDatabaseParameterDetails, "ChangeDatabaseParametersDetails": ChangeDatabaseParametersDetails, @@ -500,6 +518,7 @@ "ChangeExternalExadataInfrastructureCompartmentDetails": ChangeExternalExadataInfrastructureCompartmentDetails, "ChangeJobCompartmentDetails": ChangeJobCompartmentDetails, "ChangeManagedDatabaseGroupCompartmentDetails": ChangeManagedDatabaseGroupCompartmentDetails, + "ChangeNamedCredentialCompartmentDetails": ChangeNamedCredentialCompartmentDetails, "ChangePlanRetentionDetails": ChangePlanRetentionDetails, "ChangeSpaceBudgetDetails": ChangeSpaceBudgetDetails, "ChangeSqlPlanBaselinesAttributesDetails": ChangeSqlPlanBaselinesAttributesDetails, @@ -520,6 +539,7 @@ "CreateExternalExadataStorageConnectorDetails": CreateExternalExadataStorageConnectorDetails, "CreateJobDetails": CreateJobDetails, "CreateManagedDatabaseGroupDetails": CreateManagedDatabaseGroupDetails, + "CreateNamedCredentialDetails": CreateNamedCredentialDetails, "CreateSqlJobDetails": CreateSqlJobDetails, "CreateSqlTuningSetDetails": CreateSqlTuningSetDetails, "CreateTablespaceDetails": CreateTablespaceDetails, @@ -531,6 +551,7 @@ "DatabaseConnectionCredentials": DatabaseConnectionCredentials, "DatabaseConnectionCredentialsByDetails": DatabaseConnectionCredentialsByDetails, "DatabaseConnectionString": DatabaseConnectionString, + "DatabaseCredentialDetails": DatabaseCredentialDetails, "DatabaseCredentials": DatabaseCredentials, "DatabaseFleetHealthMetrics": DatabaseFleetHealthMetrics, "DatabaseHomeMetricDefinition": DatabaseHomeMetricDefinition, @@ -538,11 +559,14 @@ "DatabaseIOAggregateMetrics": DatabaseIOAggregateMetrics, "DatabaseInstanceHomeMetricsDefinition": DatabaseInstanceHomeMetricsDefinition, "DatabaseManagementConfig": DatabaseManagementConfig, + "DatabaseNamedCredentialDetails": DatabaseNamedCredentialDetails, "DatabaseParameterSummary": DatabaseParameterSummary, "DatabaseParameterUpdateStatus": DatabaseParameterUpdateStatus, "DatabaseParametersCollection": DatabaseParametersCollection, + "DatabasePasswordCredentialDetails": DatabasePasswordCredentialDetails, "DatabasePlan": DatabasePlan, "DatabasePlanDirective": DatabasePlanDirective, + "DatabaseSecretCredentialDetails": DatabaseSecretCredentialDetails, "DatabaseSslConnectionCredentials": DatabaseSslConnectionCredentials, "DatabaseStorageAggregateMetrics": DatabaseStorageAggregateMetrics, "DatabaseTimeAggregateMetrics": DatabaseTimeAggregateMetrics, @@ -725,6 +749,11 @@ "MySqlFleetMetricSummaryDefinition": MySqlFleetMetricSummaryDefinition, "MySqlFleetMetrics": MySqlFleetMetrics, "MySqlFleetSummary": MySqlFleetSummary, + "NamedCredential": NamedCredential, + "NamedCredentialCollection": NamedCredentialCollection, + "NamedCredentialContent": NamedCredentialContent, + "NamedCredentialSummary": NamedCredentialSummary, + "NamedPreferredCredential": NamedPreferredCredential, "ObjectPrivilegeCollection": ObjectPrivilegeCollection, "ObjectPrivilegeSummary": ObjectPrivilegeSummary, "ObjectStorageJobExecutionResultDetails": ObjectStorageJobExecutionResultDetails, @@ -832,6 +861,9 @@ "TablespaceStorageSize": TablespaceStorageSize, "TablespaceSummary": TablespaceSummary, "TestBasicPreferredCredentialDetails": TestBasicPreferredCredentialDetails, + "TestNamedCredentialDetails": TestNamedCredentialDetails, + "TestNamedCredentialStatus": TestNamedCredentialStatus, + "TestNamedPreferredCredentialDetails": TestNamedPreferredCredentialDetails, "TestPreferredCredentialDetails": TestPreferredCredentialDetails, "TestPreferredCredentialStatus": TestPreferredCredentialStatus, "TimeSeriesMetricDataPoint": TimeSeriesMetricDataPoint, @@ -853,6 +885,8 @@ "UpdateExternalListenerDetails": UpdateExternalListenerDetails, "UpdateJobDetails": UpdateJobDetails, "UpdateManagedDatabaseGroupDetails": UpdateManagedDatabaseGroupDetails, + "UpdateNamedCredentialDetails": UpdateNamedCredentialDetails, + "UpdateNamedPreferredCredentialDetails": UpdateNamedPreferredCredentialDetails, "UpdatePreferredCredentialDetails": UpdatePreferredCredentialDetails, "UpdateSqlJobDetails": UpdateSqlJobDetails, "UpdateTablespaceDetails": UpdateTablespaceDetails, diff --git a/src/oci/database_management/models/add_data_files_details.py b/src/oci/database_management/models/add_data_files_details.py index 0ce4ae8de1..33cf6bac70 100644 --- a/src/oci/database_management/models/add_data_files_details.py +++ b/src/oci/database_management/models/add_data_files_details.py @@ -13,6 +13,7 @@ class AddDataFilesDetails(object): """ The details required to add data files or temp files to the tablespace. + lease provide either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ #: A constant which can be used with the file_type property of a AddDataFilesDetails. @@ -32,6 +33,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this AddDataFilesDetails. :type credential_details: oci.database_management.models.TablespaceAdminCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this AddDataFilesDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param file_type: The value to assign to the file_type property of this AddDataFilesDetails. Allowed values for this property are: "DATAFILE", "TEMPFILE" @@ -72,6 +77,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credential_details': 'TablespaceAdminCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'file_type': 'str', 'data_files': 'list[str]', 'file_count': 'int', @@ -85,6 +91,7 @@ def __init__(self, **kwargs): self.attribute_map = { 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'file_type': 'fileType', 'data_files': 'dataFiles', 'file_count': 'fileCount', @@ -97,6 +104,7 @@ def __init__(self, **kwargs): } self._credential_details = None + self._database_credential = None self._file_type = None self._data_files = None self._file_count = None @@ -110,7 +118,7 @@ def __init__(self, **kwargs): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this AddDataFilesDetails. + Gets the credential_details of this AddDataFilesDetails. :return: The credential_details of this AddDataFilesDetails. :rtype: oci.database_management.models.TablespaceAdminCredentialDetails @@ -127,6 +135,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this AddDataFilesDetails. + + :return: The database_credential of this AddDataFilesDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this AddDataFilesDetails. + + :param database_credential: The database_credential of this AddDataFilesDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def file_type(self): """ diff --git a/src/oci/database_management/models/basic_named_credential_content.py b/src/oci/database_management/models/basic_named_credential_content.py new file mode 100644 index 0000000000..7e55e8ddd3 --- /dev/null +++ b/src/oci/database_management/models/basic_named_credential_content.py @@ -0,0 +1,212 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .named_credential_content import NamedCredentialContent +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class BasicNamedCredentialContent(NamedCredentialContent): + """ + The details of the 'BASIC' named credential. + """ + + #: A constant which can be used with the role property of a BasicNamedCredentialContent. + #: This constant has a value of "NORMAL" + ROLE_NORMAL = "NORMAL" + + #: A constant which can be used with the role property of a BasicNamedCredentialContent. + #: This constant has a value of "SYSDBA" + ROLE_SYSDBA = "SYSDBA" + + #: A constant which can be used with the password_secret_access_mode property of a BasicNamedCredentialContent. + #: This constant has a value of "USER_PRINCIPAL" + PASSWORD_SECRET_ACCESS_MODE_USER_PRINCIPAL = "USER_PRINCIPAL" + + #: A constant which can be used with the password_secret_access_mode property of a BasicNamedCredentialContent. + #: This constant has a value of "RESOURCE_PRINCIPAL" + PASSWORD_SECRET_ACCESS_MODE_RESOURCE_PRINCIPAL = "RESOURCE_PRINCIPAL" + + def __init__(self, **kwargs): + """ + Initializes a new BasicNamedCredentialContent object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.BasicNamedCredentialContent.credential_type` attribute + of this class is ``BASIC`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param credential_type: + The value to assign to the credential_type property of this BasicNamedCredentialContent. + Allowed values for this property are: "BASIC", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type credential_type: str + + :param user_name: + The value to assign to the user_name property of this BasicNamedCredentialContent. + :type user_name: str + + :param role: + The value to assign to the role property of this BasicNamedCredentialContent. + Allowed values for this property are: "NORMAL", "SYSDBA", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type role: str + + :param password_secret_id: + The value to assign to the password_secret_id property of this BasicNamedCredentialContent. + :type password_secret_id: str + + :param password_secret_access_mode: + The value to assign to the password_secret_access_mode property of this BasicNamedCredentialContent. + Allowed values for this property are: "USER_PRINCIPAL", "RESOURCE_PRINCIPAL", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type password_secret_access_mode: str + + """ + self.swagger_types = { + 'credential_type': 'str', + 'user_name': 'str', + 'role': 'str', + 'password_secret_id': 'str', + 'password_secret_access_mode': 'str' + } + + self.attribute_map = { + 'credential_type': 'credentialType', + 'user_name': 'userName', + 'role': 'role', + 'password_secret_id': 'passwordSecretId', + 'password_secret_access_mode': 'passwordSecretAccessMode' + } + + self._credential_type = None + self._user_name = None + self._role = None + self._password_secret_id = None + self._password_secret_access_mode = None + self._credential_type = 'BASIC' + + @property + def user_name(self): + """ + **[Required]** Gets the user_name of this BasicNamedCredentialContent. + The user name used to connect to the database. + + + :return: The user_name of this BasicNamedCredentialContent. + :rtype: str + """ + return self._user_name + + @user_name.setter + def user_name(self, user_name): + """ + Sets the user_name of this BasicNamedCredentialContent. + The user name used to connect to the database. + + + :param user_name: The user_name of this BasicNamedCredentialContent. + :type: str + """ + self._user_name = user_name + + @property + def role(self): + """ + **[Required]** Gets the role of this BasicNamedCredentialContent. + The role of the database user. + + Allowed values for this property are: "NORMAL", "SYSDBA", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The role of this BasicNamedCredentialContent. + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """ + Sets the role of this BasicNamedCredentialContent. + The role of the database user. + + + :param role: The role of this BasicNamedCredentialContent. + :type: str + """ + allowed_values = ["NORMAL", "SYSDBA"] + if not value_allowed_none_or_none_sentinel(role, allowed_values): + role = 'UNKNOWN_ENUM_VALUE' + self._role = role + + @property + def password_secret_id(self): + """ + **[Required]** Gets the password_secret_id of this BasicNamedCredentialContent. + The `OCID`__ of the Vault service secret that contains the database user password. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The password_secret_id of this BasicNamedCredentialContent. + :rtype: str + """ + return self._password_secret_id + + @password_secret_id.setter + def password_secret_id(self, password_secret_id): + """ + Sets the password_secret_id of this BasicNamedCredentialContent. + The `OCID`__ of the Vault service secret that contains the database user password. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param password_secret_id: The password_secret_id of this BasicNamedCredentialContent. + :type: str + """ + self._password_secret_id = password_secret_id + + @property + def password_secret_access_mode(self): + """ + **[Required]** Gets the password_secret_access_mode of this BasicNamedCredentialContent. + The mechanism used to access the password plain text value. + + Allowed values for this property are: "USER_PRINCIPAL", "RESOURCE_PRINCIPAL", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The password_secret_access_mode of this BasicNamedCredentialContent. + :rtype: str + """ + return self._password_secret_access_mode + + @password_secret_access_mode.setter + def password_secret_access_mode(self, password_secret_access_mode): + """ + Sets the password_secret_access_mode of this BasicNamedCredentialContent. + The mechanism used to access the password plain text value. + + + :param password_secret_access_mode: The password_secret_access_mode of this BasicNamedCredentialContent. + :type: str + """ + allowed_values = ["USER_PRINCIPAL", "RESOURCE_PRINCIPAL"] + if not value_allowed_none_or_none_sentinel(password_secret_access_mode, allowed_values): + password_secret_access_mode = 'UNKNOWN_ENUM_VALUE' + self._password_secret_access_mode = password_secret_access_mode + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/basic_preferred_credential.py b/src/oci/database_management/models/basic_preferred_credential.py index 86460c4f04..27b0a5a552 100644 --- a/src/oci/database_management/models/basic_preferred_credential.py +++ b/src/oci/database_management/models/basic_preferred_credential.py @@ -31,7 +31,7 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this BasicPreferredCredential. - Allowed values for this property are: "BASIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "BASIC", "NAMED_CREDENTIAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str diff --git a/src/oci/database_management/models/change_database_parameters_details.py b/src/oci/database_management/models/change_database_parameters_details.py index 8edadfc4e2..ee33a2d855 100644 --- a/src/oci/database_management/models/change_database_parameters_details.py +++ b/src/oci/database_management/models/change_database_parameters_details.py @@ -13,6 +13,7 @@ class ChangeDatabaseParametersDetails(object): """ The details required to change database parameter values. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ #: A constant which can be used with the scope property of a ChangeDatabaseParametersDetails. @@ -36,6 +37,10 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this ChangeDatabaseParametersDetails. :type credentials: oci.database_management.models.DatabaseCredentials + :param database_credential: + The value to assign to the database_credential property of this ChangeDatabaseParametersDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param scope: The value to assign to the scope property of this ChangeDatabaseParametersDetails. Allowed values for this property are: "MEMORY", "SPFILE", "BOTH" @@ -48,24 +53,27 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credentials': 'DatabaseCredentials', + 'database_credential': 'DatabaseCredentialDetails', 'scope': 'str', 'parameters': 'list[ChangeDatabaseParameterDetails]' } self.attribute_map = { 'credentials': 'credentials', + 'database_credential': 'databaseCredential', 'scope': 'scope', 'parameters': 'parameters' } self._credentials = None + self._database_credential = None self._scope = None self._parameters = None @property def credentials(self): """ - **[Required]** Gets the credentials of this ChangeDatabaseParametersDetails. + Gets the credentials of this ChangeDatabaseParametersDetails. :return: The credentials of this ChangeDatabaseParametersDetails. :rtype: oci.database_management.models.DatabaseCredentials @@ -82,6 +90,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this ChangeDatabaseParametersDetails. + + :return: The database_credential of this ChangeDatabaseParametersDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this ChangeDatabaseParametersDetails. + + :param database_credential: The database_credential of this ChangeDatabaseParametersDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def scope(self): """ diff --git a/src/oci/database_management/models/change_named_credential_compartment_details.py b/src/oci/database_management/models/change_named_credential_compartment_details.py new file mode 100644 index 0000000000..b1b91e2462 --- /dev/null +++ b/src/oci/database_management/models/change_named_credential_compartment_details.py @@ -0,0 +1,78 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ChangeNamedCredentialCompartmentDetails(object): + """ + The details required to change the compartment of a named credential. + """ + + def __init__(self, **kwargs): + """ + Initializes a new ChangeNamedCredentialCompartmentDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param compartment_id: + The value to assign to the compartment_id property of this ChangeNamedCredentialCompartmentDetails. + :type compartment_id: str + + """ + self.swagger_types = { + 'compartment_id': 'str' + } + + self.attribute_map = { + 'compartment_id': 'compartmentId' + } + + self._compartment_id = None + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this ChangeNamedCredentialCompartmentDetails. + The `OCID`__ of the + compartment to which the named credential should be moved. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this ChangeNamedCredentialCompartmentDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this ChangeNamedCredentialCompartmentDetails. + The `OCID`__ of the + compartment to which the named credential should be moved. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this ChangeNamedCredentialCompartmentDetails. + :type: str + """ + self._compartment_id = compartment_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/change_plan_retention_details.py b/src/oci/database_management/models/change_plan_retention_details.py index b14bd02dd0..e3e88ba10c 100644 --- a/src/oci/database_management/models/change_plan_retention_details.py +++ b/src/oci/database_management/models/change_plan_retention_details.py @@ -13,6 +13,7 @@ class ChangePlanRetentionDetails(object): """ The details required to change the plan retention period. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -28,19 +29,26 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this ChangePlanRetentionDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this ChangePlanRetentionDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { 'retention_weeks': 'int', - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { 'retention_weeks': 'retentionWeeks', - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._retention_weeks = None self._credentials = None + self._database_credential = None @property def retention_weeks(self): @@ -69,7 +77,7 @@ def retention_weeks(self, retention_weeks): @property def credentials(self): """ - **[Required]** Gets the credentials of this ChangePlanRetentionDetails. + Gets the credentials of this ChangePlanRetentionDetails. :return: The credentials of this ChangePlanRetentionDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -86,6 +94,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this ChangePlanRetentionDetails. + + :return: The database_credential of this ChangePlanRetentionDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this ChangePlanRetentionDetails. + + :param database_credential: The database_credential of this ChangePlanRetentionDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/change_space_budget_details.py b/src/oci/database_management/models/change_space_budget_details.py index 15dc960902..d5ac87b189 100644 --- a/src/oci/database_management/models/change_space_budget_details.py +++ b/src/oci/database_management/models/change_space_budget_details.py @@ -13,6 +13,7 @@ class ChangeSpaceBudgetDetails(object): """ The details required to change the disk space limit for the SQL Management Base. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -28,19 +29,26 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this ChangeSpaceBudgetDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this ChangeSpaceBudgetDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { 'space_budget_percent': 'float', - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { 'space_budget_percent': 'spaceBudgetPercent', - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._space_budget_percent = None self._credentials = None + self._database_credential = None @property def space_budget_percent(self): @@ -69,7 +77,7 @@ def space_budget_percent(self, space_budget_percent): @property def credentials(self): """ - **[Required]** Gets the credentials of this ChangeSpaceBudgetDetails. + Gets the credentials of this ChangeSpaceBudgetDetails. :return: The credentials of this ChangeSpaceBudgetDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -86,6 +94,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this ChangeSpaceBudgetDetails. + + :return: The database_credential of this ChangeSpaceBudgetDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this ChangeSpaceBudgetDetails. + + :param database_credential: The database_credential of this ChangeSpaceBudgetDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/change_sql_plan_baselines_attributes_details.py b/src/oci/database_management/models/change_sql_plan_baselines_attributes_details.py index d75db214e5..62833fcb85 100644 --- a/src/oci/database_management/models/change_sql_plan_baselines_attributes_details.py +++ b/src/oci/database_management/models/change_sql_plan_baselines_attributes_details.py @@ -13,6 +13,7 @@ class ChangeSqlPlanBaselinesAttributesDetails(object): """ The details required to change SQL plan baseline attributes. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -44,6 +45,10 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this ChangeSqlPlanBaselinesAttributesDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this ChangeSqlPlanBaselinesAttributesDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { 'sql_handle': 'str', @@ -51,7 +56,8 @@ def __init__(self, **kwargs): 'is_enabled': 'bool', 'is_fixed': 'bool', 'is_auto_purged': 'bool', - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { @@ -60,7 +66,8 @@ def __init__(self, **kwargs): 'is_enabled': 'isEnabled', 'is_fixed': 'isFixed', 'is_auto_purged': 'isAutoPurged', - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._sql_handle = None @@ -69,6 +76,7 @@ def __init__(self, **kwargs): self._is_fixed = None self._is_auto_purged = None self._credentials = None + self._database_credential = None @property def sql_handle(self): @@ -197,7 +205,7 @@ def is_auto_purged(self, is_auto_purged): @property def credentials(self): """ - **[Required]** Gets the credentials of this ChangeSqlPlanBaselinesAttributesDetails. + Gets the credentials of this ChangeSqlPlanBaselinesAttributesDetails. :return: The credentials of this ChangeSqlPlanBaselinesAttributesDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -214,6 +222,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this ChangeSqlPlanBaselinesAttributesDetails. + + :return: The database_credential of this ChangeSqlPlanBaselinesAttributesDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this ChangeSqlPlanBaselinesAttributesDetails. + + :param database_credential: The database_credential of this ChangeSqlPlanBaselinesAttributesDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/clone_sql_tuning_task_details.py b/src/oci/database_management/models/clone_sql_tuning_task_details.py index 8f9d5da459..999f3e9921 100644 --- a/src/oci/database_management/models/clone_sql_tuning_task_details.py +++ b/src/oci/database_management/models/clone_sql_tuning_task_details.py @@ -13,6 +13,7 @@ class CloneSqlTuningTaskDetails(object): """ The request to clone and run a SQL tuning task. The new task uses the same inputs as the one being cloned. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -36,25 +37,32 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this CloneSqlTuningTaskDetails. :type credential_details: oci.database_management.models.SqlTuningTaskCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this CloneSqlTuningTaskDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { 'task_name': 'str', 'original_task_id': 'int', 'task_description': 'str', - 'credential_details': 'SqlTuningTaskCredentialDetails' + 'credential_details': 'SqlTuningTaskCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { 'task_name': 'taskName', 'original_task_id': 'originalTaskId', 'task_description': 'taskDescription', - 'credential_details': 'credentialDetails' + 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential' } self._task_name = None self._original_task_id = None self._task_description = None self._credential_details = None + self._database_credential = None @property def task_name(self): @@ -139,7 +147,7 @@ def task_description(self, task_description): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this CloneSqlTuningTaskDetails. + Gets the credential_details of this CloneSqlTuningTaskDetails. :return: The credential_details of this CloneSqlTuningTaskDetails. :rtype: oci.database_management.models.SqlTuningTaskCredentialDetails @@ -156,6 +164,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this CloneSqlTuningTaskDetails. + + :return: The database_credential of this CloneSqlTuningTaskDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this CloneSqlTuningTaskDetails. + + :param database_credential: The database_credential of this CloneSqlTuningTaskDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/configure_automatic_capture_filters_details.py b/src/oci/database_management/models/configure_automatic_capture_filters_details.py index f63a907b6b..24e361cb5c 100644 --- a/src/oci/database_management/models/configure_automatic_capture_filters_details.py +++ b/src/oci/database_management/models/configure_automatic_capture_filters_details.py @@ -13,6 +13,7 @@ class ConfigureAutomaticCaptureFiltersDetails(object): """ The details required to configure automatic capture filters. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -28,19 +29,26 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this ConfigureAutomaticCaptureFiltersDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this ConfigureAutomaticCaptureFiltersDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { 'auto_capture_filters': 'list[AutomaticCaptureFilterDetails]', - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { 'auto_capture_filters': 'autoCaptureFilters', - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._auto_capture_filters = None self._credentials = None + self._database_credential = None @property def auto_capture_filters(self): @@ -69,7 +77,7 @@ def auto_capture_filters(self, auto_capture_filters): @property def credentials(self): """ - **[Required]** Gets the credentials of this ConfigureAutomaticCaptureFiltersDetails. + Gets the credentials of this ConfigureAutomaticCaptureFiltersDetails. :return: The credentials of this ConfigureAutomaticCaptureFiltersDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -86,6 +94,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this ConfigureAutomaticCaptureFiltersDetails. + + :return: The database_credential of this ConfigureAutomaticCaptureFiltersDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this ConfigureAutomaticCaptureFiltersDetails. + + :param database_credential: The database_credential of this ConfigureAutomaticCaptureFiltersDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/configure_automatic_spm_evolve_advisor_task_details.py b/src/oci/database_management/models/configure_automatic_spm_evolve_advisor_task_details.py index 03ed9b0f33..c058b7abd0 100644 --- a/src/oci/database_management/models/configure_automatic_spm_evolve_advisor_task_details.py +++ b/src/oci/database_management/models/configure_automatic_spm_evolve_advisor_task_details.py @@ -13,6 +13,7 @@ class ConfigureAutomaticSpmEvolveAdvisorTaskDetails(object): """ The configuration details of the Automatic SPM Evolve Advisor task. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -28,19 +29,26 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this ConfigureAutomaticSpmEvolveAdvisorTaskDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this ConfigureAutomaticSpmEvolveAdvisorTaskDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { 'task_parameters': 'SpmEvolveTaskParameters', - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { 'task_parameters': 'taskParameters', - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._task_parameters = None self._credentials = None + self._database_credential = None @property def task_parameters(self): @@ -65,7 +73,7 @@ def task_parameters(self, task_parameters): @property def credentials(self): """ - **[Required]** Gets the credentials of this ConfigureAutomaticSpmEvolveAdvisorTaskDetails. + Gets the credentials of this ConfigureAutomaticSpmEvolveAdvisorTaskDetails. :return: The credentials of this ConfigureAutomaticSpmEvolveAdvisorTaskDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -82,6 +90,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this ConfigureAutomaticSpmEvolveAdvisorTaskDetails. + + :return: The database_credential of this ConfigureAutomaticSpmEvolveAdvisorTaskDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this ConfigureAutomaticSpmEvolveAdvisorTaskDetails. + + :param database_credential: The database_credential of this ConfigureAutomaticSpmEvolveAdvisorTaskDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/create_named_credential_details.py b/src/oci/database_management/models/create_named_credential_details.py new file mode 100644 index 0000000000..3a7a99bcac --- /dev/null +++ b/src/oci/database_management/models/create_named_credential_details.py @@ -0,0 +1,300 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class CreateNamedCredentialDetails(object): + """ + The details required to create a named credential. + """ + + #: A constant which can be used with the scope property of a CreateNamedCredentialDetails. + #: This constant has a value of "RESOURCE" + SCOPE_RESOURCE = "RESOURCE" + + #: A constant which can be used with the scope property of a CreateNamedCredentialDetails. + #: This constant has a value of "GLOBAL" + SCOPE_GLOBAL = "GLOBAL" + + #: A constant which can be used with the type property of a CreateNamedCredentialDetails. + #: This constant has a value of "ORACLE_DB" + TYPE_ORACLE_DB = "ORACLE_DB" + + def __init__(self, **kwargs): + """ + Initializes a new CreateNamedCredentialDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param name: + The value to assign to the name property of this CreateNamedCredentialDetails. + :type name: str + + :param description: + The value to assign to the description property of this CreateNamedCredentialDetails. + :type description: str + + :param scope: + The value to assign to the scope property of this CreateNamedCredentialDetails. + Allowed values for this property are: "RESOURCE", "GLOBAL" + :type scope: str + + :param type: + The value to assign to the type property of this CreateNamedCredentialDetails. + Allowed values for this property are: "ORACLE_DB" + :type type: str + + :param content: + The value to assign to the content property of this CreateNamedCredentialDetails. + :type content: oci.database_management.models.NamedCredentialContent + + :param compartment_id: + The value to assign to the compartment_id property of this CreateNamedCredentialDetails. + :type compartment_id: str + + :param associated_resource: + The value to assign to the associated_resource property of this CreateNamedCredentialDetails. + :type associated_resource: str + + """ + self.swagger_types = { + 'name': 'str', + 'description': 'str', + 'scope': 'str', + 'type': 'str', + 'content': 'NamedCredentialContent', + 'compartment_id': 'str', + 'associated_resource': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'description': 'description', + 'scope': 'scope', + 'type': 'type', + 'content': 'content', + 'compartment_id': 'compartmentId', + 'associated_resource': 'associatedResource' + } + + self._name = None + self._description = None + self._scope = None + self._type = None + self._content = None + self._compartment_id = None + self._associated_resource = None + + @property + def name(self): + """ + **[Required]** Gets the name of this CreateNamedCredentialDetails. + The name of the named credential. Valid characters are uppercase or + lowercase letters, numbers, and \"_\". The name of the named credential + cannot be modified. It must be unique in the compartment and must begin with + an alphabetic character. + + + :return: The name of this CreateNamedCredentialDetails. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this CreateNamedCredentialDetails. + The name of the named credential. Valid characters are uppercase or + lowercase letters, numbers, and \"_\". The name of the named credential + cannot be modified. It must be unique in the compartment and must begin with + an alphabetic character. + + + :param name: The name of this CreateNamedCredentialDetails. + :type: str + """ + self._name = name + + @property + def description(self): + """ + Gets the description of this CreateNamedCredentialDetails. + The information specified by the user about the named credential. + + + :return: The description of this CreateNamedCredentialDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this CreateNamedCredentialDetails. + The information specified by the user about the named credential. + + + :param description: The description of this CreateNamedCredentialDetails. + :type: str + """ + self._description = description + + @property + def scope(self): + """ + **[Required]** Gets the scope of this CreateNamedCredentialDetails. + The scope of the named credential. + + Allowed values for this property are: "RESOURCE", "GLOBAL" + + + :return: The scope of this CreateNamedCredentialDetails. + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """ + Sets the scope of this CreateNamedCredentialDetails. + The scope of the named credential. + + + :param scope: The scope of this CreateNamedCredentialDetails. + :type: str + """ + allowed_values = ["RESOURCE", "GLOBAL"] + if not value_allowed_none_or_none_sentinel(scope, allowed_values): + raise ValueError( + f"Invalid value for `scope`, must be None or one of {allowed_values}" + ) + self._scope = scope + + @property + def type(self): + """ + **[Required]** Gets the type of this CreateNamedCredentialDetails. + The type of resource associated with the named credential. + + Allowed values for this property are: "ORACLE_DB" + + + :return: The type of this CreateNamedCredentialDetails. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this CreateNamedCredentialDetails. + The type of resource associated with the named credential. + + + :param type: The type of this CreateNamedCredentialDetails. + :type: str + """ + allowed_values = ["ORACLE_DB"] + if not value_allowed_none_or_none_sentinel(type, allowed_values): + raise ValueError( + f"Invalid value for `type`, must be None or one of {allowed_values}" + ) + self._type = type + + @property + def content(self): + """ + **[Required]** Gets the content of this CreateNamedCredentialDetails. + + :return: The content of this CreateNamedCredentialDetails. + :rtype: oci.database_management.models.NamedCredentialContent + """ + return self._content + + @content.setter + def content(self, content): + """ + Sets the content of this CreateNamedCredentialDetails. + + :param content: The content of this CreateNamedCredentialDetails. + :type: oci.database_management.models.NamedCredentialContent + """ + self._content = content + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this CreateNamedCredentialDetails. + The `OCID`__ of the compartment + in which the named credential resides. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this CreateNamedCredentialDetails. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this CreateNamedCredentialDetails. + The `OCID`__ of the compartment + in which the named credential resides. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this CreateNamedCredentialDetails. + :type: str + """ + self._compartment_id = compartment_id + + @property + def associated_resource(self): + """ + Gets the associated_resource of this CreateNamedCredentialDetails. + The `OCID`__ of the resource that + is associated to the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The associated_resource of this CreateNamedCredentialDetails. + :rtype: str + """ + return self._associated_resource + + @associated_resource.setter + def associated_resource(self, associated_resource): + """ + Sets the associated_resource of this CreateNamedCredentialDetails. + The `OCID`__ of the resource that + is associated to the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param associated_resource: The associated_resource of this CreateNamedCredentialDetails. + :type: str + """ + self._associated_resource = associated_resource + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/create_sql_job_details.py b/src/oci/database_management/models/create_sql_job_details.py index 56d7ce31f1..65df80068a 100644 --- a/src/oci/database_management/models/create_sql_job_details.py +++ b/src/oci/database_management/models/create_sql_job_details.py @@ -99,6 +99,10 @@ def __init__(self, **kwargs): The value to assign to the secret_id property of this CreateSqlJobDetails. :type secret_id: str + :param named_credential_id: + The value to assign to the named_credential_id property of this CreateSqlJobDetails. + :type named_credential_id: str + :param role: The value to assign to the role property of this CreateSqlJobDetails. :type role: str @@ -124,6 +128,7 @@ def __init__(self, **kwargs): 'user_name': 'str', 'password': 'str', 'secret_id': 'str', + 'named_credential_id': 'str', 'role': 'str' } @@ -147,6 +152,7 @@ def __init__(self, **kwargs): 'user_name': 'userName', 'password': 'password', 'secret_id': 'secretId', + 'named_credential_id': 'namedCredentialId', 'role': 'role' } @@ -169,6 +175,7 @@ def __init__(self, **kwargs): self._user_name = None self._password = None self._secret_id = None + self._named_credential_id = None self._role = None self._job_type = 'SQL' @@ -360,6 +367,34 @@ def secret_id(self, secret_id): """ self._secret_id = secret_id + @property + def named_credential_id(self): + """ + Gets the named_credential_id of this CreateSqlJobDetails. + The `OCID`__ of the Named Credentials containing password secret. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The named_credential_id of this CreateSqlJobDetails. + :rtype: str + """ + return self._named_credential_id + + @named_credential_id.setter + def named_credential_id(self, named_credential_id): + """ + Sets the named_credential_id of this CreateSqlJobDetails. + The `OCID`__ of the Named Credentials containing password secret. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param named_credential_id: The named_credential_id of this CreateSqlJobDetails. + :type: str + """ + self._named_credential_id = named_credential_id + @property def role(self): """ diff --git a/src/oci/database_management/models/create_sql_tuning_set_details.py b/src/oci/database_management/models/create_sql_tuning_set_details.py index b2d3d8303c..81dbd0e92a 100644 --- a/src/oci/database_management/models/create_sql_tuning_set_details.py +++ b/src/oci/database_management/models/create_sql_tuning_set_details.py @@ -13,6 +13,7 @@ class CreateSqlTuningSetDetails(object): """ Create an empty Sql tuning sets. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -24,6 +25,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this CreateSqlTuningSetDetails. :type credential_details: oci.database_management.models.SqlTuningSetAdminCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this CreateSqlTuningSetDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param name: The value to assign to the name property of this CreateSqlTuningSetDetails. :type name: str @@ -43,6 +48,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credential_details': 'SqlTuningSetAdminCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'name': 'str', 'owner': 'str', 'description': 'str', @@ -51,6 +57,7 @@ def __init__(self, **kwargs): self.attribute_map = { 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'name': 'name', 'owner': 'owner', 'description': 'description', @@ -58,6 +65,7 @@ def __init__(self, **kwargs): } self._credential_details = None + self._database_credential = None self._name = None self._owner = None self._description = None @@ -66,7 +74,7 @@ def __init__(self, **kwargs): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this CreateSqlTuningSetDetails. + Gets the credential_details of this CreateSqlTuningSetDetails. :return: The credential_details of this CreateSqlTuningSetDetails. :rtype: oci.database_management.models.SqlTuningSetAdminCredentialDetails @@ -83,6 +91,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this CreateSqlTuningSetDetails. + + :return: The database_credential of this CreateSqlTuningSetDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this CreateSqlTuningSetDetails. + + :param database_credential: The database_credential of this CreateSqlTuningSetDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def name(self): """ diff --git a/src/oci/database_management/models/create_tablespace_details.py b/src/oci/database_management/models/create_tablespace_details.py index 387df2a624..1dc2f796ce 100644 --- a/src/oci/database_management/models/create_tablespace_details.py +++ b/src/oci/database_management/models/create_tablespace_details.py @@ -13,6 +13,7 @@ class CreateTablespaceDetails(object): """ The details required to create a tablespace. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ #: A constant which can be used with the type property of a CreateTablespaceDetails. @@ -64,6 +65,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this CreateTablespaceDetails. :type credential_details: oci.database_management.models.TablespaceAdminCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this CreateTablespaceDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param name: The value to assign to the name property of this CreateTablespaceDetails. :type name: str @@ -152,6 +157,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credential_details': 'TablespaceAdminCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'name': 'str', 'type': 'str', 'is_bigfile': 'bool', @@ -176,6 +182,7 @@ def __init__(self, **kwargs): self.attribute_map = { 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'name': 'name', 'type': 'type', 'is_bigfile': 'isBigfile', @@ -199,6 +206,7 @@ def __init__(self, **kwargs): } self._credential_details = None + self._database_credential = None self._name = None self._type = None self._is_bigfile = None @@ -223,7 +231,7 @@ def __init__(self, **kwargs): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this CreateTablespaceDetails. + Gets the credential_details of this CreateTablespaceDetails. :return: The credential_details of this CreateTablespaceDetails. :rtype: oci.database_management.models.TablespaceAdminCredentialDetails @@ -240,6 +248,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this CreateTablespaceDetails. + + :return: The database_credential of this CreateTablespaceDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this CreateTablespaceDetails. + + :param database_credential: The database_credential of this CreateTablespaceDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def name(self): """ diff --git a/src/oci/database_management/models/database_credential_details.py b/src/oci/database_management/models/database_credential_details.py new file mode 100644 index 0000000000..9dd52fc3c9 --- /dev/null +++ b/src/oci/database_management/models/database_credential_details.py @@ -0,0 +1,117 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DatabaseCredentialDetails(object): + """ + The credential to connect to the database to perform tablespace administration tasks. + """ + + #: A constant which can be used with the credential_type property of a DatabaseCredentialDetails. + #: This constant has a value of "SECRET" + CREDENTIAL_TYPE_SECRET = "SECRET" + + #: A constant which can be used with the credential_type property of a DatabaseCredentialDetails. + #: This constant has a value of "PASSWORD" + CREDENTIAL_TYPE_PASSWORD = "PASSWORD" + + #: A constant which can be used with the credential_type property of a DatabaseCredentialDetails. + #: This constant has a value of "NAMED_CREDENTIAL" + CREDENTIAL_TYPE_NAMED_CREDENTIAL = "NAMED_CREDENTIAL" + + def __init__(self, **kwargs): + """ + Initializes a new DatabaseCredentialDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input + to a service operations then you should favor using a subclass over the base class: + + * :class:`~oci.database_management.models.DatabaseSecretCredentialDetails` + * :class:`~oci.database_management.models.DatabaseNamedCredentialDetails` + * :class:`~oci.database_management.models.DatabasePasswordCredentialDetails` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param credential_type: + The value to assign to the credential_type property of this DatabaseCredentialDetails. + Allowed values for this property are: "SECRET", "PASSWORD", "NAMED_CREDENTIAL", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type credential_type: str + + """ + self.swagger_types = { + 'credential_type': 'str' + } + + self.attribute_map = { + 'credential_type': 'credentialType' + } + + self._credential_type = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['credentialType'] + + if type == 'SECRET': + return 'DatabaseSecretCredentialDetails' + + if type == 'NAMED_CREDENTIAL': + return 'DatabaseNamedCredentialDetails' + + if type == 'PASSWORD': + return 'DatabasePasswordCredentialDetails' + else: + return 'DatabaseCredentialDetails' + + @property + def credential_type(self): + """ + **[Required]** Gets the credential_type of this DatabaseCredentialDetails. + The type of the credential for tablespace administration tasks. + + Allowed values for this property are: "SECRET", "PASSWORD", "NAMED_CREDENTIAL", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The credential_type of this DatabaseCredentialDetails. + :rtype: str + """ + return self._credential_type + + @credential_type.setter + def credential_type(self, credential_type): + """ + Sets the credential_type of this DatabaseCredentialDetails. + The type of the credential for tablespace administration tasks. + + + :param credential_type: The credential_type of this DatabaseCredentialDetails. + :type: str + """ + allowed_values = ["SECRET", "PASSWORD", "NAMED_CREDENTIAL"] + if not value_allowed_none_or_none_sentinel(credential_type, allowed_values): + credential_type = 'UNKNOWN_ENUM_VALUE' + self._credential_type = credential_type + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/database_credentials.py b/src/oci/database_management/models/database_credentials.py index cafc24fd4c..e66568c872 100644 --- a/src/oci/database_management/models/database_credentials.py +++ b/src/oci/database_management/models/database_credentials.py @@ -13,6 +13,8 @@ class DatabaseCredentials(object): """ The database credentials used to perform management activity. + Provide one of the following attribute set. + (userName, password, role) OR (userName, secretId, role) OR (namedCredentialId) """ #: A constant which can be used with the role property of a DatabaseCredentials. diff --git a/src/oci/database_management/models/database_named_credential_details.py b/src/oci/database_management/models/database_named_credential_details.py new file mode 100644 index 0000000000..a1d05797de --- /dev/null +++ b/src/oci/database_management/models/database_named_credential_details.py @@ -0,0 +1,88 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .database_credential_details import DatabaseCredentialDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DatabaseNamedCredentialDetails(DatabaseCredentialDetails): + """ + User provides a named credential OCID, which will be used to retrieve the password to connect to the database. + """ + + def __init__(self, **kwargs): + """ + Initializes a new DatabaseNamedCredentialDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.DatabaseNamedCredentialDetails.credential_type` attribute + of this class is ``NAMED_CREDENTIAL`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param credential_type: + The value to assign to the credential_type property of this DatabaseNamedCredentialDetails. + Allowed values for this property are: "SECRET", "PASSWORD", "NAMED_CREDENTIAL" + :type credential_type: str + + :param named_credential_id: + The value to assign to the named_credential_id property of this DatabaseNamedCredentialDetails. + :type named_credential_id: str + + """ + self.swagger_types = { + 'credential_type': 'str', + 'named_credential_id': 'str' + } + + self.attribute_map = { + 'credential_type': 'credentialType', + 'named_credential_id': 'namedCredentialId' + } + + self._credential_type = None + self._named_credential_id = None + self._credential_type = 'NAMED_CREDENTIAL' + + @property + def named_credential_id(self): + """ + **[Required]** Gets the named_credential_id of this DatabaseNamedCredentialDetails. + The `OCID`__ of the named credential + where the database password metadata is stored. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The named_credential_id of this DatabaseNamedCredentialDetails. + :rtype: str + """ + return self._named_credential_id + + @named_credential_id.setter + def named_credential_id(self, named_credential_id): + """ + Sets the named_credential_id of this DatabaseNamedCredentialDetails. + The `OCID`__ of the named credential + where the database password metadata is stored. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param named_credential_id: The named_credential_id of this DatabaseNamedCredentialDetails. + :type: str + """ + self._named_credential_id = named_credential_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/database_password_credential_details.py b/src/oci/database_management/models/database_password_credential_details.py new file mode 100644 index 0000000000..e00ca92baf --- /dev/null +++ b/src/oci/database_management/models/database_password_credential_details.py @@ -0,0 +1,161 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .database_credential_details import DatabaseCredentialDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DatabasePasswordCredentialDetails(DatabaseCredentialDetails): + """ + User provides a password to be used to connect to the database. + """ + + #: A constant which can be used with the role property of a DatabasePasswordCredentialDetails. + #: This constant has a value of "NORMAL" + ROLE_NORMAL = "NORMAL" + + #: A constant which can be used with the role property of a DatabasePasswordCredentialDetails. + #: This constant has a value of "SYSDBA" + ROLE_SYSDBA = "SYSDBA" + + def __init__(self, **kwargs): + """ + Initializes a new DatabasePasswordCredentialDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.DatabasePasswordCredentialDetails.credential_type` attribute + of this class is ``PASSWORD`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param credential_type: + The value to assign to the credential_type property of this DatabasePasswordCredentialDetails. + Allowed values for this property are: "SECRET", "PASSWORD", "NAMED_CREDENTIAL", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type credential_type: str + + :param password: + The value to assign to the password property of this DatabasePasswordCredentialDetails. + :type password: str + + :param username: + The value to assign to the username property of this DatabasePasswordCredentialDetails. + :type username: str + + :param role: + The value to assign to the role property of this DatabasePasswordCredentialDetails. + Allowed values for this property are: "NORMAL", "SYSDBA", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type role: str + + """ + self.swagger_types = { + 'credential_type': 'str', + 'password': 'str', + 'username': 'str', + 'role': 'str' + } + + self.attribute_map = { + 'credential_type': 'credentialType', + 'password': 'password', + 'username': 'username', + 'role': 'role' + } + + self._credential_type = None + self._password = None + self._username = None + self._role = None + self._credential_type = 'PASSWORD' + + @property + def password(self): + """ + **[Required]** Gets the password of this DatabasePasswordCredentialDetails. + The database user's password encoded using BASE64 scheme. + + + :return: The password of this DatabasePasswordCredentialDetails. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """ + Sets the password of this DatabasePasswordCredentialDetails. + The database user's password encoded using BASE64 scheme. + + + :param password: The password of this DatabasePasswordCredentialDetails. + :type: str + """ + self._password = password + + @property + def username(self): + """ + Gets the username of this DatabasePasswordCredentialDetails. + The user to connect to the database. + + + :return: The username of this DatabasePasswordCredentialDetails. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """ + Sets the username of this DatabasePasswordCredentialDetails. + The user to connect to the database. + + + :param username: The username of this DatabasePasswordCredentialDetails. + :type: str + """ + self._username = username + + @property + def role(self): + """ + Gets the role of this DatabasePasswordCredentialDetails. + The role of the database user. + + Allowed values for this property are: "NORMAL", "SYSDBA", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The role of this DatabasePasswordCredentialDetails. + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """ + Sets the role of this DatabasePasswordCredentialDetails. + The role of the database user. + + + :param role: The role of this DatabasePasswordCredentialDetails. + :type: str + """ + allowed_values = ["NORMAL", "SYSDBA"] + if not value_allowed_none_or_none_sentinel(role, allowed_values): + role = 'UNKNOWN_ENUM_VALUE' + self._role = role + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/database_secret_credential_details.py b/src/oci/database_management/models/database_secret_credential_details.py new file mode 100644 index 0000000000..409920b8ce --- /dev/null +++ b/src/oci/database_management/models/database_secret_credential_details.py @@ -0,0 +1,167 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .database_credential_details import DatabaseCredentialDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class DatabaseSecretCredentialDetails(DatabaseCredentialDetails): + """ + User provides a secret OCID, which will be used to retrieve the password to connect to the database. + """ + + #: A constant which can be used with the role property of a DatabaseSecretCredentialDetails. + #: This constant has a value of "NORMAL" + ROLE_NORMAL = "NORMAL" + + #: A constant which can be used with the role property of a DatabaseSecretCredentialDetails. + #: This constant has a value of "SYSDBA" + ROLE_SYSDBA = "SYSDBA" + + def __init__(self, **kwargs): + """ + Initializes a new DatabaseSecretCredentialDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.DatabaseSecretCredentialDetails.credential_type` attribute + of this class is ``SECRET`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param credential_type: + The value to assign to the credential_type property of this DatabaseSecretCredentialDetails. + Allowed values for this property are: "SECRET", "PASSWORD", "NAMED_CREDENTIAL", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type credential_type: str + + :param password_secret_id: + The value to assign to the password_secret_id property of this DatabaseSecretCredentialDetails. + :type password_secret_id: str + + :param username: + The value to assign to the username property of this DatabaseSecretCredentialDetails. + :type username: str + + :param role: + The value to assign to the role property of this DatabaseSecretCredentialDetails. + Allowed values for this property are: "NORMAL", "SYSDBA", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type role: str + + """ + self.swagger_types = { + 'credential_type': 'str', + 'password_secret_id': 'str', + 'username': 'str', + 'role': 'str' + } + + self.attribute_map = { + 'credential_type': 'credentialType', + 'password_secret_id': 'passwordSecretId', + 'username': 'username', + 'role': 'role' + } + + self._credential_type = None + self._password_secret_id = None + self._username = None + self._role = None + self._credential_type = 'SECRET' + + @property + def password_secret_id(self): + """ + **[Required]** Gets the password_secret_id of this DatabaseSecretCredentialDetails. + The `OCID`__ of the Secret + where the database password is stored. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The password_secret_id of this DatabaseSecretCredentialDetails. + :rtype: str + """ + return self._password_secret_id + + @password_secret_id.setter + def password_secret_id(self, password_secret_id): + """ + Sets the password_secret_id of this DatabaseSecretCredentialDetails. + The `OCID`__ of the Secret + where the database password is stored. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param password_secret_id: The password_secret_id of this DatabaseSecretCredentialDetails. + :type: str + """ + self._password_secret_id = password_secret_id + + @property + def username(self): + """ + Gets the username of this DatabaseSecretCredentialDetails. + The user to connect to the database. + + + :return: The username of this DatabaseSecretCredentialDetails. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """ + Sets the username of this DatabaseSecretCredentialDetails. + The user to connect to the database. + + + :param username: The username of this DatabaseSecretCredentialDetails. + :type: str + """ + self._username = username + + @property + def role(self): + """ + Gets the role of this DatabaseSecretCredentialDetails. + The role of the database user. + + Allowed values for this property are: "NORMAL", "SYSDBA", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The role of this DatabaseSecretCredentialDetails. + :rtype: str + """ + return self._role + + @role.setter + def role(self, role): + """ + Sets the role of this DatabaseSecretCredentialDetails. + The role of the database user. + + + :param role: The role of this DatabaseSecretCredentialDetails. + :type: str + """ + allowed_values = ["NORMAL", "SYSDBA"] + if not value_allowed_none_or_none_sentinel(role, allowed_values): + role = 'UNKNOWN_ENUM_VALUE' + self._role = role + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/disable_automatic_initial_plan_capture_details.py b/src/oci/database_management/models/disable_automatic_initial_plan_capture_details.py index 380896e698..0160fa4b6a 100644 --- a/src/oci/database_management/models/disable_automatic_initial_plan_capture_details.py +++ b/src/oci/database_management/models/disable_automatic_initial_plan_capture_details.py @@ -13,6 +13,7 @@ class DisableAutomaticInitialPlanCaptureDetails(object): """ The details required to disable automatic initial plan capture. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -24,21 +25,28 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this DisableAutomaticInitialPlanCaptureDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this DisableAutomaticInitialPlanCaptureDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._credentials = None + self._database_credential = None @property def credentials(self): """ - **[Required]** Gets the credentials of this DisableAutomaticInitialPlanCaptureDetails. + Gets the credentials of this DisableAutomaticInitialPlanCaptureDetails. :return: The credentials of this DisableAutomaticInitialPlanCaptureDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -55,6 +63,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this DisableAutomaticInitialPlanCaptureDetails. + + :return: The database_credential of this DisableAutomaticInitialPlanCaptureDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this DisableAutomaticInitialPlanCaptureDetails. + + :param database_credential: The database_credential of this DisableAutomaticInitialPlanCaptureDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/disable_automatic_spm_evolve_advisor_task_details.py b/src/oci/database_management/models/disable_automatic_spm_evolve_advisor_task_details.py index 0159271b58..b1499ce53d 100644 --- a/src/oci/database_management/models/disable_automatic_spm_evolve_advisor_task_details.py +++ b/src/oci/database_management/models/disable_automatic_spm_evolve_advisor_task_details.py @@ -13,6 +13,7 @@ class DisableAutomaticSpmEvolveAdvisorTaskDetails(object): """ The details required to disable Automatic SPM Evolve Advisor task. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -24,21 +25,28 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this DisableAutomaticSpmEvolveAdvisorTaskDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this DisableAutomaticSpmEvolveAdvisorTaskDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._credentials = None + self._database_credential = None @property def credentials(self): """ - **[Required]** Gets the credentials of this DisableAutomaticSpmEvolveAdvisorTaskDetails. + Gets the credentials of this DisableAutomaticSpmEvolveAdvisorTaskDetails. :return: The credentials of this DisableAutomaticSpmEvolveAdvisorTaskDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -55,6 +63,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this DisableAutomaticSpmEvolveAdvisorTaskDetails. + + :return: The database_credential of this DisableAutomaticSpmEvolveAdvisorTaskDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this DisableAutomaticSpmEvolveAdvisorTaskDetails. + + :param database_credential: The database_credential of this DisableAutomaticSpmEvolveAdvisorTaskDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/disable_high_frequency_automatic_spm_evolve_advisor_task_details.py b/src/oci/database_management/models/disable_high_frequency_automatic_spm_evolve_advisor_task_details.py index 4e4f0a7c93..4d6566fd1b 100644 --- a/src/oci/database_management/models/disable_high_frequency_automatic_spm_evolve_advisor_task_details.py +++ b/src/oci/database_management/models/disable_high_frequency_automatic_spm_evolve_advisor_task_details.py @@ -13,6 +13,7 @@ class DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails(object): """ The details required to disable high frequency Automatic SPM Evolve Advisor task. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -24,21 +25,28 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._credentials = None + self._database_credential = None @property def credentials(self): """ - **[Required]** Gets the credentials of this DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. + Gets the credentials of this DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. :return: The credentials of this DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -55,6 +63,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. + + :return: The database_credential of this DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. + + :param database_credential: The database_credential of this DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/disable_sql_plan_baselines_usage_details.py b/src/oci/database_management/models/disable_sql_plan_baselines_usage_details.py index 1949f6f38a..c544486d72 100644 --- a/src/oci/database_management/models/disable_sql_plan_baselines_usage_details.py +++ b/src/oci/database_management/models/disable_sql_plan_baselines_usage_details.py @@ -13,6 +13,7 @@ class DisableSqlPlanBaselinesUsageDetails(object): """ The details required to disable SQL plan baseline usage. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -24,21 +25,28 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this DisableSqlPlanBaselinesUsageDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this DisableSqlPlanBaselinesUsageDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._credentials = None + self._database_credential = None @property def credentials(self): """ - **[Required]** Gets the credentials of this DisableSqlPlanBaselinesUsageDetails. + Gets the credentials of this DisableSqlPlanBaselinesUsageDetails. :return: The credentials of this DisableSqlPlanBaselinesUsageDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -55,6 +63,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this DisableSqlPlanBaselinesUsageDetails. + + :return: The database_credential of this DisableSqlPlanBaselinesUsageDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this DisableSqlPlanBaselinesUsageDetails. + + :param database_credential: The database_credential of this DisableSqlPlanBaselinesUsageDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/drop_sql_plan_baselines_details.py b/src/oci/database_management/models/drop_sql_plan_baselines_details.py index d56b363d33..a551932c33 100644 --- a/src/oci/database_management/models/drop_sql_plan_baselines_details.py +++ b/src/oci/database_management/models/drop_sql_plan_baselines_details.py @@ -13,6 +13,7 @@ class DropSqlPlanBaselinesDetails(object): """ The details required to drop SQL plan baselines. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -32,22 +33,29 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this DropSqlPlanBaselinesDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this DropSqlPlanBaselinesDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { 'sql_handle': 'str', 'plan_name': 'str', - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { 'sql_handle': 'sqlHandle', 'plan_name': 'planName', - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._sql_handle = None self._plan_name = None self._credentials = None + self._database_credential = None @property def sql_handle(self): @@ -104,7 +112,7 @@ def plan_name(self, plan_name): @property def credentials(self): """ - **[Required]** Gets the credentials of this DropSqlPlanBaselinesDetails. + Gets the credentials of this DropSqlPlanBaselinesDetails. :return: The credentials of this DropSqlPlanBaselinesDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -121,6 +129,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this DropSqlPlanBaselinesDetails. + + :return: The database_credential of this DropSqlPlanBaselinesDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this DropSqlPlanBaselinesDetails. + + :param database_credential: The database_credential of this DropSqlPlanBaselinesDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/drop_sql_tuning_set_details.py b/src/oci/database_management/models/drop_sql_tuning_set_details.py index 9264f6eed0..486fa096f8 100644 --- a/src/oci/database_management/models/drop_sql_tuning_set_details.py +++ b/src/oci/database_management/models/drop_sql_tuning_set_details.py @@ -13,6 +13,7 @@ class DropSqlTuningSetDetails(object): """ The details required to drop a Sql tuning set. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -24,6 +25,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this DropSqlTuningSetDetails. :type credential_details: oci.database_management.models.SqlTuningSetAdminCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this DropSqlTuningSetDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param name: The value to assign to the name property of this DropSqlTuningSetDetails. :type name: str @@ -39,6 +44,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credential_details': 'SqlTuningSetAdminCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'name': 'str', 'owner': 'str', 'show_sql_only': 'int' @@ -46,12 +52,14 @@ def __init__(self, **kwargs): self.attribute_map = { 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'name': 'name', 'owner': 'owner', 'show_sql_only': 'showSqlOnly' } self._credential_details = None + self._database_credential = None self._name = None self._owner = None self._show_sql_only = None @@ -59,7 +67,7 @@ def __init__(self, **kwargs): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this DropSqlTuningSetDetails. + Gets the credential_details of this DropSqlTuningSetDetails. :return: The credential_details of this DropSqlTuningSetDetails. :rtype: oci.database_management.models.SqlTuningSetAdminCredentialDetails @@ -76,6 +84,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this DropSqlTuningSetDetails. + + :return: The database_credential of this DropSqlTuningSetDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this DropSqlTuningSetDetails. + + :param database_credential: The database_credential of this DropSqlTuningSetDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def name(self): """ diff --git a/src/oci/database_management/models/drop_sql_tuning_task_details.py b/src/oci/database_management/models/drop_sql_tuning_task_details.py index a581011926..934c526097 100644 --- a/src/oci/database_management/models/drop_sql_tuning_task_details.py +++ b/src/oci/database_management/models/drop_sql_tuning_task_details.py @@ -13,6 +13,7 @@ class DropSqlTuningTaskDetails(object): """ The request to drop a SQL tuning task. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -28,19 +29,26 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this DropSqlTuningTaskDetails. :type credential_details: oci.database_management.models.SqlTuningTaskCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this DropSqlTuningTaskDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { 'task_id': 'int', - 'credential_details': 'SqlTuningTaskCredentialDetails' + 'credential_details': 'SqlTuningTaskCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { 'task_id': 'taskId', - 'credential_details': 'credentialDetails' + 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential' } self._task_id = None self._credential_details = None + self._database_credential = None @property def task_id(self): @@ -77,7 +85,7 @@ def task_id(self, task_id): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this DropSqlTuningTaskDetails. + Gets the credential_details of this DropSqlTuningTaskDetails. :return: The credential_details of this DropSqlTuningTaskDetails. :rtype: oci.database_management.models.SqlTuningTaskCredentialDetails @@ -94,6 +102,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this DropSqlTuningTaskDetails. + + :return: The database_credential of this DropSqlTuningTaskDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this DropSqlTuningTaskDetails. + + :param database_credential: The database_credential of this DropSqlTuningTaskDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/drop_sqls_in_sql_tuning_set_details.py b/src/oci/database_management/models/drop_sqls_in_sql_tuning_set_details.py index 996368c2d4..94c126f26a 100644 --- a/src/oci/database_management/models/drop_sqls_in_sql_tuning_set_details.py +++ b/src/oci/database_management/models/drop_sqls_in_sql_tuning_set_details.py @@ -16,6 +16,7 @@ class DropSqlsInSqlTuningSetDetails(object): The basicFilter parameter specifies the Sql predicate to filter the Sql from the Sql tuning set defined on attributes of the SQLSET_ROW. If a valid filter criteria is specified, then, Sql statements matching this filter criteria will be deleted from the current Sql tuning set. If filter criteria is not specified, then, all Sql statements will be deleted from the current Sql tuning set. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -27,6 +28,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this DropSqlsInSqlTuningSetDetails. :type credential_details: oci.database_management.models.SqlTuningSetAdminCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this DropSqlsInSqlTuningSetDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param show_sql_only: The value to assign to the show_sql_only property of this DropSqlsInSqlTuningSetDetails. :type show_sql_only: int @@ -46,6 +51,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credential_details': 'SqlTuningSetAdminCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'show_sql_only': 'int', 'owner': 'str', 'name': 'str', @@ -54,6 +60,7 @@ def __init__(self, **kwargs): self.attribute_map = { 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'show_sql_only': 'showSqlOnly', 'owner': 'owner', 'name': 'name', @@ -61,6 +68,7 @@ def __init__(self, **kwargs): } self._credential_details = None + self._database_credential = None self._show_sql_only = None self._owner = None self._name = None @@ -69,7 +77,7 @@ def __init__(self, **kwargs): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this DropSqlsInSqlTuningSetDetails. + Gets the credential_details of this DropSqlsInSqlTuningSetDetails. :return: The credential_details of this DropSqlsInSqlTuningSetDetails. :rtype: oci.database_management.models.SqlTuningSetAdminCredentialDetails @@ -86,6 +94,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this DropSqlsInSqlTuningSetDetails. + + :return: The database_credential of this DropSqlsInSqlTuningSetDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this DropSqlsInSqlTuningSetDetails. + + :param database_credential: The database_credential of this DropSqlsInSqlTuningSetDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def show_sql_only(self): """ diff --git a/src/oci/database_management/models/drop_tablespace_details.py b/src/oci/database_management/models/drop_tablespace_details.py index 99e9b16e96..eb92d5d668 100644 --- a/src/oci/database_management/models/drop_tablespace_details.py +++ b/src/oci/database_management/models/drop_tablespace_details.py @@ -13,6 +13,7 @@ class DropTablespaceDetails(object): """ The details required to drop a tablespace. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -24,6 +25,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this DropTablespaceDetails. :type credential_details: oci.database_management.models.TablespaceAdminCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this DropTablespaceDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param is_including_contents: The value to assign to the is_including_contents property of this DropTablespaceDetails. :type is_including_contents: bool @@ -39,6 +44,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credential_details': 'TablespaceAdminCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'is_including_contents': 'bool', 'is_dropping_data_files': 'bool', 'is_cascade_constraints': 'bool' @@ -46,12 +52,14 @@ def __init__(self, **kwargs): self.attribute_map = { 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'is_including_contents': 'isIncludingContents', 'is_dropping_data_files': 'isDroppingDataFiles', 'is_cascade_constraints': 'isCascadeConstraints' } self._credential_details = None + self._database_credential = None self._is_including_contents = None self._is_dropping_data_files = None self._is_cascade_constraints = None @@ -59,7 +67,7 @@ def __init__(self, **kwargs): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this DropTablespaceDetails. + Gets the credential_details of this DropTablespaceDetails. :return: The credential_details of this DropTablespaceDetails. :rtype: oci.database_management.models.TablespaceAdminCredentialDetails @@ -76,6 +84,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this DropTablespaceDetails. + + :return: The database_credential of this DropTablespaceDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this DropTablespaceDetails. + + :param database_credential: The database_credential of this DropTablespaceDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def is_including_contents(self): """ diff --git a/src/oci/database_management/models/enable_automatic_initial_plan_capture_details.py b/src/oci/database_management/models/enable_automatic_initial_plan_capture_details.py index bcfa024c85..ccb67f889f 100644 --- a/src/oci/database_management/models/enable_automatic_initial_plan_capture_details.py +++ b/src/oci/database_management/models/enable_automatic_initial_plan_capture_details.py @@ -13,6 +13,7 @@ class EnableAutomaticInitialPlanCaptureDetails(object): """ The details required to enable automatic initial plan capture. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -24,21 +25,28 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this EnableAutomaticInitialPlanCaptureDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this EnableAutomaticInitialPlanCaptureDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._credentials = None + self._database_credential = None @property def credentials(self): """ - **[Required]** Gets the credentials of this EnableAutomaticInitialPlanCaptureDetails. + Gets the credentials of this EnableAutomaticInitialPlanCaptureDetails. :return: The credentials of this EnableAutomaticInitialPlanCaptureDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -55,6 +63,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this EnableAutomaticInitialPlanCaptureDetails. + + :return: The database_credential of this EnableAutomaticInitialPlanCaptureDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this EnableAutomaticInitialPlanCaptureDetails. + + :param database_credential: The database_credential of this EnableAutomaticInitialPlanCaptureDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/enable_automatic_spm_evolve_advisor_task_details.py b/src/oci/database_management/models/enable_automatic_spm_evolve_advisor_task_details.py index ebdd7afa85..d1536a730e 100644 --- a/src/oci/database_management/models/enable_automatic_spm_evolve_advisor_task_details.py +++ b/src/oci/database_management/models/enable_automatic_spm_evolve_advisor_task_details.py @@ -13,6 +13,7 @@ class EnableAutomaticSpmEvolveAdvisorTaskDetails(object): """ The details required to enable Automatic SPM Evolve Advisor task. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -24,21 +25,28 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this EnableAutomaticSpmEvolveAdvisorTaskDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this EnableAutomaticSpmEvolveAdvisorTaskDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._credentials = None + self._database_credential = None @property def credentials(self): """ - **[Required]** Gets the credentials of this EnableAutomaticSpmEvolveAdvisorTaskDetails. + Gets the credentials of this EnableAutomaticSpmEvolveAdvisorTaskDetails. :return: The credentials of this EnableAutomaticSpmEvolveAdvisorTaskDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -55,6 +63,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this EnableAutomaticSpmEvolveAdvisorTaskDetails. + + :return: The database_credential of this EnableAutomaticSpmEvolveAdvisorTaskDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this EnableAutomaticSpmEvolveAdvisorTaskDetails. + + :param database_credential: The database_credential of this EnableAutomaticSpmEvolveAdvisorTaskDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/enable_high_frequency_automatic_spm_evolve_advisor_task_details.py b/src/oci/database_management/models/enable_high_frequency_automatic_spm_evolve_advisor_task_details.py index 90eb7ed97e..5d37076fd3 100644 --- a/src/oci/database_management/models/enable_high_frequency_automatic_spm_evolve_advisor_task_details.py +++ b/src/oci/database_management/models/enable_high_frequency_automatic_spm_evolve_advisor_task_details.py @@ -13,6 +13,7 @@ class EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails(object): """ The details required to enable high frequency Automatic SPM Evolve Advisor task. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -24,21 +25,28 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._credentials = None + self._database_credential = None @property def credentials(self): """ - **[Required]** Gets the credentials of this EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. + Gets the credentials of this EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. :return: The credentials of this EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -55,6 +63,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. + + :return: The database_credential of this EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. + + :param database_credential: The database_credential of this EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/enable_sql_plan_baselines_usage_details.py b/src/oci/database_management/models/enable_sql_plan_baselines_usage_details.py index cf67be7ee0..47cfc76453 100644 --- a/src/oci/database_management/models/enable_sql_plan_baselines_usage_details.py +++ b/src/oci/database_management/models/enable_sql_plan_baselines_usage_details.py @@ -13,6 +13,7 @@ class EnableSqlPlanBaselinesUsageDetails(object): """ The details required to enable SQL plan baseline usage. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -24,21 +25,28 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this EnableSqlPlanBaselinesUsageDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this EnableSqlPlanBaselinesUsageDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._credentials = None + self._database_credential = None @property def credentials(self): """ - **[Required]** Gets the credentials of this EnableSqlPlanBaselinesUsageDetails. + Gets the credentials of this EnableSqlPlanBaselinesUsageDetails. :return: The credentials of this EnableSqlPlanBaselinesUsageDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -55,6 +63,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this EnableSqlPlanBaselinesUsageDetails. + + :return: The database_credential of this EnableSqlPlanBaselinesUsageDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this EnableSqlPlanBaselinesUsageDetails. + + :param database_credential: The database_credential of this EnableSqlPlanBaselinesUsageDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/external_database_connection_info.py b/src/oci/database_management/models/external_database_connection_info.py index c4d334e69a..63146e1f36 100644 --- a/src/oci/database_management/models/external_database_connection_info.py +++ b/src/oci/database_management/models/external_database_connection_info.py @@ -13,6 +13,7 @@ class ExternalDatabaseConnectionInfo(ExternalDbSystemConnectionInfo): """ The details required to connect to an external Oracle Database. + It takes either connectionCredentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -34,22 +35,29 @@ def __init__(self, **kwargs): The value to assign to the connection_credentials property of this ExternalDatabaseConnectionInfo. :type connection_credentials: oci.database_management.models.DatabaseConnectionCredentials + :param database_credential: + The value to assign to the database_credential property of this ExternalDatabaseConnectionInfo. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { 'component_type': 'str', 'connection_string': 'DatabaseConnectionString', - 'connection_credentials': 'DatabaseConnectionCredentials' + 'connection_credentials': 'DatabaseConnectionCredentials', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { 'component_type': 'componentType', 'connection_string': 'connectionString', - 'connection_credentials': 'connectionCredentials' + 'connection_credentials': 'connectionCredentials', + 'database_credential': 'databaseCredential' } self._component_type = None self._connection_string = None self._connection_credentials = None + self._database_credential = None self._component_type = 'DATABASE' @property @@ -75,7 +83,7 @@ def connection_string(self, connection_string): @property def connection_credentials(self): """ - **[Required]** Gets the connection_credentials of this ExternalDatabaseConnectionInfo. + Gets the connection_credentials of this ExternalDatabaseConnectionInfo. :return: The connection_credentials of this ExternalDatabaseConnectionInfo. :rtype: oci.database_management.models.DatabaseConnectionCredentials @@ -92,6 +100,26 @@ def connection_credentials(self, connection_credentials): """ self._connection_credentials = connection_credentials + @property + def database_credential(self): + """ + Gets the database_credential of this ExternalDatabaseConnectionInfo. + + :return: The database_credential of this ExternalDatabaseConnectionInfo. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this ExternalDatabaseConnectionInfo. + + :param database_credential: The database_credential of this ExternalDatabaseConnectionInfo. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/fetch_sql_tuning_set_details.py b/src/oci/database_management/models/fetch_sql_tuning_set_details.py index b84355efc7..90f9fa02a7 100644 --- a/src/oci/database_management/models/fetch_sql_tuning_set_details.py +++ b/src/oci/database_management/models/fetch_sql_tuning_set_details.py @@ -13,6 +13,7 @@ class FetchSqlTuningSetDetails(object): """ The details required to fetch the Sql tuning set details. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ #: A constant which can be used with the recursive_sql property of a FetchSqlTuningSetDetails. @@ -104,6 +105,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this FetchSqlTuningSetDetails. :type credential_details: oci.database_management.models.SqlTuningSetAdminCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this FetchSqlTuningSetDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param owner: The value to assign to the owner property of this FetchSqlTuningSetDetails. :type owner: str @@ -147,6 +152,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credential_details': 'SqlTuningSetAdminCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'owner': 'str', 'name': 'str', 'basic_filter': 'str', @@ -160,6 +166,7 @@ def __init__(self, **kwargs): self.attribute_map = { 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'owner': 'owner', 'name': 'name', 'basic_filter': 'basicFilter', @@ -172,6 +179,7 @@ def __init__(self, **kwargs): } self._credential_details = None + self._database_credential = None self._owner = None self._name = None self._basic_filter = None @@ -185,7 +193,7 @@ def __init__(self, **kwargs): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this FetchSqlTuningSetDetails. + Gets the credential_details of this FetchSqlTuningSetDetails. :return: The credential_details of this FetchSqlTuningSetDetails. :rtype: oci.database_management.models.SqlTuningSetAdminCredentialDetails @@ -202,6 +210,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this FetchSqlTuningSetDetails. + + :return: The database_credential of this FetchSqlTuningSetDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this FetchSqlTuningSetDetails. + + :param database_credential: The database_credential of this FetchSqlTuningSetDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def owner(self): """ diff --git a/src/oci/database_management/models/implement_optimizer_statistics_advisor_recommendations_job.py b/src/oci/database_management/models/implement_optimizer_statistics_advisor_recommendations_job.py index c3f0c0550b..d789c943aa 100644 --- a/src/oci/database_management/models/implement_optimizer_statistics_advisor_recommendations_job.py +++ b/src/oci/database_management/models/implement_optimizer_statistics_advisor_recommendations_job.py @@ -40,13 +40,18 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this ImplementOptimizerStatisticsAdvisorRecommendationsJob. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this ImplementOptimizerStatisticsAdvisorRecommendationsJob. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { 'name': 'str', 'description': 'str', 'compartment_id': 'str', 'result_location': 'JobExecutionResultLocation', - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { @@ -54,7 +59,8 @@ def __init__(self, **kwargs): 'description': 'description', 'compartment_id': 'compartmentId', 'result_location': 'resultLocation', - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._name = None @@ -62,6 +68,7 @@ def __init__(self, **kwargs): self._compartment_id = None self._result_location = None self._credentials = None + self._database_credential = None @property def name(self): @@ -183,6 +190,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this ImplementOptimizerStatisticsAdvisorRecommendationsJob. + + :return: The database_credential of this ImplementOptimizerStatisticsAdvisorRecommendationsJob. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this ImplementOptimizerStatisticsAdvisorRecommendationsJob. + + :param database_credential: The database_credential of this ImplementOptimizerStatisticsAdvisorRecommendationsJob. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/load_sql_plan_baselines_from_awr_details.py b/src/oci/database_management/models/load_sql_plan_baselines_from_awr_details.py index 1d7732d71a..1f2fc459ba 100644 --- a/src/oci/database_management/models/load_sql_plan_baselines_from_awr_details.py +++ b/src/oci/database_management/models/load_sql_plan_baselines_from_awr_details.py @@ -13,6 +13,7 @@ class LoadSqlPlanBaselinesFromAwrDetails(object): """ The details required to load plans from Automatic Workload Repository (AWR). + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -52,6 +53,10 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this LoadSqlPlanBaselinesFromAwrDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this LoadSqlPlanBaselinesFromAwrDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { 'job_name': 'str', @@ -61,7 +66,8 @@ def __init__(self, **kwargs): 'sql_text_filter': 'str', 'is_fixed': 'bool', 'is_enabled': 'bool', - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { @@ -72,7 +78,8 @@ def __init__(self, **kwargs): 'sql_text_filter': 'sqlTextFilter', 'is_fixed': 'isFixed', 'is_enabled': 'isEnabled', - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._job_name = None @@ -83,6 +90,7 @@ def __init__(self, **kwargs): self._is_fixed = None self._is_enabled = None self._credentials = None + self._database_credential = None @property def job_name(self): @@ -265,7 +273,7 @@ def is_enabled(self, is_enabled): @property def credentials(self): """ - **[Required]** Gets the credentials of this LoadSqlPlanBaselinesFromAwrDetails. + Gets the credentials of this LoadSqlPlanBaselinesFromAwrDetails. :return: The credentials of this LoadSqlPlanBaselinesFromAwrDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -282,6 +290,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this LoadSqlPlanBaselinesFromAwrDetails. + + :return: The database_credential of this LoadSqlPlanBaselinesFromAwrDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this LoadSqlPlanBaselinesFromAwrDetails. + + :param database_credential: The database_credential of this LoadSqlPlanBaselinesFromAwrDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/load_sql_plan_baselines_from_cursor_cache_details.py b/src/oci/database_management/models/load_sql_plan_baselines_from_cursor_cache_details.py index 30c88f792d..b50093ab48 100644 --- a/src/oci/database_management/models/load_sql_plan_baselines_from_cursor_cache_details.py +++ b/src/oci/database_management/models/load_sql_plan_baselines_from_cursor_cache_details.py @@ -16,6 +16,7 @@ class LoadSqlPlanBaselinesFromCursorCacheDetails(object): the plans to load using SQL ID, plan identifier, or filterName and filterValue pair. You can also control the SQL plan baseline into which the plans are loaded using either SQL text or SQL handle. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ #: A constant which can be used with the filter_name property of a LoadSqlPlanBaselinesFromCursorCacheDetails. @@ -84,6 +85,10 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this LoadSqlPlanBaselinesFromCursorCacheDetails. :type credentials: oci.database_management.models.ManagedDatabaseCredential + :param database_credential: + The value to assign to the database_credential property of this LoadSqlPlanBaselinesFromCursorCacheDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + """ self.swagger_types = { 'job_name': 'str', @@ -96,7 +101,8 @@ def __init__(self, **kwargs): 'filter_value': 'str', 'is_fixed': 'bool', 'is_enabled': 'bool', - 'credentials': 'ManagedDatabaseCredential' + 'credentials': 'ManagedDatabaseCredential', + 'database_credential': 'DatabaseCredentialDetails' } self.attribute_map = { @@ -110,7 +116,8 @@ def __init__(self, **kwargs): 'filter_value': 'filterValue', 'is_fixed': 'isFixed', 'is_enabled': 'isEnabled', - 'credentials': 'credentials' + 'credentials': 'credentials', + 'database_credential': 'databaseCredential' } self._job_name = None @@ -124,6 +131,7 @@ def __init__(self, **kwargs): self._is_fixed = None self._is_enabled = None self._credentials = None + self._database_credential = None @property def job_name(self): @@ -397,7 +405,7 @@ def is_enabled(self, is_enabled): @property def credentials(self): """ - **[Required]** Gets the credentials of this LoadSqlPlanBaselinesFromCursorCacheDetails. + Gets the credentials of this LoadSqlPlanBaselinesFromCursorCacheDetails. :return: The credentials of this LoadSqlPlanBaselinesFromCursorCacheDetails. :rtype: oci.database_management.models.ManagedDatabaseCredential @@ -414,6 +422,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this LoadSqlPlanBaselinesFromCursorCacheDetails. + + :return: The database_credential of this LoadSqlPlanBaselinesFromCursorCacheDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this LoadSqlPlanBaselinesFromCursorCacheDetails. + + :param database_credential: The database_credential of this LoadSqlPlanBaselinesFromCursorCacheDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/load_sql_tuning_set_details.py b/src/oci/database_management/models/load_sql_tuning_set_details.py index dd3eddef3d..c120a753ed 100644 --- a/src/oci/database_management/models/load_sql_tuning_set_details.py +++ b/src/oci/database_management/models/load_sql_tuning_set_details.py @@ -13,6 +13,7 @@ class LoadSqlTuningSetDetails(object): """ The details required to load the Sql statements into the Sql tuning set. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ #: A constant which can be used with the load_type property of a LoadSqlTuningSetDetails. @@ -164,6 +165,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this LoadSqlTuningSetDetails. :type credential_details: oci.database_management.models.SqlTuningSetAdminCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this LoadSqlTuningSetDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param show_sql_only: The value to assign to the show_sql_only property of this LoadSqlTuningSetDetails. :type show_sql_only: int @@ -277,6 +282,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credential_details': 'SqlTuningSetAdminCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'show_sql_only': 'int', 'owner': 'str', 'name': 'str', @@ -306,6 +312,7 @@ def __init__(self, **kwargs): self.attribute_map = { 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'show_sql_only': 'showSqlOnly', 'owner': 'owner', 'name': 'name', @@ -334,6 +341,7 @@ def __init__(self, **kwargs): } self._credential_details = None + self._database_credential = None self._show_sql_only = None self._owner = None self._name = None @@ -363,7 +371,7 @@ def __init__(self, **kwargs): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this LoadSqlTuningSetDetails. + Gets the credential_details of this LoadSqlTuningSetDetails. :return: The credential_details of this LoadSqlTuningSetDetails. :rtype: oci.database_management.models.SqlTuningSetAdminCredentialDetails @@ -380,6 +388,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this LoadSqlTuningSetDetails. + + :return: The database_credential of this LoadSqlTuningSetDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this LoadSqlTuningSetDetails. + + :param database_credential: The database_credential of this LoadSqlTuningSetDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def show_sql_only(self): """ diff --git a/src/oci/database_management/models/named_credential.py b/src/oci/database_management/models/named_credential.py new file mode 100644 index 0000000000..c255544915 --- /dev/null +++ b/src/oci/database_management/models/named_credential.py @@ -0,0 +1,483 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class NamedCredential(object): + """ + The details of a named credential. + """ + + #: A constant which can be used with the lifecycle_state property of a NamedCredential. + #: This constant has a value of "CREATING" + LIFECYCLE_STATE_CREATING = "CREATING" + + #: A constant which can be used with the lifecycle_state property of a NamedCredential. + #: This constant has a value of "UPDATING" + LIFECYCLE_STATE_UPDATING = "UPDATING" + + #: A constant which can be used with the lifecycle_state property of a NamedCredential. + #: This constant has a value of "ACTIVE" + LIFECYCLE_STATE_ACTIVE = "ACTIVE" + + #: A constant which can be used with the lifecycle_state property of a NamedCredential. + #: This constant has a value of "DELETING" + LIFECYCLE_STATE_DELETING = "DELETING" + + #: A constant which can be used with the lifecycle_state property of a NamedCredential. + #: This constant has a value of "DELETED" + LIFECYCLE_STATE_DELETED = "DELETED" + + #: A constant which can be used with the lifecycle_state property of a NamedCredential. + #: This constant has a value of "FAILED" + LIFECYCLE_STATE_FAILED = "FAILED" + + #: A constant which can be used with the scope property of a NamedCredential. + #: This constant has a value of "RESOURCE" + SCOPE_RESOURCE = "RESOURCE" + + #: A constant which can be used with the scope property of a NamedCredential. + #: This constant has a value of "GLOBAL" + SCOPE_GLOBAL = "GLOBAL" + + #: A constant which can be used with the type property of a NamedCredential. + #: This constant has a value of "ORACLE_DB" + TYPE_ORACLE_DB = "ORACLE_DB" + + def __init__(self, **kwargs): + """ + Initializes a new NamedCredential object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param name: + The value to assign to the name property of this NamedCredential. + :type name: str + + :param id: + The value to assign to the id property of this NamedCredential. + :type id: str + + :param compartment_id: + The value to assign to the compartment_id property of this NamedCredential. + :type compartment_id: str + + :param description: + The value to assign to the description property of this NamedCredential. + :type description: str + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this NamedCredential. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type lifecycle_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this NamedCredential. + :type lifecycle_details: str + + :param scope: + The value to assign to the scope property of this NamedCredential. + Allowed values for this property are: "RESOURCE", "GLOBAL", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type scope: str + + :param type: + The value to assign to the type property of this NamedCredential. + Allowed values for this property are: "ORACLE_DB", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type type: str + + :param content: + The value to assign to the content property of this NamedCredential. + :type content: oci.database_management.models.NamedCredentialContent + + :param time_created: + The value to assign to the time_created property of this NamedCredential. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this NamedCredential. + :type time_updated: datetime + + :param associated_resource: + The value to assign to the associated_resource property of this NamedCredential. + :type associated_resource: str + + """ + self.swagger_types = { + 'name': 'str', + 'id': 'str', + 'compartment_id': 'str', + 'description': 'str', + 'lifecycle_state': 'str', + 'lifecycle_details': 'str', + 'scope': 'str', + 'type': 'str', + 'content': 'NamedCredentialContent', + 'time_created': 'datetime', + 'time_updated': 'datetime', + 'associated_resource': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'id': 'id', + 'compartment_id': 'compartmentId', + 'description': 'description', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'scope': 'scope', + 'type': 'type', + 'content': 'content', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated', + 'associated_resource': 'associatedResource' + } + + self._name = None + self._id = None + self._compartment_id = None + self._description = None + self._lifecycle_state = None + self._lifecycle_details = None + self._scope = None + self._type = None + self._content = None + self._time_created = None + self._time_updated = None + self._associated_resource = None + + @property + def name(self): + """ + **[Required]** Gets the name of this NamedCredential. + The name of the named credential. + + + :return: The name of this NamedCredential. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this NamedCredential. + The name of the named credential. + + + :param name: The name of this NamedCredential. + :type: str + """ + self._name = name + + @property + def id(self): + """ + **[Required]** Gets the id of this NamedCredential. + The `OCID`__ of the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The id of this NamedCredential. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NamedCredential. + The `OCID`__ of the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param id: The id of this NamedCredential. + :type: str + """ + self._id = id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this NamedCredential. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this NamedCredential. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this NamedCredential. + The `OCID`__ of the compartment. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this NamedCredential. + :type: str + """ + self._compartment_id = compartment_id + + @property + def description(self): + """ + Gets the description of this NamedCredential. + The information specified by the user about the named credential. + + + :return: The description of this NamedCredential. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this NamedCredential. + The information specified by the user about the named credential. + + + :param description: The description of this NamedCredential. + :type: str + """ + self._description = description + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this NamedCredential. + The current lifecycle state of the named credential. + + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The lifecycle_state of this NamedCredential. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this NamedCredential. + The current lifecycle state of the named credential. + + + :param lifecycle_state: The lifecycle_state of this NamedCredential. + :type: str + """ + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): + lifecycle_state = 'UNKNOWN_ENUM_VALUE' + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + Gets the lifecycle_details of this NamedCredential. + The details of the lifecycle state. + + + :return: The lifecycle_details of this NamedCredential. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this NamedCredential. + The details of the lifecycle state. + + + :param lifecycle_details: The lifecycle_details of this NamedCredential. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def scope(self): + """ + Gets the scope of this NamedCredential. + The scope of the named credential. + + Allowed values for this property are: "RESOURCE", "GLOBAL", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The scope of this NamedCredential. + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """ + Sets the scope of this NamedCredential. + The scope of the named credential. + + + :param scope: The scope of this NamedCredential. + :type: str + """ + allowed_values = ["RESOURCE", "GLOBAL"] + if not value_allowed_none_or_none_sentinel(scope, allowed_values): + scope = 'UNKNOWN_ENUM_VALUE' + self._scope = scope + + @property + def type(self): + """ + Gets the type of this NamedCredential. + The type of resource associated with the named credential. + + Allowed values for this property are: "ORACLE_DB", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The type of this NamedCredential. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this NamedCredential. + The type of resource associated with the named credential. + + + :param type: The type of this NamedCredential. + :type: str + """ + allowed_values = ["ORACLE_DB"] + if not value_allowed_none_or_none_sentinel(type, allowed_values): + type = 'UNKNOWN_ENUM_VALUE' + self._type = type + + @property + def content(self): + """ + Gets the content of this NamedCredential. + + :return: The content of this NamedCredential. + :rtype: oci.database_management.models.NamedCredentialContent + """ + return self._content + + @content.setter + def content(self, content): + """ + Sets the content of this NamedCredential. + + :param content: The content of this NamedCredential. + :type: oci.database_management.models.NamedCredentialContent + """ + self._content = content + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this NamedCredential. + The date and time the named credential was created. + + + :return: The time_created of this NamedCredential. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this NamedCredential. + The date and time the named credential was created. + + + :param time_created: The time_created of this NamedCredential. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + Gets the time_updated of this NamedCredential. + The date and time the named credential was last updated. + + + :return: The time_updated of this NamedCredential. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this NamedCredential. + The date and time the named credential was last updated. + + + :param time_updated: The time_updated of this NamedCredential. + :type: datetime + """ + self._time_updated = time_updated + + @property + def associated_resource(self): + """ + Gets the associated_resource of this NamedCredential. + The `OCID`__ of the resource that + is associated to the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The associated_resource of this NamedCredential. + :rtype: str + """ + return self._associated_resource + + @associated_resource.setter + def associated_resource(self, associated_resource): + """ + Sets the associated_resource of this NamedCredential. + The `OCID`__ of the resource that + is associated to the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param associated_resource: The associated_resource of this NamedCredential. + :type: str + """ + self._associated_resource = associated_resource + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/named_credential_collection.py b/src/oci/database_management/models/named_credential_collection.py new file mode 100644 index 0000000000..242f08322c --- /dev/null +++ b/src/oci/database_management/models/named_credential_collection.py @@ -0,0 +1,72 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class NamedCredentialCollection(object): + """ + A collection of named credential summary. + """ + + def __init__(self, **kwargs): + """ + Initializes a new NamedCredentialCollection object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param items: + The value to assign to the items property of this NamedCredentialCollection. + :type items: list[oci.database_management.models.NamedCredentialSummary] + + """ + self.swagger_types = { + 'items': 'list[NamedCredentialSummary]' + } + + self.attribute_map = { + 'items': 'items' + } + + self._items = None + + @property + def items(self): + """ + **[Required]** Gets the items of this NamedCredentialCollection. + An array of named credential resources. + + + :return: The items of this NamedCredentialCollection. + :rtype: list[oci.database_management.models.NamedCredentialSummary] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this NamedCredentialCollection. + An array of named credential resources. + + + :param items: The items of this NamedCredentialCollection. + :type: list[oci.database_management.models.NamedCredentialSummary] + """ + self._items = items + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/named_credential_content.py b/src/oci/database_management/models/named_credential_content.py new file mode 100644 index 0000000000..2fc4bb76f0 --- /dev/null +++ b/src/oci/database_management/models/named_credential_content.py @@ -0,0 +1,101 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class NamedCredentialContent(object): + """ + The details of the named credential. + """ + + #: A constant which can be used with the credential_type property of a NamedCredentialContent. + #: This constant has a value of "BASIC" + CREDENTIAL_TYPE_BASIC = "BASIC" + + def __init__(self, **kwargs): + """ + Initializes a new NamedCredentialContent object with values from keyword arguments. This class has the following subclasses and if you are using this class as input + to a service operations then you should favor using a subclass over the base class: + + * :class:`~oci.database_management.models.BasicNamedCredentialContent` + + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param credential_type: + The value to assign to the credential_type property of this NamedCredentialContent. + Allowed values for this property are: "BASIC", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type credential_type: str + + """ + self.swagger_types = { + 'credential_type': 'str' + } + + self.attribute_map = { + 'credential_type': 'credentialType' + } + + self._credential_type = None + + @staticmethod + def get_subtype(object_dictionary): + """ + Given the hash representation of a subtype of this class, + use the info in the hash to return the class of the subtype. + """ + type = object_dictionary['credentialType'] + + if type == 'BASIC': + return 'BasicNamedCredentialContent' + else: + return 'NamedCredentialContent' + + @property + def credential_type(self): + """ + **[Required]** Gets the credential_type of this NamedCredentialContent. + The type of named credential. Only 'BASIC' is supported currently. + + Allowed values for this property are: "BASIC", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The credential_type of this NamedCredentialContent. + :rtype: str + """ + return self._credential_type + + @credential_type.setter + def credential_type(self, credential_type): + """ + Sets the credential_type of this NamedCredentialContent. + The type of named credential. Only 'BASIC' is supported currently. + + + :param credential_type: The credential_type of this NamedCredentialContent. + :type: str + """ + allowed_values = ["BASIC"] + if not value_allowed_none_or_none_sentinel(credential_type, allowed_values): + credential_type = 'UNKNOWN_ENUM_VALUE' + self._credential_type = credential_type + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/named_credential_summary.py b/src/oci/database_management/models/named_credential_summary.py new file mode 100644 index 0000000000..1f2bff13f5 --- /dev/null +++ b/src/oci/database_management/models/named_credential_summary.py @@ -0,0 +1,427 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class NamedCredentialSummary(object): + """ + A summary of the named credential. + """ + + #: A constant which can be used with the scope property of a NamedCredentialSummary. + #: This constant has a value of "RESOURCE" + SCOPE_RESOURCE = "RESOURCE" + + #: A constant which can be used with the scope property of a NamedCredentialSummary. + #: This constant has a value of "GLOBAL" + SCOPE_GLOBAL = "GLOBAL" + + #: A constant which can be used with the type property of a NamedCredentialSummary. + #: This constant has a value of "ORACLE_DB" + TYPE_ORACLE_DB = "ORACLE_DB" + + #: A constant which can be used with the lifecycle_state property of a NamedCredentialSummary. + #: This constant has a value of "CREATING" + LIFECYCLE_STATE_CREATING = "CREATING" + + #: A constant which can be used with the lifecycle_state property of a NamedCredentialSummary. + #: This constant has a value of "UPDATING" + LIFECYCLE_STATE_UPDATING = "UPDATING" + + #: A constant which can be used with the lifecycle_state property of a NamedCredentialSummary. + #: This constant has a value of "ACTIVE" + LIFECYCLE_STATE_ACTIVE = "ACTIVE" + + #: A constant which can be used with the lifecycle_state property of a NamedCredentialSummary. + #: This constant has a value of "DELETING" + LIFECYCLE_STATE_DELETING = "DELETING" + + #: A constant which can be used with the lifecycle_state property of a NamedCredentialSummary. + #: This constant has a value of "DELETED" + LIFECYCLE_STATE_DELETED = "DELETED" + + #: A constant which can be used with the lifecycle_state property of a NamedCredentialSummary. + #: This constant has a value of "FAILED" + LIFECYCLE_STATE_FAILED = "FAILED" + + def __init__(self, **kwargs): + """ + Initializes a new NamedCredentialSummary object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param id: + The value to assign to the id property of this NamedCredentialSummary. + :type id: str + + :param compartment_id: + The value to assign to the compartment_id property of this NamedCredentialSummary. + :type compartment_id: str + + :param name: + The value to assign to the name property of this NamedCredentialSummary. + :type name: str + + :param description: + The value to assign to the description property of this NamedCredentialSummary. + :type description: str + + :param scope: + The value to assign to the scope property of this NamedCredentialSummary. + Allowed values for this property are: "RESOURCE", "GLOBAL", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type scope: str + + :param type: + The value to assign to the type property of this NamedCredentialSummary. + Allowed values for this property are: "ORACLE_DB", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type type: str + + :param lifecycle_state: + The value to assign to the lifecycle_state property of this NamedCredentialSummary. + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type lifecycle_state: str + + :param lifecycle_details: + The value to assign to the lifecycle_details property of this NamedCredentialSummary. + :type lifecycle_details: str + + :param time_created: + The value to assign to the time_created property of this NamedCredentialSummary. + :type time_created: datetime + + :param time_updated: + The value to assign to the time_updated property of this NamedCredentialSummary. + :type time_updated: datetime + + """ + self.swagger_types = { + 'id': 'str', + 'compartment_id': 'str', + 'name': 'str', + 'description': 'str', + 'scope': 'str', + 'type': 'str', + 'lifecycle_state': 'str', + 'lifecycle_details': 'str', + 'time_created': 'datetime', + 'time_updated': 'datetime' + } + + self.attribute_map = { + 'id': 'id', + 'compartment_id': 'compartmentId', + 'name': 'name', + 'description': 'description', + 'scope': 'scope', + 'type': 'type', + 'lifecycle_state': 'lifecycleState', + 'lifecycle_details': 'lifecycleDetails', + 'time_created': 'timeCreated', + 'time_updated': 'timeUpdated' + } + + self._id = None + self._compartment_id = None + self._name = None + self._description = None + self._scope = None + self._type = None + self._lifecycle_state = None + self._lifecycle_details = None + self._time_created = None + self._time_updated = None + + @property + def id(self): + """ + **[Required]** Gets the id of this NamedCredentialSummary. + The `OCID`__ of the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The id of this NamedCredentialSummary. + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """ + Sets the id of this NamedCredentialSummary. + The `OCID`__ of the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param id: The id of this NamedCredentialSummary. + :type: str + """ + self._id = id + + @property + def compartment_id(self): + """ + **[Required]** Gets the compartment_id of this NamedCredentialSummary. + The `OCID`__ of the compartment + in which the named credential resides. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The compartment_id of this NamedCredentialSummary. + :rtype: str + """ + return self._compartment_id + + @compartment_id.setter + def compartment_id(self, compartment_id): + """ + Sets the compartment_id of this NamedCredentialSummary. + The `OCID`__ of the compartment + in which the named credential resides. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param compartment_id: The compartment_id of this NamedCredentialSummary. + :type: str + """ + self._compartment_id = compartment_id + + @property + def name(self): + """ + **[Required]** Gets the name of this NamedCredentialSummary. + The name of the named credential. Valid characters are uppercase or + lowercase letters, numbers, and \"_\". The name of the named credential + cannot be modified. It must be unique in the compartment and must begin with + an alphabetic character. + + + :return: The name of this NamedCredentialSummary. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this NamedCredentialSummary. + The name of the named credential. Valid characters are uppercase or + lowercase letters, numbers, and \"_\". The name of the named credential + cannot be modified. It must be unique in the compartment and must begin with + an alphabetic character. + + + :param name: The name of this NamedCredentialSummary. + :type: str + """ + self._name = name + + @property + def description(self): + """ + **[Required]** Gets the description of this NamedCredentialSummary. + The information specified by the user about the named credential. + + + :return: The description of this NamedCredentialSummary. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this NamedCredentialSummary. + The information specified by the user about the named credential. + + + :param description: The description of this NamedCredentialSummary. + :type: str + """ + self._description = description + + @property + def scope(self): + """ + **[Required]** Gets the scope of this NamedCredentialSummary. + The scope of the named credential. + + Allowed values for this property are: "RESOURCE", "GLOBAL", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The scope of this NamedCredentialSummary. + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """ + Sets the scope of this NamedCredentialSummary. + The scope of the named credential. + + + :param scope: The scope of this NamedCredentialSummary. + :type: str + """ + allowed_values = ["RESOURCE", "GLOBAL"] + if not value_allowed_none_or_none_sentinel(scope, allowed_values): + scope = 'UNKNOWN_ENUM_VALUE' + self._scope = scope + + @property + def type(self): + """ + **[Required]** Gets the type of this NamedCredentialSummary. + The type of resource associated with the named credential. + + Allowed values for this property are: "ORACLE_DB", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The type of this NamedCredentialSummary. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this NamedCredentialSummary. + The type of resource associated with the named credential. + + + :param type: The type of this NamedCredentialSummary. + :type: str + """ + allowed_values = ["ORACLE_DB"] + if not value_allowed_none_or_none_sentinel(type, allowed_values): + type = 'UNKNOWN_ENUM_VALUE' + self._type = type + + @property + def lifecycle_state(self): + """ + **[Required]** Gets the lifecycle_state of this NamedCredentialSummary. + The current lifecycle state of the named credential. + + Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The lifecycle_state of this NamedCredentialSummary. + :rtype: str + """ + return self._lifecycle_state + + @lifecycle_state.setter + def lifecycle_state(self, lifecycle_state): + """ + Sets the lifecycle_state of this NamedCredentialSummary. + The current lifecycle state of the named credential. + + + :param lifecycle_state: The lifecycle_state of this NamedCredentialSummary. + :type: str + """ + allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"] + if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values): + lifecycle_state = 'UNKNOWN_ENUM_VALUE' + self._lifecycle_state = lifecycle_state + + @property + def lifecycle_details(self): + """ + **[Required]** Gets the lifecycle_details of this NamedCredentialSummary. + The details of the lifecycle state. + + + :return: The lifecycle_details of this NamedCredentialSummary. + :rtype: str + """ + return self._lifecycle_details + + @lifecycle_details.setter + def lifecycle_details(self, lifecycle_details): + """ + Sets the lifecycle_details of this NamedCredentialSummary. + The details of the lifecycle state. + + + :param lifecycle_details: The lifecycle_details of this NamedCredentialSummary. + :type: str + """ + self._lifecycle_details = lifecycle_details + + @property + def time_created(self): + """ + **[Required]** Gets the time_created of this NamedCredentialSummary. + The date and time the named credential was created. + + + :return: The time_created of this NamedCredentialSummary. + :rtype: datetime + """ + return self._time_created + + @time_created.setter + def time_created(self, time_created): + """ + Sets the time_created of this NamedCredentialSummary. + The date and time the named credential was created. + + + :param time_created: The time_created of this NamedCredentialSummary. + :type: datetime + """ + self._time_created = time_created + + @property + def time_updated(self): + """ + **[Required]** Gets the time_updated of this NamedCredentialSummary. + The date and time the named credential was last updated. + + + :return: The time_updated of this NamedCredentialSummary. + :rtype: datetime + """ + return self._time_updated + + @time_updated.setter + def time_updated(self, time_updated): + """ + Sets the time_updated of this NamedCredentialSummary. + The date and time the named credential was last updated. + + + :param time_updated: The time_updated of this NamedCredentialSummary. + :type: datetime + """ + self._time_updated = time_updated + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/named_preferred_credential.py b/src/oci/database_management/models/named_preferred_credential.py new file mode 100644 index 0000000000..b64a6e39ae --- /dev/null +++ b/src/oci/database_management/models/named_preferred_credential.py @@ -0,0 +1,108 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .preferred_credential import PreferredCredential +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class NamedPreferredCredential(PreferredCredential): + """ + The details of the 'NAMED_CREDENTIAL' preferred credential. + """ + + def __init__(self, **kwargs): + """ + Initializes a new NamedPreferredCredential object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.NamedPreferredCredential.type` attribute + of this class is ``NAMED_CREDENTIAL`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param type: + The value to assign to the type property of this NamedPreferredCredential. + Allowed values for this property are: "BASIC", "NAMED_CREDENTIAL" + :type type: str + + :param credential_name: + The value to assign to the credential_name property of this NamedPreferredCredential. + :type credential_name: str + + :param status: + The value to assign to the status property of this NamedPreferredCredential. + Allowed values for this property are: "SET", "NOT_SET" + :type status: str + + :param is_accessible: + The value to assign to the is_accessible property of this NamedPreferredCredential. + :type is_accessible: bool + + :param named_credential_id: + The value to assign to the named_credential_id property of this NamedPreferredCredential. + :type named_credential_id: str + + """ + self.swagger_types = { + 'type': 'str', + 'credential_name': 'str', + 'status': 'str', + 'is_accessible': 'bool', + 'named_credential_id': 'str' + } + + self.attribute_map = { + 'type': 'type', + 'credential_name': 'credentialName', + 'status': 'status', + 'is_accessible': 'isAccessible', + 'named_credential_id': 'namedCredentialId' + } + + self._type = None + self._credential_name = None + self._status = None + self._is_accessible = None + self._named_credential_id = None + self._type = 'NAMED_CREDENTIAL' + + @property + def named_credential_id(self): + """ + Gets the named_credential_id of this NamedPreferredCredential. + The `OCID`__ of the Named Credential that contains the database user password metadata. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The named_credential_id of this NamedPreferredCredential. + :rtype: str + """ + return self._named_credential_id + + @named_credential_id.setter + def named_credential_id(self, named_credential_id): + """ + Sets the named_credential_id of this NamedPreferredCredential. + The `OCID`__ of the Named Credential that contains the database user password metadata. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param named_credential_id: The named_credential_id of this NamedPreferredCredential. + :type: str + """ + self._named_credential_id = named_credential_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/preferred_credential.py b/src/oci/database_management/models/preferred_credential.py index 697290391c..0fffad4325 100644 --- a/src/oci/database_management/models/preferred_credential.py +++ b/src/oci/database_management/models/preferred_credential.py @@ -19,6 +19,10 @@ class PreferredCredential(object): #: This constant has a value of "BASIC" TYPE_BASIC = "BASIC" + #: A constant which can be used with the type property of a PreferredCredential. + #: This constant has a value of "NAMED_CREDENTIAL" + TYPE_NAMED_CREDENTIAL = "NAMED_CREDENTIAL" + #: A constant which can be used with the status property of a PreferredCredential. #: This constant has a value of "SET" STATUS_SET = "SET" @@ -32,13 +36,14 @@ def __init__(self, **kwargs): Initializes a new PreferredCredential object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: + * :class:`~oci.database_management.models.NamedPreferredCredential` * :class:`~oci.database_management.models.BasicPreferredCredential` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this PreferredCredential. - Allowed values for this property are: "BASIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "BASIC", "NAMED_CREDENTIAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type type: str @@ -84,6 +89,9 @@ def get_subtype(object_dictionary): """ type = object_dictionary['type'] + if type == 'NAMED_CREDENTIAL': + return 'NamedPreferredCredential' + if type == 'BASIC': return 'BasicPreferredCredential' else: @@ -95,7 +103,7 @@ def type(self): Gets the type of this PreferredCredential. The type of preferred credential. Only 'BASIC' is supported currently. - Allowed values for this property are: "BASIC", 'UNKNOWN_ENUM_VALUE'. + Allowed values for this property are: "BASIC", "NAMED_CREDENTIAL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. @@ -114,7 +122,7 @@ def type(self, type): :param type: The type of this PreferredCredential. :type: str """ - allowed_values = ["BASIC"] + allowed_values = ["BASIC", "NAMED_CREDENTIAL"] if not value_allowed_none_or_none_sentinel(type, allowed_values): type = 'UNKNOWN_ENUM_VALUE' self._type = type diff --git a/src/oci/database_management/models/preferred_credential_summary.py b/src/oci/database_management/models/preferred_credential_summary.py index f71e651a30..29ebbdee28 100644 --- a/src/oci/database_management/models/preferred_credential_summary.py +++ b/src/oci/database_management/models/preferred_credential_summary.py @@ -64,6 +64,10 @@ def __init__(self, **kwargs): The value to assign to the password_secret_id property of this PreferredCredentialSummary. :type password_secret_id: str + :param named_credential_id: + The value to assign to the named_credential_id property of this PreferredCredentialSummary. + :type named_credential_id: str + """ self.swagger_types = { 'credential_name': 'str', @@ -71,7 +75,8 @@ def __init__(self, **kwargs): 'is_accessible': 'bool', 'user_name': 'str', 'role': 'str', - 'password_secret_id': 'str' + 'password_secret_id': 'str', + 'named_credential_id': 'str' } self.attribute_map = { @@ -80,7 +85,8 @@ def __init__(self, **kwargs): 'is_accessible': 'isAccessible', 'user_name': 'userName', 'role': 'role', - 'password_secret_id': 'passwordSecretId' + 'password_secret_id': 'passwordSecretId', + 'named_credential_id': 'namedCredentialId' } self._credential_name = None @@ -89,6 +95,7 @@ def __init__(self, **kwargs): self._user_name = None self._role = None self._password_secret_id = None + self._named_credential_id = None @property def credential_name(self): @@ -250,6 +257,34 @@ def password_secret_id(self, password_secret_id): """ self._password_secret_id = password_secret_id + @property + def named_credential_id(self): + """ + Gets the named_credential_id of this PreferredCredentialSummary. + The `OCID`__ of the Named Credential that contains the database user password metadata. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The named_credential_id of this PreferredCredentialSummary. + :rtype: str + """ + return self._named_credential_id + + @named_credential_id.setter + def named_credential_id(self, named_credential_id): + """ + Sets the named_credential_id of this PreferredCredentialSummary. + The `OCID`__ of the Named Credential that contains the database user password metadata. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param named_credential_id: The named_credential_id of this PreferredCredentialSummary. + :type: str + """ + self._named_credential_id = named_credential_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/remove_data_file_details.py b/src/oci/database_management/models/remove_data_file_details.py index 3be7c393f3..fd4fded9ad 100644 --- a/src/oci/database_management/models/remove_data_file_details.py +++ b/src/oci/database_management/models/remove_data_file_details.py @@ -13,6 +13,7 @@ class RemoveDataFileDetails(object): """ The details required to remove a data file or temp file from the tablespace. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ #: A constant which can be used with the file_type property of a RemoveDataFileDetails. @@ -32,6 +33,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this RemoveDataFileDetails. :type credential_details: oci.database_management.models.TablespaceAdminCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this RemoveDataFileDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param file_type: The value to assign to the file_type property of this RemoveDataFileDetails. Allowed values for this property are: "DATAFILE", "TEMPFILE" @@ -44,24 +49,27 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credential_details': 'TablespaceAdminCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'file_type': 'str', 'data_file': 'str' } self.attribute_map = { 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'file_type': 'fileType', 'data_file': 'dataFile' } self._credential_details = None + self._database_credential = None self._file_type = None self._data_file = None @property def credential_details(self): """ - **[Required]** Gets the credential_details of this RemoveDataFileDetails. + Gets the credential_details of this RemoveDataFileDetails. :return: The credential_details of this RemoveDataFileDetails. :rtype: oci.database_management.models.TablespaceAdminCredentialDetails @@ -78,6 +86,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this RemoveDataFileDetails. + + :return: The database_credential of this RemoveDataFileDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this RemoveDataFileDetails. + + :param database_credential: The database_credential of this RemoveDataFileDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def file_type(self): """ diff --git a/src/oci/database_management/models/reset_database_parameters_details.py b/src/oci/database_management/models/reset_database_parameters_details.py index a797e20864..aeea61a3a1 100644 --- a/src/oci/database_management/models/reset_database_parameters_details.py +++ b/src/oci/database_management/models/reset_database_parameters_details.py @@ -13,6 +13,7 @@ class ResetDatabaseParametersDetails(object): """ The details required to reset database parameter values. + It takes either credentials or databaseCredential. It's recommended to provide databaseCredential """ #: A constant which can be used with the scope property of a ResetDatabaseParametersDetails. @@ -36,6 +37,10 @@ def __init__(self, **kwargs): The value to assign to the credentials property of this ResetDatabaseParametersDetails. :type credentials: oci.database_management.models.DatabaseCredentials + :param database_credential: + The value to assign to the database_credential property of this ResetDatabaseParametersDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param scope: The value to assign to the scope property of this ResetDatabaseParametersDetails. Allowed values for this property are: "MEMORY", "SPFILE", "BOTH" @@ -48,24 +53,27 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credentials': 'DatabaseCredentials', + 'database_credential': 'DatabaseCredentialDetails', 'scope': 'str', 'parameters': 'list[str]' } self.attribute_map = { 'credentials': 'credentials', + 'database_credential': 'databaseCredential', 'scope': 'scope', 'parameters': 'parameters' } self._credentials = None + self._database_credential = None self._scope = None self._parameters = None @property def credentials(self): """ - **[Required]** Gets the credentials of this ResetDatabaseParametersDetails. + Gets the credentials of this ResetDatabaseParametersDetails. :return: The credentials of this ResetDatabaseParametersDetails. :rtype: oci.database_management.models.DatabaseCredentials @@ -82,6 +90,26 @@ def credentials(self, credentials): """ self._credentials = credentials + @property + def database_credential(self): + """ + Gets the database_credential of this ResetDatabaseParametersDetails. + + :return: The database_credential of this ResetDatabaseParametersDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this ResetDatabaseParametersDetails. + + :param database_credential: The database_credential of this ResetDatabaseParametersDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def scope(self): """ diff --git a/src/oci/database_management/models/resize_data_file_details.py b/src/oci/database_management/models/resize_data_file_details.py index f60f8c4f1f..ce059aa2f1 100644 --- a/src/oci/database_management/models/resize_data_file_details.py +++ b/src/oci/database_management/models/resize_data_file_details.py @@ -13,6 +13,7 @@ class ResizeDataFileDetails(object): """ The details required to resize a data file or temp file within the tablespace. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ #: A constant which can be used with the file_type property of a ResizeDataFileDetails. @@ -32,6 +33,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this ResizeDataFileDetails. :type credential_details: oci.database_management.models.TablespaceAdminCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this ResizeDataFileDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param file_type: The value to assign to the file_type property of this ResizeDataFileDetails. Allowed values for this property are: "DATAFILE", "TEMPFILE" @@ -64,6 +69,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credential_details': 'TablespaceAdminCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'file_type': 'str', 'data_file': 'str', 'file_size': 'TablespaceStorageSize', @@ -75,6 +81,7 @@ def __init__(self, **kwargs): self.attribute_map = { 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'file_type': 'fileType', 'data_file': 'dataFile', 'file_size': 'fileSize', @@ -85,6 +92,7 @@ def __init__(self, **kwargs): } self._credential_details = None + self._database_credential = None self._file_type = None self._data_file = None self._file_size = None @@ -96,7 +104,7 @@ def __init__(self, **kwargs): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this ResizeDataFileDetails. + Gets the credential_details of this ResizeDataFileDetails. :return: The credential_details of this ResizeDataFileDetails. :rtype: oci.database_management.models.TablespaceAdminCredentialDetails @@ -113,6 +121,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this ResizeDataFileDetails. + + :return: The database_credential of this ResizeDataFileDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this ResizeDataFileDetails. + + :param database_credential: The database_credential of this ResizeDataFileDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def file_type(self): """ diff --git a/src/oci/database_management/models/save_sql_tuning_set_as_details.py b/src/oci/database_management/models/save_sql_tuning_set_as_details.py index 4286e7cc36..47ff2ee213 100644 --- a/src/oci/database_management/models/save_sql_tuning_set_as_details.py +++ b/src/oci/database_management/models/save_sql_tuning_set_as_details.py @@ -13,6 +13,7 @@ class SaveSqlTuningSetAsDetails(object): """ Save current list of Sql statements into another Sql tuning set. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ #: A constant which can be used with the plan_filter property of a SaveSqlTuningSetAsDetails. @@ -168,6 +169,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this SaveSqlTuningSetAsDetails. :type credential_details: oci.database_management.models.SqlTuningSetAdminCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this SaveSqlTuningSetAsDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param show_sql_only: The value to assign to the show_sql_only property of this SaveSqlTuningSetAsDetails. :type show_sql_only: int @@ -267,6 +272,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credential_details': 'SqlTuningSetAdminCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'show_sql_only': 'int', 'owner': 'str', 'name': 'str', @@ -293,6 +299,7 @@ def __init__(self, **kwargs): self.attribute_map = { 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'show_sql_only': 'showSqlOnly', 'owner': 'owner', 'name': 'name', @@ -318,6 +325,7 @@ def __init__(self, **kwargs): } self._credential_details = None + self._database_credential = None self._show_sql_only = None self._owner = None self._name = None @@ -344,7 +352,7 @@ def __init__(self, **kwargs): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this SaveSqlTuningSetAsDetails. + Gets the credential_details of this SaveSqlTuningSetAsDetails. :return: The credential_details of this SaveSqlTuningSetAsDetails. :rtype: oci.database_management.models.SqlTuningSetAdminCredentialDetails @@ -361,6 +369,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this SaveSqlTuningSetAsDetails. + + :return: The database_credential of this SaveSqlTuningSetAsDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this SaveSqlTuningSetAsDetails. + + :param database_credential: The database_credential of this SaveSqlTuningSetAsDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def show_sql_only(self): """ diff --git a/src/oci/database_management/models/sql_job.py b/src/oci/database_management/models/sql_job.py index 085b043dd7..fde3f2e4c9 100644 --- a/src/oci/database_management/models/sql_job.py +++ b/src/oci/database_management/models/sql_job.py @@ -159,6 +159,10 @@ def __init__(self, **kwargs): Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type role: str + :param named_credential_id: + The value to assign to the named_credential_id property of this SqlJob. + :type named_credential_id: str + """ self.swagger_types = { 'id': 'str', @@ -184,7 +188,8 @@ def __init__(self, **kwargs): 'out_binds': 'JobOutBindsDetails', 'operation_type': 'str', 'user_name': 'str', - 'role': 'str' + 'role': 'str', + 'named_credential_id': 'str' } self.attribute_map = { @@ -211,7 +216,8 @@ def __init__(self, **kwargs): 'out_binds': 'outBinds', 'operation_type': 'operationType', 'user_name': 'userName', - 'role': 'role' + 'role': 'role', + 'named_credential_id': 'namedCredentialId' } self._id = None @@ -238,6 +244,7 @@ def __init__(self, **kwargs): self._operation_type = None self._user_name = None self._role = None + self._named_credential_id = None self._job_type = 'SQL' @property @@ -420,6 +427,34 @@ def role(self, role): role = 'UNKNOWN_ENUM_VALUE' self._role = role + @property + def named_credential_id(self): + """ + Gets the named_credential_id of this SqlJob. + The `OCID`__ of the Named Credentials containing password secret. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The named_credential_id of this SqlJob. + :rtype: str + """ + return self._named_credential_id + + @named_credential_id.setter + def named_credential_id(self, named_credential_id): + """ + Sets the named_credential_id of this SqlJob. + The `OCID`__ of the Named Credentials containing password secret. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param named_credential_id: The named_credential_id of this SqlJob. + :type: str + """ + self._named_credential_id = named_credential_id + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/database_management/models/start_sql_tuning_task_details.py b/src/oci/database_management/models/start_sql_tuning_task_details.py index c69351da59..ce656c4d79 100644 --- a/src/oci/database_management/models/start_sql_tuning_task_details.py +++ b/src/oci/database_management/models/start_sql_tuning_task_details.py @@ -13,6 +13,7 @@ class StartSqlTuningTaskDetails(object): """ The request to start a SQL tuning task. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ #: A constant which can be used with the scope property of a StartSqlTuningTaskDetails. @@ -40,6 +41,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this StartSqlTuningTaskDetails. :type credential_details: oci.database_management.models.SqlTuningTaskCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this StartSqlTuningTaskDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param total_time_limit_in_minutes: The value to assign to the total_time_limit_in_minutes property of this StartSqlTuningTaskDetails. :type total_time_limit_in_minutes: int @@ -74,6 +79,7 @@ def __init__(self, **kwargs): 'task_name': 'str', 'task_description': 'str', 'credential_details': 'SqlTuningTaskCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'total_time_limit_in_minutes': 'int', 'scope': 'str', 'statement_time_limit_in_minutes': 'int', @@ -87,6 +93,7 @@ def __init__(self, **kwargs): 'task_name': 'taskName', 'task_description': 'taskDescription', 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'total_time_limit_in_minutes': 'totalTimeLimitInMinutes', 'scope': 'scope', 'statement_time_limit_in_minutes': 'statementTimeLimitInMinutes', @@ -99,6 +106,7 @@ def __init__(self, **kwargs): self._task_name = None self._task_description = None self._credential_details = None + self._database_credential = None self._total_time_limit_in_minutes = None self._scope = None self._statement_time_limit_in_minutes = None @@ -158,7 +166,7 @@ def task_description(self, task_description): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this StartSqlTuningTaskDetails. + Gets the credential_details of this StartSqlTuningTaskDetails. :return: The credential_details of this StartSqlTuningTaskDetails. :rtype: oci.database_management.models.SqlTuningTaskCredentialDetails @@ -175,6 +183,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this StartSqlTuningTaskDetails. + + :return: The database_credential of this StartSqlTuningTaskDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this StartSqlTuningTaskDetails. + + :param database_credential: The database_credential of this StartSqlTuningTaskDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def total_time_limit_in_minutes(self): """ diff --git a/src/oci/database_management/models/test_basic_preferred_credential_details.py b/src/oci/database_management/models/test_basic_preferred_credential_details.py index da1a6653cc..7cbbde3fe1 100644 --- a/src/oci/database_management/models/test_basic_preferred_credential_details.py +++ b/src/oci/database_management/models/test_basic_preferred_credential_details.py @@ -31,7 +31,7 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this TestBasicPreferredCredentialDetails. - Allowed values for this property are: "BASIC" + Allowed values for this property are: "BASIC", "NAMED_CREDENTIAL" :type type: str :param user_name: diff --git a/src/oci/database_management/models/test_named_credential_details.py b/src/oci/database_management/models/test_named_credential_details.py new file mode 100644 index 0000000000..cb71c93ea7 --- /dev/null +++ b/src/oci/database_management/models/test_named_credential_details.py @@ -0,0 +1,78 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class TestNamedCredentialDetails(object): + """ + The The `OCID`__ of the database against which the credential is to be tested. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + """ + + def __init__(self, **kwargs): + """ + Initializes a new TestNamedCredentialDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param managed_database_id: + The value to assign to the managed_database_id property of this TestNamedCredentialDetails. + :type managed_database_id: str + + """ + self.swagger_types = { + 'managed_database_id': 'str' + } + + self.attribute_map = { + 'managed_database_id': 'managedDatabaseId' + } + + self._managed_database_id = None + + @property + def managed_database_id(self): + """ + Gets the managed_database_id of this TestNamedCredentialDetails. + The `OCID`__ of the Managed Database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The managed_database_id of this TestNamedCredentialDetails. + :rtype: str + """ + return self._managed_database_id + + @managed_database_id.setter + def managed_database_id(self, managed_database_id): + """ + Sets the managed_database_id of this TestNamedCredentialDetails. + The `OCID`__ of the Managed Database. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param managed_database_id: The managed_database_id of this TestNamedCredentialDetails. + :type: str + """ + self._managed_database_id = managed_database_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/test_named_credential_status.py b/src/oci/database_management/models/test_named_credential_status.py new file mode 100644 index 0000000000..d9de20bdc2 --- /dev/null +++ b/src/oci/database_management/models/test_named_credential_status.py @@ -0,0 +1,150 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class TestNamedCredentialStatus(object): + """ + The status of the named credential test. The status is 'SUCCEEDED' if the named credential is working or else the status is 'FAILED'. + """ + + #: A constant which can be used with the status property of a TestNamedCredentialStatus. + #: This constant has a value of "SUCCEEDED" + STATUS_SUCCEEDED = "SUCCEEDED" + + #: A constant which can be used with the status property of a TestNamedCredentialStatus. + #: This constant has a value of "FAILED" + STATUS_FAILED = "FAILED" + + def __init__(self, **kwargs): + """ + Initializes a new TestNamedCredentialStatus object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param status: + The value to assign to the status property of this TestNamedCredentialStatus. + Allowed values for this property are: "SUCCEEDED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + :type status: str + + :param error_code: + The value to assign to the error_code property of this TestNamedCredentialStatus. + :type error_code: str + + :param error_message: + The value to assign to the error_message property of this TestNamedCredentialStatus. + :type error_message: str + + """ + self.swagger_types = { + 'status': 'str', + 'error_code': 'str', + 'error_message': 'str' + } + + self.attribute_map = { + 'status': 'status', + 'error_code': 'errorCode', + 'error_message': 'errorMessage' + } + + self._status = None + self._error_code = None + self._error_message = None + + @property + def status(self): + """ + **[Required]** Gets the status of this TestNamedCredentialStatus. + The status of the named credential test. The status is 'SUCCEEDED' if the named credential is working or else the status is 'FAILED'. + + Allowed values for this property are: "SUCCEEDED", "FAILED", 'UNKNOWN_ENUM_VALUE'. + Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. + + + :return: The status of this TestNamedCredentialStatus. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this TestNamedCredentialStatus. + The status of the named credential test. The status is 'SUCCEEDED' if the named credential is working or else the status is 'FAILED'. + + + :param status: The status of this TestNamedCredentialStatus. + :type: str + """ + allowed_values = ["SUCCEEDED", "FAILED"] + if not value_allowed_none_or_none_sentinel(status, allowed_values): + status = 'UNKNOWN_ENUM_VALUE' + self._status = status + + @property + def error_code(self): + """ + Gets the error_code of this TestNamedCredentialStatus. + An error code that defines the failure of the named credential test. The response is 'null' if the named credential test was successful. + + + :return: The error_code of this TestNamedCredentialStatus. + :rtype: str + """ + return self._error_code + + @error_code.setter + def error_code(self, error_code): + """ + Sets the error_code of this TestNamedCredentialStatus. + An error code that defines the failure of the named credential test. The response is 'null' if the named credential test was successful. + + + :param error_code: The error_code of this TestNamedCredentialStatus. + :type: str + """ + self._error_code = error_code + + @property + def error_message(self): + """ + Gets the error_message of this TestNamedCredentialStatus. + The error message that indicates the reason for the failure of the named credential test. The response is 'null' if the named credential test was successful. + + + :return: The error_message of this TestNamedCredentialStatus. + :rtype: str + """ + return self._error_message + + @error_message.setter + def error_message(self, error_message): + """ + Sets the error_message of this TestNamedCredentialStatus. + The error message that indicates the reason for the failure of the named credential test. The response is 'null' if the named credential test was successful. + + + :param error_message: The error_message of this TestNamedCredentialStatus. + :type: str + """ + self._error_message = error_message + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/test_named_preferred_credential_details.py b/src/oci/database_management/models/test_named_preferred_credential_details.py new file mode 100644 index 0000000000..614bc6fddd --- /dev/null +++ b/src/oci/database_management/models/test_named_preferred_credential_details.py @@ -0,0 +1,86 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .test_preferred_credential_details import TestPreferredCredentialDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class TestNamedPreferredCredentialDetails(TestPreferredCredentialDetails): + """ + The details of the preferred credential that refers to a Named Credential. + """ + + def __init__(self, **kwargs): + """ + Initializes a new TestNamedPreferredCredentialDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.TestNamedPreferredCredentialDetails.type` attribute + of this class is ``NAMED_CREDENTIAL`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param type: + The value to assign to the type property of this TestNamedPreferredCredentialDetails. + Allowed values for this property are: "BASIC", "NAMED_CREDENTIAL" + :type type: str + + :param named_credential_id: + The value to assign to the named_credential_id property of this TestNamedPreferredCredentialDetails. + :type named_credential_id: str + + """ + self.swagger_types = { + 'type': 'str', + 'named_credential_id': 'str' + } + + self.attribute_map = { + 'type': 'type', + 'named_credential_id': 'namedCredentialId' + } + + self._type = None + self._named_credential_id = None + self._type = 'NAMED_CREDENTIAL' + + @property + def named_credential_id(self): + """ + Gets the named_credential_id of this TestNamedPreferredCredentialDetails. + The `OCID`__ of the Named Credential that contains the database user password metadata. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The named_credential_id of this TestNamedPreferredCredentialDetails. + :rtype: str + """ + return self._named_credential_id + + @named_credential_id.setter + def named_credential_id(self, named_credential_id): + """ + Sets the named_credential_id of this TestNamedPreferredCredentialDetails. + The `OCID`__ of the Named Credential that contains the database user password metadata. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param named_credential_id: The named_credential_id of this TestNamedPreferredCredentialDetails. + :type: str + """ + self._named_credential_id = named_credential_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/test_preferred_credential_details.py b/src/oci/database_management/models/test_preferred_credential_details.py index c8c2b0ca1b..2eaa38475b 100644 --- a/src/oci/database_management/models/test_preferred_credential_details.py +++ b/src/oci/database_management/models/test_preferred_credential_details.py @@ -19,18 +19,23 @@ class TestPreferredCredentialDetails(object): #: This constant has a value of "BASIC" TYPE_BASIC = "BASIC" + #: A constant which can be used with the type property of a TestPreferredCredentialDetails. + #: This constant has a value of "NAMED_CREDENTIAL" + TYPE_NAMED_CREDENTIAL = "NAMED_CREDENTIAL" + def __init__(self, **kwargs): """ Initializes a new TestPreferredCredentialDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: + * :class:`~oci.database_management.models.TestNamedPreferredCredentialDetails` * :class:`~oci.database_management.models.TestBasicPreferredCredentialDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this TestPreferredCredentialDetails. - Allowed values for this property are: "BASIC" + Allowed values for this property are: "BASIC", "NAMED_CREDENTIAL" :type type: str """ @@ -52,6 +57,9 @@ def get_subtype(object_dictionary): """ type = object_dictionary['type'] + if type == 'NAMED_CREDENTIAL': + return 'TestNamedPreferredCredentialDetails' + if type == 'BASIC': return 'TestBasicPreferredCredentialDetails' else: @@ -63,7 +71,7 @@ def type(self): **[Required]** Gets the type of this TestPreferredCredentialDetails. The type of preferred credential. Only 'BASIC' is supported currently. - Allowed values for this property are: "BASIC" + Allowed values for this property are: "BASIC", "NAMED_CREDENTIAL" :return: The type of this TestPreferredCredentialDetails. @@ -81,7 +89,7 @@ def type(self, type): :param type: The type of this TestPreferredCredentialDetails. :type: str """ - allowed_values = ["BASIC"] + allowed_values = ["BASIC", "NAMED_CREDENTIAL"] if not value_allowed_none_or_none_sentinel(type, allowed_values): raise ValueError( f"Invalid value for `type`, must be None or one of {allowed_values}" diff --git a/src/oci/database_management/models/update_basic_preferred_credential_details.py b/src/oci/database_management/models/update_basic_preferred_credential_details.py index 4fe1cbde46..1e71759fe6 100644 --- a/src/oci/database_management/models/update_basic_preferred_credential_details.py +++ b/src/oci/database_management/models/update_basic_preferred_credential_details.py @@ -31,7 +31,7 @@ def __init__(self, **kwargs): :param type: The value to assign to the type property of this UpdateBasicPreferredCredentialDetails. - Allowed values for this property are: "BASIC" + Allowed values for this property are: "BASIC", "NAMED_CREDENTIAL" :type type: str :param user_name: diff --git a/src/oci/database_management/models/update_named_credential_details.py b/src/oci/database_management/models/update_named_credential_details.py new file mode 100644 index 0000000000..c35ae80345 --- /dev/null +++ b/src/oci/database_management/models/update_named_credential_details.py @@ -0,0 +1,183 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class UpdateNamedCredentialDetails(object): + """ + The details required to update a named credential. + """ + + #: A constant which can be used with the scope property of a UpdateNamedCredentialDetails. + #: This constant has a value of "RESOURCE" + SCOPE_RESOURCE = "RESOURCE" + + #: A constant which can be used with the scope property of a UpdateNamedCredentialDetails. + #: This constant has a value of "GLOBAL" + SCOPE_GLOBAL = "GLOBAL" + + def __init__(self, **kwargs): + """ + Initializes a new UpdateNamedCredentialDetails object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param description: + The value to assign to the description property of this UpdateNamedCredentialDetails. + :type description: str + + :param scope: + The value to assign to the scope property of this UpdateNamedCredentialDetails. + Allowed values for this property are: "RESOURCE", "GLOBAL" + :type scope: str + + :param content: + The value to assign to the content property of this UpdateNamedCredentialDetails. + :type content: oci.database_management.models.NamedCredentialContent + + :param associated_resource: + The value to assign to the associated_resource property of this UpdateNamedCredentialDetails. + :type associated_resource: str + + """ + self.swagger_types = { + 'description': 'str', + 'scope': 'str', + 'content': 'NamedCredentialContent', + 'associated_resource': 'str' + } + + self.attribute_map = { + 'description': 'description', + 'scope': 'scope', + 'content': 'content', + 'associated_resource': 'associatedResource' + } + + self._description = None + self._scope = None + self._content = None + self._associated_resource = None + + @property + def description(self): + """ + Gets the description of this UpdateNamedCredentialDetails. + The information specified by the user about the named credential. + + + :return: The description of this UpdateNamedCredentialDetails. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this UpdateNamedCredentialDetails. + The information specified by the user about the named credential. + + + :param description: The description of this UpdateNamedCredentialDetails. + :type: str + """ + self._description = description + + @property + def scope(self): + """ + Gets the scope of this UpdateNamedCredentialDetails. + The scope of the named credential. + + Allowed values for this property are: "RESOURCE", "GLOBAL" + + + :return: The scope of this UpdateNamedCredentialDetails. + :rtype: str + """ + return self._scope + + @scope.setter + def scope(self, scope): + """ + Sets the scope of this UpdateNamedCredentialDetails. + The scope of the named credential. + + + :param scope: The scope of this UpdateNamedCredentialDetails. + :type: str + """ + allowed_values = ["RESOURCE", "GLOBAL"] + if not value_allowed_none_or_none_sentinel(scope, allowed_values): + raise ValueError( + f"Invalid value for `scope`, must be None or one of {allowed_values}" + ) + self._scope = scope + + @property + def content(self): + """ + Gets the content of this UpdateNamedCredentialDetails. + + :return: The content of this UpdateNamedCredentialDetails. + :rtype: oci.database_management.models.NamedCredentialContent + """ + return self._content + + @content.setter + def content(self, content): + """ + Sets the content of this UpdateNamedCredentialDetails. + + :param content: The content of this UpdateNamedCredentialDetails. + :type: oci.database_management.models.NamedCredentialContent + """ + self._content = content + + @property + def associated_resource(self): + """ + Gets the associated_resource of this UpdateNamedCredentialDetails. + The `OCID`__ of the resource that + is associated to the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The associated_resource of this UpdateNamedCredentialDetails. + :rtype: str + """ + return self._associated_resource + + @associated_resource.setter + def associated_resource(self, associated_resource): + """ + Sets the associated_resource of this UpdateNamedCredentialDetails. + The `OCID`__ of the resource that + is associated to the named credential. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param associated_resource: The associated_resource of this UpdateNamedCredentialDetails. + :type: str + """ + self._associated_resource = associated_resource + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/update_named_preferred_credential_details.py b/src/oci/database_management/models/update_named_preferred_credential_details.py new file mode 100644 index 0000000000..65fa7b88e1 --- /dev/null +++ b/src/oci/database_management/models/update_named_preferred_credential_details.py @@ -0,0 +1,86 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20201101 + +from .update_preferred_credential_details import UpdatePreferredCredentialDetails +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class UpdateNamedPreferredCredentialDetails(UpdatePreferredCredentialDetails): + """ + The details of the preferred credential that refers to a Named Credential. + """ + + def __init__(self, **kwargs): + """ + Initializes a new UpdateNamedPreferredCredentialDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_management.models.UpdateNamedPreferredCredentialDetails.type` attribute + of this class is ``NAMED_CREDENTIAL`` and it should not be changed. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param type: + The value to assign to the type property of this UpdateNamedPreferredCredentialDetails. + Allowed values for this property are: "BASIC", "NAMED_CREDENTIAL" + :type type: str + + :param named_credential_id: + The value to assign to the named_credential_id property of this UpdateNamedPreferredCredentialDetails. + :type named_credential_id: str + + """ + self.swagger_types = { + 'type': 'str', + 'named_credential_id': 'str' + } + + self.attribute_map = { + 'type': 'type', + 'named_credential_id': 'namedCredentialId' + } + + self._type = None + self._named_credential_id = None + self._type = 'NAMED_CREDENTIAL' + + @property + def named_credential_id(self): + """ + Gets the named_credential_id of this UpdateNamedPreferredCredentialDetails. + The `OCID`__ of the Named Credential that contains the database user password. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The named_credential_id of this UpdateNamedPreferredCredentialDetails. + :rtype: str + """ + return self._named_credential_id + + @named_credential_id.setter + def named_credential_id(self, named_credential_id): + """ + Sets the named_credential_id of this UpdateNamedPreferredCredentialDetails. + The `OCID`__ of the Named Credential that contains the database user password. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param named_credential_id: The named_credential_id of this UpdateNamedPreferredCredentialDetails. + :type: str + """ + self._named_credential_id = named_credential_id + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/database_management/models/update_preferred_credential_details.py b/src/oci/database_management/models/update_preferred_credential_details.py index 3b8a843385..3b935c4344 100644 --- a/src/oci/database_management/models/update_preferred_credential_details.py +++ b/src/oci/database_management/models/update_preferred_credential_details.py @@ -19,18 +19,23 @@ class UpdatePreferredCredentialDetails(object): #: This constant has a value of "BASIC" TYPE_BASIC = "BASIC" + #: A constant which can be used with the type property of a UpdatePreferredCredentialDetails. + #: This constant has a value of "NAMED_CREDENTIAL" + TYPE_NAMED_CREDENTIAL = "NAMED_CREDENTIAL" + def __init__(self, **kwargs): """ Initializes a new UpdatePreferredCredentialDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class: + * :class:`~oci.database_management.models.UpdateNamedPreferredCredentialDetails` * :class:`~oci.database_management.models.UpdateBasicPreferredCredentialDetails` The following keyword arguments are supported (corresponding to the getters/setters of this class): :param type: The value to assign to the type property of this UpdatePreferredCredentialDetails. - Allowed values for this property are: "BASIC" + Allowed values for this property are: "BASIC", "NAMED_CREDENTIAL" :type type: str """ @@ -52,6 +57,9 @@ def get_subtype(object_dictionary): """ type = object_dictionary['type'] + if type == 'NAMED_CREDENTIAL': + return 'UpdateNamedPreferredCredentialDetails' + if type == 'BASIC': return 'UpdateBasicPreferredCredentialDetails' else: @@ -63,7 +71,7 @@ def type(self): **[Required]** Gets the type of this UpdatePreferredCredentialDetails. The type of preferred credential. - Allowed values for this property are: "BASIC" + Allowed values for this property are: "BASIC", "NAMED_CREDENTIAL" :return: The type of this UpdatePreferredCredentialDetails. @@ -81,7 +89,7 @@ def type(self, type): :param type: The type of this UpdatePreferredCredentialDetails. :type: str """ - allowed_values = ["BASIC"] + allowed_values = ["BASIC", "NAMED_CREDENTIAL"] if not value_allowed_none_or_none_sentinel(type, allowed_values): raise ValueError( f"Invalid value for `type`, must be None or one of {allowed_values}" diff --git a/src/oci/database_management/models/update_sql_job_details.py b/src/oci/database_management/models/update_sql_job_details.py index 22c5e2c50a..159c372d8a 100644 --- a/src/oci/database_management/models/update_sql_job_details.py +++ b/src/oci/database_management/models/update_sql_job_details.py @@ -70,6 +70,10 @@ def __init__(self, **kwargs): The value to assign to the secret_id property of this UpdateSqlJobDetails. :type secret_id: str + :param named_credential_id: + The value to assign to the named_credential_id property of this UpdateSqlJobDetails. + :type named_credential_id: str + :param role: The value to assign to the role property of this UpdateSqlJobDetails. :type role: str @@ -88,6 +92,7 @@ def __init__(self, **kwargs): 'user_name': 'str', 'password': 'str', 'secret_id': 'str', + 'named_credential_id': 'str', 'role': 'str' } @@ -104,6 +109,7 @@ def __init__(self, **kwargs): 'user_name': 'userName', 'password': 'password', 'secret_id': 'secretId', + 'named_credential_id': 'namedCredentialId', 'role': 'role' } @@ -119,6 +125,7 @@ def __init__(self, **kwargs): self._user_name = None self._password = None self._secret_id = None + self._named_credential_id = None self._role = None self._job_type = 'SQL' @@ -286,6 +293,34 @@ def secret_id(self, secret_id): """ self._secret_id = secret_id + @property + def named_credential_id(self): + """ + Gets the named_credential_id of this UpdateSqlJobDetails. + The `OCID`__ of the Named Credentials containing password secret. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :return: The named_credential_id of this UpdateSqlJobDetails. + :rtype: str + """ + return self._named_credential_id + + @named_credential_id.setter + def named_credential_id(self, named_credential_id): + """ + Sets the named_credential_id of this UpdateSqlJobDetails. + The `OCID`__ of the Named Credentials containing password secret. + + __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm + + + :param named_credential_id: The named_credential_id of this UpdateSqlJobDetails. + :type: str + """ + self._named_credential_id = named_credential_id + @property def role(self): """ diff --git a/src/oci/database_management/models/update_tablespace_details.py b/src/oci/database_management/models/update_tablespace_details.py index c837aafc4c..8d190c769f 100644 --- a/src/oci/database_management/models/update_tablespace_details.py +++ b/src/oci/database_management/models/update_tablespace_details.py @@ -13,6 +13,7 @@ class UpdateTablespaceDetails(object): """ The details required to update a tablespace. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ #: A constant which can be used with the type property of a UpdateTablespaceDetails. @@ -40,6 +41,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this UpdateTablespaceDetails. :type credential_details: oci.database_management.models.TablespaceAdminCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this UpdateTablespaceDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param name: The value to assign to the name property of this UpdateTablespaceDetails. :type name: str @@ -81,6 +86,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credential_details': 'TablespaceAdminCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'name': 'str', 'type': 'str', 'file_size': 'TablespaceStorageSize', @@ -94,6 +100,7 @@ def __init__(self, **kwargs): self.attribute_map = { 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'name': 'name', 'type': 'type', 'file_size': 'fileSize', @@ -106,6 +113,7 @@ def __init__(self, **kwargs): } self._credential_details = None + self._database_credential = None self._name = None self._type = None self._file_size = None @@ -119,7 +127,7 @@ def __init__(self, **kwargs): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this UpdateTablespaceDetails. + Gets the credential_details of this UpdateTablespaceDetails. :return: The credential_details of this UpdateTablespaceDetails. :rtype: oci.database_management.models.TablespaceAdminCredentialDetails @@ -136,6 +144,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this UpdateTablespaceDetails. + + :return: The database_credential of this UpdateTablespaceDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this UpdateTablespaceDetails. + + :param database_credential: The database_credential of this UpdateTablespaceDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def name(self): """ diff --git a/src/oci/database_management/models/validate_basic_filter_details.py b/src/oci/database_management/models/validate_basic_filter_details.py index e976aa78a3..c99b6dc808 100644 --- a/src/oci/database_management/models/validate_basic_filter_details.py +++ b/src/oci/database_management/models/validate_basic_filter_details.py @@ -13,6 +13,7 @@ class ValidateBasicFilterDetails(object): """ Validate the basic filter criteria provided by the user. + It takes either credentialDetails or databaseCredential. It's recommended to provide databaseCredential """ def __init__(self, **kwargs): @@ -24,6 +25,10 @@ def __init__(self, **kwargs): The value to assign to the credential_details property of this ValidateBasicFilterDetails. :type credential_details: oci.database_management.models.SqlTuningSetAdminCredentialDetails + :param database_credential: + The value to assign to the database_credential property of this ValidateBasicFilterDetails. + :type database_credential: oci.database_management.models.DatabaseCredentialDetails + :param owner: The value to assign to the owner property of this ValidateBasicFilterDetails. :type owner: str @@ -39,6 +44,7 @@ def __init__(self, **kwargs): """ self.swagger_types = { 'credential_details': 'SqlTuningSetAdminCredentialDetails', + 'database_credential': 'DatabaseCredentialDetails', 'owner': 'str', 'name': 'str', 'basic_filter': 'str' @@ -46,12 +52,14 @@ def __init__(self, **kwargs): self.attribute_map = { 'credential_details': 'credentialDetails', + 'database_credential': 'databaseCredential', 'owner': 'owner', 'name': 'name', 'basic_filter': 'basicFilter' } self._credential_details = None + self._database_credential = None self._owner = None self._name = None self._basic_filter = None @@ -59,7 +67,7 @@ def __init__(self, **kwargs): @property def credential_details(self): """ - **[Required]** Gets the credential_details of this ValidateBasicFilterDetails. + Gets the credential_details of this ValidateBasicFilterDetails. :return: The credential_details of this ValidateBasicFilterDetails. :rtype: oci.database_management.models.SqlTuningSetAdminCredentialDetails @@ -76,6 +84,26 @@ def credential_details(self, credential_details): """ self._credential_details = credential_details + @property + def database_credential(self): + """ + Gets the database_credential of this ValidateBasicFilterDetails. + + :return: The database_credential of this ValidateBasicFilterDetails. + :rtype: oci.database_management.models.DatabaseCredentialDetails + """ + return self._database_credential + + @database_credential.setter + def database_credential(self, database_credential): + """ + Sets the database_credential of this ValidateBasicFilterDetails. + + :param database_credential: The database_credential of this ValidateBasicFilterDetails. + :type: oci.database_management.models.DatabaseCredentialDetails + """ + self._database_credential = database_credential + @property def owner(self): """ diff --git a/src/oci/database_management/perfhub_client.py b/src/oci/database_management/perfhub_client.py index 3f104ef003..59d010bd16 100644 --- a/src/oci/database_management/perfhub_client.py +++ b/src/oci/database_management/perfhub_client.py @@ -134,6 +134,9 @@ def modify_snapshot_settings(self, managed_database_id, modify_snapshot_settings :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -163,7 +166,8 @@ def modify_snapshot_settings(self, managed_database_id, modify_snapshot_settings expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -183,7 +187,8 @@ def modify_snapshot_settings(self, managed_database_id, modify_snapshot_settings header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} diff --git a/src/oci/database_management/sql_tuning_client.py b/src/oci/database_management/sql_tuning_client.py index df8e88b0c7..8903f891c8 100644 --- a/src/oci/database_management/sql_tuning_client.py +++ b/src/oci/database_management/sql_tuning_client.py @@ -845,6 +845,9 @@ def get_execution_plan_stats_comparision(self, managed_database_id, sql_tuning_a :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -874,7 +877,8 @@ def get_execution_plan_stats_comparision(self, managed_database_id, sql_tuning_a expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -901,7 +905,8 @@ def get_execution_plan_stats_comparision(self, managed_database_id, sql_tuning_a header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -967,6 +972,9 @@ def get_sql_execution_plan(self, managed_database_id, sql_tuning_advisor_task_id :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -996,7 +1004,8 @@ def get_sql_execution_plan(self, managed_database_id, sql_tuning_advisor_task_id expected_kwargs = [ "allow_control_chars", "retry_strategy", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -1029,7 +1038,8 @@ def get_sql_execution_plan(self, managed_database_id, sql_tuning_advisor_task_id header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -1102,6 +1112,9 @@ def get_sql_tuning_advisor_task_summary_report(self, managed_database_id, sql_tu :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -1136,7 +1149,8 @@ def get_sql_tuning_advisor_task_summary_report(self, managed_database_id, sql_tu "time_less_than_or_equal_to", "begin_exec_id_greater_than_or_equal_to", "end_exec_id_less_than_or_equal_to", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -1173,7 +1187,8 @@ def get_sql_tuning_advisor_task_summary_report(self, managed_database_id, sql_tu header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -1269,6 +1284,9 @@ def list_sql_tuning_advisor_task_findings(self, managed_database_id, sql_tuning_ :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -1308,7 +1326,8 @@ def list_sql_tuning_advisor_task_findings(self, managed_database_id, sql_tuning_ "sort_order", "page", "limit", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -1371,7 +1390,8 @@ def list_sql_tuning_advisor_task_findings(self, managed_database_id, sql_tuning_ header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -1455,6 +1475,9 @@ def list_sql_tuning_advisor_task_recommendations(self, managed_database_id, sql_ :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -1488,7 +1511,8 @@ def list_sql_tuning_advisor_task_recommendations(self, managed_database_id, sql_ "sort_order", "page", "limit", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -1533,7 +1557,8 @@ def list_sql_tuning_advisor_task_recommendations(self, managed_database_id, sql_ header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -1615,6 +1640,9 @@ def list_sql_tuning_advisor_tasks(self, managed_database_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -1652,7 +1680,8 @@ def list_sql_tuning_advisor_tasks(self, managed_database_id, **kwargs): "limit", "sort_by", "sort_order", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -1705,7 +1734,8 @@ def list_sql_tuning_advisor_tasks(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} @@ -1779,6 +1809,9 @@ def list_sql_tuning_sets(self, managed_database_id, **kwargs): :param str opc_request_id: (optional) The client request ID for tracing. + :param str opc_named_credential_id: (optional) + The OCID of the Named Credential. + :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -1814,7 +1847,8 @@ def list_sql_tuning_sets(self, managed_database_id, **kwargs): "sort_order", "page", "limit", - "opc_request_id" + "opc_request_id", + "opc_named_credential_id" ] extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs] if extra_kwargs: @@ -1858,7 +1892,8 @@ def list_sql_tuning_sets(self, managed_database_id, **kwargs): header_params = { "accept": "application/json", "content-type": "application/json", - "opc-request-id": kwargs.get("opc_request_id", missing) + "opc-request-id": kwargs.get("opc_request_id", missing), + "opc-named-credential-id": kwargs.get("opc_named_credential_id", missing) } header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None} diff --git a/src/oci/dns/dns_client.py b/src/oci/dns/dns_client.py index 739685c61b..56d49af9af 100644 --- a/src/oci/dns/dns_client.py +++ b/src/oci/dns/dns_client.py @@ -1771,7 +1771,7 @@ def delete_domain_records(self, zone_name_or_id, domain, **kwargs): Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param str compartment_id: (optional) The OCID of the compartment the zone belongs to. @@ -1929,7 +1929,7 @@ def delete_resolver_endpoint(self, resolver_id, resolver_endpoint_name, **kwargs :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. @@ -2001,8 +2001,6 @@ def delete_resolver_endpoint(self, resolver_id, resolver_endpoint_name, **kwargs operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) - if retry_strategy is None: - retry_strategy = retry.DEFAULT_RETRY_STRATEGY if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): @@ -2078,7 +2076,7 @@ def delete_rr_set(self, zone_name_or_id, domain, rtype, **kwargs): Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -2229,7 +2227,7 @@ def delete_steering_policy(self, steering_policy_id, **kwargs): :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. @@ -2300,8 +2298,6 @@ def delete_steering_policy(self, steering_policy_id, **kwargs): operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) - if retry_strategy is None: - retry_strategy = retry.DEFAULT_RETRY_STRATEGY if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): @@ -2366,7 +2362,7 @@ def delete_steering_policy_attachment(self, steering_policy_attachment_id, **kwa :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. @@ -2437,8 +2433,6 @@ def delete_steering_policy_attachment(self, steering_policy_attachment_id, **kwa operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) - if retry_strategy is None: - retry_strategy = retry.DEFAULT_RETRY_STRATEGY if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): @@ -2502,7 +2496,7 @@ def delete_tsig_key(self, tsig_key_id, **kwargs): :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. @@ -2573,8 +2567,6 @@ def delete_tsig_key(self, tsig_key_id, **kwargs): operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) - if retry_strategy is None: - retry_strategy = retry.DEFAULT_RETRY_STRATEGY if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): @@ -2643,7 +2635,7 @@ def delete_view(self, view_id, **kwargs): :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. - This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided. + This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it. The specifics of the default retry strategy are described `here `__. To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`. @@ -2714,8 +2706,6 @@ def delete_view(self, view_id, **kwargs): operation_retry_strategy=kwargs.get('retry_strategy'), client_retry_strategy=self.retry_strategy ) - if retry_strategy is None: - retry_strategy = retry.DEFAULT_RETRY_STRATEGY if retry_strategy: if not isinstance(retry_strategy, retry.NoneRetryStrategy): @@ -2781,7 +2771,7 @@ def delete_zone(self, zone_name_or_id, **kwargs): Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param str compartment_id: (optional) The OCID of the compartment the zone belongs to. @@ -2947,7 +2937,7 @@ def get_domain_records(self, zone_name_or_id, domain, **kwargs): Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param str sort_by: (optional) The field by which to sort records. @@ -3437,7 +3427,7 @@ def get_rr_set(self, zone_name_or_id, domain, rtype, **kwargs): Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -4139,7 +4129,7 @@ def get_zone(self, zone_name_or_id, **kwargs): Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param str compartment_id: (optional) The OCID of the compartment the zone belongs to. @@ -4287,7 +4277,7 @@ def get_zone_content(self, zone_name_or_id, **kwargs): Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -4473,7 +4463,7 @@ def get_zone_records(self, zone_name_or_id, **kwargs): Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param obj retry_strategy: (optional) A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level. @@ -6111,7 +6101,7 @@ def patch_domain_records(self, zone_name_or_id, domain, patch_domain_records_det Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param str compartment_id: (optional) The OCID of the compartment the zone belongs to. @@ -6276,7 +6266,7 @@ def patch_rr_set(self, zone_name_or_id, domain, rtype, patch_rr_set_details, **k Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param str compartment_id: (optional) The OCID of the compartment the zone belongs to. @@ -6438,7 +6428,7 @@ def patch_zone_records(self, zone_name_or_id, patch_zone_records_details, **kwar Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param str compartment_id: (optional) The OCID of the compartment the zone belongs to. @@ -6601,7 +6591,7 @@ def update_domain_records(self, zone_name_or_id, domain, update_domain_records_d Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param str compartment_id: (optional) The OCID of the compartment the zone belongs to. @@ -7056,7 +7046,7 @@ def update_rr_set(self, zone_name_or_id, domain, rtype, update_rr_set_details, * Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param str compartment_id: (optional) The OCID of the compartment the zone belongs to. @@ -7792,7 +7782,7 @@ def update_zone(self, zone_name_or_id, update_zone_details, **kwargs): Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param str compartment_id: (optional) The OCID of the compartment the zone belongs to. @@ -7953,7 +7943,7 @@ def update_zone_records(self, zone_name_or_id, update_zone_records_details, **kw Allowed values are: "GLOBAL", "PRIVATE" :param str view_id: (optional) - The OCID of the view the resource is associated with. + The OCID of the view the zone is associated with. Required when accessing a private zone by name. :param str compartment_id: (optional) The OCID of the compartment the zone belongs to. diff --git a/src/oci/dns/models/create_zone_base_details.py b/src/oci/dns/models/create_zone_base_details.py index dbe2718fb5..f71d13207e 100644 --- a/src/oci/dns/models/create_zone_base_details.py +++ b/src/oci/dns/models/create_zone_base_details.py @@ -133,6 +133,13 @@ def name(self): **[Required]** Gets the name of this CreateZoneBaseDetails. The name of the zone. + Global zone names must be unique across all other zones within the realm. Private zone names must be unique + within their view. + + Unicode characters will be converted into punycode, see `RFC 3492`__. + + __ https://tools.ietf.org/html/rfc3492 + :return: The name of this CreateZoneBaseDetails. :rtype: str @@ -145,6 +152,13 @@ def name(self, name): Sets the name of this CreateZoneBaseDetails. The name of the zone. + Global zone names must be unique across all other zones within the realm. Private zone names must be unique + within their view. + + Unicode characters will be converted into punycode, see `RFC 3492`__. + + __ https://tools.ietf.org/html/rfc3492 + :param name: The name of this CreateZoneBaseDetails. :type: str diff --git a/src/oci/osp_gateway/models/__init__.py b/src/oci/osp_gateway/models/__init__.py index 0af8491bf6..2c01c2299a 100644 --- a/src/oci/osp_gateway/models/__init__.py +++ b/src/oci/osp_gateway/models/__init__.py @@ -43,6 +43,7 @@ from .tax_info import TaxInfo from .tax_type_rule import TaxTypeRule from .update_subscription_details import UpdateSubscriptionDetails +from .value_set_entity import ValueSetEntity from .verify_address_details import VerifyAddressDetails from .verify_address_receipt import VerifyAddressReceipt @@ -85,6 +86,7 @@ "TaxInfo": TaxInfo, "TaxTypeRule": TaxTypeRule, "UpdateSubscriptionDetails": UpdateSubscriptionDetails, + "ValueSetEntity": ValueSetEntity, "VerifyAddressDetails": VerifyAddressDetails, "VerifyAddressReceipt": VerifyAddressReceipt } diff --git a/src/oci/osp_gateway/models/tax_info.py b/src/oci/osp_gateway/models/tax_info.py index f385221b38..07b1c6456d 100644 --- a/src/oci/osp_gateway/models/tax_info.py +++ b/src/oci/osp_gateway/models/tax_info.py @@ -40,13 +40,18 @@ def __init__(self, **kwargs): The value to assign to the tax_cnpj property of this TaxInfo. :type tax_cnpj: str + :param giro: + The value to assign to the giro property of this TaxInfo. + :type giro: str + """ self.swagger_types = { 'tax_payer_id': 'str', 'tax_reg_number': 'str', 'no_tax_reason_code': 'str', 'no_tax_reason_code_details': 'str', - 'tax_cnpj': 'str' + 'tax_cnpj': 'str', + 'giro': 'str' } self.attribute_map = { @@ -54,7 +59,8 @@ def __init__(self, **kwargs): 'tax_reg_number': 'taxRegNumber', 'no_tax_reason_code': 'noTaxReasonCode', 'no_tax_reason_code_details': 'noTaxReasonCodeDetails', - 'tax_cnpj': 'taxCnpj' + 'tax_cnpj': 'taxCnpj', + 'giro': 'giro' } self._tax_payer_id = None @@ -62,6 +68,7 @@ def __init__(self, **kwargs): self._no_tax_reason_code = None self._no_tax_reason_code_details = None self._tax_cnpj = None + self._giro = None @property def tax_payer_id(self): @@ -183,6 +190,30 @@ def tax_cnpj(self, tax_cnpj): """ self._tax_cnpj = tax_cnpj + @property + def giro(self): + """ + Gets the giro of this TaxInfo. + Companies' GIRO code + + + :return: The giro of this TaxInfo. + :rtype: str + """ + return self._giro + + @giro.setter + def giro(self, giro): + """ + Sets the giro of this TaxInfo. + Companies' GIRO code + + + :param giro: The giro of this TaxInfo. + :type: str + """ + self._giro = giro + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/osp_gateway/models/tax_type_rule.py b/src/oci/osp_gateway/models/tax_type_rule.py index 24c9e42179..c3e0f002c6 100644 --- a/src/oci/osp_gateway/models/tax_type_rule.py +++ b/src/oci/osp_gateway/models/tax_type_rule.py @@ -24,16 +24,23 @@ def __init__(self, **kwargs): The value to assign to the fields property of this TaxTypeRule. :type fields: list[oci.osp_gateway.models.Field] + :param value_set: + The value to assign to the value_set property of this TaxTypeRule. + :type value_set: list[oci.osp_gateway.models.ValueSetEntity] + """ self.swagger_types = { - 'fields': 'list[Field]' + 'fields': 'list[Field]', + 'value_set': 'list[ValueSetEntity]' } self.attribute_map = { - 'fields': 'fields' + 'fields': 'fields', + 'value_set': 'valueSet' } self._fields = None + self._value_set = None @property def fields(self): @@ -59,6 +66,30 @@ def fields(self, fields): """ self._fields = fields + @property + def value_set(self): + """ + Gets the value_set of this TaxTypeRule. + Label value pair for allowed values. Used for GIRO + + + :return: The value_set of this TaxTypeRule. + :rtype: list[oci.osp_gateway.models.ValueSetEntity] + """ + return self._value_set + + @value_set.setter + def value_set(self, value_set): + """ + Sets the value_set of this TaxTypeRule. + Label value pair for allowed values. Used for GIRO + + + :param value_set: The value_set of this TaxTypeRule. + :type: list[oci.osp_gateway.models.ValueSetEntity] + """ + self._value_set = value_set + def __repr__(self): return formatted_flat_dict(self) diff --git a/src/oci/osp_gateway/models/value_set_entity.py b/src/oci/osp_gateway/models/value_set_entity.py new file mode 100644 index 0000000000..308ac7a82b --- /dev/null +++ b/src/oci/osp_gateway/models/value_set_entity.py @@ -0,0 +1,103 @@ +# coding: utf-8 +# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. +# 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. + +# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20191001 + + +from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 +from oci.decorators import init_model_state_from_kwargs + + +@init_model_state_from_kwargs +class ValueSetEntity(object): + """ + LOV for allowed values + """ + + def __init__(self, **kwargs): + """ + Initializes a new ValueSetEntity object with values from keyword arguments. + The following keyword arguments are supported (corresponding to the getters/setters of this class): + + :param name: + The value to assign to the name property of this ValueSetEntity. + :type name: str + + :param value: + The value to assign to the value property of this ValueSetEntity. + :type value: str + + """ + self.swagger_types = { + 'name': 'str', + 'value': 'str' + } + + self.attribute_map = { + 'name': 'name', + 'value': 'value' + } + + self._name = None + self._value = None + + @property + def name(self): + """ + Gets the name of this ValueSetEntity. + User friendly name + + + :return: The name of this ValueSetEntity. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ValueSetEntity. + User friendly name + + + :param name: The name of this ValueSetEntity. + :type: str + """ + self._name = name + + @property + def value(self): + """ + Gets the value of this ValueSetEntity. + Value + + + :return: The value of this ValueSetEntity. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this ValueSetEntity. + Value + + + :param value: The value of this ValueSetEntity. + :type: str + """ + self._value = value + + def __repr__(self): + return formatted_flat_dict(self) + + def __eq__(self, other): + if other is None: + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not self == other diff --git a/src/oci/version.py b/src/oci/version.py index 12c6eeec82..a033d53ea4 100644 --- a/src/oci/version.py +++ b/src/oci/version.py @@ -2,4 +2,4 @@ # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. # 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. -__version__ = "2.119.1" +__version__ = "2.120.0"